vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Last thread with last post icon instead of clear image (https://vborg.vbsupport.ru/showthread.php?t=33199)

Island Roots 12-14-2001 10:00 PM

(The creator of the original hack is DR2000; I have since then modified it further)

Here's the hack in a handy dandy text file:

https://vborg.vbsupport.ru/external/2009/01/38.gifHack:lastthreadlastposticon.txt

It is incredibly simple...you need only edit one file and one template! It can be done in a couple minutes!

###Features###

- Shows the thread name of the last active post on the front page
- Shows the lastpost.gif icon for the theme you're using, instead of either A, using a clear (invisible) image, or using the default lastpost.gif image for the lastpost icon
- If the subject is long enough to start stretching the field on the index page, it'll show a shrinked version (i.e. "I need help with version.....).

Note: This has only been tested on version 2.2.1!

To see it in action, just visit www.ConsoleBoards.com !

nuno 12-15-2001 02:16 AM

PHP Code:

<img src="images/lastpost.gif" border="0" alt="Go to last post"></a></td

hmmm

shouldnt this be replaced by
PHP Code:

$forum[icon

just a thought :rolleyes:

Island Roots 12-15-2001 04:03 AM

Well, I was tweaking the hack for about a day, and I ended up with that and it works...no broken links or broken images, so no. :)

By the way, sorry about stretching out the board...I don't know how to add .txt or .zip files. :(

TheComputerGuy 12-15-2001 12:01 PM

its all good...

Island Roots 12-15-2001 06:00 PM

Alright, now I've got the hack in a text file so it doesn't stretch the boards! :cool:

Xsentrik.com 12-15-2001 09:05 PM

great hack thanks alot

Sadie Frost 12-15-2001 09:59 PM

When I try to open your text file, it tells me "no attachment specified" - am I doing something wrong already? Thanks! :)

Island Roots 12-15-2001 10:52 PM

The link is wrong. Let me fix it. You can also get it by clicking here:

Sadie Frost 12-15-2001 11:53 PM

Thank you! :)

epic 12-16-2001 01:34 PM

when i install this hack i got a error at this line

$forums=$DB_site->query('SELECT forum.*, CASE WHEN icon.iconpath IS NULL THEN '' ELSE icon.iconpath END as icon, thread.title as thtitle FROM forum left outer join thread on thread.forumid = forum.forumid and thread.lastpost >= (forum.lastpost-30) LEFT OUTER JOIN icon ON icon.iconid=thread.iconid WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');

no other info.Can u help me?


All times are GMT. The time now is 03:21 PM.

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.01100 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete