Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Make BBCode Only For Admin 
 
Hi;
I've DownLoad IcyPhenix
BBCodes are perfect but i want to know how to create restriction ? link of BBcode restrict to admin and mod(first for admin only, second for admin & mod).
Second Link
And here (restriction begin at "Testing Cell BBCode"(restricted) and finish just before images). and a new restriction for video and the last : Icy Phoenix Staff
First Link
Here i want to restrict only to admin(I want only admin can use).

 



 
InformproSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Make BBCode Only For Admin 
 
nobody's know ?
I think it's in the bbcode replace; i've to add a
Code: [Download] [Hide]
  1. if($userlevel = ADMIN)  
  2. {  
  3.   $replace = str_replace();  
?
 



 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Make BBCode Only For Admin 
 
You need to add this code for the tags you want to disallow (file is bbcode.php of course).

FIND
Code: [Download] [Hide] [Select]
        if($tag === 'color')


REPLACE WITH
Code: [Download] [Hide] [Select]
        if(($tag === 'color') && ($userdata['user_level'] == ADMIN))

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Make BBCode Only For Admin 
 
Thanks MG that is something to use in the future (well for my site anyway)
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Make BBCode Only For Admin 
 
I have just noticed that this edit won't work... this will only disallow users to view the BBCode, not to use them.

So please disregard my previous suggestion...

It is not easy to allow only admins to use some BBCodes... because we need an extra condition in viewtopic.

I will try to think to an alternate solution, but it is not easy.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Make BBCode Only For Admin 
 
No worries... at present the bbcodes are fine.. I was just thinking if someone started abusing some of the features you can turn them off for users...

but as I said no worries..

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events