View Full Version : Using Custom filed information etc
fonzerelli_79
06-28-2002, 10:55 PM
i wish to use the $customfields on a page which does not use them
what do i need to add to the page so that i can use the $customfields in the template :squareeyed:
Xenon
06-28-2002, 11:08 PM
$customfields=$DB_site->query_first("SELECT * FROM userfields WHERE userid=xx");
fonzerelli_79
06-29-2002, 04:49 PM
when i add this to the code and upload it the page goes blank
the page im trying to do this to is http://www.manutdchat.com/the_team.php
the thing is that i would need to use many members customfields on the one page - im not sure how or if this can be done ;)
Admin
06-30-2002, 05:57 AM
$customfields = $DB_site->query_first("SELECT * FROM userfields WHERE userid=$userid")
Xenon
06-30-2002, 01:06 PM
add an "E" to WHER chen ;)
fonzerelli_79
06-30-2002, 01:53 PM
thanks xenon and chen
but i still cant get it to work
i apologise because my coding skills are not the best
this is my original code
<?php
$templatesused='the_team';
include ("mainfile.php");
$index = 0;
global $menu_id,$menu,$Pmenu,$activeusers;
$Pmenu="P_thememenu_homepage";
include("header.php");
eval("dooutput(\"".gettemplate("the_team")."\");");
?>
<!-- Begin Text -->
<!-- you can place html text here if you wish -->
<!-- End Text -->
<?php
echo "<br>";
include("footer.php");
?>
hope this helps and thanks for the help so far :rambo:
Admin
06-30-2002, 02:50 PM
What are mainfile.php, header.php and footer.php?
fonzerelli_79
06-30-2002, 07:14 PM
sorry firefly
my site uses vbportal
its ok if you cannot help me though i thought that this was a general vb type question which is why i posted here
i asked in vbulletin and they pointed me here, i originally asked in vbportals forum but as my fellow vbportalers will know, the support is non existant right now
thanks anyway chen ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.