Version: , by ULTIMATESSJ
Developer Last Online: Jul 2006
Version: Unknown
Rating:
Released: 09-04-2003
Last Update: Never
Installs: 0
No support by the author.
For my site i am trying to make a review system using the base of vBulletin, so i thought the easiest way would be to just add fields to the New Thread thing, now i got more fields added, but one thing i would like to be able to do would be to do would be to be able to output the threads onto a Non-vB PHP File, something like this
http://localhost/showreview.php?s=&threadid=1168
(preferably shorter, i'm not sure how far i can go with shortening the url, although once i get it sorted out i would like to output it into static html files)
What would i have to put into a PHP file to be able to call this stuff out?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
1) I probably have no clue what you are doing, but could you copy showthread.php to shortreview.php and start making your own templates to format the information how you want?
2. If you want REALLY short urls, you can use HTACCESS to create a referer that will pipe
For example, in terms of htaccess redirects, the redirect I used at my site was to create an .htaccess file in a subfolder http://pictures.bonsaitalk.com/user containing the following:
1) I probably have no clue what you are doing, but could you copy showthread.php to shortreview.php and start making your own templates to format the information how you want?
Doing that will work but i would still have to edit more to get it to appear on the mainpage, and in the end it would just be easier to do it another way
I worked on this for about 15 minutes, lots of stuff could be added/changed/improved/tweaked etc.. but this is a basic of how you would display posts within a topic.
ie. review.php?t=X (Where X = thread number)
Btw: I do recommend using / modifying the CSS tags even if you use your own header/footer.
//---------------------------
// Perform MySQL Query now..
//---------------------------
function query ($sql)
{
static $i = 0;
if (!$sql)
{
echo $i;
return;
}
$i++;
return mysql_query ($sql);
}
//---------------------------
// MySQL Retrieval Functions
//---------------------------
function fetch_result ($sql)
{
if (empty($sql))
{
die ("No query supplemented : (Fetch Result)");
}
else
{
return mysql_result($sql,0);
}
}
function fetch_array ($sql)
{
if (empty($sql))
{
die ("No Query Supplemented : (Fetch Array)");
}
else
{
return mysql_fetch_array($sql);
}
}
}
//+------------------------------
// Initiate Everything MYSQL Now
//+------------------------------
$do = new mysql;
$do->init();
//+------------------------------
// Now Lets Begin Initialization
//+------------------------------
$thread = $_GET['t']; // Grab $_GET Variable
######################################################################
######################################################################
#include_once("./header.inc");
######################################################################
# If you want to use your own template uncomment the "Include_once"
# directive above, otherwise feel free for the script to use its
# own built in template. -- Trigunflame
######################################################################
######################################################################
<tr>
<td colspan="3"><span class="style2"><a href="#">Return to Top</a></span></td>
</tr>
</table>
<?php
######################################################################
######################################################################
#include_once("./footer.inc");
######################################################################
# If you want to use your own template uncomment the "Include_once"
# directive above, otherwise feel free for the script to use its
# own built in template. -- Trigunflame
######################################################################
######################################################################