Thread: Miscellaneous Hacks - DJ's Dynamic Tab Content for Postbit_Legacy
View Single Post
  #318  
Old 09-23-2009, 10:47 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I got every thing sorted and it is working great. Every thing is in the tabs I want and I even got the .info class to work.

Now I'm having a very odd issues. For some of the users (they are not in the same usergroups) the text does not appear the same as other users in some of the tabs (not all tabs). Also, for these same users, my Reputation icon that is assigned to tab one only, shows up at the top of all the other tabs.

If you would like to have a look, see posts 18-20 on this thread. User Jmac, post #19 is one of the members having this odd issue. Post #18 and #20 do not have this issue.

Just encase you want it, here is my code for the tabs...

Code:
<!-- BEGIN POSTBIT TABS --> 
<div id="postbittabs$post[postid]" class="djdot"> 
  
<ul> 
<li><span title="User Info"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]">&nbsp;</a></span></li> 
<li><span title="Game Info"><a href="#" rel="tab2$post[postid]">&nbsp;</a></span></li> 
<li><span title="Files Info"><a href="#" rel="tab3$post[postid]">&nbsp;</a></span></li> 
<li><span title="Medals"><a href="#" rel="tab4$post[postid]">&nbsp;</a></span></li> 
<li><span title="Contact"><a href="#" rel="tab5$post[postid]">&nbsp;</a></span></li> 
</ul> 
  
<br style="clear: left" /> 
  
</div> 
  
<div class="smallfont" align= "left" > 
  
<!--TAB 1 CONTENT -->
<div id="tab1$post[postid]" class="tabcontent" >
 
<div class="info">$vbphrase[posts]: $post[posts]</div>

<div class="info"><if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if></div>
	
<if condition="$post['field7']"><div class="info">Group: $post[field7]</if></div>

<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
               
               
 
</div>  
<!-- TAB 2 CONTENT --> 
<div id="tab2$post[postid]" class="tabcontent"> 
  
<if condition="$post[field6]"><div class="info">Favorite Plane: $post[field6]</div></if>
<if condition="$post[field21]"><div class="info">Side: $post[field21]</div></if>
<if condition="$post[field22]"><div class="info">War: $post[field22]</div></if>   
</div> 
  
<!-- TAB 3 CONTENT --> 
<div id="tab3$post[postid]" class="tabcontent"> 
  
<if condition="$post[downloads]>0"><div class="info">{$vbphrase['ecdownloads_downloads']}: $post[downloads]</div></if>
<if condition="$post[uploads]>0"><div class="info"><a href="member.php?$session[sessionurl]u=$post[userid]&tab=dl2modification">{$vbphrase['ecdownloads_uploads']}: $post[uploads]</a></div></if>

<div class="info"><a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="Member's Picture Albums" border="0"/></a>  </div>
</div> 
  
<!-- TAB 4 CONTENT --> 
<div id="tab4$post[postid]" class="tabcontent"> 
  
<if condition="$post[showuserawards]"><div class="info">$post[userawards]</div></if>
  
</div> 
  
<!-- TAB 5 CONTENT --> 
<div id="tab5$post[postid]" class="tabcontent"> 
  
<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</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>
<br />
 <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
			</div>
   
</div> 
  
</div> 
  
  
<script type="text/javascript"> 
var mytabs=new ddtabcontent("postbittabs$post[postid]") 
mytabs.setpersist(false) 
mytabs.setselectedClassTarget("link") 
mytabs.init() 
</script> 
  
<!-- END POSTBIT TABS -->
Sorry to be such a bother!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01289 seconds
  • Memory Usage 1,798KB
  • 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
  • (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