Gossamer Forum
Home : Products : Gossamer Links : Discussions :

User Info on Detailed Page

Quote Reply
User Info on Detailed Page
I was wondering if anyone knows.. how can one can have the ability to show all the "user properties" on the detailed page and link.html page..

For Example::
While signing up, user fills our 1) Name 2) Site URL 3) Company Name 4) Sales Email ...etc
Now suppose if this user has like 10 listings, then it does not seem smart enough to ask the user to fill out same info on every listings, however if there is anyway, I can display all the user properties on link.html and detailed.html page it would be wonderful.

Thanks for the help.

Vishal Thakkar

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] User Info on Detailed Page In reply to
You refering to the actual LinkOwner, or just the visiting users properties?

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
In Reply To:
You refering to the actual LinkOwner, or just the visiting users properties?

Cheers

Sorry for the misunderstanding.. I am talking about "Actual Link Owner"

:)

Thanks for the help.

Vishal Thakkar

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] User Info on Detailed Page In reply to
Mmm....have you tried a <%GT::Template::dump%> to see if the options are there?

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
In Reply To:
Mmm....have you tried a <%GT::Template::dump%> to see if the options are there?

Cheers

Yup I did checked it.. and hate to say it.... it does not show much info from Link Owners.. :(

I was thinking that there should be some sort of global or something that would make this thing work.

Vishal Thakkar

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] User Info on Detailed Page In reply to
Ok, heres a simple idea. Create a new global, say 'linkowner_name'. Add the following code into it;

Code:
sub {

my $User= shift;

my $table = $DB->table('Users');
my $sth = $table->select( { Username => $User } );

my $Name;
while (my $hit = $sth->fetchrow_hashref) {
$Name = $hit->{Name};
}

$Name ? return $Name : return "None";

}

Ten call it with something like;

<%linkowner_name($LinkOwner)%>

Untested, but it should work (only problems may be the field names). This should work for all the field names. Simply replace the parts in red with the new field name.

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

Last edited by:

Andy: Aug 5, 2003, 2:14 AM
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
How do you think I would be able to make this work with other link owners fields like :

1) Real Name
2) Company Name
3) Site URL
4) Sales Email
5) Phone Number
6) Address
7) Zip Code
....etc

any ideas?

Thanks for the help.

Vishal Thakkar

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] User Info on Detailed Page In reply to
Sure. You would just use something like;

Real_Name
Company_Name
Site_URL
Sales_Phone
Phone_Number
Address
Zip_Code
..etc

Simply use the field name for the area in question.

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
Cool :)

This does not sound hard.. I am gonna give it a try.. and let you know :)

Again thanks for the help..

Vishal Thakkar

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
Andy wrote:
Ok, heres a simple idea. Create a new global, say 'linkowner_name'. Add the following code into it;

Code:
sub {

my $User= shift;

my $table = $DB->table('Users');
my $sth = $table->select( { Username => $User } );

my $Name;
while (my $hit = $sth->fetchrow_hashref) {
$Name = $hit->{Name};
}

$Name ? return $Name : return "None";

}


Ten call it with something like;

<%linkowner_name($LinkOwner)%>

Untested, but it should work (only problems may be the field names). This should work for all the field names. Simply replace the parts in red with the new field name.

Cheers


Hi Andy,

Above global seems to work pretty good for text information, however do you have any idea on how can I display an Image that was uploaded while creating user profile (i.e. user image or company logo)?

Thanks for the help.

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] User Info on Detailed Page In reply to
This is actually a better version =)

Code:
sub {

my $User = $_[0]
my $field = $_[1];
my $hit = $DB->table('Users')->select( { Username => $User } )->fetchrow_hashref;
my $Name = $hit->{$field} || "None";

return $Name;

}

Then just call with:

<%global_name($LinkOwner,'FieldName')%>

..i.e

<%global_name($LinkOwner,'Address')%>

..which would return the value of "Address" for the LinkOwner in question.

Smile

The image bit is a bit harder. I'll see what I can come up with.

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [SWDevil.Com] User Info on Detailed Page In reply to
Is this image you are trying to show, in the glinks_Users table, or glinks_Links btw?

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
Its under glinks_Users & also connected to glinks_Users_Files.

Vishal

-------------------------------------------------------
Web Hosting Kit: A to Z of Web Hosting! http://www.webhostingkit.com/
Software Devil: Software Search Made Easy! http://www.softwaredevil.com/
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] User Info on Detailed Page In reply to
Hi,

Please see my reply in the other post of yours. Hopefully that will work for you :)

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
Hi ANdy,

I have a problem,

I have created a user page in pagebuilder. I am trying to display the logo image. The image is uploaded when a user registers an account (User table).

I know this is easy but for the life of me can't figure it out
Quote Reply
Re: [netnow21] User Info on Detailed Page In reply to
Hi,

Do you have Thumb_Images installed? If so, even though the image isn't shrunk - you can still show image fields from different tables, just with:

Code:
<%Plugins::Thumb_Images::ThumbFullURL($ID,'FieldName','Users')%>

If not, then you need a global to get the image URL.

Let me know if you have Thumb_Images - otherwise I'll give you a global to get the URL =)

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
I could of swore i bought it a long time ago, however its not installed.

You did this global for me a couple of years back however it doesn't work on the user page
Quote Reply
Re: [netnow21] User Info on Detailed Page In reply to
Hi,

If you have ULTRA_Globals (free plugin) installed, this will work:

Code:
<img src="<%Plugins::ULTRAGlobals::Get_Image_URL($ID,'FieldName','Users')%>" />

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
I just tried out Andy's New Profile Plugin and it works GREAT. If you want to display a profile page of the linkowners the plugin works great
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
Hi Andy,


Code:
sub {

my $User = $_[0]
my $field = $_[1];
my $hit = $DB->table('Users')->select( { Username => $User } )->fetchrow_hashref;
my $Name = $hit->{$field} || "None";

return $Name;

}

I try to use your global, but I have an error message:

Unable to compile 'getUserData': syntax error at (eval 71) line 3, near "] my " Global symbol "$field" requires explicit package name at (eval 71) line 3. Global symbol "$field" requires explicit package name at (eval 71) line 5.
Is It compatible with GL3.2.0?

I would like to use it on the search_results.html page.

Thanks!

Mick

Last edited by:

MJ_: Nov 21, 2011, 8:34 AM
Quote Reply
Re: [Andy] User Info on Detailed Page In reply to
Hi Andy,

Oop ! I forgot that it was possible to use <%Links::Utils::load_user%>. :)

Mick
Quote Reply
Re: [MJ_] User Info on Detailed Page In reply to
Hi,

Yup, that standard function should do what you want

Just FYI, the reason that global failed, is cos you have:

Code:
my $User = $_[0]

(notice no ending ; on that line)

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates