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)

Digital Jedi 08-06-2010 08:20 PM

Quote:

Originally Posted by EquinoxWorld (Post 2070694)
Has anyone tested this out for 4.0.5? Thanks for the help everyone.

No reason why it shouldn't.


Quote:

Originally Posted by RobbieZ (Post 2074745)
Looks good Webbstre :D

Have you witnessed the bug still , where it shows all the information when inline moderation is being done?

Pretty much it should string out like that every time, or just display nothing during inline editing/posting. But it will only show for the poster and no one else, and won't show up again on page reload.

Quote:

Originally Posted by merk_aus (Post 2078379)
Is there anyway to make the "dots" centered?

There's a rather lengthy discussion on that in the 3.x thread that you may want to look over. I can't recall what finally worked for us there.

AfterWorldForum 08-30-2010 06:33 PM

Quote:

Originally Posted by EquinoxWorld (Post 2070694)
Has anyone tested this out for 4.0.5? Thanks for the help everyone.

Got it running on that now.

I'm not fully satisfied with it yet (I have yet to port the Arcade, and I wouldn't mind tweaking a few other settings as well), but when I am, I'll share the codes I ended up using.

AfterWorldForum 08-31-2010 04:17 PM

As promised, here's my version of the script. I used mostly existing stuff ouf of the postbit_legacy template, and converted some of the suggestions from DJ to work with vB4. Code below is ready for copy/paste, and is working on 4.0.5. Live demo can be seen on www.EntropiaPlanets.com.

Code:

<!-- BEGIN POSTBIT TABS --> 
<div id="postbittabs{vb:raw post.postid}" class="djdot"> 
        <ul> 
                <li><span title="Forum statistics"><a href="#" rel="tab1{vb:raw post.postid}" id="selected{vb:raw post.postid}">&nbsp;</a></span></li> 
                <li><span title="Personal information"><a href="#" rel="tab2{vb:raw post.postid}">&nbsp;</a></span></li> 
                <li><span title="Ingame info"><a href="#" rel="tab3{vb:raw post.postid}">&nbsp;</a></span></li>
                <li><span title="Arcade"><a href="#" rel="tab4{vb:raw post.postid}">&nbsp;</a></span></li> 
        </ul> 
        <br style="clear: left" /> 
</div> 
 
<div class="smallfont"> 
 
<!--TAB 1 CONTENT --> 
<div id="tab1{vb:raw post.postid}" class="tabcontent"> 
 
        <vb:if condition="$post['joindate']"><div class="info"><b>{vb:rawphrase join_date}: </b> {vb:raw post.joindate}</div></vb:if>
        <div class="info"><b>{vb:rawphrase posts}: </b>{vb:raw post.posts}</div>
       
          {vb:raw template_hook.postbit_userinfo_right_after_posts}

                <div class="info">
                <vb:if condition="$show['pmlink'] OR $show['emaillink'] OR $post['userid'] AND $show['member']">
                Send {vb:raw post.username}:<br /></vb:if>
                                <vb:if condition="$show['pmlink']">
                  <a href="private.php?{vb:raw session.sessionurl}do=newpm&amp;u={vb:raw post.userid}" rel="nofollow"><phrase 1="{vb:raw post.username}">a Private Message</phrase></a><br />
                </vb:if>
                <vb:if condition="$show['emaillink']">
                  <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw post.userid}" rel="nofollow">an Email</a><br />
                </vb:if>
                <vb:if condition="$post['userid'] AND $show['member']">
                <a href="profile.php?{vb:raw session.sessionurl}do=addlist&amp;userlist=buddy&amp;u={vb:raw post.userid}">a Friend Request</a>
                </vb:if></div>
       
</div> 
 
<!-- TAB 2 CONTENT --> 
<div id="tab2{vb:raw post.postid}" class="tabcontent"> 
 
        <vb:if condition="$post['field2']"><div class="info"><b>{vb:rawphrase location_perm}:</b> {vb:raw post.field2}</div></vb:if>
        <vb:if condition="$post['age']"><div class="info"><b>{vb:rawphrase age}:</b> {vb:raw post.age}</div></vb:if>
        <vb:if condition="$post['field1']"><div class="info"><b>Biography:</b> {vb:raw post.field1}</div></vb:if>
        <vb:if condition="$post['field3']"><div class="info"><b>Interests:</b> {vb:raw post.field3}</div></vb:if>
        <vb:if condition="$post['field4']"><div class="info"><b>Occupation:</b> {vb:raw post.field4}</div></vb:if>
        <!-- Real gender -->
        <vb:if condition="$post[field14]=='Male'"><div class="info"><b>Gender:</b> <img style='vertical-align:middle; border-style:none' src="images/entropiaplanets/male.png" alt="Male"></div>
        <vb:else />
          <vb:if condition="$post[field14]=='Female'"><div class="info"><b>Gender:</b> <img style='vertical-align:middle; border-style:none' src="images/entropiaplanets/female.png" alt="Female"></div></vb:if>
        </vb:if>
        <!-- / flags start -->
        <vb:if condition="$post[field5]"><div class="info"><b>Country:</b> <img src="images/entropiaplanets/userflags/{vb:raw post.field5}.gif"></div></vb:if>
        <!-- / flags end -->
 
