Quote:
Originally Posted by atomic fireball
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!
|
Nice image, will use it once i install it.
It's not really that hard, open admin/functions.php and find:
Code:
return bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode);
Change that line into:
Code:
return bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode,$forumid);
Then find:
Code:
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode)
Change that line into:
Code:
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode,$forumid)
Last one, find:
Code:
if($bbuserinfo[userid]==0) {
Change that line into:
Code:
if($bbuserinfo[userid]==0 AND $forumid != X) {
Where X is the forumid wich you want to exclude. It will display the register now image on signatures.