This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Module Addition?


avatar
ReviewStud 135
From: -
Module Addition?

Is there a way to add a "Jump to website" link to the top of the CADMIN next to the "MAIN", "ARTICLES", "SUPPORT", and "MISC."?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Module Addition?
avatar
OP 135
From: -
That did it.

Thanks for the extra help.
1 Re: Module Addition?
avatar
Editor
0
From: -
You need to change:

../index.php?action=logout


to:

index.php?action=logout
1 Re: Module Addition?
avatar
OP 135
From: -
That fixed the doubling up issue, but it doesn't redirect to the login page.

Am I missing something?
1 Re: Module Addition?
avatar
Editor
0
From: -
You need to remove $menu . from the second line.
1 Re: Module Addition?
avatar
OP 135
From: -
Got a minor problem.

I tried to add a "LOGOUT" feature next to the "WEBSITE" link, but instead it doubled up all the links at the top of the main. It looks like this:

Main | Articles | Support | Misc | Website | Main | Articles | Support | Misc | Logout

Here's my code:
if ( $items > 1 )

{
echo $menu . "<div class = \"bigmenualt\" onmouseover = \"this.className='bigmenuselectalt'\" onmouseout = \"this.className='bigmenualt'\"><a href = \"../index.php?action=logout\">Logout</a></div>";
}


Strange.
1 Re: Module Addition?
avatar
OP 135
From: -
Replaced the old "class_html.php" file with original from the install and updated the code with the "_blank". I got to say it works fine now. Not sure what the problem was, but were good.
1 Re: Module Addition?
avatar
232
From: -
Works here. Thanks for this.
1 Re: Module Addition?
avatar
Editor
0
From: -
This code works fine here. Please try to apply the code again on an unmodified class_html.php file.
1 Re: Module Addition?
avatar
OP 135
From: -
I'm getting a blank white screen after I add the new code and refresh the CADMIN.

I tried going back and re-saving the original code, but I am still getting the blank CADMIN screen.
1 Re: Module Addition?
avatar
Editor
0
From: -
It's target="_blank". Here the modified code:

                        if ( $items > 1 )

{
echo $menu . "<div class = \"bigmenualt\" onmouseover = \"this.className='bigmenuselectalt'\" onmouseout = \"this.className='bigmenualt'\"><a href = \"../index.php\" target=\"_blank\">Website</a></div>";
}
1 Re: Module Addition?
avatar
OP 135
From: -
I'm not that good at PHP, but is there a way for it to open in a new window. "_blank" after the "a href" didn't work for me.
1 Re: Module Addition?
avatar
Editor
0
From: -
Open classes/class_html.php in an editor and find:

                     if ( $items > 1 )

{
echo $menu;
}


Then replace it with this:

                  if ( $items > 1 )

{
echo $menu . "<div class = \"bigmenualt\" onmouseover = \"this.className='bigmenuselectalt'\" onmouseout = \"this.className='bigmenualt'\"><a href = \"../index.php\">Website</a></div>";
}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.