</div> 
 
<!-- TAB 3 CONTENT -->

<div id="tab3{vb:raw post.postid}" class="tabcontent"> 
 
          <!-- Avatar Name -->
        <vb:if condition="$post[field6]"><div class="info"><b>Avatar Name: </b>{vb:raw post.field6}</div></vb:if>
        <!-- Society -->
        <vb:if condition="$post[field7]"><div class="info"><b>Soc: </b>{vb:raw post.field7}</div></vb:if>
          <!-- Avatar Gender -->
        <vb:if condition="$post[field13]=='Male'"><div class="info"><b>Avatar:</b> <img style='vertical-align:middle; border-style:none' src="images/entropiaplanets/male.png" alt="Male"></div>
        <vb:else />
          <vb:if condition="$post[field13]=='Female'"><div class="info"><b>Avatar:</b><img style='vertical-align:middle; border-style:none' src="images/entropiaplanets/female.png" alt="Female"></div></vb:if>
        </vb:if>
 
</div>
 
<!-- TAB 4 CONTENT --> 
<div id="tab4{vb:raw post.postid}" class="tabcontent"> 
 
        <div class="info">
                <vb:if condition="$post[crowns]">
                        {vb:raw post.crowns}{vb:raw post.champtext}
                <vb:else />
                        {vb:raw post.username} has not championed any arcade games. 
                </vb:if>
        </div>
 
</div> 

 
</div> 
 
 
<script type="text/javascript"> 
var mytabs=new ddtabcontent("postbittabs{vb:raw post.postid}") 
mytabs.setpersist(false) 
mytabs.setselectedClassTarget("link") 
mytabs.init() 
</script> 
 
<!-- END POSTBIT TABS --> 

<br />
<div class="imlinks">
        {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>

Substitute Field<number> with your own userfields. Also please note that under Tab 1, I added the hook postbit_userinfo_right from the original template. I use the PhotoPost vBGallery, and that adds an image count using the hook. The same applies to the Blogs. I added the hook in the specific location so these additional stats show up right under the Posts.

AfterWorldForum 09-04-2010 04:58 PM

Quote:

Originally Posted by Digital Jedi (Post 2080239)
There's a rather lengthy discussion on that in the 3.x thread that you may want to look over. I can't recall what finally worked for us there.

Just finished reading the thread, and what worked for me was adding a margin to "push" the dots towards the middle. In the CSS file, in the first class, add the text in red below:

Code:

.djdot{
font: bold 13px Arial;
width: 100%; /*leave this value as is in most cases*/
margin-left:20px;
}

Adjust the number so it suits your settings.

Original post by stickskills here: https://vborg.vbsupport.ru/showpost....&postcount=188

betts02 09-04-2010 10:15 PM

Have done everything, Made sure all the files uploaded but i stall get no tab images, Just lines as seen here - http://www.nextgenerationgamers.co.u...ll=1#post23252

Any help ?

Digital Jedi 09-05-2010 10:04 PM

Quote:

Originally Posted by AfterWorldForum (Post 2093755)
Just finished reading the thread, and what worked for me was adding a margin to "push" the dots towards the middle. In the CSS file, in the first class, add the text in red below:

Code:

.djdot{
font: bold 13px Arial;
width: 100%; /*leave this value as is in most cases*/
margin-left:20px;
}

Adjust the number so it suits your settings.

Original post by stickskills here: https://vborg.vbsupport.ru/showpost....&postcount=188

Thinking about this in retrospect, you should be able to get true centering by setting the margin-right and margin-left to "auto".


Quote:

Originally Posted by betts02 (Post 2093873)
Have done everything, Made sure all the files uploaded but i stall get no tab images, Just lines as seen here - http://www.nextgenerationgamers.co.u...ll=1#post23252

Any help ?

I don't see the headinclude code in the source code of your page. It looks like you've skipped Step 3 or maybe added it to the wrong style.

betts02 09-06-2010 08:42 AM

Many thanks, Its woking now

I had nearly the exact same code in the headinclude and though it was this,lol

But it was for the signature slider, added this and working fine, just need to install a brighter image for the dots

duditas 10-16-2010 03:37 PM

Hello

I'm a kind of a newbie and I'm working very hard to get this mod in my forum.

I almost get it, with a little help of kuervo (vbhispano), because I'm not good at english.


My penultimate problem is that I can't make js works. My dots don't change its colour and I can't access to TAB 2 CONTENT, TAB 2 CONTENT, and so..
All dots are linked to : http://www.myforum.com/#

I have it at -> postbit_tabs carpet
https://vborg.vbsupport.ru/

I have followed FAQ 5 and 6, and I think I did everything properly


Any sugestion, please?


** I would like to thank to AfterWorldForum for showing us his code. =)

duditas 10-18-2010 09:45 AM

Ryuk @ vbhispano has solved my problem. Thanks anyway

Nocturnal222 10-28-2010 07:12 AM

Thanks for this one, good edit, looks sleek in our forum :)


All times are GMT. The time now is 07:46 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.01234 seconds
  • Memory Usage 1,789KB
  • 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
  • (7)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