The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
UPDATED! Not a new version number, but a bug fix.
Fixed another bug with using forum titles and included forums. New update: *Actually* fixed the bug with the forums this time. ------------------------------------------------------------------------------------ It's my best work to date (if I do say so myself ) and I think you'll like it and like all the configuration you can do. This image shows the script with all of the columns on, and parsing [code], smilies, and the post icon, as well as showing the forum title before the thread title. This image shows the script with all the columns off except $lastpostdate, and the $tw (table width) set to 600, and $showdate set to 0 (to just show the last post time). This image shows the same as #2, except $tw is blank (allowing the table to compact and remove the empty space automatically). Hack version: 1.0.1 Changes since version 1.0.0: Fixed small bug. Changes since version 0.1.0: Parses [ b], [ i], [ u], [ code], and [ quote] within the "last post". Displays the icon of the post, or the thread if there is no post icon. Parses smilies. New option to convert new lines to <br> so the post appears as the author wrote it (note: may cause problems if there are large breaks in posts). Changes since version 0.0.2: New option to show the text of the last post of a thread (also option to limit the number of characters of the post displayed). New option to set the table width, as a percent, a number of pixels, or just let the table size naturally. New option to show just the time of the last post, instead of the date *and* the time. New option to show a thin line around the cells (cell spacing). Changes since version 0.0.1: Include only specific forums, or set to allow all forums except certain excluded forums. New option to display a "Last post date" column with the last post date and time, formatted with your board's date & time setting. Fixed a bug with font and font size. Split the config into a separate file to make editing easier. For version: v2 betas 3, 4, 5, RC1, RC2. Files needed: last10.php, last10config.php (see attached zip file). Files to edit: last10config.php (see attached zip file). Possible file locations: Anywhere, as long as the relative path to config.php and the URL to your board are correct. Also, you must put last10.php and last10config.php in the same directory! Instructions 1] Unzip the files last10.php and last10config.php to your hard drive. 2] Open last10config.php in an ASCII text editor, such as Notepad (Windows), SimpleText (Mac), EditPlus, UltraEdit, TextPad, etc. (DO NOT use WYSIWYG HTML editors such as FrontPage, HotDog, DreamWeaver, etc. They will in all likelyhood screw up the file! I will not be able to support you if you edit the file in one of these programs.) 3] Edit the variables at the top. These are:
<? include("last10.php"); ?> To include it on a server-parsed page (.shtml, .shtm, .ssi, etc.): <!--#include file="last10.php"--> Instructions are also included in the zip file (last10.txt). FEEDBACK WANTED! Likes/dislikes/modification requests all gladly accepted! Please DO NOT contact me via IM or PM about this hack. Post your problem/question here and I will try to help you. Show Your Support
|
Comments |
#372
|
|||
|
|||
Helpppp
|
#373
|
|||
|
|||
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?
|
#374
|
||||
|
||||
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. |
#375
|
||||
|
||||
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. |
#376
|
|||
|
|||
thank you so much works GREAT!!!!!!
|
#377
|
||||
|
||||
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?
|
#378
|
||||
|
||||
Quote:
|
#379
|
||||
|
||||
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 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Use of undefined constant title - assumed 'title' in /home/username/public_html/last10.php on line 181 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Use of undefined constant title - assumed 'title' in /home/username/public_html/last10.php on line 185 [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 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Undefined variable: fsel in /home/username/public_html/last10chitchat.php on line 111 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Undefined variable: ftitle in /home/username/public_html/last10chitchat.php on line 111 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Undefined variable: counter in /home/username/public_html/last10chitchat.php on line 175 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Use of undefined constant title - assumed 'title' in /home/username/public_html/last10chitchat.php on line 181 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Use of undefined constant title - assumed 'title' in /home/username/public_html/last10chitchat.php on line 182 [Sat Aug 10 14:03:23 2002] [error] PHP Warning: Use of undefined constant lastpost - assumed 'lastpost' in /home/username/public_html/last10chitchat.php on line 188 |
#380
|
||||
|
||||
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. |
#381
|
||||
|
||||
Wonderful hack! Thanks!
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|