[solved] 404 Error :: Page not found
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox
View previous topic :: View next topic  
Author Message
GRiM
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 7

PostPosted: Wed Apr 21, 2004 7:40 pm    Post subject: [solved] 404 Error :: Page not found Reply with quote

I get a 404 when clicking on peoples names on the chatbox_front block.

It goes to http://www.sitename.ca/chatbox_profile.php?nick=blahblah

Instead of http://www.sitename.ca/modules/mx_chatbox/chatbox_profile.php?nick=blahblah


Where can I fix this?

It works fine when in the chat and I click peoples names for their profile.

TIA
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Apr 25, 2004 12:09 am    Post subject: FIX: Error :: Page not found Reply with quote

Hi!

Oopppsss... Rolling Eyes

Here's the way to fix it:
Code:
#
# ---[ OPEN ]----------
# Note: Same mod applies to both scripts.
#
mxroot/modules/mx_chatbox/chatbox_front.php
mxroot/modules/mx_chatbox/chatbox_online.php


#
# ---[ FIND ]----------
#
$chatters = ( empty($isimler[1]) ? '' :
      '<a href="' . append_sid('chatbox_profile.'.$phpEx.'?nick='.$isimler[1]) . '" target="_profile">'.$isimler[1].'</a><br />' );
for($s = 2; $s <= $isimler[0]; $s++)
{
   $chatters .= ', <a href="' . append_sid('chatbox_profile.'.$phpEx.'?nick='.$isimler[$s]) . '" target="_profile">'.$isimler[$s].'</a><br />';
}


#
# ---[ REPLACE WITH ]----------
#
$chatters = ( empty($isimler[1]) ? '' :
      '<a href="' . append_sid($module_root_path.'chatbox_profile.'.$phpEx.'?nick='.$isimler[1]) . '" target="_profile">'.$isimler[1].'</a><br />' );
for($s = 2; $s <= $isimler[0]; $s++)
{
   $chatters .= ', <a href="' . append_sid($module_root_path.'chatbox_profile.'.$phpEx.'?nick='.$isimler[$s]) . '" target="_profile">'.$isimler[$s].'</a><br />';
}


#
# ---[ SAVE ]----------
#

In other words, simply concatenate $module_root_path just before the string 'chatbox_profile.' in both calls to append_sid...
Quote:
append_sid($module_root_path.'chatbox_profile.'.$phpEx. ...



Cheers

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
GRiM
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 7

PostPosted: Tue Apr 27, 2004 5:34 am    Post subject: Re: Error :: Page not found Reply with quote

Thanks! Very Happy 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum