![]() |
For just the dots, I'm not entirely sure it will work, but you can try adding a style="text-align:center" element to the containing DIV tag:
Code:
|
Now that i have it all set up like your demo.
my posts/reps and (little green light)Im on Line) is still showing I just delete them right ? And Do you know of a viable code to do for YAAS 4 . so it shows the awards up ? Thank you DJ (excellent Thread) |
Quote:
I don't know what YAAS 4 is, but if it's some kind of awards system then you can probably get them to show up by putting the template_hook that it's using inside the tabs. Look for a template hook right around where your awards are showing up and move it around to see if that's what's controlling it. |
Quote:
sorry my bad YAAS 4 is this: https://vborg.vbsupport.ru/showthrea...highlight=YAAS I will look this hook up. Thanks again DJ |
To comment out something, you'd put <!-- at the beginning of it and --> at the end of it. It turns everything inbetween into a comment, rather then functional code.
|
Quote:
|
Hrm, I'm not sure where my head was that night. You can center the DIV by editing the CSS class for djdot.
|
cool hack
|
Quote:
And, if someone does not fill in one of the fields that you have in the tabs, it kinda collapses the little space but still shows. Any suggestions as to what to do so that either it doesn't show the little collapsed box or to have some sort of default term in there? By the way DJ...another mod that ROCKS! :D |
Quote:
FYI, I was looking for examples and I noticed the two middle ones were not showing with the script being utilized. Might want to double check, but it didn't look like it. |
Quote:
Quote:
|
Very nice.... going to DL and modify for different use - THANKS :D
Nice to see a DD script being used again for implementation w/ VB and Thanks for not violating their terms of use like others i.e. you used their DL link not hosting the DL yourself which is against it ;) |
Quote:
Code:
<div class="pbit"><if condition="$post[field2]"><strong>Location:</strong> $post[field2]</if></div> Also, we didn't get to this one about the centering of the tabs.... Quote:
|
1 Attachment(s)
Just found another issue with the 'post thanks' hack showing in both boxes. I used the following code.....
Code:
$template_hook[postbit_userinfo_right_after_posts] ....and it shows this..... Attachment 89663 ....when I try and add this.... Code:
<div class="pbit">$template_hook[postbit_userinfo_right_after_posts]</div> ....it then shows this..... Attachment 89664 .....what should I do to fix this? Any suggestions? |
Quote:
Quote:
Code:
<div id="$post[postid]postbittabs" class="djdot" style="text-align:center;"> Quote:
|
Thanks for taking the time to answer DJ.
Well, here are the results... 1. The 'centering' of the tabs did not work. Any other suggestions? I remember you mentioning about something within the CSS being changed, is that another option? 2. The conditions on the 'outside' piece of the advice worked. Thanks! :D 3. And the final piece .... I've gotta go fishin' around the code for the 'post thanks' hack to see if it'll work. I'll see if I can do that tonight. |
Has anyone figured out how to do the 'centering' of the tabs yet?
Someone had mentioned about changing something within the CSS file. Any help on this would be appreciated. Thanks! :D |
You can try adding the text-align:center to the djdot class, and see if that does the trick.
|
Sorry to have to ask this...but, which one is the "djdot class"?
I see many, many lines with djdot in them and I want to make sure that I'm editing the correct one within the tabcontent.css file. Thanks DJ! |
Quote:
Code:
.djdot{ |
DJ, it didn't work. :(
Any other suggestions? |
Try adding that same style attribute to the main DIV or TD containing that area of the postbit. In this case, it will probably be TD containing the avatar and username, etc. (in the case of a TD, I believe you can still use align="center" instead of the style tag.)
|
Man oh man...nothing seems to work. :(
|
Alright, let's take a look at your postbit_legacy code.
|
DJ, sent PM with info
Thanks for the help! :D |
The centering issue has been something I've tried to figure out for awhile, but to no avail just yet.
|
I wonder if we should ask the DynamicDrive folks about the possibilities of centering the tabs.
|
Yes! I have figured it out! Here's what you'll need to do:
Open up your tabcontent.css Change from PHP Code:
PHP Code:
|
stickskills, you are THE man! That is, unless you are a woman...in that case, you are THE woman! :D
Didn't even think to 'push' it to the center in that way. Very cool idea. Maybe someday we'll actually have it done correctly. Since I only had three tabs, I had to move it over more. Mine was about 47px. But, it's good now! :) Thanks! |
Ha, yeah.. I was so fixed on how to "center" it, that I never thought about just pushing the margin. Though it's not a true way of centering, it does work.
Btw, definitely a man haha. |
LOL...Okay, so you are THE man! :D
You finally started thinking 'outside the postbit box' , right? ;) |
Haha, exaaaaaactly. ;)
Now I just have to redo the entire postbit because of the new skin I'm doing, apparently I missed a div somewhere, so I'd rather just reconstruct the entire thing. :P |
I am still a bit confused on what codes to put in the div holders. For instance if I wanted to add this: <if condition="$show['infraction']"><div class="info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
to tab 1. Where would I put it? Do I completely replace the placeholder under Tab 1 or do I add it inside of it somehwere? Also do I need to change the <li> coding at all once I add one thing or more? Sorry I am a bit new to vBulletin but I am not computarded or anything. Haven't coded in quite some time. |
Quote:
Code:
Code:
|
thanksss, working perfect here :p
|
Quote:
<!-- BEGIN AJAX CONTENT --> <div id="postbittabs$post[postid]" class="djdot"> <ul> <li><span title="View Tab 1"><a href="#" rel="tab1$post[postid]" id="selected$post[postid]"> </a></span></li> <li><span title="View Tab 2"><a href="#" rel="tab2$post[postid]"> </a></span></li> <li><span title="View Tab 3"><a href="#" rel="tab3$post[postid]"> </a></span></li> <li><span title="View Tab 4"><a href="#" rel="tab4$post[postid]"> </a></span></li> <li><span title="View Tab 5"><a href="#" rel="tab5$post[postid]"> </a></span></li> </ul> <br style="clear: left" /> </div> <div class="smallfont"> <!--TAB 1 CONTENT --> <div id="tab1$post[postid]" class="tabcontent"> <div class="info">Tab 1 Content:Block B</div> <div class="info">Tab 1 Content:Block C</div> </div> <!-- TAB 2 CONTENT --> <div id="tab2$post[postid]" class="tabcontent"> <div class="info">Tab 2 Content:Block A</div> <div class="info">Tab 2 Content:Block B</div> <div class="info">Tab 2 Content:Block C</div> <div class="info">Tab 2 Content:Block D</div> </div> <!-- TAB 3 CONTENT --> <div id="tab3$post[postid]" class="tabcontent"> <div class="info">$vbphrase[posts]: $post[posts]</div> <if condition="$post['joindate']"><div class="info">$vbphrase[join_date]: $post[joindate]</div></if> <div class="info">Tab 3 Content:Block C</div> <div class="info">Tab 3 Content:Block D</div> <div class="info">Tab 3 Content:Block E</div> <div class="info">Tab 3 Content:Block F</div> </div> |
Quote:
Code:
mytabs.setpersist(false) |
Strange....I just had a new member make their first post (we're still testing things out at the site, it's not 100% open yet) and it doesn't show anything other than the three tabs. Then, when you click on a tab, it goes up to the top of the page like the others mentioned.
Any thoughts on what I should do? Here's the example: It's the member named hms1016 and the thread is http://www.glamrocktalk.com/showthre...?p=265#post265 EDITED: I always had the 'persistence' as false. So, that's not a solution for me. |
Quote:
|
Quote:
Yes but in the initial instructions it was suggested to change it to "true" - I did before upload but had the "jump to the top" issues until I changed it back to false. |
All times are GMT. The time now is 02:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|