The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
why not just edit the thread title itself?
seems like a lot of work to do something so simple... |
#12
|
||||
|
||||
Hey, i'm sorry, I messed up... it'd not $forum[forumid] it's $thread[forumid] when using the conditionals in SHOWTHREAD. $forum is when in FORUMDISPLAY template.
This code works, I just tested it: Code:
<vb:if condition="$thread[forumid] == 114"> <title>Aarons | 114{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title> <vb:elseif condition="$thread[forumid] == 115" /> <title>Abt Electronics | 115{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title> <vb:else /> <title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title> </vb:if> How else would you edit the title in specific forums only? |
#13
|
|||
|
|||
Hi BirdOPrey5,
Is there any limitation for number of If-Else Command for Show Thread template? I have nearly 300 Forums and theirs respective threads. I was adding title prefix with the same If-Else command strategy. I was being able to change the title upto 100 of Forums. But after that Thread title are not changed and Following error message is coming to V Bulletin Admin Panel while saving the code: ***************** Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3391 The following error occurred when attempting to evaluate this template: %1$s This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. ****************** Could you PLEASE Help me on this ? Thank you so much for your support. Cbishwaraj. |
#14
|
||||
|
||||
I'm not aware of any limits, more than likely there's an extra or missing quotation mark (") or equals sign =... If you can paste in the code you have I can take a look at it and see if I see anything.
Use the BB Code so it displays correctly. If you don't want to post it here you can PM me. |
#15
|
||||
|
||||
Right off the bat I see you don't have an ending <vb:else> tag and </vb:if> close tag.
You need one of each... try putting Code:
<vb:else /> <title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title> </vb:if> Code:
<vb:elseif condition="$thread[forumid] == " 95/> <title>Saab| {vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title> |
#16
|
|||
|
|||
Great ! BirdOPrey5
I appreciate your continuous help. God bless you. Now all done. THANK YOU SO MUCH. cbishwaraj |
#17
|
||||
|
||||
Good Luck :up: You sure put a lot of work into typing all that out.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|