Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2006, 04:16 PM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Thread ID into collapseobj

PHP syntax isn't my strongest point...I want to put a $thread[threadid] value inside a $vbcollapse[collapseobj_threadidgoeshere] and it's giving me:

Parse error: parse error, unexpected T_VARIABLE, expecting ']'

The $thread[threadid] is used inside tlist inside the same template, what is the problem with putting it where I want?

Thanks for your help.

Edit: Specifically this is what I want:

id="collapseobj_foo$thread[threadid]" style="$vbcollapse[collapseobj_foo$thread[threadid]]"

The id is fine, the style one gives the error. As yet curly braces and/or escaping have made no difference.
Reply With Quote
  #2  
Old 04-06-2006, 10:17 AM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No? Nobody knows why the threadid var would produce an error inside the style tag?
Reply With Quote
  #3  
Old 04-06-2006, 04:08 PM
SleekSkins's Avatar
SleekSkins SleekSkins is offline
 
Join Date: Apr 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think you can use [] inside [], but I don't know a way around it either.
Reply With Quote
  #4  
Old 04-06-2006, 04:40 PM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can, it's done in several other places in the postbit template.
Reply With Quote
  #5  
Old 05-29-2006, 08:56 PM
DeveloperGuy DeveloperGuy is offline
 
Join Date: May 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did anyone figure out how to do this?
Reply With Quote
  #6  
Old 05-29-2006, 09:01 PM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I never did, and the guys on the vBulletin.com forum seemed equally stumped as to how it could be done. In fact they didn't even appear to know why it was used elsewhere in the same template but produced an error where I wanted it.

I'd still like to do be able to do it.
Reply With Quote
  #7  
Old 05-15-2008, 01:39 AM
ams3521 ams3521 is offline
 
Join Date: May 2005
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello does anyone know how to make a menu default as closed when using this code? I have a sidebar on my forum and the menus default as open. I would like them to stay closed. Thanks

Quote:
<!-- partners -->
<div class="leftmenutitle">
<div class="floatleft">Stuff</div><div class="floatright"><a href="#top" onClick="return toggle_collapse('partners8')"><img id="collapseimg_partners" src="$vboptions[bburl]/skin_images/buttons/collapse_tcat$vbcollapse[collapseimg_tcat].gif" alt="" border="0" /></a></div>
</div>
<div id="collapseobj_partners8" style="$vbcollapse[collapseobj_partners8]">
<div class="leftmenucontent">
<ul class="partnerslist">
<li><a href="http://www.thedailypunt.com/forum/index.php?styleid=47" target="_blank">Old Theme</a></li>
<li><a href="http://www.thedailypunt.com/forum/index.php?styleid=57" target="_blank">Mobile Theme</a></li>
<li><a href="http://www.thedailypunt.com/forum/modapp.php" target="_self">Forum Mods Req</a></li>
<li><a href="http://thedailypunt.com/tdps-forum/" target="_self">tDPS Forum</a></li>
<li><a href="http://thedailypunt.com/wp-signup.php" target="_blank">Create tDPS</a></li>
</ul>
</div>
</div>
<!-- / partners -->
Reply With Quote
  #8  
Old 05-15-2008, 06:43 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trigger the toggle_collapse() function with an "onload" parameter.
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 03:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04753 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete