Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-09-2010, 03:06 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why not just edit the thread title itself?
seems like a lot of work to do something so simple...
Reply With Quote
  #12  
Old 12-09-2010, 03:07 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
--------------- Added [DATE]1291914493[/DATE] at [TIME]1291914493[/TIME] ---------------

Quote:
Originally Posted by Loco.M View Post
why not just edit the thread title itself?
seems like a lot of work to do something so simple...
How else would you edit the title in specific forums only?
Reply With Quote
  #13  
Old 12-15-2010, 03:20 PM
cbishwaraj cbishwaraj is offline
 
Join Date: Jul 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 12-15-2010, 04:14 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 12-15-2010, 05:10 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
at the end of your "elseif" statements... directly below the line:
Code:
<vb:elseif condition="$thread[forumid] == " 95/>
<title>Saab| {vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title>
Reply With Quote
  #16  
Old 12-15-2010, 06:05 PM
cbishwaraj cbishwaraj is offline
 
Join Date: Jul 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great ! BirdOPrey5
I appreciate your continuous help. God bless you.

Now all done.
THANK YOU SO MUCH.

cbishwaraj
Reply With Quote
  #17  
Old 12-15-2010, 06:52 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good Luck :up: You sure put a lot of work into typing all that out.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:19 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
  • Page Generation 0.04033 seconds
  • Memory Usage 2,226KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete