PDA


View Full Version : Link Forums Error - Page Not Found


scouse
12-05-2005, 07:22 PM
I have CMPS installed on the root directory default page on index.php. When i try clicking Log On or Log Out, it says page can not be found, and on the link, it is not going to /forums dir it is staying in the root dir and it comes up as page not found because i have the vbulletin forums at the /forums dir. Some pages already have the /forums after the website name but some dont like the login and logout. I think it might be my skins because if i put it back on the default skin, it works fine but with my eXtreme Pixels skins, it comes up with the 404 error. Anybody know how to fix this????

phoenixdown
12-05-2005, 08:41 PM
Option A: in the admin settings, you can change the replacements for buttons that appear in the navbar and in the header. Try changing the one in the header to match what is in the navbar section since that seems to work with a default style.

Option B: edit that specific template in that style and hardcode the url.

scouse
12-10-2005, 09:07 PM
Which admins settings do you mean? I didnt find that. and i cant choose option b because its on many pages and it would take a looong time.

Startinfresh
12-10-2005, 11:57 PM
Mine did that too as my stuff is in /forums and most of the edits and updates in the templates are labeled forum. So I had to go in to templates and fix them that way. Not sure if that is your problem or not, just thought I would offer my experiance :)

Brian
12-11-2005, 12:35 PM
Can you post a link to your site?

testuser
12-13-2005, 03:03 PM
I have the same problem...I've already added login.php to the replacements for navbar header and footer but it doesn't help. Sure I could edit it in the template but there should be another way I guess.

http://mirabiliz.com/cmps_index.php

testuser
12-14-2005, 09:34 PM
???

Brian
12-15-2005, 02:34 PM
Go to the 'Plugin Manager' link in your Admin CP and make sure you have this code for your 'vBadvanced Error Replacements' plugin.
$vbulletin->templatecache['STANDARD_ERROR'] = str_replace(
array(
'"login.php',
'"register.php',
'"clientscript'
),
array(
'"' . $vbulletin->options['bburl'] . '/login.php',
'"' . $vbulletin->options['bburl'] . '/register.php',
'"' . $vbulletin->options['bburl'] . '/clientscript'
),
$vbulletin->templatecache['STANDARD_ERROR']
);

$headinclude = str_replace('"clientscript', '"' . $vbulletin->options['bburl'] . '/clientscript', $headinclude);

$errormessage = str_replace(
array(
'"login.php',
'"profile.php',
'"clientscript'
),
array(
'"' . $vbulletin->options['bburl'] . '/login.php',
'"' . $vbulletin->options['bburl'] . '/profile.php',
'"' . $vbulletin->options['bburl'] . '/clientscript'
),
$errormessage
);

$forumjump = str_replace('"forumdisplay.php', '"' . $vbulletin->options['bburl'] . '/forumdisplay.php', $forumjump);

testuser
12-15-2005, 06:44 PM
helped, thx

scouse
12-16-2005, 11:19 PM
Hmm, mine still doesnt work. My site is http://www.aimunleashed.ulost.net/ . Now the images dont even work. Please help. Thanks.

Brian
12-18-2005, 03:40 PM
I'm not seeing the CMPS anywhere on your site...

scouse
12-19-2005, 01:37 AM
Yeah sorry bout that i was upgrading to 3.5.2. Now its up. It works but the links are still screwed up and dont work. I need it to go to dir /forums on my header.

scouse
12-20-2005, 08:46 PM
Anybody??????? :confused:

Brian
12-22-2005, 01:17 PM
Admin CP => vBa CMPS => Default Settings

Copy the list of filenames listed in your Navbar Replacements option over to your Header Replacements option.