Gossamer Forum
Home : Products : Gossamer Links : Discussions :

detailed info for editors

Quote Reply
detailed info for editors
hello
Now i have detailed info for links and for categories that works perfect
but is there a mod to create this also for editors (with their ICQ details, like DMOZ.org)
With this extra option makes the entire engine more complete

Quote Reply
Re: detailed info for editors In reply to
You could do one of the following:

1) Copy the BUILD DETAILED sub in the build script and then copy the DETAILED sub in the SITEHTML.pm file. You would also have to create additional variables for the EDITOR DETAILED PAGES.

OR

2) Use the detail.cgi script written by pugdog, I believe, and rather than calling the LINKS table, you would call the EDITORS table and also reference the UserID in the EDITORS table with the corresponding ID in the Users table.

Regards,

Eliot Lee
Quote Reply
Re: detailed info for editors In reply to
ok that seems very easy to do but not.
I get internal server errors, when creating a version of detailed.cgi for users.
I am sure that I use the right syntaxes
An alternative is modifying the load_editor global and creating a detailed category info page with the all the category editors.

Ok but i want an userpage for one individual user
are there codes that I can use/modify?????



Quote Reply
Re: detailed info for editors In reply to
Hi,

Do the same thing as detailed_category except for users:

1. Add a template: detailed_users.html
2. Add a subroutine:

sub {
my $tags = shift;
my $user_db = $DB->table('Users');
my $user = $tags->{Username};
my $user_info = $user_db->get($user, 'HASH');
return $user_info;
}

3. Make links to page.cgi?p=detailed_user&Username=someuser

where someuser is the user you want information about.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: detailed info for editors In reply to
I try the option Alex give in my site with an existing user,
but I don't see anything no username or something like that.

I,ve done the folowing:

1. add custom template in page.cgi named userinfo.html
2. add the subroutine from Alex in template globals and called this: user_info
3. paste <%user_info%> in my custom template.
4. add user in database (validated) called testuser
5. call template from browser with page.cgi?p=userinfo&Username=testuser

but there is no results it is still empty
what is wrong???


Quote Reply
Re: detailed info for editors In reply to
I have the same problem


Quote Reply
Re: detailed info for editors In reply to
Hi,

The subroutine will make available all the users info, so you still need to layout the userinfo.html template with the tags. i.e. your html file should look like:

<%user_info%>
This is a profile for: <%Username%>
Their password is: <%Password%>
etc.

If you get Unknown tags for Password, let me know..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: detailed info for editors In reply to
thank you
this is an easy method it works (including password)
Is their easy options to show all the categories the user have permissions to edit???

I investigate the database structure and saw that there are
definitions in the def files and SQL.pm file to create relations between database tables.
should I do this????

Quote Reply
Re: detailed info for editors In reply to
Hello,

If a user is logged on and views another users info won't the tags conflict? Two user names one for the loggged on user and also for the one they are viewing?

Is there a way to bring up another users info in different tags? <%Other_Username%> and call their info while in dynamic mode?

Quote Reply
Re: detailed info for editors In reply to
I don't have that problem the option of Alex works perfect