![]() |
Helpppp
|
damn has any one got this to work on vb index.php? Because I got it to work but cant call the php file ? can some one help me out?
|
Does anybody know how to get this hack so that when you click on the titles it takes you to the first post in that thread and not down the page SOMEWHERE in the thread?
I know this shouldn't that hard to fix and was hoping somebody here would be kind enough to help me out on this. Thanks for any help you can provide. |
Quote:
First, put this in your phpinclude template: PHP Code:
PHP Code:
Note that if you want to use this script in more than one place - say, one on your vb index (or it's own template, like I do) and one on your non-vb home page - you will want to use two instances of it. I renamed one last5.php and use it for my front page minus the change I outlined above. |
thank you so much works GREAT!!!!!!
|
Hey tubb, nice hack but I'm using frames on the main site where I'm showing this. Is there a way I can make the links open in a new window?
|
Quote:
|
i've had this hack installed for ages but now on my new server with same PHP 4.1.2 version i notice these errors in my error_log
i have 2 copies of last10.php and last10chitchat.php included on the same page i.e. http://www.eva2000.com/forum/ and 1 copy included at http://bubblegumcrisis2040.com/forum/ Code:
[Sat Aug 10 14:03:23 2002] [error] PHP Warning: Use of undefined constant lastpost - assumed 'lastpost' in /home/username/public_html/last10.php on line 188 |
When in doubt, escape your variables (i.e. put '' around them). Looks like PHP is interpreting the html as php code to me.
I've edited the hell out of this hack (got it to work with my CSS styles, got rid of queries I wasn't using, etc) and that was usually the problem I had when weird errors popped up. If you check the html output of the script in a vaildator I bet you will find the same thing. I catch a lot of minor errors that way. |
Wonderful hack! Thanks! :D
|
All times are GMT. The time now is 05:12 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:
|