View Full Version : Changing file path to dropdown menu arrow image
sparklywater
07-21-2008, 01:08 PM
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/attachment.php?attachmentid=84349&stc=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
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.