The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Ok so im 50% there......PLEASE HELP NOW!
Ok so im designing/codeding my first ever homepage for my site www.micforum.com - and i am wanting to put a few features from my board www.micforum.com/forum on it, however i am having some difficulty making this work.
i was told to use this after the <body> code <? require_once('./forum/global.php'); ?> and then when i wanted the feature to appear put it in tags <? ?> so i did and nothing came up maybe im just coding it wrong? i think so lol. so this is the code to what i want to view Top stats. You can have Main Stats box shown on several pages... It's shown by default on forumhome (to disable it set "Main Top Stats box on ForumHome" to "None") To activate another location: a) put location-name in "Stats on Custom Pages" field in hack settings Explanation: When you open some vBulletin php file you'll see this at the top - "define('THIS_SCRIPT', 'XXX');" XXX is location-name we need. It's usually the same as php filename (without extension, of course) Note: When setting several locations then separate location-names by commas b) add "$cybtopstats" to the template called on page where you wish to have stats shown Latest Battles. $getlastt = $db->query("SELECT DISTINCT(threadid), title, lastpostid, dateline FROM " . TABLE_PREFIX . "thread WHERE forumid='9' AND threadid != '6' ORDER BY dateline DESC LIMIT 0,10"); while ($thrds = $db->fetch_array($getlastt)) { if ($thrds[threadid] > 0) { $lastathreads.= date("d-m") . " <a href=\"showthread.php?t=$thrds[threadid]\">".fetch_trimmed_title($thrds[title])."</a><br />"; } else $nothread = true; } SOOOOOO if anyone could tell me how i go about doing this i would be so gratefull and may even donate. this is my website code atm so far, Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- #Layer1 { position:absolute; width:200px; height:115px; z-index:1; } #Layer2 { position:absolute; width:200px; height:115px; z-index:1; left: 28px; top: 305px; } body { background-color: #333333; } --> </style> </head> <body> <div id="Layer1"><img src="../../../images/header.gif" width="760" height="176" /><img src="../../../images/navigation.gif" width="760" height="61" /><img src="../../../images/main.gif" width="760" height="763" /> <div id="Layer2"> Hi everyone w00t </div> </div> </body> </html> thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|