The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Yes forumhome_forumbit_level2_post
|
#12
|
|||
|
|||
Right, OK, so I meant that you should modify the template and put in code with an "if" instead of a constant string. Maybe that's what you meant - the 'if' has to be part of the template string, and you have to make sure the string ends up being valid php code.
I think we already decided that $show['forumdescription'] isn't set yet when that template is used, so don't use that as your condition. Use if ($forum['description'] != '') {do something}. Now that I think about it, I guess you *can* use process_templates_complete since what you want to do is change the template once. You can pretty much do the same thing, you just have to change your replace code and take it out of the 'if'. Sorry if I confused you before. BTW, did you read this thread: https://vborg.vbsupport.ru/showthread.php?t=275713 ? He was trying to do exactly the same thing you're doing. |
#13
|
||||
|
||||
Ok that is his code
Code:
$replace = '<span class="date">\';if($post[\'isfirstshown\']) { $final_rendered .=\'' . $fetch['data'] . '\'; } $final_rendered .=\''; Code:
$replace = '<h2 class="forumtitle"><div id="scanu"><a '; if ($show['forumdescription']) { $replace .= 'title="<scanu>\' . $forum[\'description\'] . \'</scanu>" '; } Code:
$replace = '<h2 class="forumtitle"><div id="scanu"><a\';if ($show[\'forumdescription\']) { //this is the remaining code Code:
$replace .= 'title="<scanu>\' . $forum[\'description\'] . \'</scanu>" ';} --------------- Added [DATE]1324593817[/DATE] at [TIME]1324593817[/TIME] --------------- Someone can help me? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|