![]() |
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. |
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! |
Quote:
Thanks... |
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 Code:
require("./global.php"); 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: Code:
http://yoursite.com/forums/newthread...mid=6&subject=<%title%>&message=http://yoursite.com/forums/go.php3?id=<%link_id%> 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# |
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. |
Email sounds good :)
Can you please PM me with your email then? |
All times are GMT. The time now is 08:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|