View Full Version : Help Saving User Settings on a non VB page
conan
04-22-2001, 07:46 PM
Can anyone please help me with this?
I'm trying to make a hack and I would really appreciate if anyone could point me to the right direction, in how to save the user's settings on another php page?
For instance when you save their profile settings, I would like to do that on an external .php page.
I already included global.php and the page authenticates you as a member, what I can't accomplish is to display the member name on that page, as well as save his/her settings?
I understand that it would require the use of vbulletin's sessions, I'm just lost here :).
Any help re: how to use vb's session and display a username on a non vb .php page will be greatly appreciated!
Thanks
conan what do you mean "save"?
As for showing a user's username on a different page:
if you have global.php included, then all you need to do is put <?php echo $bbuserinfo[username] ?> at the place in the page where you want the name to show.
conan
04-23-2001, 06:33 PM
Thanks for the reply bira.
What I meant by save was to remember that user settings through his/her session.
Like vbulletin remembers what style you chose to use, and your offtime difference etc.
What I'm trying to do is have a personal favorites page in which members could add their favorite links to it.
Sort of how flashkit does with its movies, where you ca add to MyFK (although that's CGI)
I have indexu ( www.indexu.com ) and I managed to modify a little so it authenticates users before they can post a review, as well as starts a new thread on a specified forum with the Link's title as the thread's title.
I'm trying to have a add to my favorites option there.
Thanks again for the help, any extra pointers on how to achieve that will be very appreciated!
wajones
04-27-2001, 06:15 AM
Originally posted by conan
I have indexu ( www.indexu.com ) and I managed to modify a little so it authenticates users before they can post a review, as well as starts a new thread on a specified forum with the Link's title as the thread's title.
I'm trying to have a add to my favorites option there
I just got indexu myself, do you think I could get a copy of your hacks. And have you had any problems with it so far.
Thanks...
conan
04-27-2001, 05:24 PM
Well I wouldn't call them hacks :)
But here's what I did:
I divided the reviews page into 2 pages a write review and a read reviews.
I only edited the review.php3 and split it in half, and saved one as review2.php3.
Then I added this line to the top of the review2.php3
require("./global.php");
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
So now it authenticates with vbulletin, but the problem is that if a user is not logged in, he will log in to the member.php page from vbb. I want to change this so it logs in to my review2.php3 instead.
the rest were more of template changes, and the new thread part was simple a link with a query I'm sending with the link's title as the subject and it's URL inside the message body like this:
http://yoursite.com/forums/newthread.php?action=newthread&forumid=6&subject=<%title%>&message=http://yoursite.com/forums/go.php3?id=<%link_id%>
Since you are a helluva coder, I' hoping you can help me out hacking indexu and vbb together.
PS. I also with the help of a friend manage to create a favorites page that saves that user's favorite links, using the user table from vb and the user sessions. It involved the creation of a new table on my forums database, with 3 fields. If you want more details PM me with your AIM, YAHOO or ICQ#
wajones
04-28-2001, 02:00 AM
Well, I wouldn't call myself a "helluva coder" or even a good coder, just trying to learn.
Thanks for the info, I'm also not really very good with the ICQ things either. Email is better, I don't think or type as fast as you young people anymore. But I'm interrested in getting indexu integrated into vB also.
conan
04-28-2001, 02:17 AM
Email sounds good :)
Can you please PM me with your email then?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.