Thread: Miscellaneous Hacks - DJ's Dynamic Tab Content for Postbit_Legacy
View Single Post
  #85  
Old 08-12-2011, 11:07 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by raagaswaram View Post
can't get the box type using royalflush completevb style.
Please post a link to your site? Thanks!

Quote:
Originally Posted by MonkYZ View Post
Can you please make this work for 4.1.3? None of the variables work anymore... I can't add anything from the first page...
See below...

Quote:
Originally Posted by MonkYZ View Post
None of these works anymore... I've tried converting $post[postid] to {vb:raw post.postid} but didn't worked. Actuall, it only worked for {vb:raw post.posts}
Code:
<!--TAB 1 CONTENT -->
<div id="tab1$post[postid]" class="tabcontent">

<div class="info">$vbphrase[posts]: $post[posts]</div>
<if condition="$block_data[namechanges]"><div class="info">Old username: $block_data[namechanges]</div></if>

</div>
 
<!-- TAB 2 CONTENT -->
<div id="tab2$post[postid]" class="tabcontent">
 
 <if condition="$post['usertitle']"><div class="info">User title: $post[usertitle]</div></if>
 <if condition="$post['joindate']"><div class="info">Join date: $post[joindate]</div></if>
 <if condition="$post[field1]"><div class="info">Biography: $post[field1]</div></if> 
 <if condition="$post[field2]"><div class="info">Location: $post[field2]</div></if> 
 <if condition="$post[field3]"><div class="info">Interests: $post[field3]</div></if> 
 <if condition="$post[field4]"><div class="info">Ocupation: $post[field4]</div></if> 
 <if condition="$show['homepage']">
 <div class="info">Homepage: <a href="$post[homepage]" target="_blank"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></div>
 </if>
 <if condition="$show['infraction']"><div class="info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>

</div>
 
<!-- TAB 3 CONTENT -->
<div id="tab3$post[postid]" class="tabcontent">
 
<if condition="$show['infraction']"><div class="info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
               <if condition="$show['reputation']"><div class="info">Reputation:<br><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
               <if condition="$show['reppower']"><div class="info">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span></div></if>

<div class="info">Experience:<br>$template_hook[postbit_userinfo_right_after_posts]</div>
 
</div>
 
<!-- TAB 4 CONTENT -->
<div id="tab4$post[postid]" class="tabcontent">
 
<if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon] or $post[skypeicon]"><div class="info">Contact info:<br>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></if> 

<div class="info">
<if condition="$show['pmlink'] OR $show['emaillink'] OR $post['userid'] AND $show['member']">
Send $post[username]:<br /></if>
        <if condition="$show['pmlink']">
  <a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">a Private Message</phrase></a><br />
 </if>
 <if condition="$show['emaillink']">
  <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow">an Email</a><br />
 </if>
 <if condition="$post['userid'] AND $show['member']">
 <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]">a Friend Request</a>
 </if></div>

</div>
 
<!-- TAB 5 CONTENT -->
<div id="tab5$post[postid]" class="tabcontent">
 
<div class="info">Arcade champion:<br>
        <if condition="$crowns">
 $post[crowns]$post[champtext]
   <else />
   $post[username] has not championed any arcade games.   </if>
</div> 
</div>
That's the vB3 code... have you done something wrong for example tried modifying vB4 w/ vB3 codes or? Why did you post that as your reply could determine the proper course to take and finally sort this for you .

Quote:
Originally Posted by MrsTryst View Post
Anyone figured out a way to fix the issue with the boxes around the text?
Thanks
Per your previous post, your going off the Main CSS to add in css? That's deprecated in vB4 so when you need to add css to your site:

AdminCP > Styles & Templates > Style Manager > Edit temples > CSS Templates > additional.css

Post new css there and it won't be overwritten when you upgrade .

Quote:
Originally Posted by duketxboy View Post
does this change it to the layout as well that you have on your profile?
Do you mean the left column like you also see it on www.vbulletin.com or will it look similar to his screenshot i.e. placement of fields etc?

It will take what normally is long and drawn out going from top to bottom on the page into something within the same area, click the little dots you see in the screenshot to show the next few items .
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01877 seconds
  • Memory Usage 1,805KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete