The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
This has nothing to do with this hack, because main.php is not a part of vB ...
|
#12
|
||||
|
||||
Yeah, main.php is the webpage which I included the stats on.
http://www.bimmerforums.com/main.php The page is all HTML except for some php that does the includes for my header.htm, footer.htm, last10posts and now stats.php. But it's random... I don't see the error, but somebody else does... |
#13
|
|||
|
|||
Im work on a new Version of the Stats Hack, this release in the next 2 weeks.
|
#14
|
|||
|
|||
Quote:
since you are including the stats file onto another page, you don't need to use the header and footer information included in the template above. He designed this as a stand alone script and if you include it into a file it will print 2 headers, which is why you got a error. What you need to do is to modify the template, so that the < head > and < foot > sections don't show . You only need the table part Thanks Sarge |
#15
|
||||
|
||||
Here is the code that I am now using. I cannobolized the code from above to make it work on my webpage instead of in a template.
PHP Code:
Is that what you mean? |
#16
|
|||
|
|||
You posted the php file, I was referring to the template
Remove the below from your board statictics template and you will be good to go <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>$bbtitle Boardstatistics</title> $headinclude </head> <body> $header $footer <center>$co</center> </body> </html> |
#17
|
||||
|
||||
PHP Code:
So you're saying I should take out the < head > and < / head > from the HTML file? |
#18
|
|||
|
|||
Yes.. you only need to include the table
If you don't then you will have 2 heads and 2 body tags on the same page Also.. your template was incorrect anyways because you forgot to start the <body> tag, but you ended </ body> at the bottom Use this and see if it works <?php include ('header.htm'); ?> <TABLE WIDTH="<? echo("$tablewidth") ?>" BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="CENTER"> <TR> <TD> <DIV ALIGN="center"> <P><IMG SRC="grfx/yellowm.jpg" WIDTH="760" HEIGHT="72" ALT="" BORDER="0"></P> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2"> <TR VALIGN="TOP"> <TD><FONT FACE="Verdana, Arial" SIZE="+1">Welcome to Bimmerforums.com</FONT><BR> <BR> <FONT FACE="Verdana, Arial" SIZE="-2">Bimmerforums.com ... bimmerforums.com. Come join us!</FONT><BR> </P> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4"> <TR> <TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1">Main Headlines</FONT></B></TD> </TR> </TABLE> <P><B><FONT FACE="Verdana, Arial" SIZE="-1">August 23, 2001 - </FONT></B><FONT FACE="Verdana, Arial" SIZE="-1">New page is up, but still under development.</FONT></P> <P><B><FONT FACE="Verdana, Arial" SIZE="-1">July 18th, 2001</FONT></B><FONT FACE="Verdana, Arial" SIZE="-1"> - I decided to play around with the idea of 1024x768 screen resolutions. I liked it... those who don't have a 1024x768, UPGRADE TIME!</FONT></P> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4"> <TR> <TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1"><B>Future Gatherings</B></FONT></B></TD> </TR> </TABLE> <P><FONT FACE="Verdana, Arial" SIZE="-1"><B>09/19/01</B> - Md/NoVA/DC Meet and Drive through the mountains </FONT></P> <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4"> <TR> <TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1"><B>Most Recent Threads</B></FONT></B></TD> </TR> </TABLE> <? include("last10.php"); ?> </TD> <TD WIDTH="250"> <TABLE WIDTH="275" BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="RIGHT"> <TR> <TD BGCOLOR="#DDDDFF"> <DIV ALIGN="CENTER"><B><FONT FACE="Verdana, Arial" SIZE="-1">Product Focus</FONT></B></DIV> </TD> </TR> <TR> <TD> <DIV ALIGN="CENTER"><IMG SRC="grfx/m5engine.jpg" WIDTH="275" HEIGHT="206"><BR> <FONT FACE="Verdana, Arial" SIZE="-1">2001 M5 Engine</FONT></DIV> </TD> </TR> <TR> <TD BGCOLOR="#DDDDFF"> <DIV ALIGN="CENTER"><B><FONT FACE="Verdana, Arial" SIZE="-1">Featured BMW</FONT></B></DIV> </TD> </TR> <TR> <TD> <DIV ALIGN="CENTER"><IMG SRC="grfx/m3coupe.jpg" WIDTH="275" HEIGHT="139"><BR> <FONT FACE="Verdana, Arial" SIZE="-1">Kevlar's WannaBe 2002 M3 SMG Coupe</FONT></DIV> </TD> </TR> <TR> <TD BGCOLOR="#DDDDFF"> <DIV ALIGN="CENTER"><FONT FACE="Verdana, Arial" SIZE="-1"><B>Board Information</B></FONT></DIV> </TD> </TR> <TR> <TD VALIGN="TOP"> <FONT FACE="Verdana, Arial" SIZE="-1">Top Posters:</FONT> <? include("topposters.php"); ?> <P><FONT FACE="Verdana, Arial" SIZE="-1"></FONT></P> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> <P> <?php include ('footer.htm'); ?> |
#19
|
||||
|
||||
I'm a bone head ... I understand now, I'll try it and see how it works.
Thanks. |
#20
|
||||
|
||||
Alright guys, I am using this hack on my site and I like it. Can anyone tell me how I would add in a few more lines that would show me the top thread starter, member of the day, etc...can this be added in relatively easily?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|