PDA

View Full Version : Where to modify "Sorry, your account does not..." page design?


flytende
10-22-2006, 05:17 PM
I would like to change the design on the page that comes up when you enter a category or an item when you are not logged in (registered). I use a skin, but the page: "Sorry, your account does not have access to this section." does not match at all. Seems like it uses the default skin.

Where in the code do I need to make changes?

Thanks

RandomNinjaAtk
10-22-2006, 09:11 PM
I don't think there is one! It would be cool if we could though. It looks, the same for the site when its in offline mode also...

minis007
12-26-2006, 07:25 PM
open loginpanel.php and start editing from 241 line and go below ;)

minis007
12-26-2006, 07:36 PM
also edit index.php line 240

// ############################## CATEGORY ACCESS ##############################

TheMasterG
01-09-2007, 11:48 AM
How hard would it be too include a login form on this page?

Community
01-09-2007, 05:52 PM
How hard would it be too include a login form on this page?

that should be in the next release!

TV3D
02-05-2007, 04:42 AM
Here is the best way I found to make all of the error pages, and login page follow your template.

Open: includes/functions.php

Find:
function PrintMessage($message, $displayloginpanel = 0)

Replace With:
function OldPrintMessage($message, $displayloginpanel = 0)

Append:

function PrintMessage($message, $displayloginpanel = 0)
{
global $DB, $userinfo;

$GLOBALS['message'] = $message;

$pluginpath[1] = './includes/echomsg.php';

// display login panel?
if($displayloginpanel)
{
$pluginpath[2] = './plugins/p10_mi_loginpanel/loginpanel.php';
}

include('skins/(skin name)/(skin file).php');
}


You will also need to create a file, includes/echomsg.php -- which looks something like this:


<br>
<div style="width: 310px; background:#C0E3BF; border: 1px #91CA95 solid; border-left: 1px solid #D0EBCF;border-top: 0px;">
<h2><? echo $GLOBALS['message']; ?></h2>
</div>


I could have made it query the DB for the proper skin and whatnot, and even fixed the plugin portion up a bit, but I was lazy and this worked the first time, and I have other bigger items to address with a deadline fast approaching.

Dhaunae
03-28-2007, 03:39 PM
open loginpanel.php and start editing from 241 line and go below ;)
I've been searching that loginpanel.php file, but I haven't been able to find it. May I ask where is it?

And, for edition on index.php, line 240, "Category access". I have this code:

if(!@in_array($categoryid, $userinfo['categoryviewids']))
{
PrintMessage($sdlanguage['no_view_access'], 1);
exit();
}

What am I supposed to modify?

This way to make it out is not compatible with the one explained by TV3D, is it?

Thank you in advance.