Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest Threads On Forum Home Details »»
Latest Threads On Forum Home
Version: 1.00, by NTLDR (Coder) NTLDR is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

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.

Comments
  #72  
Old 02-10-2004, 10:33 PM
Goyko Goyko is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
Remove the section that looks like AND open <> 1 in the code you have added.
???? :nervous:

Which code?
Where?

Sorry ... but could you please be a little more specific?
I'm a total non-programmer

Thanks!
Best regards...
Goyko
Reply With Quote
  #73  
Old 02-15-2004, 12:14 AM
Papino Papino is offline
 
Join Date: Sep 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*installed


thx Lee
Reply With Quote
  #74  
Old 02-22-2004, 01:33 PM
clubcivic.com clubcivic.com is offline
 
Join Date: Jun 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by obiwan8472
Brilliant hack.. but how do I make it only choose the threads from one certain forum.. and not the others?
I would like to know this as well. btw... great hack :up:
Reply With Quote
  #75  
Old 02-24-2004, 12:28 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
PHP Code:
    WHERE open '1' 
to:
PHP Code:
    WHERE open '0' 
or delete that line at all.
Reply With Quote
  #76  
Old 02-24-2004, 06:09 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change:

PHP Code:
AND forumid NOT IN (0$limitfids
to:

PHP Code:
AND forumid NOT IN (0,X,Y,Z$limitfids
changing X,Y,Z to the forumids, note the lack of a comma after Z.

To show closed threads removed the open = '1' and the AND which should be on the line after it.
Reply With Quote
  #77  
Old 02-24-2004, 08:55 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perfect! thanx a lot....

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....
Reply With Quote
  #78  
Old 02-25-2004, 10:34 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack Mr Lee

Installed on DB

Satan
Reply With Quote
  #79  
Old 02-25-2004, 01:21 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M.C.
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.
Reply With Quote
  #80  
Old 02-25-2004, 07:54 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. i`ll check it tonight! thanks a million

added
no... that make only dissapear Last Trheads box for forum=2
Reply With Quote
  #81  
Old 02-26-2004, 07:36 PM
SoLo OnE SoLo OnE is offline
 
Join Date: Aug 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to carry this to all the other forum pages??
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06724 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete