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)
-   -   LastTitleHack (https://vborg.vbsupport.ru/showthread.php?t=22881)

Afterburner 07-14-2001 10:00 PM

Deutsch:

Dieser Hack zeigt in der Spalte Letzter Beitrag unter dem Datum und den Usernamen des letzten Posters auch den Titel des Topics an.

um euch den hack anzusehen klickt hier:

www.the-afterburner.de

English:

This hack shows in the row "last post" on the mainpage below the date and the username of the last posting also the title of the last posting.

to see the hack in action click here:

www.the-afterburner.de

UPDATE: 8. September 2001 to Version 2
New:

You can set the length of the title in your CP
If a word is loger than your settings there are ... at the end
works also in subcategories
Link to the last posting

Afterburner 07-15-2001 07:47 PM

here is a screenshot:

NanoEntity 07-15-2001 09:15 PM

Nice hack, dose this limit how long the topic can be?

like to 25 characters then it breaks it with a seperator like >

Afterburner 07-15-2001 09:29 PM

the text can contain only 20 letters but you can change this in your MySQL Database.

forum
--> lasttitle

and set it to a higher one

NanoEntity 07-15-2001 09:58 PM

I see, thanks, very nice!

ztsky 07-16-2001 05:27 AM

I've done everything,but it does not change,why?:( :(

Znaper 07-16-2001 05:44 AM

Open yout lasttitlehack.php and change the line

Code:

$DB_site->query("ALTER TABLE forum ADD lasttitle VARCHAR (20) not null");
to

Code:

$DB_site->query("ALTER TABLE forum ADD lasttitle VARCHAR (25) not null");

maverick1236 07-16-2001 09:26 AM

ive done everything word for word-but it all looks the same

any more suggestions?

mojotim 07-16-2001 10:17 AM

Checked and triple checked, still no go for me.
Getting no data in the lasttitle column in the database on new posts.

Afterburner 07-16-2001 10:48 AM

sorry I forgot a little bit, I think it was to late yesterday.


If you have already installed this hack and nothing is shown on the manpage please download the hack again or follow this instructions:


download the "newthread.php" into ASCII Mode and backup this file.


look for this code (ca. line 230):

PHP Code:

      // update forum stuff
      
if ($visible==1) {
        
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");
      } 

replace it with:

PHP Code:

      // update forum stuff 
      
if ($visible==1) {
        
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."', lasttitle='".addslashes(htmlspecialchars($subject))."' WHERE forumid IN ($foruminfo[parentlist])");
      } 

save the "newthread.php" and upload it into ASCII Mode.


download the "newreply.php" into ASCII Mode and backup this file.


look for this code (ca. line 278):

PHP Code:

      // update forum stuff
      
if ($visible==1) {
        
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");
      } 

replace it with:

PHP Code:

      // update forum stuff neuster beitrag auf der startseite
      
if ($visible==1) {
        
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."', lasttitle='".addslashes(htmlspecialchars($threadinfo[title]))."' WHERE forumid IN ($foruminfo[parentlist])");
      } 

save the "newreply.php" and upload it into ASCII Mode.


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.01185 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (4)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