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 |
#252
|
|||
|
|||
I love this hack, but Netscape has been giving me headaches with this one for a WHILE. I finally got really fed up and kept tinkering until I found some solutions! Here is what I did, you can find a zip of the last10 files I changed here if you want to see them:
http://frugal-moms.com/last10NSfix.zip Note: I am using vBulletin 2.0.3, getting ready to install 2.2, will let you know if there are any problems! In last10.php (I called mine active.php): 1) Getting rid of that funky town text! I took all style tags (such as style=\"font-family:$f; font-size:$fs; color:$tc;\") out of the table tags (mostly td) and put them in font tags right after those tags. For example: Code:
echo("<td style=\"font-family:$f; font-size:$fs; color:$tc;\" align=\"center\"><b>Last Poster</b></td>\n"); Code:
echo("<td align=\"center\"><font style=\"font-family:$f; font-size:$fs; color:$tc;\"><b>Last Poster</b></td></font>\n"); I added an extra td cell at the end of each row so that the full length of the table rows (particularly the colored ones) would show up correctly in Netscape. There are two places that need this- in the top bar that defines each field and then again in the column that actually displays them- thread title, replies, etc. Here is where to find them: a) In top bar (the one that says Thread Title, Last Poster, etc)- which has displays your $hc color (right after the "Replies" column around line 50). Replace this: [CODE]echo("</tr>\n");[CODE] with this: Code:
echo("<td bgcolor=\"$hc\"> </td></tr>\n"); Code:
echo("</tr>"); [CODE]echo("<td bgcolor=\"$hc2\"> </td></tr>");[CODE] 3) Sprucing up the table: a) Message text tables- I hardcoded the colspan in line 231, replacing this: Code:
echo("<tr $twt bgcolor=\"$bc\"><td colspan=\"$cols\" style=\"font-family:$f; font-size:$fs; color:$tc;\" align=\"left\">\n"); Code:
echo("<tr $twt bgcolor=\"$bc\"><td colspan=5><font style=\"font-family:$f; font-size:$fs; color:$tc;\" align=\"left\">\n"); Code:
<table width="600" bgcolor="000080" border="0" cellspacing="0" cellpadding="0"><tr><td>
<!--#include file="last10.php"--></td></tr></table>
http://frugal-moms.com/boards/active5.shtml I use this script to show forums within certain categories since I have so many boards. It comes in handy, and I'm glad that our Netscape uses can finally see this page correctly. I would still love to have the page show up to match the user-selected style of the boards rather than hardcoded, but I'm not sure how to make that work-yet! Kim |
#253
|
|||
|
|||
when i reply to a thread, i get the last post as my 'post subject' anyone got the same problem?
-Mobile |
#254
|
||||
|
||||
Woot Nice
|
#255
|
|||
|
|||
|
#256
|
|||
|
|||
The given script under vb2.2.1 works? And whether it can show messages only from the defined category?
|
#257
|
||||
|
||||
Quote:
|
#258
|
|||
|
|||
error:
Fatal error: Failed opening required 'http://boltalka.com.ua/admin/config.php' (include_path='.:') in /boltalka/last10.php on line 13 |
#259
|
|||
|
|||
Quote:
How did you "set up my SHTM pages to be parsed by the PHP Isapi filter versus the ssinc.dll that is default."? I'm also a hopeless IIS user and this sounds like it will work for me. I'm not familiar with PHP though. Is this an IIS configuration change, a PHP change, or a registry tweak? Thanks |
#260
|
|||
|
|||
Quote:
It IS an IIS configuration change, so just go into your management console and select the 'Home Directory' tab, then hit the 'Configuration' button. From here you will see all of the available extensions. Just click on the extension(s) that you want to PHP parse. I selected .sHTML. Assuming you have the basic install of PHP, just point the executable line to \Winnt\system32\sapi\php4sapi.dll and allow all verbs. Hopefully that helps!! -Brian www.mhogaming.com |
#261
|
|||
|
|||
Thanks for the additional details...
It appears that I do not have a Winnt\system32\sapi\php4sapi.dll in fact the 'sapi' directory does not even exist under system32?! I figured I must have an incomplete install of PHP, so I re-installed PHP V4.0.6. Even after that install I do not have that directory or .dll?? When I run the last10.php script directly, I get several of the following 'warning' messages: Quote:
I'm pretty fresh to PHP - but willing to learn - no matter how painful it may be right now.... Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|