Version: 1.00, by NTLDR (Coder)
Developer Last Online: Oct 2004
Version: 3.0.0
Rating:
Released: 01-20-2004
Last Update: Never
Installs: 170
No support by the author.
Latest Threads On Forum Home Version: 1.0.2 vB-version: 3.0.0 Release Candidate 2 Developer: NTLDR Install-difficulty: 1 File-edits: 2 Template-edits: 1
Description of the Hack:
This is taken from my vBindex hack and will display the latest X threads on your forum home page. Permissions are done automatically so forums users can't view will be excluded. Includes thread icon/goto new post image (if the thread is unread), title, last post info, number of views and replies.
Files modified for this Hack:
index.php
New templates for this Hack:
forumhome_latestthreadbit
Templates modified for this Hack:
FORUMHOME
New phrases for this Hack:
latest_threads
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
sorry again... how can i exclude threads from some forums wich i don`t want to show? I mean without forum permissions.
For example:
1. Forum1 is tech forum (open for all) and post from it can be shown in Last Posts box.
2. Forum2 is flood/flame forum (open for all as well) BUT i don`t want to show post from it to anybody in Last Posts box!
i was trying to change forumid here, but it doesn`t work:
PHP Code:
AND forumid NOT IN (0$limitfids)
Thanks!
added
to show closed threads i guess you should change:
if it possible (only if you really want to do that) i`d love to see one more thing:
I have Forum Home Page with your Last Threads box - that is Home Page for one site forum (http://www.mysite.com/forum). Then, i have forum (for example ID=2), which i use as Forum Home Page for other site bbs (http://www.mysite.com/forum/?f=2). So it`s look like Forum Home Page also and has same Last Threads box.
Now, i`d love to see on original Forum Home Page your Last Threads box but exclude threads from foumid=2 (like you said me above). BUT, when i use my second Forum Home Page i`d love to see Last Threads ONLY from that forum and subforums...
Is it possible?
I don`t push at you with that mod, but if you`ll make it it`ll be amazing!
Good Luck!
Sorry for my english....
Now, i`d love to see on original Forum Home Page your Last Threads box but exclude threads from foumid=2 (like you said me above). BUT, when i use my second Forum Home Page i`d love to see Last Threads ONLY from that forum and subforums...
Find and replace the following Line (I know you've edited this so this is what it looks like in the install file:
PHP Code:
AND forumid NOT IN (0$limitfids)
with:
PHP Code:
".iif($_REQUEST['forumid'] == 2, 'AND forumid = 2', "AND forumid NOT IN (2,X,Y,Z$limitfids)")."
X,Y,Z are those forumids which you wanted exluded before.