vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   [Issue] Collapsible Element in Postbit (https://vborg.vbsupport.ru/showthread.php?t=242994)

jamesyfx 05-20-2010 07:34 PM

[Issue] Collapsible Element in Postbit
 
Hi, this ones quite complicated, I'm wondering if there's anything that can be done about it:

In the postbit I have placed different video game score cards (e.g. Steam, Xbox LIVE, PlayStation Network), and I've designed them so they can be hidden via collapse.

I've done it so that if you collapse the element for a particular member, it will stay collapsed in all their posts. This does work fine and the setting is saved, but if the member has posted more than one time in a thread, it will only collapse their first displayed post, and not the rest.

Although - refreshing the page shows that everything has collapsed properly, so there is nothing wrong with the action - I'm just wondering if there is a way to collapse every instance without needing to refresh.

Here is the code I am using:

HTML Code:

<if condition="$post['field11'] OR $post['field9'] OR $post['field8']">
<table cellpadding="0" cellspacing="0" width="100%" align="center">
<thead><tr>
<td class="gamecollapse"><a href="#top" onclick="return toggle_collapse('postbit_$post[userid]')">Show / Hide Gamer Cards</a></td>
</tr></thead>
<tbody id="collapseobj_postbit_$post[userid]" style="{$GLOBALS['vbcollapse']['collapseobj_postbit_'.$post['userid']]}">
<tr><td>
<if condition="$post['field11']">
<div class="jsteam" style="background: #fff url('http://steamprofile.com/steam/profile/default/$post[field11].png') no-repeat scroll 0 0">
</div></if>
<if condition="$post['field9']">
<div class="jxbl" style="background: #fff url('http://card.mygamercard.net/nxe/mini/$post[field9].png') no-repeat scroll 0 0; background-position: bottom"></div></if>
<if condition="$post[field8]">
<div class="jpsn" style="background: #fff url('http://fp.profiles.us.playstation.com/playstation/psn/pid/$post[field8].png') no-repeat scroll 0 0; background-position: -5px -57px"></div></if>
</td></tr></tbody>
</table>
</if>

Thanks for any support. :]

jamesyfx 05-22-2010 01:51 PM

Bump... after 24 hours as per-rules.

If what I want is not clear or is not possible, let me know. Thanks. :]

jamesyfx 06-03-2010 01:44 PM

Bumping again, after a long while.

I know this is more complicated than the usual queries around here, but even a 'No, not possible' would be of value. Thanks.


All times are GMT. The time now is 11:29 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.01694 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete