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 |
#202
|
||||
|
||||
Sorry - forgot the IE p ic:
|
#203
|
|||
|
|||
Quote:
www.swzone.org/main_home.php It works but gives out many errors. And I don't know how to solve it. |
#204
|
|||
|
|||
Rostor,
I, too, was getting your exact same error. I went round and round for days wondering what the heck was going on in my little NT world. I have found that IIS appears to have problems with filtering or parsing included files. The IIS include is looking for a txt or HTML file, and thus I could not get it working with a plain SHTM(L) include statement. What I did as a work around, is I set up my SHTM pages to be parsed by the PHP Isapi filter versus the ssinc.dll that is default. Basically my homepage is now PHP parsed, but still mostly HTML-based. Have I confused you yet? Now that my page is PHP-parsed, I can just just the standard <? include("last10.php"); ?> statement in my code and everything works fine. I was a bit nervous about doing this as I wondered if any of my FP extensions would not function, but all seems to working well. (knock on wood) You can view how I implemented the hack on my site at www.mhogaming.com Hope that helps... -Brian |
#205
|
|||
|
|||
Kevin and Steve,
I am having the same problem on Netscape 4.7 with the overlapping of the end of the thread title at www.citysailor.com I removed the <nobr> tags, but it did not help. A guess a Kludgy solution might be to specifically limit the number of letters printed, depending on the space allocated. [By the way, if anyone reading this knows how to make the background image on Netscape just x-repeat, instead of repeating down the whole page, please let me know] |
#206
|
|||
|
|||
First of all- I would like to thank tubedogg for ths wonderful hack! It is a great traffic builder! Thanks tubedogg!
Now on to my (stupid) concern: I don't know a thing about "Parsed", never heard of the term. But I WAS able to follow the "Last XX Post" instructions up until the point of having the "last10.php" work . The problem I am having is incorperating this into some sort of HTML (or similar) document. How EXACTLY is this accomplished? Thanks in advance... |
#207
|
|||
|
|||
Hi Jarvis thx for your help but i take a different way to solve the problem
Last Week I bought 2 books about PHP and started to study it !!! After 3 days i make little modify to lastXX so now the hack works fine with IIS5. First: In the lastxxconfig.php file I add this lines: // by rostor $counter = ""; // fine inserimento rostor So a problem with undefined constant has been solved. Second: In the lastxx.php I defined this line with " " // if the title is more than $len characters, we need to cut it off and add ... to the end if (strlen($threads["title"]) > $len) { $title = substr($threads["title"],0,$len); $title .= "..."; } else { $title = $threads["title"]; } // convert the date to a format readable by non-unix geeks $fd = date($fdt,$threads["lastpost"]); That's All |
#208
|
|||
|
|||
Has anyone else included this hack into a non VB page (HTML document) and then looked at it in Netscat? It's not pretty.....and this particular line of code really confuses me...:
PHP Code:
|
#209
|
||||
|
||||
Yep - this doesn't look good in Netscape 4.7x at all. I wish I knew how to fix the HTML so it works with NS as well.
|
#210
|
|||
|
|||
I wish I knew how to put it in HTML period! Can't anyone help me with this?
|
#211
|
|||
|
|||
try changing the name of your file to .shtml from .html and put this code in where you want the last 10 to show up on your page:
Your choice of <!--#include virtual="last10/last10.php"--> or <!--#include file="last10/last10.php"--> If folder your.shtml file is in is not above the last10 folder in your directory, you need to do "../last10/last10.php" instead (note the "../" ) That tells it to look up one folder before looking down for the last10 folder . |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|