vb.org Archive

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

Drocr 11-17-2009 06:37 AM

How can I center the dots? :( I want my postbit to be centered so far all I can get centered is the avatar, usertitle, userbars, and info. I want the User name and the images center... anyone know how? :(

TheLastSuperman 11-17-2009 07:07 AM

Quote:

Originally Posted by Drocr (Post 1915745)
How can I center the dots? :( I want my postbit to be centered so far all I can get centered is the avatar, usertitle, userbars, and info. I want the User name and the images center... anyone know how? :(

Wrap the code with:

Code:

<div align="center">
Your Code Goes Here You wish to be centered!
</div>

That will work for nearly anything, avoid using <center></center> ;)

Drocr 11-17-2009 07:14 AM

Sweet that worked for everything but the images;O

Did I put it in the wrong place?

HTML Code:

<div align="center">
<div id="postbittabs$post[postid]" class="djdot">
 
<ul>
<li><span title="View Tab 1"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 2"><a href="#" rel="tab2$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 3"><a href="#" rel="tab3$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 4"><a href="#" rel="tab4$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 5"><a href="#" rel="tab5$post[postid]">&nbsp;</a></span></li>
</ul></div>


TheLastSuperman 11-17-2009 07:24 AM

Quote:

Originally Posted by Drocr (Post 1915761)
Sweet that worked for everything but the images;O

Did I put it in the wrong place?

HTML Code:

<div align="center">
<div id="postbittabs$post[postid]" class="djdot">
 
<ul>
<li><span title="View Tab 1"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 2"><a href="#" rel="tab2$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 3"><a href="#" rel="tab3$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 4"><a href="#" rel="tab4$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 5"><a href="#" rel="tab5$post[postid]">&nbsp;</a></span></li>
</ul></div>


If you want everything aligned wrap DJ's entire code with it!

You had:

Code:

<div align="center">
<div id="postbittabs$post[postid]" class="djdot">
 
<ul>
<li><span title="View Tab 1"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 2"><a href="#" rel="tab2$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 3"><a href="#" rel="tab3$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 4"><a href="#" rel="tab4$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 5"><a href="#" rel="tab5$post[postid]">&nbsp;</a></span></li>
</ul></div> Where's the last </div> at here? If it is not there always remember start div then end div i.e. <div>code</div> no matter if you tell it how to align or not!

Mike

Drocr 11-17-2009 07:29 AM

HTML Code:

<!-- BEGIN POSTBIT TABS -->
<div align="center"><div id="postbittabs$post[postid]" class="djdot">
 
<ul>
<li><span title="View Tab 1"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 2"><a href="#" rel="tab2$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 3"><a href="#" rel="tab3$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 4"><a href="#" rel="tab4$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 5"><a href="#" rel="tab5$post[postid]">&nbsp;</a></span></li>
</ul>
 
<br style="clear: left" />
 
</div></div>
 
<div class="smallfont">
 
<!--TAB 1 CONTENT -->
<div id="tab1$post[postid]" class="tabcontent">

There we go, thats all the code ;o
I didnt put it all so you couldnt see that I added the Div after the </ul> code. But i changed it this time to after his </div> but still no affect.

TheLastSuperman 11-17-2009 08:07 AM

Quote:

Originally Posted by Drocr (Post 1915769)
HTML Code:

<!-- BEGIN POSTBIT TABS -->
<div align="center"><div id="postbittabs$post[postid]" class="djdot">
 
<ul>
<li><span title="View Tab 1"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 2"><a href="#" rel="tab2$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 3"><a href="#" rel="tab3$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 4"><a href="#" rel="tab4$post[postid]">&nbsp;</a></span></li>
<li><span title="View Tab 5"><a href="#" rel="tab5$post[postid]">&nbsp;</a></span></li>
</ul>
 
<br style="clear: left" />
 
</div></div>
 
<div class="smallfont">
 
<!--TAB 1 CONTENT -->
<div id="tab1$post[postid]" class="tabcontent">

There we go, thats all the code ;o
I didnt put it all so you couldnt see that I added the Div after the </ul> code. But i changed it this time to after his </div> but still no affect.

No not unless you just want to center the dots if you want to center what each one displays put the end </div> at the end of the tab content codes ;)

Drocr 11-17-2009 08:44 AM

I want to center the dots, not what is in each section of the dots :O

TheLastSuperman 11-19-2009 10:58 PM

Quote:

Originally Posted by Drocr (Post 1915788)
I want to center the dots, not what is in each section of the dots :O

Try changing it to this ;):

Code:

<div id="postbittabs$post[postid]" class="djdot"><div align="center">
The two end </div>'s should not matter but the top ones it's like order of operations in math I just overlooked that in your post last night.

Mike

jkun666 11-29-2009 01:29 AM

Quote:

Originally Posted by TheLastSuperman (Post 1917448)
Try changing it to this ;):

Code:

<div id="postbittabs$post[postid]" class="djdot"><div align="center">
The two end </div>'s should not matter but the top ones it's like order of operations in math I just overlooked that in your post last night.

Mike

Hi. I'm trying to center the dots also and I've tried suggestions posted in this thread and it doesn't seem to be working.

TheLastSuperman 11-29-2009 04:00 AM

Quote:

Originally Posted by jkun666 (Post 1922289)
Hi. I'm trying to center the dots also and I've tried suggestions posted in this thread and it doesn't seem to be working.

It does for me.. check the demo ;) BUT put the <div align="center"> in front of all his code not how I originally posted oops.

https://vborg.vbsupport.ru/showthread.php?t=216978


All times are GMT. The time now is 08:14 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.01582 seconds
  • Memory Usage 1,776KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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