Support Forums

Calling id variable from class_users table??

This is a discussion on Calling id variable from class_users table?? within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? V4.1.8 Developer What template are you using? Default Template Please describe in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 01-22-2010, 12:19 AM   #1
Customer
 
Join Date: Nov 2008
Posts: 8
Rep Power: 0
dadegraham is on a distinguished road
Unhappy Calling id variable from class_users table??

What version of 68 Classifieds are you running?

V4.1.8 Developer

What template are you using?

Default Template

Please describe in detail the issue you are having:

I am looking for a way that I can pull out and use the variable "id" from the class_users table on other parts of my site. I am currently using the 68 classifieds login system on all of my pages of my website without any problem as you can see at FindRetrievers.com - Online Retriever Community . I know I can pull the username variable once logged in by using $Username = $_SESSION['username']; but if I try something like $UserID = $_SESSION['userid']; I get nothing at all.

I am not a programmer AT ALL and need any guidance that you could give me. Basically I am needing this id to insert as a foreign key into another table. Please let me know where I need to clarify more as I am sure some of this sounds very odd and confusing.
dadegraham is offline   Reply With Quote
Old 01-22-2010, 09:16 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

You need to be a bit more specific as to the user id you are looking for.

The global variable $_SESSION is an array that holds values for the currently logged in user. In other words If I visit A 68C site it will hold MY user id if I am logged in. If I am not logged in, then the system has no idea who I am and in turn what mu user ID is.

So the question is are you tring to get the user ID of the person visiting your site or of the owner of an ad the visitor may be viewing?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 01-22-2010, 02:19 PM   #3
Customer
 
Join Date: Nov 2008
Posts: 8
Rep Power: 0
dadegraham is on a distinguished road
Default

Hi Larry,

Thanks so much for the quick response. I am trying to get the id for the person logged into the classifieds section of my website. I want to use this id of the person logged in as a foreign key for another table which will basically log when they update some information in another section of my website. Right now I am able to use the 68 classifieds login throughout my site at FindRetrievers.com - Online Retriever Community as you can see. I was using 4.0.9 I think and all worked fine but when I upgraded to 4.1.8 this feature no longer worked as it seemed like the userid was no longer stored in a session. I apologize if I sound like I don't fully understand what I am talking about. I am learning by trying stuff myself and by reading and asking questions so I am a bit new to all of this in general. Thanks so much!

- Michael
dadegraham is offline   Reply With Quote
Old 01-22-2010, 02:30 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

$_SESSION['uid']
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control width of table columns in category table domino Templates, HTML, CSS, and Design Help 2 09-07-2008 09:37 AM
Calling Extra Registration Fields bowers01 Technical Support 3 07-28-2008 10:18 AM
Calling URLs with title tags. seymourjames Modules / Plugins / Modifications 18 07-10-2008 10:17 AM
title tags on calling urls seymourjames Technical Support 7 06-01-2008 07:48 PM
Calling category id and number Tim_A Templates, HTML, CSS, and Design Help 0 02-26-2007 10:15 AM


All times are GMT -4. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0