Gossamer Forum
Home : Products : Gossamer Links : Discussions :

show some links only to logged-in users

Quote Reply
show some links only to logged-in users
is there a way to show some links only to logged in users?



what i want to do is to add a column to the links-table (e.g. ShowUnlogged (enum Yes,No) )

and then display only all the links with ShowUnlogged=No to not logged_in users and and a hint that they see more links if they register as a user and are logged in.



if they are logged_in they should see all links in the database (ShowUnlogged=No & ShowUnlogged=Yes)



Any ideas ??

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Quote Reply
Re: [ManuGermany] show some links only to logged-in users In reply to
Hi Manu,

did you try

<%if Username%>
Link-Information
<%endif%>

you need to use it with links_loop to display the links at the category pages.





--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Sir Up] show some links only to logged-in users In reply to
I think you would be thinking of;

<%if ShowLinkLoggedIn%>
<%if Username%>
<%include link.html%>
<%endif%>
<%endif%>

Not definate though, and this would probably leave un-even numbers of links on your pages...

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: [ManuGermany] show some links only to logged-in users In reply to
Try these:



http://gossamer-threads.com/...orum.cgi?post=196193

is_logged_in => sub { return $USER ? 1 : 0 } - > Working great!

and

http://www.gossamer-threads.com/...orum.cgi?post=211096