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)

Digital Jedi 05-27-2009 01:21 AM

Quote:

Originally Posted by dancue (Post 1817164)
I know the title says Postbit_legacy, but can this be done for the postbit as well?

I haven't had any success.

Look for Boosted Panda's posts in this thread and look for his postbit modification where he implements it for the postbit.

dancue 05-27-2009 01:48 AM

sorry, I should have read through the thread...

Thanks for your help!

dancue 05-27-2009 02:01 AM

I should have explained myself better. Can I have this working in postbit as well as postbit_legacy. My users have the option of selecting vertical or horizontal postbit view.

Digital Jedi 05-27-2009 03:24 AM

Quote:

Originally Posted by dancue (Post 1817835)
I should have explained myself better. Can I have this working in postbit as well as postbit_legacy. My users have the option of selecting vertical or horizontal postbit view.

Yes, being able to switch wouldn't matter. But you need to take a look at Boosted Panda's Better Postbit Template to make it work in the postbit. The reason being is that it sets a fixed height for the postbit.

dancue 05-29-2009 09:36 PM

Okay, I've managed to add this to the postbit and am not able to get the 6th tab to show the content I'm inputing. Instead it's giving me the "Tab 6 content..."

In fact, I don't understand what's going on with this. If I have the Dynamic tabs running on both the postbit and postbit legacy they will not show correctly on either.

Digital Jedi 05-30-2009 03:05 AM

Would help if I could see your site and/or your postbit code.

dancue 05-30-2009 12:07 PM

Okay, what I did was start from scratch. I did one tab at a time for each the postbit and postbit_legacy.

It all seems to work now, except the code for the contact me info I'd like to add.

Here it is:
Code:

<div class="info" align="center">
<if condition="$show['pmlink'] OR $show['emaillink'] OR $post['userid'] AND $show['member']">
Contact $post[username]:<br /></if>

<if condition="$show['pmlink']><fieldset class="fieldset"><legend>PM</legend>
  <a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]"><img src="images/buttons/pmthisuser.png" alt="Send $post[username] a Private Message" style="border:0" /></a><br />
</fieldset></if>

<if condition="$show['emaillink']"><fieldset class="fieldset"><legend>E-Mail</legend>
  <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><img src="images/buttons/emailuser.png" alt="Send $post[username] an E-Mail" style="border:0" /></a><br />
</fieldset></if>

<if condition="$post['userid'] AND $show['member']"><fieldset class="fieldset"><legend>Befriend</legend>
 <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><img src="images/buttons/Befriend.png" alt="Send $post[username] a Friendship Request" style="border:0" /></a>
</fieldset></if>

<if condition="$post['userid'] AND $show['member']"><fieldset class="fieldset"><legend>Profile Message</legend>
 <a href="http://www.unifiedchamp.com/ucforum/members/$post[username]"><img src="images/buttons/visitormessage.png" alt="Leave $post[username] a Profile Message" style="border:0" /></a>
</fieldset></if>

</div>


Digital Jedi 05-30-2009 12:54 PM

This line is the problem. Your missing a closing tag and a quotation mark. Highlighted in red.

Code:

<if condition="$show['pmlink']"><fieldset class="fieldset"><legend>PM</legend>
  <a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]"><img src="images/buttons/pmthisuser.png" alt="Send $post[username] a Private Message" style="border:0" /></phrase></a><br />
</fieldset></if>


DobieGillis? 05-30-2009 07:14 PM

fantastic Mod, nominated.

dancue 05-30-2009 08:14 PM

1 Attachment(s)
Quote:

Originally Posted by Digital Jedi (Post 1820106)
This line is the problem. Your missing a closing tag and a quotation mark. Highlighted in red.

Code:

<if condition="$show['pmlink']"><fieldset class="fieldset"><legend>PM</legend>
  <a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]"><img src="images/buttons/pmthisuser.png" alt="Send $post[username] a Private Message" style="border:0" /></phrase></a><br />
</fieldset></if>


I lie to you not...I've spent many, many hours trying different things. Didn't even bother checking all of the closing tags...

Thank you. Works now... :D

The only thing I can't understand is the text not wrapping within the the <div class="info"> tags. It wraps within the postbit_legacy, but the postbit looks like the picture below.


All times are GMT. The time now is 11:49 PM.

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.01347 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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