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

Reply
 
Thread Tools
Details »»

Version: , by DR2000 DR2000 is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-13-2001 Last Update: Never Installs: 18
 
No support by the author.

#### Subject Preview by DR2000 ####
I looked at all other hack avaliable for this, and all of them
are trying to do too much by editing your database structure,
and modifying the way data is inserted. Why overcomplicate
things, when all data is already there, and it only needs to be
extracted...

#### DEMO ####
To see this hack in action take a look at
http://forum.4adrive.com

#### FEATURES ####
- Shows the subject of the last active post on the front page
- Shows the icon of the last active post on the front page
- No need to alter database, and risk to screwing something up
- Only one file to change
- If the subject was very long, shows trunkated version of it,
and replaces the rest with '...', preventing your main page
layout from being screwed up.

#### #### ####
Nov 14, 2001
#### #### ####

Note: Tested with 2.0.3, 2.2.0 and 2.2.1.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 11-19-2001, 09:14 PM
xware's Avatar
xware xware is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
What was the fix?
in index.php and formdisplay.php
above this hack's code:
$forum['dots'] = '';
add the below code:
PHP Code:
if($forum['thtitle']=='') {
                          
                          
$newtitle=$DB_site->fetch_array($DB_site->query("SELECT thread.title AS title FROM  thread WHERE lastposter='$forum[lastposter]' AND thread.lastpost=$forum[lastpost]"));
                          
$forum['thtitle']=$newtitle[title];
                        }
                        else {
                          
$forum['thtitle']=$forum['thtitle'];
                        } 
and I have released a hack my own.you can try that one.
Reply With Quote
  #43  
Old 11-19-2001, 09:23 PM
DR2000's Avatar
DR2000 DR2000 is offline
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wouldn't recommend doing that. If you have 30 forums, this will query the database 30 times everytime a page is opened, and database query is a very expensive operation (speed, and load wise).
Reply With Quote
  #44  
Old 11-19-2001, 09:32 PM
bigstar bigstar is offline
 
Join Date: Nov 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack.. much better then all the others I have tried. The others tend to screw up if you delete/move posts.

Just one question, I don't want to show the post icons, how could I change the query code to remove that?
Reply With Quote
  #45  
Old 11-19-2001, 09:38 PM
xware's Avatar
xware xware is offline
 
Join Date: Nov 2001
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DR2000
I wouldn't recommend doing that. If you have 30 forums, this will query the database 30 times everytime a page is opened, and database query is a very expensive operation (speed, and load wise).
I see,but if not do this, the last title in sub forum will miss in forumhome.
and this fixed code I post is only work when you have sub forum.
Reply With Quote
  #46  
Old 11-19-2001, 09:47 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by bigstar
Just one question, I don't want to show the post icons, how could I change the query code to remove that?
I took the lazy way out and commented the code for the icon out in the template.
Reply With Quote
  #47  
Old 11-20-2001, 01:55 AM
DR2000's Avatar
DR2000 DR2000 is offline
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
I took the lazy way out and commented the code for the icon out in the template.
Yep. Just edit the template.
Reply With Quote
  #48  
Old 11-20-2001, 04:14 AM
bigstar bigstar is offline
 
Join Date: Nov 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was referring to the sql query, surely I can remove the fragment that requests the icon. I just don't know exactly what needs to be removed.
Reply With Quote
  #49  
Old 11-24-2001, 05:17 AM
Bitmap Bitmap is offline
 
Join Date: Oct 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great thanks ... tried to install ppns hack first, but all i got were parse errors. but this one is REALLY easy to install. well done
Reply With Quote
  #50  
Old 11-25-2001, 09:59 AM
Alex Alex is offline
 
Join Date: Oct 2001
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i exclude private forums from show their last title to every one?
Reply With Quote
  #51  
Old 11-25-2001, 03:58 PM
Bitmap Bitmap is offline
 
Join Date: Oct 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oeh ... arn't they excluded already? i have a private forum ... it isn't showing on the front page
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 01:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08103 seconds
  • Memory Usage 2,311KB
  • 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
  • (1)bbcode_php
  • (4)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
  • (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