Gossamer Forum
Home : Products : Gossamer Links : Discussions :

user profile page

Quote Reply
user profile page
Hi

Can I create user profile page? A page that includes details about the user and to display his entire link.
Quote Reply
Re: [nir] user profile page In reply to
Hi,

Do you mean something like profile.cgi?user=xxxcx, and it then shows a few details about the user, and a list of their links ?

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] user profile page In reply to
Hi Andy

YesSmile
Can you help with that?
Quote Reply
Re: [nir] user profile page In reply to
Hi,

Its a pretty basic script, but I can't afford to spend too much time on it, as I'm doing it as a freebie :D

The script attached needs to go in the same folder as add.cgi (make sure you chmod viewuser.cgi at 755).

Then, make a new template - called viewuser.html. Put the following code in it:

Code:
Username: <%Username%> <br />
Email: <%Email%> <br /><br />

Number of links: <%Number_of_Links%><br />

<h2>Links:</h2>

<%if Number_of_Links > 0%>
<%loop links_loop%>
<%include link.html%>
<%endloop%>
<%else%>
Sorry, this user has no links.
<%endif%>

Then, you can call the script with:

viewuser.cgi?user=xxxx

For example:

http://www.ultranerds.com/...wuser.cgi?user=admin

Hope that works for you :D

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] user profile page In reply to
Hi Andy

Thanks for the script.
I all the time get "Internal Server Error". I chance the lib and init to full path but it didn’t help.

Any advice
Quote Reply
Re: [nir] user profile page In reply to
Hi,

A couple of things it could be:

1: The path to perl (#!/usr/local/bin/perl or #!/usr/bin/perl are standard ones). Your best bet it to check the header of add.cgi, to see what path to perl that has.
2: It could be you forgot to CHMOD to 755 =)

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] user profile page In reply to
Thanks Andy It Work, the problem was with the perl path.