The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
mysql query.
what is the db query i need to pull the custom user profile fields into a script am making please ?
cheers |
#2
|
||||
|
||||
if you just want to select all the information, ie userid, fieldx, contents:
[sql]SELECT * FROM userfield;[/sql] |
#3
|
|||
|
|||
Quote:
and what do i use to call the custom user fields of field5 and field9? would $post[field9] and $post[field5] work in this case.? or is it something else? thanks. |
#4
|
|||
|
|||
bump
|
#5
|
||||
|
||||
Quote:
Quote:
Quote:
|
#6
|
|||
|
|||
Quote:
PHP Code:
sorry i dont know the gargon, what $????? ( is it a called a variable ) to define each custom field, so that i can insert this in my template and they will be replaced with the members value when called.? |
#7
|
|||
|
|||
bump.
|
#8
|
||||
|
||||
Quote:
PHP Code:
|
#9
|
|||
|
|||
Cheers NDLR .....but i cant get it to work, i get this error :
Database error in vBulletin 2.2.6: Invalid SQL: SELECT field5,field9 WHERE userid='1' mysql error: You have an error in your SQL syntax near 'WHERE userid='1'' at line 1 mysql error number: 1064 Date: Tuesday 27th of August 2002 05:49:54 PM Script: http://www.peugeot-gti.net/files/helpdesk/ where do i place your code in the following ? :- PHP Code:
Code:
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" width="95%" align="center"><tr><td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td colspan="2" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" align="left"><normalfont color="#000000"><b> Welcome to PGAC Helpdesk - Follow instructions carefully.</b></normalfont></td> </tr> <tr> <td bgcolor="#13486D" align="left" valign="top"> <p align="center"> <normalfont>Welcome to $bbtitle Helpdesk. </normalfont></p> <p> <normalfont>Please take the time to carefully read the following instructions. This e-mail form has been created, so that forum members can place their questions, or queries to a member of our help desk. Please make sure you fill in all the mandatory fields in.<br><br> If you have recently just joined the club and have received you membership number and renewal date via the post, make sure you have placed them details within your <a target="_blank" href="http://www.peugeot-gti.net/forums/member.php?s=$session[sessionhash]&action=editprofile"> UserCP</a> (<a target="_blank" href="http://www.peugeot-gti.net/forums/member.php?s=$session[sessionhash]&action=editprofile">User Control Panel</a>), and then continue with this.<br> <br> -$bbtitle Staff</normalfont></td> </tr> </table> </td></tr></table> <form enctype="multipart/form-data" action="send.php" name="refer" method="post"> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" width="95%" align="center"><tr><td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td colspan="3" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" align="left"><normalfont color="#000000"><b>Contact $bbtitle Helpdesk!</b></normalfont></td> </tr> <tr> <td bgcolor="#13486D" align="left" valign="top" nowrap><normalfont>Your username:</normalfont></td> <td bgcolor="#13486D" align="left"><input type="text" name="name" size="30" class="bginput" tabindex="1" value="$bbuserinfo[username]"></td> <td bgcolor="#13486D" align="left"><b><font color="#FF0000"> *</font></b></td> </tr> <tr> <td bgcolor="#1C5780" align="left" valign="top" nowrap><normalfont>Your email:</normalfont></td> <td bgcolor="#1C5780" align="left"><input type="text" name="email" size="30" class="bginput" tabindex="1" value="$defaultemail"> </td> <td bgcolor="#1C5780" align="left"><b> <font color="#FF0000">*</font></b></td> </tr> <tr> <td bgcolor="#13486D" align="left" valign="top" nowrap><normalfont>Your m/ship N</normalfont><normalfont><font face="Times New Roman">?</font></normalfont><normalfont>:</normalfont></td> <td bgcolor="#13486D" align="left"> <input type="text" name="mem" size="4" class="bginput" tabindex="1" value="$field5"></td> <td bgcolor="#13486D" align="left"><b><font color="#FF0000"> *</font></b></td> </tr> <tr> <td bgcolor="#1C5780" align="left" valign="top" nowrap><normalfont>Your renewal date:</normalfont></td> <td bgcolor="#1C5780" align="left"> <input type="text" name="expiry" size="8" class="bginput" tabindex="1" value="$field9"> example: 08/12/02</td> <td bgcolor="#1C5780" align="left"><b> <font color="#FF0000">*</font></b></td> </tr> <tr> <td bgcolor="#13486D" align="left" valign="top" nowrap><normalfont>Subject:</normalfont></td> <td bgcolor="#13486D" align="left"> <normalfont><input type="radio" name="title" value="General Feedback" checked>General Feedback<br> <input type="radio" name="title" value="Bug Report">Bug Report<br> <input type="radio" name="title" value="Registration Problem">Registration Problem / Activation request (<b><font color="#FF0000"><u>read above</u></font></b>)<br> <input type="radio" name="title" value="">Other <input type="text" name="otitle" size="25" class="bginput" tabindex="5"> </normalfont> </td> <td bgcolor="#13486D" align="left"> <b><font color="#FF0000">*</font></b></td> </tr> <tr> <td bgcolor="#1C5780" align="left" valign="top" nowrap><normalfont>Your message to us:</normalfont></td> <td bgcolor="#1C5780" align="left"> <textarea name="message" wrap="virtual" cols="70" rows="15" class="bginput" tabindex="6">$defaultmessage</textarea></td> <td bgcolor="#1C5780" align="left"> <b><font color="#FF0000">*</font></b></td> </tr> </table> </td></tr></table> <center> <b><font color="#FF0000">* </font>= Mandatory field</b><br><br> <input type="submit" value="Send Email" tabindex="7" accesskey="s" class="bginput"></center> </form> |
#10
|
|||
|
|||
what is $usercustomfield there for ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|