Module Addition?
ReviewStud 135
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Module Addition?
ReviewStud
OP
135
From: -
From: -
That did it.
Thanks for the extra help.
Thanks for the extra help.
1 Re: Module Addition?
Philipp Esselbach
From: -
Editor
0From: -
You need to change:
to:
../index.php?action=logout
to:
index.php?action=logout
1 Re: Module Addition?
ReviewStud
OP
135
From: -
From: -
That fixed the doubling up issue, but it doesn't redirect to the login page.
Am I missing something?
Am I missing something?
1 Re: Module Addition?
Philipp Esselbach
From: -
Editor
0From: -
You need to remove $menu . from the second line.
1 Re: Module Addition?
ReviewStud
OP
135
From: -
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:
Strange.
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?
ReviewStud
OP
135
From: -
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?
error 232
From: -
From: -
Works here. Thanks for this.
1 Re: Module Addition?
Philipp Esselbach
From: -
Editor
0From: -
This code works fine here. Please try to apply the code again on an unmodified class_html.php file.
1 Re: Module Addition?
ReviewStud
OP
135
From: -
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.
I tried going back and re-saving the original code, but I am still getting the blank CADMIN screen.
1 Re: Module Addition?
Philipp Esselbach
From: -
Editor
0From: -
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?
ReviewStud
OP
135
From: -
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?
Philipp Esselbach
From: -
Editor
0From: -
Open classes/class_html.php in an editor and find:
Then replace it with this:
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>";
}
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."?