Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2008, 04:55 PM
chrisdaman77 chrisdaman77 is offline
 
Join Date: Oct 2007
Location: NY
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Alignment problem!!

I am having a hard time getting the alignment right for this. Is there a code I need to use? Just a not this is the code from the navbar. I have tried <br/> but that only moves it down and will not align it to the left. Anyone have an idea?
Attached Images
File Type: jpg problem.jpg (9.9 KB, 0 views)
Reply With Quote
  #2  
Old 03-01-2008, 05:14 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a float-left.
Reply With Quote
  #3  
Old 03-01-2008, 05:23 PM
chrisdaman77 chrisdaman77 is offline
 
Join Date: Oct 2007
Location: NY
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I am new to this how would I go about a float left?
Reply With Quote
  #4  
Old 03-01-2008, 05:38 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<span style="float:$stylevar[left]"></span>

or you can use div tags also.
Reply With Quote
  #5  
Old 03-01-2008, 05:44 PM
chrisdaman77 chrisdaman77 is offline
 
Join Date: Oct 2007
Location: NY
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok got ya. I kept trying the div tag but wasn't getting anywhere. I will give this a shot. If it won't work I will post the code I have and maybe I am putting it in the wrong spot.

--------------- Added 01 Mar 2008 at 14:52 ---------------

I marked where I put it in green. Do I even have it in the right place?
Reply With Quote
  #6  
Old 03-01-2008, 06:06 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just post me the section of code for it, not the whole thing. The green didn't take affect in there.
Reply With Quote
  #7  
Old 03-01-2008, 06:17 PM
chrisdaman77 chrisdaman77 is offline
 
Join Date: Oct 2007
Location: NY
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the section I believe it is. If i type anything next to this it shows up next to it on the page. This is for the "Quick Links" section from the navbar but it is not in the vavbar anymore.:erm:


<if condition="$show['member']">
<span style="float:$stylevar[left]"></span><td id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
Reply With Quote
  #8  
Old 03-01-2008, 06:22 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are close but the span tags have to wrap it.

Change this:

HTML Code:
<span style="float:$stylevar[left]"></span><td id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
to this:

HTML Code:
<td id="usercptools"><span style="float:$stylevar[left]"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a></span> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
and let me know if that fixes it.
Reply With Quote
  #9  
Old 03-01-2008, 06:30 PM
chrisdaman77 chrisdaman77 is offline
 
Join Date: Oct 2007
Location: NY
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
You are close but the span tags have to wrap it.

Change this:

HTML Code:
<span style="float:$stylevar[left]"></span><td id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
to this:

HTML Code:
<td id="usercptools"><span style="float:$stylevar[left]"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a></span> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
and let me know if that fixes it.
That didn't do the trick. I am hoping I have it in the right spot for the adjustment.
Reply With Quote
  #10  
Old 03-01-2008, 06:33 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok try this:

Replace that code with this:

HTML Code:
<td id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3"><span style="float:$stylevar[left]">$vbphrase[quick_links]</span></a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
Sometimes you just have to play with it until you get it right.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:23 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.04207 seconds
  • Memory Usage 2,275KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete