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)

jkun666 11-29-2009 05:52 AM

Ah, I think something else is causing the problem.

I've followed the steps from the original post exactly but when I click the buttons nothing happens :confused:

Edit: It appears when I try to right-click > save the .js from OP it gives me a permissions error and I had to go to the link directly.

TheLastSuperman 11-29-2009 06:02 AM

Quote:

Originally Posted by jkun666 (Post 1922354)
Ah, I think something else is causing the problem.

I've followed the steps from the original post exactly but when I click the buttons nothing happens :confused:

Edit: It appears when I try to right-click > save the .js from OP it gives me a permissions error and I had to go to the link directly.

So your good to go now?

jkun666 11-29-2009 06:08 AM

Quote:

Originally Posted by TheLastSuperman (Post 1922358)
So your good to go now?

Still can't get the align to work :p

I'll keep trying!

is this correct?

PHP 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>

<
br style="clear: left" />
</
div>
</
div


tipoboy 12-08-2009 02:03 PM

just installed again, trying to get the center align to work will post back on results...

TheLastSuperman 12-08-2009 03:51 PM

Quote:

Originally Posted by tipoboy (Post 1927275)
just installed again, trying to get the center align to work will post back on results...

DUH Guys duh... I forgot that I modified my .css file with this so open it up and look for anything dealing with alignment then change it to center instead of left or right etc.

Sorry I sent some of you in circles... I know laugh @ me not with me this time ok? ;)

Mike

tipoboy 12-08-2009 09:15 PM

Quote:

Originally Posted by TheLastSuperman (Post 1927320)
DUH Guys duh... I forgot that I modified my .css file with this so open it up and look for anything dealing with alignment then change it to center instead of left or right etc.

Sorry I sent some of you in circles... I know laugh @ me not with me this time ok? ;)

Mike

i've already tried that and its still left aligned...

TheLastSuperman 12-08-2009 10:41 PM

Quote:

Originally Posted by tipoboy (Post 1927443)
i've already tried that and its still left aligned...

Default or custom style?

tipoboy 12-11-2009 12:40 PM

Quote:

Originally Posted by TheLastSuperman (Post 1927463)
Default or custom style?

custom style but anyways i got it centered, here's how:

firstly as has been said before you cant just change all the alignments to center in the .CSS file because float: center; isnt a valid CSS attribute.

so to center it you have to add 2 lines off CSS, which are:

Code:

margin-right: auto;
 margin-left: auto;

add those to the: .djdot { css code like so:

instead of:

Code:

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

it looks like:

Code:


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

tested in IE ut wont center for FF will continue working on it later on....

Digital Jedi 12-11-2009 05:31 PM

I believe, earlier in the thread, we had the same discussion, and if I remember correctly, you had to adjust a higher level element. Something in vB default postbit, if I'm not mistaken.

tipoboy 12-11-2009 08:24 PM

Quote:

Originally Posted by Digital Jedi (Post 1928940)
I believe, earlier in the thread, we had the same discussion, and if I remember correctly, you had to adjust a higher level element. Something in vB default postbit, if I'm not mistaken.

DJ everything in my postbit_legacy is centered apart from the dots. I've tried several methods of trying to get it to align correctly including all the example's here.

The code i posted centers the dots in IE but when viewing in FF the dots are still left aligned.

Any suggestions?

TIA dave :D


All times are GMT. The time now is 02:26 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.01378 seconds
  • Memory Usage 1,762KB
  • 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
  • (1)bbcode_php_printable
  • (7)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