The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
hello people can somebody help out on a lillte issue i have?
im using a own build php script that does read a txt file and tranfers it intoo a sorted php file but it was build for a blog.... to tell what it does in short is.... ya can manually add releases to page... sofar it works fine but i can't get the userinfo on it Code:
global $user_identity; get_currentuserinfo(); $todaydate = date("m/d/Y"); $riplist .= '{[1] = [[music]],[2] = [['.$user_identity.']],[3] = [['.$todaydate.']],[4] = [['.$artist.' ('.$year.') '.$album.']],},'."\r\n"; } // append closing bracket to riplist. $riplist = $riplist."}"; // we have our riplist, now write to file. if ($handle = fopen ($rel_file3, "ab")) { // find the file size in bytes and remove one ie trailing bracket on last line $truncate = filesize("$rel_file3") - 1; // remove trailing bracket. ftruncate ($handle, $truncate); // write our new rips plus closing bracket } if (fwrite($handle, $riplist)) { print "<p>Thanks! Your rips were successfully added to the database.</p>"; } else { print "<p>Something went wrong with the writing to DB file process. Please report to admin.</p>"; } fclose($handle); } else { print "<p>Couldn't open the file for writing!</p>"; } } else print "<p>You didn't not add owt.</p>"; } but i have trouble to add the user that posted it Code:
global $user_identity; get_currentuserinfo(); $todaydate = date("m/d/Y"); $riplist .= '{[1] = [[music]],[2] = [['.$user_identity.']],[3] = [['.$todaydate.']],[4] = [['.$artist.' ('.$year.') '.$album.']],},'."\r\n"; } cause im getting the error: Fatal error: Call to undefined function fetch_userinfo() in /var/www/Forum/database/releases.php on line 324 line 324 is empty 322> global $user_identity; 323> get_currentuserinfo(); 324> empty any idea how to fix? thnx ![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|