Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by conan (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-22-2001 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-23-2001, 12:27 PM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 04-23-2001, 06:33 PM
conan
Guest
 
Posts: n/a
Default

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!
Reply With Quote
  #4  
Old 04-27-2001, 06:15 AM
wajones wajones is offline
 
Join Date: Oct 2001
Location: San Diego, California, US
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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...
Reply With Quote
  #5  
Old 04-27-2001, 05:24 PM
conan
Guest
 
Posts: n/a
Default

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");

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:
Code:
http://yoursite.com/forums/newthread...mid=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#
Reply With Quote
  #6  
Old 04-28-2001, 02:00 AM
wajones wajones is offline
 
Join Date: Oct 2001
Location: San Diego, California, US
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-28-2001, 02:17 AM
conan
Guest
 
Posts: n/a
Default

Email sounds good
Can you please PM me with your email then?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04167 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (3)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete