Announcement

Collapse
No announcement yet.

[Release v2.0.1] LastTitleHack

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Release v2.0.1] LastTitleHack

    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
    Last edited by Afterburner; Sat 8 Sep '01, 2:10am.

  • #2
    here is a screenshot:

    Comment


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

      like to 25 characters then it breaks it with a seperator like >
      Last edited by NanoEntity; Sun 15 Jul '01, 2:21pm.

      Comment


      • #4
        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

        Comment


        • #5
          I see, thanks, very nice!

          Comment


          • #6
            I've done everything,but it does not change,why?

            Comment


            • #7
              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");
              Sorry for my bad English, i comes from germany!

              Comment


              • #8
                me too

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

                any more suggestions?

                Comment


                • #9
                  doesn't work for me

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

                  Comment


                  • #10
                    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.

                    Comment


                    • #11
                      thank you.
                      works well.
                      but two bugs:
                      1.the hack is work for new post after install this hack.
                      2.when you tansfer a thread to other post ,the LastTitle on resorce forum doen't change.

                      Comment


                      • #12
                        works great

                        Thank You!!

                        Comment


                        • #13
                          the first isn't a bug because the lasttitle table in your database will create with the hack, thats mean earlier there arenĀ“t any entrys

                          2. I will try to fix this

                          Comment


                          • #14
                            is there a way to make this hack appear in the forum Discription?

                            Comment


                            • #15
                              got it working!

                              Thanks, very useful hack!

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X