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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2008, 04:55 AM
xXLeighXx2008 xXLeighXx2008 is offline
 
Join Date: Jul 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Coding Error - Please Help

Hi, I am hoping that some people can help me with this as I am racking my brains to no avail.

What I am trying to do:

Get username's, Total Members, Board Title to show up on this page

What I've done:


I created a new page called portal.php which has html content with no vb functions and I can't seem to get it to call any user information

Portal.php

PHP Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''portal');
define('CSRF_PROTECTION'true);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('user''infractionlevel');

// get special data templates from the datastore
$specialtemplates = array(
    
'iconcache',
    
'noavatarperms',
    
'smiliecache',
    
'bbcodecache',
);

// pre-cache templates used by all actions
$globaltemplates = array(
    
'portal_main',
    
'navbar_portal',
    
    
// subscribed threads templates
    
    // subscribed forums templates
    
    // private messages templates

    // reputation templates

    // infraction templates

);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
DIR '/includes/functions_forumlist.php');
require_once(
DIR '/includes/functions_user.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$userid $vbulletin->input->clean_gpc('r''userid'TYPE_UINT);
$perpage $vbulletin->input->clean_gpc('r''perpage'TYPE_UINT); 
$pagenumber $vbulletin->input->clean_gpc('r''pagenumber'TYPE_UINT);  
$userinfo fetch_userinfo($userid);

if (!
$vbulletin->userinfo['userid'] OR !($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
    
print_no_permission();
}

// main page:

($hook vBulletinHook::fetch_hook('usercp_start')) ? eval($hook) : false;

// ############################### start reputation ###############################



// ############################### start pending friends ###############################


// ############################### start visitor messages ###############################


// ############################### start social groups ###############################



// ############################### start picture comments ###############################


// ############################### start private messages ###############################



// ############################### start subscribed forums ###############################


// ############################### start new subscribed to threads ###############################



// if there are some results to show, query the data

    // Get Dot Threads
    

    // check to see if there are any threads to display. If there are, do so, otherwise, show message


// draw cp nav bar
construct_usercp_nav('navbar_portal');

$frmjmpsel['usercp'] = 'class="fjsel" selected="selected"';
construct_forum_jump();

(
$hook vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;

eval(
'$HTML = "' fetch_template('portal_main') . '";');

// build navbar
$navbits construct_navbits(array('' => $vbphrase[portal]));
eval(
'$navbar = "' fetch_template('navbar_portal') . '";');


if (
$_REQUEST['do'] == 'portal' || empty($_REQUEST['do']))
{
    
$templatename 'portal_main';
}





eval(
'print_output("' fetch_template($templatename) . '");');

?>
Reply With Quote
  #2  
Old 07-27-2008, 04:59 AM
xXLeighXx2008 xXLeighXx2008 is offline
 
Join Date: Jul 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


portal_main template

PHP Code:
<title>$vboptions[bbtitle]</title>
<
font color="white">
<
a href="yourphpfile.php?$session[sessionurl]u=$bbuserinfo[userid]">$userinfo[username]</a>

</
font>
    <
link rel='stylesheet' href='http://vampirefreaks.com/style/vfStyle.css' type='text/css'>
    <
link rel='stylesheet' href='http://vampirefreaks.com/style/vfStyle_purple.css' type='text/css'>
<
link rel='stylesheet' href='http://vampirefreaks.com/style/menu_style.css' type='text/css'>


    <
style type="text/css">

    </
style>

    <
script language="javascript" type="text/javascript">
    function 
popupmenu(parentmenuid) {
     
menu_element document.getElementById(menuid);
     
menu_element.className 'friendsmenu_on';
    
    }
    function 
hidemenu(menuid) {
     
menu_element document.getElementByIdmenuid );
     
menu_element.className 'friendsmenu';
    }
    </
script>


</
head>

<
body onLoad="startNotify();">

    <
script language='JavaScript' type='text/javascript'>
    var 
move_leftnav 0;
    </
script>

    <
script language='JavaScript' type='text/javascript'>
    var 
0;
    </
script>

<
script language="JavaScript" type='text/javascript'>
var 
logged_in "1";
var 
username =  "xXLeighXx2008";
var 
host "http://vampirefreaks.com";
</
script>

<
script language="JavaScript" type='text/javascript'>
var 
keepstatic=//specify whether menu should stay static (works only in IE4+)
var menucolor="#000000" //specify menu color
var submenuwidth=140 //specify sub menus' width

</script>

<
script type="text/javascript" src="http://vampirefreaks.com/js/milonic_src.js"></script>    

<
script    type="text/javascript">

if(
ns4)_d.write("<scr"+"ipt type=text/javascript src=http://vampirefreaks.com/js/mmenuns4.js><\/scr"+"ipt>");        
  else 
_d.write("<scr"+"ipt type=text/javascript src=http://vampirefreaks.com/js/mmenudom.js><\/scr"+"ipt>"); 

</
script>
$navbar

<script type="text/javascript" src="http://vampirefreaks.com/js/flashactivator.js"></script>

    <
center>
    
    <
table width='100%' class=maintop cellpadding=2 cellspacing=0>
    <
tr>

    <
td width 150>
        <
table STYLE='table-layout: fixed' cellspacing =0 cellpadding=0 width=150 class=leftnav>
        <
tr align=center><td><center>
        <
font size=-1>1661191 Members<br></font>
        <
a href='http://vampirefreaks.com/gothic_users.php'>$totalonline  Users Online</a>
        </
center></td>
        </
tr>
        </
table>

    </
td>
    <
td width='100%' align=center>
           <
h1>The Social Meet</h1>
          
    </
td>

            <
td width 150>
        <
a href='http://++++themainstream.com' target='_blank' >
        <
img src='http://e.vampirefreaks.com/ads/++++themainstream_buttonsmall.gif' alt='gothic clothing ++++themainstream.com' border=0 vspace=0>

        </
a>
        </
td>
    
    </
tr>
    </
table>

    <
table border=0 width='100%'  class=main  cellpadding=2 cellspacing=0>
    <
tr>
    
    <
td width=120 align=left valign=top class='side_td'>
            


    <
table STYLE='table-layout: fixed' cellspacing =0 cellpadding=1 width=150 class=leftnav>

    <
tr>
    <
td><center>
    <
table  
     
        
class='heading' 
     
    
border=0 width=100cellpadding=1 cellspacing=0>
    <
tr align=center>
    <
td>

    <
a href='http://www.thesocialmeet.com/$prepared[username]'><span class='notify'>Logged in as </span>$userinfo[username]</a>

    </
td></tr></table></td></tr><tr align=center><td>

    
     
       <if 
condition="$show['admincplink']">Administrator</if>
        
        <
div></div>
    
    <
a href='http://vampirefreaks.com/inbox.php'>Inbox
    
<span class='notify' id='inbox'>
        </
span>
    </
a>
    
    <
a href='http://vampirefreaks.com/comments.php?user=xXLeighXx2008'>Comments
    
    
<span class='notify' id='comments'>
        </
span>

    </
a
    
    <
a href='http://vampirefreaks.com/view_pic_comments.php'>Pic Comments
    
<span class='notify' id='pic_comments'>
        </
span>
    </
a>
    
    <
a href='http://vampirefreaks.com/journal/xXLeighXx2008'>My Journal
    
<span class='notify' id='journal'>
        </
span>
  </
a>    
    <
a href='http://vampirefreaks.com/edituser.php'>Edit Profile</a>   
    <
a href='http://vampirefreaks.com/editsettings.php'>Edit Settings</a>   
    <
a href='http://vampirefreaks.com/editpictures.php'>Edit Pictures</a
    <
a href='http://music.vampirefreaks.com/video/editvideos.php'>Edit Videos</a
    <
a href='http://vampirefreaks.com/editicons.php'>Edit Icons</a
    <
a href='http://vampirefreaks.com/edit_lists.php'>Edit Lists</a
    
    <
a href='http://vampirefreaks.com/group_mine.php'>My Cults</a
    
            <
a href='http://vampirefreaks.com/my_ratings.php'>My Ratings</a
        <
a href='http://vampirefreaks.com/my_views.php'>My Views</a
        <
a href='http://vampirefreaks.com/bomb_user.php'>Power Bombs</a
        <
a href='http://vampirefreaks.com/broadcast.php'>Broadcast</a
    
        
        
    <
a href='http://vampirefreaks.com/login.php?logout=1&c=5d5a936c'>Logout</a>

    </
td>
    </
tr>
    </
table>
    
    <
br class='small_space'>

    
 
 
<
table STYLE='table-layout: fixed'  cellspacing =0 cellpadding=0 width=150 class=leftnav>
<
tr align=center>
<
td>
<
a href='http://vampirefreaks.com/forum/'>Messageboard</a
<
a href='http://vampirefreaks.com/flashchat/'>Chatroom</a

<
a href='http://vampirefreaks.com/classifieds'>Classifieds</a

    <
a href='http://vampirefreaks.com/bulletin/'>Bulletin

        
</a>

<
a href='http://vampirefreaks.com/bands.php'>Band Profiles</a
<
a href='http://vampirefreaks.com/musicreviews'>Music Reviews</a
<
a href='http://vampirefreaks.com/radio.php'>Radio</a>
<
a href='http://vampirefreaks.com/musicplayer/' target="_blank">Player</a>

<
a href='http://vampirefreak.mail.everyone.net/' target='_blank'>Vampirefreaks Email</a>
</
td>

</
tr>
</
table>





    <
br class='small_space'>
    <
table STYLE='table-layout: fixed'  cellspacing =0 cellpadding=0 width=150 class=leftnav>
    <
tr>
    <
td><center>
    <
a href='http://music.vampirefreaks.com/download' target='_blank'>Digital Music Store</a>

    </
td></tr></table>

    

    </
td>
    </
tr>
    </
table>


        </
td>
    
    <
td width='100%' valign=top class='main_td'>
    

<
script type="text/javascript" src="http://vampirefreaks.com/js/swfobject.js"></script>

<
center>


<
table width=100border=0  cellpadding=1 cellspacing class='mainheading'>
<
tr align=center valign=top>




<
br class='small_space'>

<
table width=100border=0  cellpadding=1 cellspacing class='mainheading'>
<
tr align=center>
    <
td>
    <
table STYLE='table-layout: fixed' cellpadding=1 cellspacing=0 width=150 class=leftnav>
           <
tr align=center><td>
           <
table class=heading border=0 width 100cellpadding=1 cellspacing <tr align=center><td>

           <
center><img src='http://vampirefreaks.com/images/featured_band.gif'>
           </
center></td></tr></table></td></tr><tr align=center><td>
           <
a href='http://vampirefreaks.com/StateOfTheUnion'><img src='http://pics2.vampirefreaks.com/S/St/Sta/StateOfTheUnion/25942923_s.jpg' border=0><br>State of the Union</a>
           </
td></tr></table>    </td><td>
    <
table STYLE='table-layout: fixed'  cellpadding=1 cellspacing=0 width=150 class=leftnav>
           <
tr align=center><td>
           <
table class=heading border=0 width 100cellpadding=1 cellspacing <tr align=center><td>
           <
center><img src='http://vampirefreaks.com/images/featured_member.gif'>

           </
center></td></tr></table></td></tr><tr align=center><td>
           <
a href='http://vampirefreaks.com/-Glitsy-'><img src='http://vampirefreaks.com/cached/featured_member.jpg' border=0><br>-Glitsy-</a>
           </
td></tr></table>    </td><td>
    <
table STYLE='table-layout: fixed' cellpadding=1 cellspacing=0 width=150 class=leftnav>
           <
tr align=center><td>
           <
table class=heading border=0 width 100cellpadding=1 cellspacing <tr align=center><td>
           <
center><img src='http://vampirefreaks.com/images/featured_cult.gif'>
           </
center></td></tr></table></td></tr><tr align=center><td>

           <
a href='http://vampirefreaks.com/cult/GodDamnMother++++ing2Ball+++++'><img src='http://cpics.vampirefreaks.com/G/Go/God/GodDamnMother++++ing2Ball+++++/47620_s.jpg' border=0><br>GodDamnMother++++ing2Ball+++++</a>
           </
td></tr></table>    </td><td>
    <
table STYLE='table-layout: fixed' cellpadding=1 cellspacing=0 width=150 class=leftnav>
           <
tr align=center><td>
           <
table class=heading border=0 width 100cellpadding=1 cellspacing <tr align=center><td>
           <
center><img src='http://vampirefreaks.com/images/featured_premium.gif'>
           </
center></td></tr></table></td></tr><tr align=center><td>
           <
a href='http://vampirefreaks.com/victim'><img src='http://pics1.vampirefreaks.com/v/vi/vic/victim/15151913_s.jpg' border=0><br>victim</a>

           </
td></tr></table>    </td>
</
tr>
</
table>
 <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>

<
td class="tcat" width="100%">
<
div style="text-align: center;">
$vboptions[titleAnnouncement
</div>
</
td>

</
tr>

<
tr>

<
td class="alt1" width="100%">
<
div class="smallfont">
$notices
</div>
</
td>

</
tr>
</
table>
</
center>
<
br class='small_space'>

</
center>
<
br class='small_space'>

    
        <
table border=0  class=mainupdates  cellpadding=0 cellspacing=0 width=100%>
            <
tr>
            <
td>

                <
table class='heading' border=
                width
=100cellpadding=4 cellspacing=0>                             <tr><td> <b>Mayhem Fest Interviews</b><br></td><td align=right>            <b>* July 242008 *</b>
                </
td>
               </
tr>
               </
table>
        </
td>
        </
tr>

    
    
        <
tr valign=top>
        <
td class='main_td'>
        <
a href=http://www.hiverecords.com/paniclift_gencab/initialize_ep.zip><img src=http://www.hiverecords.com/paniclift_gencab/initialize_ep.jpg align="right" width=200></a><p><br />
<a href=http://www.hiverecords.com/paniclift_gencab/initialize_ep.zip>Panic Lift / genCAB - Initialize EP</a><br />
<br />
01. <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a> - No Trace to Love*<br />
02. <A href=http://www.vampirefreaks.com/gencab>genCAB</a> - Perish the Thought**<br />

03. <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a> - Failsafe*<br />
04. <A href=http://www.myspace.com/gencab>genCAB</a> - Of Love and Death**<br />
05. <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a> - The Damage Done<br />
06. <A href=http://www.vampirefreaks.com/gencab>genCAB</a> - DMT<br />

07. <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a> - Failsafe (<a href=http://www.vampirefreaks.com/lifecried>Life Cried</a> Remix)<br />
08. <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a> - No Trace to Love (<a href=http://www.vampirefreaks.com/cenotype>Cenotype</a> Remix)<br />
09. <A href=http://www.vampirefreaks.com/gencab>genCAB</a> - Siren Song (<a href=http://www.vampirefreaks.com/unternull>Unter Null</a> Remix)<br />

10. <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a> - Superimposing Life<br />
<br />
<
b><br />
From the forthcoming album "Witness to Our Collapse" on Hive Records August 262k8.<br />
** 
From the forthcoming album "II transMuter" on Hive Records August 262k8.</b><br />
<
br />
Please enjoy this <b>free</bdigital EPcourtesty of <A href=http://www.myspace.com/hiverecords>Hive Records</a>. Our way of saying thank you for all the support over the last 5 years! Featuring tracks from the brand new forthcoming albums by <A href=http://www.vampirefreaks.com/gencab>genCAB</a> and <a href=http://www.vampirefreaks.com/thepaniclift>Panic Lift</a>, as well as unreleased tracks and remixes. If you enjoy these tracks, please consider purchasing the CDs!<br />

        
<p>
        <
div align=right
    [<
a href='journal_comment.php?entry=4905727'>41 comments</a>] | [<a href='journal_comment.php?entry=4905727'>leave a comment</a>]</div>
           </
td></tr>
           </
table><br class='small_space'>
    
        <
table border=0  class=mainupdates  cellpadding=0 cellspacing=0 width=100%>

            <
tr>
            <
td>
                <
table class='heading' border=
                width
=100cellpadding=4 cellspacing=0>                             <tr><td> <b>Interviews Aesthetic PerfectionSex Gang Children Anders Manga</b><br></td><td align=right>            <b>* July 222008 *</b>
                </
td>
               </
tr>
               </
table>

        </
td>
        </
tr>
    
        
    
        
    


<
table border=0 width=100%><tr width=100%><td align=left width=50%>


</
td><td align=right width=50%>


    <
a href='main.php?pg=2'>&gt;previous&gt;</a>

</
td></tr></table>

<
center>

<
div id="eXTReMe"><a href="http://extremetracking.com/open?login=jetvf">
<
img src="http://t1.extreme-dm.com/i.gif" style="border: 0;"
height="38" width="41" id="EXim" alt="eXTReMe Tracker" /></a>
<
script type="text/javascript"><!--
var 
EXlogin='jetvf' // Login
var EXvsrv='s11' // VServer
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=http://e2.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&amp;",
"jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
"l="+escape(EXd.referrer)+" height=1 width=1>");//-->
</script><noscript><div id="neXTReMe"><img height="1" width="1" alt=""
src="http://e2.extreme-dm.com/s11.g?login=jetvf&amp;j=n&amp;jv=n" />
</
div></noscript></div>


</
center>





</
td>

    <
td width=120 align=right valign=top class='side_td'>

    
<
a href="http://music.vampirefreaks.com/download"><img src="http://e.vampirefreaks.com/images/downloadstore/vf_music_ad.gif" border=0> </a>




<
table STYLE='table-layout: fixed' cellpadding=1 cellspacing=0 width=150 class=leftnav>
<
tr align=center>
<
td>

<
table 

    
class='heading' 

border=0 width 100cellpadding=1 cellspacing >
<
tr align=center><td>

<
img src='http://vampirefreaks.com/images/rating_points.gif' alt='top rated members' align=center></center></td>
</
tr></table></td></tr><tr align=center><td>
<
a href='http://vampirefreaks.com/gothicresults.php?sex=female&sortby=user_ratingpoints'>Top Girls All Time</a>

 
<
a href='http://vampirefreaks.com/gothicresults.php?sex=male&sortby=user_ratingpoints'>Top Guys All Time</a>
 
<
a href='http://vampirefreaks.com/gothicresults.php?sex=female&sortby=weekly_ratingpoints'>Top Girls This Week</a>
 
<
a href='http://vampirefreaks.com/gothicresults.php?sex=male&sortby=weekly_ratingpoints'>Top Guys This Week</a>
</
td>
</
tr>
</
table>

<
br class='small_space'>
<
table STYLE='table-layout: fixed' cellpadding=1 cellspacing=0 width=150 class=leftnav>
<
tr align=center>
<
td>

<
table

     
class='heading' 

border=0 width 100cellpadding=1 cellspacing >
<
tr align=center><td>

<
img src='http://vampirefreaks.com/images/top_rated_girls.gif' alt='top rated gothic girls' align=center>
</
td></tr></table></td></tr><tr align=center><td>

<
a href='http://vampirefreaks.com/Always_Amnesia'>Always_Amnesia</a><a href='http://vampirefreaks.com/tinaxtravesty'>tinaxtravesty</a><a href='http://vampirefreaks.com/xxjillybeanxx'>xxjillybeanxx</a><a href='http://vampirefreaks.com/Helianthus'>Helianthus</a><a href='http://vampirefreaks.com/shortcookie'>shortcookie</a><a href='http://vampirefreaks.com/T3RR0RZ0MB13'>T3RR0RZ0MB13</a><a href='http://vampirefreaks.com/Blood_drippin_ducky'>Blood_drippin_ducky</a><a href='http://vampirefreaks.com/Natc85'>Natc85</a><a href='http://vampirefreaks.com/Superfabulust'>Superfabulust</a><a href='http://vampirefreaks.com/MissMagenta'>MissMagenta</a>

<
a href='http://vampirefreaks.com/gothicresults.php?sex=female&sortby=user_rating'>click for more...</a>
</
td>
</
tr>
</
table>
<
br class='small_space'>
<
table STYLE='table-layout: fixed' cellpadding=1 cellspacing=0 width=150 class=leftnav>
<
tr align=center>
<
td>

<
table 

    
class='heading' 

border=0 width 100cellpadding=1 cellspacing >
<
tr align=center><td>

<
center><img src='http://vampirefreaks.com/images/top_rated_boys.gif' alt='top rated gothic boys'></center>
</
td></tr></table></td></tr><tr align=center><td>

<
a href='http://vampirefreaks.com/Meedo'>Meedo</a><a href='http://vampirefreaks.com/SamuelStern'>SamuelStern</a><a href='http://vampirefreaks.com/Bepe'>Bepe</a><a href='http://vampirefreaks.com/twisted_oz'>twisted_oz</a><a href='http://vampirefreaks.com/cjaym'>cjaym</a><a href='http://vampirefreaks.com/Xx_Danee_xX'>Xx_Danee_xX</a><a href='http://vampirefreaks.com/KingRobbie'>KingRobbie</a><a href='http://vampirefreaks.com/vex'>vex</a><a href='http://vampirefreaks.com/Morbius'>Morbius</a><a href='http://vampirefreaks.com/Count_Charles'>Count_Charles</a>

<
a href='http://vampirefreaks.com/gothicresults.php?sex=male&sortby=user_rating'>click for more...</a>
</
td>
</
tr>
</
table>

<
br class='small_space'>

<
table cellspacing=0 width=150 class=leftnav>
<
tr align=center>
<
td>

<
a href='http://vampirefreaks.com/gothic.php' alt='gothic pictures'>Browse Users</a
<
a href='http://vampirefreaks.com/advanced_search.php' alt='gothic search'>Advanced Search</a

<
a href='http://vampirefreaks.com/bands.php?sortby=fans'>Top Industrial Bands</a>

<
a href='http://vampirefreaks.com/bands.php?sortby=fans&genre=all'>Top Bands (all)</a>
<
a href='http://vampirefreaks.com/bands.php?sortby=user_datejoined&genre=all'>Newest Bands</a
<
a href='http://vampirefreaks.com/topsites/'>VF Top Sites</a>
<
a href='http://vampirefreaks.com/topsites/?type=2'>VF Top Profiles</a>
<
a href='http://vampirefreaks.com/topsites/?type=3'>VF Top Cults</a>
<
a href='http://vampirefreaks.com/gothicresults.php?sex=female&sortby=user_datejoined'>Newest Girls</a
<
a href='http://vampirefreaks.com/gothicresults.php?sex=male&sortby=user_datejoined'>Newest Guys</a
<
a href='http://vampirefreaks.com/gothicresults.php?sex=all&sortby=friends_of'>Most Loved</a
<
a href='http://vampirefreaks.com/gothicresults.php?sex=all&sortby=favorites_of'>Most Admired</a

<
a href='http://vampirefreaks.com/gothicresults.php?sex=all&sortby=user_datemodified'>Last Modified</a
<
a href='http://vampirefreaks.com/random_profiles.php'>Random Profiles</a
<
a href='http://vampirefreaks.com/newest_pics.php'>Newest Pics</a>  
<
a href='http://vampirefreaks.com/journal_recent.php'>Newest Blogs</a>
</
td>
</
tr>
</
table>

   </
td>

</
tr>
</
table>

<
center>
    

    


  
</
body></html
I am not a coder and don't know what to do from here, so I am hoping that some people can explain some steps to get these following commands working:

PHP Code:
$userinfo[username]
$userinfo[userid
Suprisingly, Users Online DOES work. I need the code for Total Members too

As its not pulling any of this data, its not even pulling the table code:

PHP Code:
 <table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>

<
td class="tcat" width="100%">
<
div style="text-align: center;">
Table title goes here
</div>
</
td>

</
tr>

<
tr>

<
td class="alt1" width="100%">
<
div class="smallfont">
Table text goes here
</div>
</
td>

</
tr>
</
table
Reply With Quote
  #3  
Old 07-27-2008, 08:16 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are not a coder I suggest you take a quick read of this article: [How-To] vBulletin API Basics: Creating Custom Pages & Misc. and this one: [How-To] vBulletin API Basics: Variables, Functions, Objects

The UserCP page is more complicated then the other pages so its not a great one to use as a beginners template. (The first thread I gave, provides basic instructions and some guideline code).
Reply With Quote
  #4  
Old 07-27-2008, 12:05 PM
xXLeighXx2008 xXLeighXx2008 is offline
 
Join Date: Jul 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I can just make myself clearer - this page that I have created IS in the forum directory.

so its /forum/portal.php

Most of that code applies if you are running it as external content
Reply With Quote
  #5  
Old 07-27-2008, 12:50 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moved to programming discussions.
Reply With Quote
  #6  
Old 07-27-2008, 01:24 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=179930" target="_blank">vBulletin Variables List</a> Should have what you need.
Reply With Quote
  #7  
Old 07-27-2008, 02:28 PM
xXLeighXx2008 xXLeighXx2008 is offline
 
Join Date: Jul 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks opserty, they worked a treat =]
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 03:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04650 seconds
  • Memory Usage 2,498KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete