Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 10-13-2009, 04:05 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that function get userinfo is in /database/releases.php
when i take that out of it....
anything works....
except i do get a empty field on who has posted it....
the fileds that are getting posted are those >>>

Code:
$riplist .= '{[1] = [[music]],[2] = [['.$user_identity.']],[3] = [['.$todaydate.']],[4] = [['.$artist.' ('.$year.') '.$album.']],},'."\r\n";
Reply With Quote
  #12  
Old 10-13-2009, 04:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It sounds like something wrong with the function then if you aren't getting any output from it.
Reply With Quote
  #13  
Old 10-13-2009, 05:56 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes Lynne.... and its the function get userinfo....

cause the current function is used by wordpress

so i need to change it to apply to VB

thats why i posted it....
cause VB can't read the function now....
Reply With Quote
  #14  
Old 10-13-2009, 06:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, you rewrote the vbulletin fetch_userinfo function and called it get_currentuserinfo? Do you include global.php anywhere in your script?
Reply With Quote
  #15  
Old 10-14-2009, 01:47 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no no no...

the current info is the default that comes with the script... thus >>get_currentuserinfo <<
i did try to use ftech_userinfo but that aint working eighter....

thers total no include global.php anywhere in this script....

thnx for helping lynne .. ill respect that!
Reply With Quote
  #16  
Old 10-14-2009, 03:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, so you have a function get_currentuserinfo that came with your script, however, it doesn't seem to be getting the current userinfo - correct? So, it seems that that function is missing something that it needs to work.

In vBulletin, if you want to do anything with the user information (userid, username, etc), then you need to include global.php somewhere in your script (or init.php) because it has the necessary functions to get that information. Is there some file with your script that you need to include and are not? You'll have to take a look at other pages used with that script to figure that out.
Reply With Quote
  #17  
Old 10-14-2009, 03:31 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes i do have have in /database/releases
the releases.php and it there is a include funtion.php
to get releases.php working
so i think i need include aswell the global.php in releases.php

Thats what ya meant lynne?

i will try that...

or do i need something else?
Reply With Quote
  #18  
Old 10-14-2009, 03:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really don't know what you need since you are talking about using a bunch of non-vb scripts that I am not familiar with.
Reply With Quote
  #19  
Old 10-14-2009, 03:54 PM
Bandit8007 Bandit8007 is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well it does something now though! so thats good! and you doing good aswell!

ive replaced >>get_currentuserinfo

with

$info = fetch_userinfo($userid);
$username=$info["username"];
echo $username;

and also included global.php

this works!

but... the return to the user section is a zero 0

so it does something!

ill guess the zero is the usrid admin im right?

ifso then it looks we almost there.....

but im looking not for the id but username
Reply With Quote
  #20  
Old 10-14-2009, 03:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

0 means your are showing up as unregistered (usually 1 is the admin). You need to include global.php at the beginning of the script and it needs to be able to see that you are on the site. Is your vbulletin cookie set up for the whole site or just the /forums part? And, are you logged in to the site?
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 07:56 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.04463 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete