Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

add for everyone but modify for registered

Quote Reply
add for everyone but modify for registered
Hi,
I hope someone has a solution for me.

I need the add.cgi site for non registered user
BUT
the modify.cgi site for only registered user.

In the admin panel this can not be set.

May be there is another easier way around my problem. Is it possible to hide the modify.cgi-button for unregistered users on static pages?

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] add for everyone but modify for registered In reply to
Hi,

Mmm.. why would you want to do this? I'm not sure there's a simple way of doing it (without editing the core code, so its a PITA when doing upgrades).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] add for everyone but modify for registered In reply to
Hi Andy,
I have a download site. And non registered users can send the add.cgi form with hidden url form, but Title and Description of the file, their Name and Email.
After this they send me the described file they filled in in add.cgi per email.
I'm uploading their file with ftp and in admin I fill in the url.

That was the way I was doing it in links 2.0.
I want to do the same in gossamer links, but I don't want to let modify unregistered users.

I surely prefer a solution without corecode changes.

Is there a way with your Member_Access Plugin or can I just hide the modify button for unregistered user?

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] add for everyone but modify for registered In reply to
Hi,

Are you using mod_rewrite pages, or static pages? If using static ones, you can't really "stop" people seeing the modify.cgi link. However, if you are using mod_rewrite - then you could just use this template stuff around the "Modify Link" part in the header menu:

Code:
<%ifnot Username%>....<%endifnot%>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] add for everyone but modify for registered In reply to
Hi Andy,
I owned gossamer links just a few days ago and I just tried to set up the basics (like this add/modify-problem)

Mod rewrite is on my list too, but that's something I wanted to put at the end of all modifications.
What do you think is it better to wait with mod rewrite or can I start with it.

When it's no problem, to begin with it. Do you know a thread in this forum with some tipps about mod_rewrite?

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] add for everyone but modify for registered In reply to
Hi,

I would recommend getting the mod_rewrite setup, then it makes the code I posted in my above thread a million times easier to impliment :)

Hopefully this will help you get it setup: http://www.gossamer-threads.com/...?post=274511#p274511

If not, we offer a service for setting up Mod_Rewrite, so please send me an email/PM if you want to make use of this service.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Jul 19, 2007, 8:58 AM
Quote Reply
Re: [Andy] add for everyone but modify for registered In reply to
I have a look at the link and give it a try but
I will contact you on the weekend. I need about 8 of your plugins :-)

Thanks
Matthias

Matthias
gpaed.de