Follow Us:
Tricked Out Mods: Forums

Best Hosting
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

colorbox in bbcode image
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> RavenNuke
View previous topic :: View next topic  
Author Message
nextgen
I might as well work here
I might as well work here


Joined: Jun 28, 2009
Posts: 79
Location: Maryland

PostPosted: Fri Jan 13, 2012 8:17 pm 
Post subject: colorbox in bbcode image
Reply with quote

Can i get the colorbox to open the image added through bbcode in the forums ?
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Fri Jan 13, 2012 10:21 pm 
Post subject:
Reply with quote

There's a mod for it somewhere. I will look for it.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Fri Jan 13, 2012 10:29 pm 
Post subject:
Reply with quote

I have a forum mod here: http://trickedoutnews.com/nuken/ForumLimitMod.txt that my be what you are looking for.

Paste the text in modules/Forums/includes/bbcode.php after the following line:

Code:
// [img]image_url_here[/img] code..

   $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);


You set the image size in the Forums ACP --> Extensions--> Special Categories --> Maximum Image Dimensions
_________________
Tricked Out News
  

Last edited by bobby on Tue Jan 31, 2012 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
nextgen
I might as well work here
I might as well work here


Joined: Jun 28, 2009
Posts: 79
Location: Maryland

PostPosted: Sun Jan 15, 2012 8:36 am 
Post subject:
Reply with quote

thank you friend, are you making anytime for yourself ? You have been so busy.
_________________
Ravennuke is a state of mind.
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
nextgen
I might as well work here
I might as well work here


Joined: Jun 28, 2009
Posts: 79
Location: Maryland

PostPosted: Sun Jan 15, 2012 8:50 am 
Post subject:
Reply with quote

just to kinda clear the post that code goes in the bbcode.php right after the following code:

Code:
// [google]string for search[/google] code..

   $patterns[] = "#\[google\](.*?)\[/google\]#ise";
   $replacements[] = $bbcode_tpl['google'];

_________________
Ravennuke is a state of mind.
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
nextgen
I might as well work here
I might as well work here


Joined: Jun 28, 2009
Posts: 79
Location: Maryland

PostPosted: Sun Jan 15, 2012 9:12 am 
Post subject:
Reply with quote

if you just have the base bbcode and not the advanced bbcode i thibk you can place it just after the following code:

Code:
$replacements[] = $bbcode_tpl['email'];

_________________
Ravennuke is a state of mind.
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> RavenNuke All times are GMT - 5 Hours
 
 Page 1 of 1
 
 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©