vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Private Message Pop Up (https://vborg.vbsupport.ru/showthread.php?t=47205)

jasonx 01-01-2003 09:58 AM

Private Message Pop Up
 
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:
Code:

                if (second_box==true) {
                        window.open('private.php?s=$session[sessionhash]','pmnew','width=600,height=500,menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=50,left=50');

Replace with:
Code:

                if (second_box==true) {
                        window.open('$bburl/private.php?s=$session[sessionhash]','pmnew','width=600,height=500,menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=50,left=50');

Find:
Code:

} else {
                        window.location="private.php?s=$session[sessionhash]";

Replace with:
Code:

} else {
                        window.location="$bburl/private.php?s=$session[sessionhash]";

:)

Satan

jasonx 01-02-2003 01:20 AM

worked a treat

thanks


All times are GMT. The time now is 12:34 AM.

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.00956 seconds
  • Memory Usage 1,717KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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