Thread: Miscellaneous Hacks - DJ's Dynamic Tab Content for Postbit_Legacy
View Single Post
  #136  
Old 08-22-2008, 11:35 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gday Gamerzzz.. sorry had a late night at the Broncos Titans game lol..

Heres my Postbit DJ code:

Code:
<!-- BEGIN AJAX CONTENT -->
<head>
<link rel="stylesheet" type="text/css" href="postbit_tabs/tabcontent.css" />
<script type="text/javascript" src="postbit_tabs/tabcontent.js">

</script>
</head>

<div id="$post[postid]postbittabs" class="djdot">
<ul>
<li><span title="Info"><a href="#" rel="$post[postid]tab1">&nbsp;</a></span></li>
<li><span title="My Info"><a href="#" rel="$post[postid]tab2">&nbsp;</a></span></li>
<li><span title="Stats"><a href="#" rel="$post[postid]tab3">&nbsp;</a></span></li>
<li><span title="VB Experience"><a href="#" rel="$post[postid]tab4">&nbsp;</a></span></li>
</ul>
<br style="clear: left" />
</div>
 
 
 
<div class="smallfont">
 
<!--TAB 1 CONTENT -->
<div id="$post[postid]tab1" class="tabcontent">
<if condition="$post[userid]"><div class="info">
	$vbphrase[bf2_local_time]: $post[localtime]<br>
	$vbphrase[bf2_local_date]: $post[localdate]
</div></if>
<if condition="$post[field12]"><div class="info"><center><img src="http://yobromofo.com/forum/styles/webpoint/images/flags/$post[field12].GIF"></center></div></if>
<if condition="$post['joindate']"><div class="info">$vbphrase[join_date]: $post[joindate]</div></if>
<!--tommys who quoted me-->
<if condition="$post['field14']"><div class="info">Who Quoted Me: (<b><a href="search.php?do=process&query=$post[username]&searchdate=lastvisit&showposts=1" rel="nofollow">$post[field14]</a></b>)
					
					</div></if>
<!--end of tommys who quoted me-->
<!--fantasy-->
<if condition="$post[field13]"><div class="info"><center>
<a href="http://www.yobromofo.com/fantasy/index.php?cmd=userpreds&user=$post[field13]" title="View $post[username]'s Fantasy Predictions" rel="nofollow" target="_blank"><img src="http://yobromofo.com/forum/styles/webpoint/images/buttons/soccer_ball.gif" alt="View $post[username]'s Fantasy Predictions"  border="0"/></a></center></div></if>
<!--end fantasy-->
</div>
 
<!-- TAB 2 CONTENT -->
<div id="$post[postid]tab2" class="tabcontent">
<if condition="$post['field2']"><div class="info">$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post[field5]"><div class="info">Visa Type: $post[field5]</div></if>
<div class="info">$post[findme]</div>
<div class="info">$post[crowns]$post[champtext]</div>
<if condition="$post[field11]"><div class="info">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field11].gif" alt="$post[field11]" /></div></if>
<if condition="$post['age']"><div class="info">$vbphrase[age]: $post[age]</div></if>
</div>
 
<!-- TAB 3 CONTENT -->
<div id="$post[postid]tab3" class="tabcontent">
<if condition="$post['userid']"><div class="info">YoBroMoFo Mates: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if>
<div class="info">$vbphrase[posts]: $post[posts]</div>
<if condition="$vboptions['vbookiecashon']"><div class="info">
       $vbphrase[vbookie_vcash]: $post[vbookie_cash]
   </div></if>
<if condition="$post['threads']"><div class="info">
					
						$vbphrase[threads]: <a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&amp;starteronly=1" rel="nofollow">$post[threads]</a>
					</div></if>

<if condition="$show['credits_post']"><div class="info">
					
						$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
					
				</div></if>
<div class="info">$template_hook[postbit_userinfo_right_after_posts]</div>
<if condition="$show['infraction']"><div class="info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
</div>
 
<!-- TAB 4 CONTENT -->
<div id="$post[postid]tab4" class="tabcontent">
<div class="info">$template_hook[postbit_userinfo_left]</div>
</div>
 
 
</div>
 
<script type="text/javascript">
var mytabs=new ddtabcontent("$post[postid]postbittabs")
mytabs.setpersist(false)
mytabs.setselectedClassTarget("link")
mytabs.init()
</script>
<!-- END AJAX CONTENT --> 
			
					
<div class=smallfont>
Obviosuly theres a couple of added bits that others dont use , but our tab for VBExp is in tab4 i think

Added: Still cant get my bloody dots central lol
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01116 seconds
  • Memory Usage 1,799KB
  • 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