Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Filter Img Bbcode To Allow Show Only Images From My Server 
 
Is there a way to not show the images posted on messages using -img- bbcode that come from any outside server but mine?  This is to force members to use the album of my forum and not post images from other sites that not compress the file so much.

I know that they can use the pic_id bbdode but I also have enable the Post Image MOD  and that use IMG bbcode.  Also, I post messages that include images using img bbcode, but they are all from my server.

Hope you understand. Thanks in advance.



htttp://www.forobebe.com
Icy Phoenix 1.1.0.15
Paid Hosting
 



 
kognosSend 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: Filter Img Bbcode To Allow Show Only Images From My Serv 
 
kognos wrote: [View Post]
Is there a way to not show the images posted on messages using -img- bbcode that come from any outside server but mine?  This is to force members to use the album of my forum and not post images from other sites that not compress the file so much.

I know that they can use the pic_id bbdode but I also have enable the Post Image MOD  and that use IMG bbcode.  Also, I post messages that include images using img bbcode, but they are all from my server.

Hope you understand. Thanks in advance.



htttp://www.forobebe.com
Icy Phoenix 1.1.0.15
Paid Hosting

To do this you should modify your bbcode.php.

Try this:

FIND
Code: [Download] [Hide] [Select]
            $html .= ' />';
            // add url


AFTER ADD
Code: [Download] [Hide] [Select]
            if (strpos($params['src'], trim($board_config['server_name'])) == false)
            {
                $html = $this->process_text($params['alt']);
            }

 




____________
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: Filter Img Bbcode To Allow Show Only Images From My Serv 
 
Thanks MG, I will check it out.
 



 
kognosSend private message  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  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


  

 

  cron