![]() |
this also effects users signature images if a user has an [img[ code in there sig..........
|
i modded it a bit to make the image a link to teh register page if u r interested ?
$bbcode = preg_replace("|\[img\](.*)\[/img\]|i", "<a href=\"http://www.url.com/forums/register.php?s=&action=signup\"><img src=\"http://www.url.com/forums/images/registerpic.jpg\" border=\"0\" alt=\"\"></a>", $bbcode); |
Awesome! Let me apply this new little tweak. Very good idea.
Lesane and corsacrazy, thanks again for your assistance with this! |
all credit goes to the L man ;) and ofcourse atomic for the idea ;)
|
1 Attachment(s)
If anyone is intersted, I created a simple quick and dirty "You'll need to register" graphic and have attached it to this post. (I just used the generic vBulletin colors/fonts, so it's not flashy, but it'll do the job. It includes the corsacrazy mod, telling users they can click the image to register.)
Lesane, would it be a LOT more work to get this hack selectable per forum? Or perhaps a line of code that would exclude a certain forum(s) from this IMG hack? (Perhaps the admin could hard code the forum IDs they want to include for this into the hack, etc? Or vice-versa, one could exclude a particular forum from this IMG tag behavior?) Its not crucial, but if it's not too difficult, it would be a nice addition. Thanks again to Lesane for the PHP work and corsacrazy for the mod! |
1 Attachment(s)
here tis my graffic
|
Hey, no fair!! Your graphic is way better than mine! :D
|
lol i also hav a swf flah move telin people to register i may incorportae that into it ;)
|
Just so this question doesn't get lost from the first page: Lesane, would it be a LOT more work to get this hack selectable per forum? Or perhaps a line of code that would exclude a certain forum(s) from this IMG hack? (Perhaps the admin could hard code the forum IDs they want to include for this into the hack, etc? Or vice-versa, one could exclude a particular forum from this IMG tag behavior?)
|
Quote:
It's not really that hard, open admin/functions.php and find: Code:
return bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode); Code:
return bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode,$forumid); Code:
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode) Code:
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode,$forumid) Code:
if($bbuserinfo[userid]==0) { Code:
if($bbuserinfo[userid]==0 AND $forumid != X) { |
All times are GMT. The time now is 12:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|