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 |
#512
|
|||
|
|||
How can I make this great hack work as well in VBadvance portal CMPS... what variables should I set in the default setting their for enabling this hach to work as well in my Poratl vbadvanced CMPS ?
|
#513
|
||||
|
||||
Quote:
PHP Code:
|
#514
|
|||
|
|||
I'm trying to put this hack into a templated CMS. Unfortunately it doesn't allow you to simply paste PHP code into the template and suffice it to say that putting it into the PHP is an incredible pain like you cannot believe. What I need to do is create an output stream that is the HTML captured so that I can put it into a templating system in a CMS like evoarticles like Miraserver has instructions to do. Has anyone been able to do this with the use of a few simple lines so that the output could be captured to a variable that is in HTML format?
|
#515
|
|||
|
|||
I was trying to put this hack work for 3.0.7. but i can't manage to do that.. Do anyone have done this?
|
#516
|
|||
|
|||
Quote:
Hmm I get that too....grrr But only with the 'security bugfixed' version of the last10.php file that was posted on the previous page by someone. Using last10.php from the ZIP file works fine, but is it safe to use? |
#517
|
|||
|
|||
Quote:
that is what you are doing wrong As far as I know you need to put the absolute path to the file you want to include, not a web address. ie something like "/home/username/www/vbulletin/last10.php" but will obviously depend on your server |
#518
|
|||
|
|||
Quote:
It gave my the "error in mysql near LIMIT 1" error. Here's how to fix it... in last10.php change this.... Code:
// let's get connected require("last10config.php"); require("$path/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL"); mysql_select_db($dbname) or die("Can't select database"); // destroy some var's to prevent SQL injection (patch by Brad.loo, added 11/16/04) unset($fsel, $ftitle, $wheresql, $ob, $obdir, $maxthreads); $hfs = $fs+2; Code:
// destroy some var's to prevent SQL injection (patch by Brad.loo, added 11/16/04) unset($fsel, $ftitle, $wheresql, $ob, $obdir, $maxthreads); // let's get connected require("last10config.php"); require("$path/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassword) or die("Can't open connection to MySQL"); mysql_select_db($dbname) or die("Can't select database"); $hfs = $fs+2; Hope that hasn't defeated the point of the security fix, correct me if I am wrong please, Brad.loo or someone else! Meza |
#519
|
||||
|
||||
This worked, but I am still having the issue with the fact that it is not allowing for the DBprefix I added (vb3_). It cannot find the tables. I wish someone could tell me a workaround for this.
|
#520
|
|||
|
|||
I have a problem showing the original author of the thread. Sort by dateline instead of lastpost is working fine. MySQL queries for original author is looking fine to me. :ermm:
Script is located at http://www.dvdboard.de/news.php I used the code provided in this thread and attached my files below (removed all comments so it's easier to read). Thank you for any kind of help. configfile: PHP Code:
PHP Code:
Edit: To answer myself, look for $threads[lastposter] and replace it with $threads[postusername]. Stupid me. |
#521
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|