![]() |
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. |
nice but what happesn with very long thread titles ?
|
I think they are cut off, if they are too long.
|
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 |
Quote:
|
great hack fastforward
any chance to show last post icon also?:D tx |
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.
|
Quote:
|
Quote:
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. |
Quote:
|
Quote:
|
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 :) |
Quote:
|
Great! :D
*waiting* |
Quote:
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. |
I am seeing a bug. It is consistantly displaying the title of the post one post BEFORE the last post. It worked the first time through, meaning that the first post that was made after the hack was installed registered correctly. Now, it is consistantly one behind.
Amy |
Quote:
Anybody else seeing this? I can't seem to reproduce it. |
Nope, don't noticed such a problem.
|
fastforward
this shouldnt show private forums threadtitles :confused: |
Quote:
|
Quote:
|
Hm, maybe fastforward will think of this for the next updated release :)
|
I never actually considered this as I don't use private forums. But, I agree, they shouldn't be shown. I'll add the option this weekend.
|
fastforward is tha man! :D
|
tx ;)
|
I've had some luck installing a few other hacks but I can't work out what you mean by running a SQL statement. Could you explain again how to set this hack up for a novice.
Cheers |
Hm, still waiting for an updated version ;)
|
Quote:
|
OK.. OK! I'll do something this weekend. I can't remember what I was supposed to be doing though :rolleyes:
Someone remind me. |
Hehe,
Correct displaying of the last replied Thread on the forum main site, if a thread was deleted or moved. Someone wanted the feature with the right icons too, i think. |
- posticons (new feature) :D
- hide private forums threadtitles (fix) :confused: |
I find error . Whenever users edit their post subject it won't update the lastthread . Any workaround?
|
Quote:
Actually, this is really a vB bug as it should re-index the the post if the title changes. If you want to make the changes yourself, you should look at the postings.php and the editthread routine. |
no thanks :D hehe
Have a happy weekend man ;) |
Quote:
|
I've finally got around to adding the icon. The new version is in the first post of this thread.
I haven't added an option to hide private forums and probably never will. It will add too much complexity as you will have to check against the user and permissions for each page view. At the moment, there is only one file to edit and there are no extra queries to do; it simply gets the information from the forum table along with everything else. |
Looks like there is a bug with attachments. It deleted my attachement and won't let me add another. I'll have to start a new thread.
|
Quote:
if I make a new post it shows up correctly - but after a while it seems to log the name of the SECOND thread down not the LAST one weird ? http://digital-forums.com/forum/ |
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|