PDA

View Full Version : Coding Error - Please Help


xXLeighXx2008
27 Jul 2008, 05:55
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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

xXLeighXx2008
27 Jul 2008, 05:59
portal_main template



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Opserty
27 Jul 2008, 09:16
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. (http://www.vbulletin.org/forum/showthread.php?t=98009) and this one: [How-To] vBulletin API Basics: Variables, Functions, Objects (http://www.vbulletin.org/forum/showthread.php?t=98047)

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).

xXLeighXx2008
27 Jul 2008, 13:05
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

King Kovifor
27 Jul 2008, 13:50
Moved to programming discussions.

Opserty
27 Jul 2008, 14:24
vBulletin Variables List (http://www.vbulletin.org/forum/showthread.php?t=179930) Should have what you need.

xXLeighXx2008
27 Jul 2008, 15:28
Thanks opserty, they worked a treat =]