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 Active Thread Display (https://vborg.vbsupport.ru/showthread.php?t=18030)

fastforward 05-24-2001 10:00 PM

This is for vB 2.01

This little hack allows the display of the last active thread on the forums pages. This is the 'UBB like' feature. You can see an example at http://dbforums.com.

NOTES
It requires two extra column to be added in the forum table a few code additions and then the thread title and iconid can be referenced using the variables $forum[lastactivethread] and icon$forum[lastactiveiconid].gif. Instructions are in the attachment.

This was originally part of my usenet hack and due to popular request ( all two of them :D ) I'm releasing it seperately.

eva2000 05-25-2001 05:34 AM

nice but what happesn with very long thread titles ?

h4p3 05-25-2001 06:53 AM

I think they are cut off, if they are too long.

Degen 05-25-2001 07:20 AM

Looks like an awesome hack, and I really want to get it going, but I have no idea how to :

1) Run the following SQL statement:

ALTER TABLE forum ADD lastactivethread VARCHAR (64);

Is their an easy way to do this?

Thanks

eva2000 05-25-2001 07:26 AM

Quote:

Originally posted by Degen
Looks like an awesome hack, and I really want to get it going, but I have no idea how to :

1) Run the following SQL statement:

ALTER TABLE forum ADD lastactivethread VARCHAR (64);

Is their an easy way to do this?

Thanks

you can run that via phpmyadmin you can get it from www.phpwizard.net

nuno 05-25-2001 10:21 AM

great hack fastforward
any chance to show last post icon also?:D
tx

h4p3 05-25-2001 11:39 AM

Hm, i noticed that it doesn't work correctly at dbforums.com. If you click on the last post icon, you will get only a blank page.

fastforward 05-25-2001 12:30 PM

Quote:

Originally posted by h4p3
Hm, i noticed that it doesn't work correctly at dbforums.com. If you click on the last post icon, you will get only a blank page.
That's a template issue. It has nothing to do with the hack. All the hack does is create a new variable that can be accesed via the forum home pages.

fastforward 05-25-2001 12:33 PM

Quote:

Originally posted by eva2000
nice but what happesn with very long thread titles ?
The default length of the title is 45. This is controlled by the variable $lastactivethread_length.

If you want it longer, add a line to your config_inc.php that reads

$lastactivethread_length=64;

or whatever. If you need it longer than 128, you will also need to increase the table column width.

eva2000 05-25-2001 12:36 PM

Quote:

Originally posted by fastforward

The default length of the title is 45. This is controlled by the variable $lastactivethread_length.

If you want it longer, add a line to your config_inc.php that reads

$lastactivethread_length=64;

or whatever. If you need it longer than 128, you will also need to increase the table column width.

thanks gonna try this out locally first :)


All times are GMT. The time now is 01:42 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.01074 seconds
  • Memory Usage 1,732KB
  • 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
  • (4)bbcode_quote_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