The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
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"; |
#12
|
||||
|
||||
It sounds like something wrong with the function then if you aren't getting any output from it.
|
#13
|
|||
|
|||
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.... |
#14
|
||||
|
||||
So, you rewrote the vbulletin fetch_userinfo function and called it get_currentuserinfo? Do you include global.php anywhere in your script?
|
#15
|
|||
|
|||
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! |
#16
|
||||
|
||||
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. |
#17
|
|||
|
|||
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? |
#18
|
||||
|
||||
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.
|
#19
|
|||
|
|||
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 |
#20
|
||||
|
||||
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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|