PDA

View Full Version : wrong links


Sir_Yaro
05-13-2006, 02:37 PM
When user is hehe:
http://forum.address.com/photoplog/

my custom links in navbar leads to
http://forum.address.com/photoplog/cmps_index.php
http://forum.address.com/photoplog/quiz.php

instead of

http://forum.address.com/quiz.php
http://forum.address.com/cmps_index.php

additionally popup about new PM leads to
http://forum.address.com/photoplog/private.php?

I've fixed first two bugs. I just put direct link in navbar template but I've no idea how to fix PM popup... And I expecting to find couple more such bugs...
Btw don't you think so that photoplog shoudn't have right to overwrite vB variables ?

v.2.0.4
My forum address:
http://forum.mandriva.org.pl/

Morgan
05-13-2006, 05:34 PM
Not bugs. ;) Try adding to the PhotoPlog settings. Example:

Relative Links
Content visible to registered users only.
Absolute Links
Content visible to registered users only.

Remember to add them, one per line, to the same lines in each box.

Basically, the Relative Links and Absolute Links settings are like search-for and replace-with settings. Each line in Relative Links is to turn into the corresponding line in Absolute Links, i.e., line X in the Relative Links box is replaced with line X in the Absolute Links box.

Also check this (http://www.photoplog.com/forum/showpost.php?p=6132&postcount=4) post as it has some further explanation. :)

Here are some other examples:

http://www.photoplog.com/forum/showthread.php?t=129
http://www.photoplog.com/forum/showthread.php?t=126
http://www.photoplog.com/forum/showthread.php?t=115

Image paths can also be changed by going to vB ACP -> Styles & Templates -> Style Manager -> select StyleVars, and look under Image Paths. Replacement variables can be edited by going to vB ACP -> Styles & Templates -> Replacement Variable Manager.

Because PhotoPlog can be installed anywhere, inside or outside the main forum directory, PhotoPlog needs to know absolute locations. If you find something not linking correctly, the easiest thing to do is take a look at the HTML source: look for action, href, new, onclick, src, url, var, and window.location bits.

With regard to overwriting variables, what I think you may be seeing is in relation to variable scope. Say you have, for example, an $ads variable that has been added to your vB navbar template, and you want it to show in PhotoPlog. The thing to try is to add "ads" (without the quotes) to the PhotoPlog Global Variables setting, and then your $ads output should appear in PhotoPlog.

Here is an other example:

http://www.photoplog.com/forum/showthread.php?t=216

Moved to troubleshooting... :)

Sir_Yaro
05-13-2006, 06:23 PM
Hi
thank you for an answer.
thanks to your tips i've fixed problem with custom links but I still have no idea what to do with private messages or alternatively how to use your "guide" for this.

PM popup calls domain.xxx/photoplog/private.php even though private.php is added in Relative Links and Absolute Links by default.

Morgan
05-13-2006, 06:31 PM
If you can provide me via PM a test account to login with at your site, I can tell you what you'd need to add so your private messages popup links correctly.

Morgan
05-15-2006, 03:57 PM
Okay, try adding these to the PhotoPlog settings:

Relative Links
Content visible to registered users only.
Absolute Links
Content visible to registered users only.

Remember to add them, one per line, to the same lines in each box.

Sir_Yaro
05-15-2006, 04:23 PM
It works! thank you very much!!