Gossamer Forum
Home : Products : Gossamer Links : Discussions :

editors and maintain.cgi

Quote Reply
editors and maintain.cgi
I found this code in my login_success template and was unsure about its use.

Code:
<%if Status eq 'Editor'%>
<p>Click here to <a href="<%db_cgi_url%>/maintain.cgi">enter your editor</a>.</p>
<%endif%>


With this code an editor logged in does not see the "Click here to enter" message. As well, isn't the editor access supposed to be to the browser.cgi?

My goal is to have a user see the EDITOR CENTER link if they have editor level access. I thought it would be the following code but it did not work either:

Code:
<%if Status eq 'Editor'%>
<p><a href="<%db_cgi_url%>/browser.cgi">YOUR EDITOR CENTER</a></p>
<%endif%>




Any help would be appreciated. Thanks!Crazy
Quote Reply
Re: [Teambldr] editors and maintain.cgi In reply to
Hi

<%if Status eq 'Editor'%> <p><a href="<%db_cgi_url%>/browser.cgi">YOUR EDITOR CENTER</a></p> <%endif%>

is the correct code.

Now this code will not work unless the User status is Editor..

That status will have to be manually changed every time you assign a new editor..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] editors and maintain.cgi In reply to
Thanks....

I do know about the editor limitations and functions, but the login_success template is not using the if statement. I am sure that the login_sucess has the editor tags right?


Edit: Should it be single quotes or double around editor?

Last edited by:

Teambldr: Aug 20, 2002, 6:18 PM
Quote Reply
Re: [Teambldr] editors and maintain.cgi In reply to
I have been using that very if statment on my logon_success page for a while with no problem..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] editors and maintain.cgi In reply to
Thanks! I will try again!
Quote Reply
Re: [Teambldr] editors and maintain.cgi In reply to
I ended up doing this as my last try....Still no success!

Code:
<tr>
<td>
<p style="margin-left: 5; margin-right: 5"><b>
<font face="Arial" size="2" color="#FFFFFF">Welcome <%Username%>:</font>
<%if Status eq 'Editor'%>
<font face="Arial" size="2" color="#FFFFFF">
<a href="<%db_cgi_url%>/browser.cgi"> <font color="#FFFF00">EDITOR CENTER</font></a>
<font face="Arial" size="2" color="#FFFFFF">
<a href="<%build_root_url%>/editors/profiles/<%Username%>.html">
<font color="#FFFF00">EDITOR PROFILE</font></a>
<%endif%>
View Your: <a href="<%build_root_url%>/users/profiles/<%Username%>.html">
<font color="#FFFFFF">USER PROFILE</font></a></b></td>
</tr>
</table>
</div>


Any ideas as per why the login_success template is not using the code above? Crazy



Thanks in advance!

Last edited by:

Teambldr: Aug 20, 2002, 7:35 PM
Quote Reply
Re: [Teambldr] editors and maintain.cgi In reply to
Hi

Make sure that users you are trying to use Status is Editor FROM their profile...

If the <%Username%> tag is working so should the if Status eq 'Editor'
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] editors and maintain.cgi In reply to
The username is working fine.

But I cannot get it to call up the editor links when an editor signs in.

This has been a frustrating one.

Thanks for any input. Crazy
Quote Reply
Re: [Teambldr] editors and maintain.cgi In reply to
Make sure the Status of the users you are trying to use is Editor FROM their profile...
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory