vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Changing file path to dropdown menu arrow image (https://vborg.vbsupport.ru/showthread.php?t=185923)

sparklywater 07-21-2008 01:08 PM

Changing file path to dropdown menu arrow image
 
1 Attachment(s)
I need to change the file path to the image 'menu_open.gif' which shows up as a downward arrow signifying a dropdown menu on the navbar / header. What do I need to do / what code should I edit to change the file path to this image?

Here is the arrow as an example:

https://vborg.vbsupport.ru/attachmen...1&d=1216649296

Opserty 07-21-2008 02:21 PM

It will probably be in one of the Javascript files. Try in the clientscript directory possibly vbulletin_global.js

Why not just overwrite the old image instead?

sparklywater 07-21-2008 06:25 PM

Thanks for your help. I can't just overwrite because the problem I'm having causes the arrow image to not appear if a forum page is viewed outside the 'forum' directory, ie. when entering an invalid url like /forum/abc/invalid.php with the error message (in vB template), everything appears correctly except that the dropdown menu does not work and the image does not appear. So I figured it's probably the file paths which have been set relative in the code so changing it to the exact file path may solve the problem.

Opserty 07-22-2008 04:28 PM

Maybe http://www.w3schools.com/TAGS/tag_base.asp is what you need then?

sparklywater 07-23-2008 02:24 PM

Quote:

Originally Posted by Opserty (Post 1581532)
Maybe http://www.w3schools.com/TAGS/tag_base.asp is what you need then?

That is exactly what I needed! Thanks very very much for your help, it works like magic! :D

sparklywater 07-25-2008 11:51 AM

I've just identified a problem using the <base> attribute. When using anchor links on a page to jump to a part of the page, the base attribute is applied here too which means that the anchor goes to the wrong url and the jump does not work. For example, if the base is www.example.com/ and I have an '#anchor' link at www.example.com/page.html#anchor , the base attribute forces this to go to www.example.com/#anchor instead so this results in an error. Is there any way to make the base attribute ignore anchor links so that all other relative links are correctly linked but the anchor links are not affected by the attribute?


All times are GMT. The time now is 03:53 PM.

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.01018 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete