vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - DJ's Dynamic Tab Content for Postbit_Legacy (https://vborg.vbsupport.ru/showthread.php?t=184136)

troppodel 12-18-2008 01:34 PM

if i delete the code in headinclude i don't see the erro in IE anymore

Digital Jedi 12-18-2008 01:44 PM

Quote:

Originally Posted by troppodel (Post 1687981)
if i delete the code in headinclude i don't see the erro in IE anymore

Yes, but without that line you'll get no dynamic content. You need both those lines for the mod to work. What you need to do is track down the source of the actual error.

You have a number of errors on the page which are likely causing a cascade effect of errors. http://validator.w3.org/check?uri=ht...e&group=0&ss=1 Try correcting each one of these starting from the top and see if you start noticing better behavior from the tabs. Also go to vBulletin Options >>> General Settings >>> Add Template Name in HTML Comments and turn that on so you can see what templates contain the malformed code.

Chunky Monkey 12-19-2008 08:09 PM

Hi Digital Jedi,

I'm about to install. This should work 100% in 3.7.4, right? Also, can the number of tabbed "windows" be configured? I only need 2 - the one that displays by default, and one additional one.

Thank you for contributing this mod!

Chunky Monkey 12-19-2008 08:31 PM

Oh, I just realized the code for each tab is right there in the template. Is there any way to have a tab load code dynamically so that additional database calls aren't required to display certain information unless/until it is displayed by a member clicking on the tab?

Digital Jedi 12-20-2008 01:48 AM

Not really. This is more of a space saving effort then a query saving effort. I've been looking into an AJAX version of this, but I haven't had time to do a real in depth study yet. AJAX would likely be more effort putting together.

rolandogomez 12-21-2008 12:38 AM

Works great, though I'm having problems making the flags mod work in there, otherwise, perfect on 3.8, thanks, rg.

GlamRockTalk 12-21-2008 02:29 AM

Se?or Gomez,

Here's what I used....

Code:

<div class="pbit">
<if condition="$post['field9']"><img src="images/flags/$post[field9].gif" alt="" /></if>
<if condition="$post['field10']"><img src="images/region/$post[field10].gif" alt="" /></if>
</div>

....hope it helps.

I'm not a coder, but I got it working and just showing what I did in case it helps you. :D

Good luck!

rolandogomez 12-21-2008 01:17 PM

Oops, figure it out, had the wrong fields, works now, here's an example...

http://www.phototherapy.org/forums/o...ry.html#post42

Thanks, rg sends!

rolandogomez 12-21-2008 01:25 PM

Cool, made the change below and incorporated it into my member's profile page, see here: http://www.phototherapy.org/forums/m...andogomez.html

Here's the code, hope it's ok to post it in this thread:

Code:

<fieldset>
<if condition="$userinfo[fieldXX]"><img src="images/flags/$userinfo[fieldXX].gif"></if>
<if condition="$userinfo[fieldXX]"><img src="images/region/$userinfo[fieldXX].gif"></if>
<b>City:</b> $userinfo[fieldXX]<br>
<b>State:</b> $userinfo[fieldXX]<br>
<b>Country:</b> $userinfo[fieldXX]<br>

Replace the "XX"'s with your field ID's...

All the best, love this! rg sends!

GlamRockTalk 12-21-2008 07:35 PM

Cool Rolando! Thanks for sharing the member's profile page modification you made. Nice touch :D


All times are GMT. The time now is 02:23 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.01409 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete