vb.org Archive

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

MonkYZ 06-25-2011 07:31 PM

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} :D
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>


MrsTryst 08-12-2011 10:34 PM

Anyone figured out a way to fix the issue with the boxes around the text?
Thanks :)

duketxboy 08-12-2011 10:47 PM

does this change it to the layout as well that you have on your profile?

TheLastSuperman 08-12-2011 11:07 PM

Quote:

Originally Posted by raagaswaram (Post 2204114)
can't get the box type using royalflush completevb style.

Please post a link to your site? Thanks!

Quote:

Originally Posted by MonkYZ (Post 2212438)
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 (Post 2212750)
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} :D
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 (Post 2232811)
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 (Post 2232816)
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 ;).

MrsTryst 08-13-2011 12:04 AM

Thanks for the quick reply TheLastSuperman,

Quote:

Originally Posted by Digital Jedi (Post 2000272)
FREQUENTLY ASKED QUESTIONS[*]My forum doesn't display those little boxes.
Then you probably don't have the CSS code for .info on your forum. It's a commonly used CSS class name in many styles, but not all have it, or have different names. First take a moment to look at your forum and see if you don't have a box style somewhere that's being used and just use it's class (presuming it has one) rather than .info. Alternatively, you can use the following code, but change the color codes to match your forum:
PHP Code:

/* Info Boxes CSS */
.info {
font-size:10px;
font-face:Arial;
color#CCCCCC;
padding-left3px;
padding-right3px;
padding-top3px;
padding-bottom3px;
background-color#181818;
border-top1px solid #000000;
border-right2px solid #000000;
border-left1px solid #000000;
border-bottom2px solid #000000;
margin-bottom3px;


Remember that this goes in your Additional CSS Definitions way down at the bottom of your Main CSS controls in the Style Manager.
[/LIST]

I added this code to additional.css, didn't work :( still can't see the little boxes.. Any suggestions on how to work that out?
Thanks.

MonkYZ 08-13-2011 01:04 AM

Quote:

Originally Posted by TheLastSuperman (Post 2232825)
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 ;).

Well, that vB3 code i can't convert to vB4 code. I've done some of them, but some of them i simply can't display. For example:

Age
Homepage
Biography
Interests
Infractions
Email Link
Sent PM user
Achievements (vBexperience)
Awards (vBexperience)
iBproArcade

etc... Can you post the code to work ok on vB4? After all, this is a vB 4 addon :)

TenaciousD 10-16-2011 05:49 PM

1 Attachment(s)
Could someone take a look at this code and tell me why some entries are appearing on a single line, and others break into two? I've tried everything to get the responses to a single line-item, with no success. Screenshot attached.

Lines in RED appear in postbit(legacy) as:

Join Date:
January 2001

Lines in GREEN appear as the following (which I prefer):

Join Date: January 2001

Here's the actual code:
<!--TAB 1 CONTENT -->
<div id="tab1$post[postid]" class="tabcontent">

<vb:if condition="$post['joindate']"><div class="info"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if>

<vb:if condition="$post['field2']"><div class="info"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if>

<vb:if condition="$post['age']"><div class="info"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>

<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>

<div class="info">Tab 1 Content:Block B</div>
<div class="info">Tab 1 Content:Block C</div>


</div>

Thanks in advance for any help / guidance.

XLCR GODFATHER 10-31-2011 05:13 AM

Very Nice Mod. Installed! 5 Star. Only wish I could figure out why the UL dots will not align center in the postbit legacy...

HHelp1 02-20-2012 12:59 PM

Is this still work for 4.1.9 ?

MonkYZ 08-02-2013 12:42 AM

Quote:

Originally Posted by MonkYZ (Post 2232860)
Achievements (vBexperience)
Awards (vBexperience)
iBproArcade

Can you post the code to work ok on vB4? After all, this is a vB 4 addon :)

These... i can't get them to work on vBulletin 4.x. Any clue?


All times are GMT. The time now is 01:35 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.01258 seconds
  • Memory Usage 1,805KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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