PDA

View Full Version : Private Message Pop Up


jasonx
01-01-2003, 09:58 AM
How do I specify a full URL to the pop up page?

I have my main site in the default folder and the boards in a folder called board/

But if your at the frontpage and get a message the pop up javascript looks for the privatemessage script in the root folder and not in the board/ folder

can i set this in the admin or do I have to hard code it.

Cheers

Chris M
01-01-2003, 10:14 AM
I'm guessing you have either vBHome(lite)3.8 or vBindex2.1 installed;)

If it is, edit the head_newpm template...

In it there are 2 references to private.php - Add $bburl/ in front of them...

If you have $bburl defined in your vBulletin Options (which you should), then everything will be fine:)

Satan

jasonx
01-01-2003, 10:17 AM
I don't have either installed I basically created my own index page using queries etc.

I just cant find where the PM javascript popup is so I want to refrence it by fulld domain.

http://www.picturepoll.com

my site

http://www.picturepoll.com/board/

Chris M
01-01-2003, 10:39 AM
It is in the head_newpm template;)

Find:
if (second_box==true) {
window.open('private.php?s=$session[sessionhash]','pmnew','width=600,height=500,menubar=yes,scroll bars=yes,toolbar=yes,location=yes,directories=yes, resizable=yes,top=50,left=50');
Replace with:
if (second_box==true) {
window.open('$bburl/private.php?s=$session[sessionhash]','pmnew','width=600,height=500,menubar=yes,scroll bars=yes,toolbar=yes,location=yes,directories=yes, resizable=yes,top=50,left=50');
Find:
} else {
window.location="private.php?s=$session[sessionhash]";
Replace with:
} else {
window.location="$bburl/private.php?s=$session[sessionhash]";

:)

Satan

jasonx
01-02-2003, 01:20 AM
worked a treat

thanks