Results 1 to 15 of 38
Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Thread: [RELEASE] Last Active Thread Display

  1. #1
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013

    Closed! See New thread

    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 ) I'm releasing it seperately.
    Last edited by fastforward; Wed 6th Jun '01 at 1:59am.
    http://britishexpats.com/ - British expatriate community
     

  2. #2
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    nice but what happesn with very long thread titles ?
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  3. #3
    Senior Member h4p3 is on a distinguished road
    Join Date
    Apr 2001
    Location
    Vienna, Austria
    Age
    27
    Posts
    215
    I think they are cut off, if they are too long.
     

  4. #4
    New Member Degen is on a distinguished road
    Join Date
    Apr 2001
    Posts
    11
    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
     

  5. #5
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    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
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  6. #6
    Senior Member nuno has disabled reputation nuno's Avatar
    Join Date
    Apr 2001
    Age
    34
    Posts
    4,377

    great :)

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

  7. #7
    Senior Member h4p3 is on a distinguished road
    Join Date
    Apr 2001
    Location
    Vienna, Austria
    Age
    27
    Posts
    215
    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.
     

  8. #8
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    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.
    http://britishexpats.com/ - British expatriate community
     

  9. #9
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    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.
    http://britishexpats.com/ - British expatriate community
     

  10. #10
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    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
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  11. #11
    Senior Member h4p3 is on a distinguished road
    Join Date
    Apr 2001
    Location
    Vienna, Austria
    Age
    27
    Posts
    215
    Originally posted by fastforward

    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.
    Ok, i just wanted to mention it
     

  12. #12
    Senior Member h4p3 is on a distinguished road
    Join Date
    Apr 2001
    Location
    Vienna, Austria
    Age
    27
    Posts
    215
    Tested it on my local server and it works fine.

    Thx fastforward!

    Hm, one suggestion: if you move/delete a Topic, then you will see still the Title on the main site, or the wrong one if you have moved it.

    Perhaps you can improve it a little
    Last edited by h4p3; Fri 25th May '01 at 2:03pm.
     

  13. #13
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013
    Originally posted by h4p3
    Tested it on my local server and it works fine.

    Thx fastforward!

    Hm, one suggestion: if you move/delete a Topic, then you will see still the Title on the main site, or the wrong one if you have moved it.

    Perhaps you can improve it a little
    Yeah... this is a problem with the location of the call to the indexpost() function from the move thread vB functions. I actually moved the call on my setup but that was with RC3 I was hoping it may not be an issue with the release version. I didn't move it on the hack release because I'm not sure what other implications it may have. I'll do some more testing and see if it's safe to move the function call.
    http://britishexpats.com/ - British expatriate community
     

  14. #14
    Senior Member h4p3 is on a distinguished road
    Join Date
    Apr 2001
    Location
    Vienna, Austria
    Age
    27
    Posts
    215
     

  15. #15
    Senior Member fastforward is on a distinguished road
    Join Date
    Nov 2000
    Location
    NC, USA
    Posts
    1,013

    Re: great :)

    Originally posted by nuno
    great hack fastforward
    any chance to show last post icon also?
    tx
    I knew someone was going to ask for that

    The reason it's not there already is because I wanted to keep this as simple as possible, but mainly because I didn't want to cause the thread listings to generate any more queries than other than the standard vB ones.

    Having said that, it wouldn't be too difficult to add an additional column containing the icon reference that could be called from the template in the same way as the title. The trouble is, with every column added and every extra line of code there's more to go wrong

    I'll provide optional additions to the existing hack that will allow the title icon this weekend. That way people will have a choice of whether to implement it.
    http://britishexpats.com/ - British expatriate community
     

Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. Classic thread display vs vb3 thread display
    By Lugnut in forum vBulletin Templates, Graphics & Styles
    Replies: 1
    Last Post: Mon 22nd Mar '04, 12:25pm
  2. [RELEASE v2] 0-Posters, active posters, inactive posters display hack.
    By DEMOLiTiON in forum Releases: Version 2.x
    Replies: 14
    Last Post: Sun 14th Oct '01, 5:41pm
  3. Replies: 8
    Last Post: Mon 17th Sep '01, 5:57pm
  4. [RELEASE] Last Active Thread for 2.01
    By fastforward in forum Releases: Version 2.x
    Replies: 21
    Last Post: Sun 29th Jul '01, 11:31pm
  5. Active Users Display
    By datman99 in forum vBulletin 1.1.x Questions
    Replies: 2
    Last Post: Tue 5th Dec '00, 10:33am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts