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 |
#222
|
|||
|
|||
Help, please?
|
#223
|
|||
|
|||
I run a VERY high traffic site. I love the idea of including recent content from my message boards on my homepage.
However, running another query to the DB can be a system resource "eater." Has anyone thought of creating a version of this hack that would query ever "X" minutes and write the results to a txt file? This way, the same effect is achieved (basically), and connections to the database is reduced. Give me your thoughts. If enough people are interested, I may look into doing it (with my limited skillset). Thanks, *b* |
#224
|
|||
|
|||
Hi,
I really like the script - Thanks. However, when mySQL is down it can bring normal page loading to a standstill - If there anything that I could add which would only exectue the script if mySQL was working ok. Thanks in advance. |
#225
|
|||
|
|||
Tubedogg,
your script is, um, really nice. I am concerned that I cannot change the font size/color, or type. It just doesn't show any changes in Netscape 4.7 for mac and minumal changes in IE (cannot change font color, but can change font size and type in IE) Is there some solution for this? Otherwise, it is a really cool script, and I'd really like to use it. |
#226
|
||||
|
||||
Kevin,
I configured everything and followed your instructions, but I couldn't get it to work. When I used <!--#include file="/community/boards/admin/last10.php"-->, it said "there has been an error in processing this directive". So I tried <!--#include virtual="/community/boards/admin/last10.php"--> and it says: Quote:
|
#227
|
||||
|
||||
Where are you actually calling it from? Like what directory does it reside in? The admin directory?
Assuming yes, you should leave $path blank since config.php is in the same directory. |
#228
|
||||
|
||||
Yes, both .php files are in the /admin folder, with the config.php file. What do I need to do?
|
#229
|
||||
|
||||
Just set
$path=""; in last10config.php. |
#230
|
||||
|
||||
Maybe we misunderstood each other, but it didn't work:
Code:
Fatal error: Failed opening required '/config.php' in /home/mjames86/sports-central-www/community/boards/admin/last10.php on line 13 |
#231
|
||||
|
||||
tubedogg and all,
This is a marvelous hack and works like a charm Thank you. Maybe I missed it in this long thread. Could this script be modified to insert topics/threads and such on another server? My vB is on one dedicated server and I would like to use this script to insert topics/threads on my other site which is on another dedicated server? I don't want to be a mooch so if you would prefer to do this for money I understand and respect that. Just email me with a quote. Natch, their would be a performance/load hit but I can live with that. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|