![]() |
wow, it works! thanks a bunch!
|
MonkeyManx -
I checked out your page, and you seem to still have a problem with errors showing up for users without a cookie. Check to make sure that the following part of the code from the textfile I posted is before any HTML in index.php. Code:
<?php |
oh thanks
|
oh my god.. this thread is still going!
all i did really... I created a copy of the index.php, called it frontpage.php at the end, i changed the echo to be "frontpage" instead of calling the template "forumhome" then i created a template called "frontpage" with all my custom layout then I edited the global.php file to make "frontpage" and other templates readable from any of the vBulletin pages and.. it WORKS! >>>> http://www.onlineDJ.com |
Quote:
Hi, Can you specify what you did to global.php exactly? I am using a different method which is causing some problems...would like to do it your way.. P.S. Phat Site! Peace. |
Quote:
:D THANKS! Well.. let me see... you only need to create a copy of index.php and call it sitefrontpage.php for example... then edit the last line to pull a new template instead of the "forumhome" template (echo line). create your custom frontpage, you can start from the HTML code of the template "forumhome" to keep all the reg members count and all... and add your own design to it.. voila not harder than this Thanks for the comments again, feel free to join sometimes if you are into music (not just DJs, also composers and other performers are posting). take care |
THanks allot manoOne for taking the time to explain. I think I capish. Will try it tomorrow.
FYI.. I am already display who's online on my home page thanks to Ben. What I was hoping to do is log a user in when they enter the main page.. I am asuming your method dies this? About your site.. I sent my partner there..he is New York's #1 freestyle music DJ (on WKTU 103.5). Said he loves it. Keep up the good work on your site, Mine is similar..except it is all about freestyle music. The cool thing is that many artists and producers are regulars. Eveyone loves the brand new vBulletin I installed. Take care. [Edited by JackG on 01-11-2001 at 03:23 AM] |
that's great, man.
I appreciate the comments, thanks. I like your site too. I clicked everywhere :) See you soon |
small problem
why does http://halflifeworld.net display an error and http://www.halflifeworld.net works fine? Anyone know? |
place this in your global.php
~~~~~~~~~~ // ###################### Check Usersonline ####################### $vars=$DB_site->query("SELECT user.username, user.userid FROM user, session WHERE session.userid=user.userid"); while($var=$DB_site->fetch_array($vars)) { $varcache["{usersonline}"] .=' <a href="member.php?action=getinfo&userid='.$var[userid].'">'.$var[username].'</a>'; } ~~~~~~~~~~ require global.php place in your templates {usersonline} (the replace variable) e.g.: usersonline.php ~~~~~~~~~~ <? require("global.php"); eval("echo dovars(\"".gettemplate("usertest")."\");"); ?> ~~~~~~~~~~ template usertest ~~~~~~~~~~ <table> <tr> <td>{usersonline}</td> </tr> </table> ~~~~~~~~~~ sorry for the bad english i am a german guy :) |
All times are GMT. The time now is 11:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|