Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2004, 10:40 PM
Makaveli105's Avatar
Makaveli105 Makaveli105 is offline
 
Join Date: May 2004
Location: California
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default scrollbar

where can i put the code to change the scrollbar colors. i tried putting it in headerinclude and numerous other places and it does nothing. can anyone help me?

Thanks
Reply With Quote
  #2  
Old 07-03-2004, 10:43 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Makaveli105
where can i put the code to change the scrollbar colors. i tried putting it in headerinclude and numerous other places and it does nothing. can anyone help me?

Thanks
Youll need to add it to the CSS area of vBulletin. in the Aditional CSS box at the very bottom of the style manager

The scrollbar colors must now be defined in HTML not body

HTML {

}
Reply With Quote
  #3  
Old 07-04-2004, 12:12 AM
Makaveli105's Avatar
Makaveli105 Makaveli105 is offline
 
Join Date: May 2004
Location: California
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked, Thanks Zack!
Reply With Quote
  #4  
Old 04-19-2005, 04:19 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

How can I change the scrollbar side to be to the right..
I am running an arabic forum, the scrollbar is on the left side while I want it to be on the right side..
http://www.la7odood.com/vb

Regards.
Reply With Quote
  #5  
Old 04-27-2005, 10:03 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Up
Reply With Quote
  #6  
Old 04-27-2005, 10:24 AM
Telkman Telkman is offline
 
Join Date: Jul 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The right to left direction is currently defined in the html tag by the the dir definition:

PHP Code:
<html dir="rtl" lang="ar-sa"
In IE (and others?) that will position the scrollbar on the left hand side.

To return the scrollbar to the right hand side, you simply need to remove the dir definition and set the text direction without applying it to the entire document or by using CSS.

This could be done by using the dir definition to surround all the content but without applying it to the html/body tags e.g. use the below code within the body tags but surrounding all other content.
PHP Code:
<bdo dir="rtl"></bdo
Or you could apply the direction through the CSS more easily in the CSS editor by adding the below definition to the CSS for the body tag for example, but this may not effect everything (column orders etc):
PHP Code:
directionrtol
Reply With Quote
  #7  
Old 04-27-2005, 10:42 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

thank you for the answer..

just wanted to know:

Quote:
Originally Posted by Telkman
PHP Code:
<bdo dir="rtl"></bdo
Where to apply that..

and
Quote:
Originally Posted by Telkman
but this may not effect everything (column orders etc):
PHP Code:
directionrtol
I need only the main scroll bar to be to the right, is that gona solve it, and should I put the code any where in the CSS..

Kind Regards.
Reply With Quote
  #8  
Old 04-27-2005, 11:23 AM
Telkman Telkman is offline
 
Join Date: Jul 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will become more complicated if you have different direction languages that use the same templates.


Admin CP > Languages & Phrases > Language Manager > *Your Language* > Edit Settings

Change "Right to Left" to "Left to Right".

The scrollbar will now be on the right hand side, but your text will also not be going in the direction you require.


Admin CP > Styles & Templates > Style Manager > *Your Style* > All Style Options > Go > Body > Extra CSS Attributes

Add:
PHP Code:
directionrtol

This will change the text direction, but the order of the columns will still be left to right, e.g. Forum, Last Post, Threads, Posts.

If you wish to have the columns from right to left as well (e.g. Posts, Threads, Last Post, Forum) then remove the previous CSS change to the body and do the following:

Admin CP > Styles & Templates > Style Manager > *Your Style* > All Style Options > Go > Common Templates > Header

At the top, add:
PHP Code:
<bdo dir="rtl"
Then:

Admin CP > Styles & Templates > Style Manager > *Your Style* > All Style Options > Go > Common Templates > Footer

At the bottom, add:
PHP Code:
</bdo

You could also do this manually through the Style Manager. If you have multiple styles where the values in question aren't inherited, you would need to edit them for each.
Reply With Quote
  #9  
Old 04-27-2005, 12:18 PM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Thanks again for your fast reply.

That did change the scroll to right and corrected the table directions..
but all the forum text was to the left..

seems I will stick to the left side bar

Thanks again for your support..

Kind Regards.
Reply With Quote
Reply


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 01:38 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.03815 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
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
  • (8)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete