![]() |
Quote:
|
Nice plugin.
But I would need some additional features. -) I have a multilanguage forum. So I would need that the Announcement changes depending on the forum language (so that I can enter for each language a forum where the last topic is taken for the annoucement). -) I want that I can change the number of topics displayed in the annoucement field. |
This is a cool and simple hack. Could use a bit more functionality but I'm going to try to edit that in myself. I'll post the results here if I come up with something good.
|
Edit: Alright, I've been playing around with this. It's probably nothing remarkable but I'm pretty proud of myself as I don't know mySQL or PHP and I had to do this via trial/error and am learning my way around.
This is my first experience in actually coding something in mySQL/php - all I've ever done before was move stuff around or follow file edit instructions. Anyway - here's what I've gotten so far: Attachment 51050 I did all this by editing the plugin code and the template code. Here is what I have for both: Code:
<!-- Latest Announcement --> Code:
// ### LATEST NEWS BY TANTAWI ############################################ I plan on adding a lot to this - I'm even thinking of asking someone how to trim phrases in PHP so that I can draw from the database and get the first post then trim it to 150 characters or so and display it right there under the title then a link "Read more...". -Whoops, didn't mean to double post. I thought it would auto merge my posts. |
OK, I finally finished tinkering around with it and here is my finished product. If you have any questions, you can PM me. I'm not going to post it as a hack because I don't know how to write the admin CP plugin, etc. My code is probably very inefficient as well.
Attachment 51182 |
This won't work for 3.6 - anyone have any ideas what changes I need to make to get it working? The Latest Announcement box will show but it's empty even though I have put in the correct forumid.
|
mshadows, It works for me on on 3.6, nothing changed, you may need to rebuild threads info.
Regards. |
What do you mean by rebuild threads info? Sorry I'm a bit of a newbie with this kind of stuff.
|
From your admincp, select Maintenance > Rebuild thread info.
Regards. |
Anyone got a 3.7.3 version ?
|
All times are GMT. The time now is 05:38 PM. |
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:
|