PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Navbar links being forced to invalid /photopost/ url (http://www.photopost.com/forum/photopost-pro-installation-upgrades/133543-navbar-links-being-forced-invalid-photopost-url.html)

JSDillon September 29th, 2007 02:00 AM

Navbar links being forced to invalid /photopost/ url
 
1 Attachment(s)
The navbar links work fine on my vB forum, but when you are on the photopost Main Index, some of the navbar links have /photopost/ added as part of the url name. Where is PhotoPost adding this so I can edit it.

For example, my arcade is located in http://www.domainname.com/forums

It is not located in http://www.domainname.com/forums/photopost

How can I stop these links from going to the photopost directory?

Attachment 2864

Chuck S September 29th, 2007 10:55 AM

Photopost is not adding this.

Your using relative links to addon's or mods that you have added. You would need to edit your navbar and correct the relative urls to full urls in that template.

JSDillon September 29th, 2007 01:44 PM

Thanks Chuck, I was able to enter the full path for the arcade mod in the navbar template and it fixed that one link. It was an easy fix because it launches a php file and I just entered the full path as http://www.domainname.com/arcade.php and the link in the navbar works fine now.

However, the RadioandTV feature I have installed launches a javascript program in a new window. It doesn't launch it via a php file like the arcade mod does. When I try to enter the full path, it does not work. Here is what it looks like now.

<td class="vbmenu_control"><a href="javascript:openRadioAndTV()">$vbphrase[rs_radiostations]</a></td>

If I change it to http://www.domainname.com/javascript:openRadioAndTV()

it then says PAGE NOT FOUND like I entered the wrong address. How do you enter the full path to javascript:openRadioAndTV()

Note: I understand this is not a PhotoPost question. You don't have to respond, but if you do, I would be grateful.

JSDillon September 29th, 2007 03:24 PM

Okay, I have the full url to the radioandtv.php file and when I enter in the full url of http://www.domainname.com/radioandtv.php the program launches with no problem.

Okay, what I am trying to do is get the program to launch in a new window. What would you enter in the full url to get the RadioandTV program to launch in a new window?

Chuck S September 29th, 2007 04:47 PM

I am not familiar with that hack or mod sorry. All I can tell you is anywhere in code or templates of your hacks that you have relative links in your navbar if you show that navbar over photopost they will look for files in photopost. Relative urls always need to be full urls. I assume somewhere in the specific javascript functions are calls to specific urls or files make them full url.

JSDillon September 29th, 2007 10:34 PM

Thanks Chuck, I found where it called the function and entered the full path there.

Chuck S September 30th, 2007 10:49 AM

Enjoy glad to be of assistance let us know if you need anything else.


All times are GMT -5. The time now is 12:04 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97