View Full Version : How do I include vb codes on homepage?
N-0p3rz
10-18-2006, 12:40 PM
I want to know how would I be able to use codes like $userinfo[username] on my homepage.
Like what file would I have to include in my index, so that they'll work?
i tried to include the global.php =/ but I got no results..
ericgtr
10-18-2006, 03:10 PM
There are a few posts on this already, have a look in the Articles forum for some tutorials https://vborg.vbsupport.ru/forumdisplay.php?f=187
N-0p3rz
10-18-2006, 03:21 PM
I looked at them all.. didn't notice one =/
I've also searched it on the forum.. but every thread says to include global.php.
I have.. But still nothing.
Chicago_VLNU_4s
10-29-2006, 07:03 PM
did you save you template as a .php extension?
N-0p3rz
10-30-2006, 02:39 AM
Of course.
Chicago_VLNU_4s
10-30-2006, 05:23 AM
and dont you have to include a 4-5 line php code at the very top? can you show what code that is in your file?
N-0p3rz
10-30-2006, 05:26 AM
I've basically got the whole jist of it as far as including goes..
I ran into a problem with the cookies and showing that the user is logged in. It'll process and sign you in, but then when it returns it doesn't change to user info.
this thread can be closed though.
Chicago_VLNU_4s
11-04-2006, 09:23 PM
you go into ACP > VB OPTIONS > COOKIES PATH > Change it from "forums" to "/"
browie
11-04-2006, 11:50 PM
Are you asking to Display vBulletin things On a regular homepage? I'd like to know about that too.
N-0p3rz
11-09-2006, 05:28 AM
Ok ok ok ok ok ok ok.
Ok, I didn't need that many OK's.. but I'm still in need of help.
With my "Do It Myself" attitude I thought maybe I'd be able to get this to work..
Unfortunately I haven't. I'm using this vB Deluxe Login Hack that was posted in the mods section.. I couldn't get any help in that thread so maybe I can here?
Here's a test page.. so you can see what I'm getting at.
http://www.hiphopfame.com/test.php
Username - Test
Password - 1Test1
you'll notice how it logs in and takes you back to nothing.
you go into ACP > VB OPTIONS > COOKIES PATH > Change it from "forums" to "/"
This has been done, but to no avail
N-0p3rz
11-13-2006, 01:00 AM
bump
N-0p3rz
11-20-2006, 02:25 AM
:-( nothin?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.