![]() |
My Recent Posts on Forumhome
This is my first released hack, so if you have any constructive suggestions or feedback, it'd be greatly appreciated. This is still a beta version of the hack, it doesnt support phrases or have any admin options yet, and needs a bit of optimization, I will add those in a later version.
DESCRIPTION This adds a table onto your forumhome that shows information the last 5 threads the user has posted in, including the thread title, thread starter, last post date, last post username, replies, views, and what forum it is in. INSTALL 1) Upload product-recentposts.xml 2) Add the following code to FORUMHOME: Find: Code:
<!-- what's going on box --> Code:
<!-- recent posts --> This will place it above the What's Going On? box, you can put this anywhere you like really. This has only been tested on vb 3.6.4 DEMO / EXAMPLE http://forums.ffextreme.com/ You will have to register and post to actually see it working unfortunately hehe. MODIFY NUMBER OF THREADS SHOWN (TEMP) I will add admin cp options in the next update, but if you want to modify how many threads are shown on the list: 1) Goto the Plugin Manager 2) Click [Edit] for the Recent Posts by You on ForumHome plugin 3) In the text box, find where it says: PHP Code:
BUGS / FIXES 0.14 --> Fixed font issues, issues involving deleted threads showing up. 0.13 --> Change font size to smallfont 0.12 --> Changed userid variable to proper variable, added alternating column colours. 0.11 --> Added TABLE_PREFIX to the queries |
Nice idea, Mistah Roth! ;)
|
Nice hack. Needs a little tweaking. The query needs TABLE_PREFIX added before "post". Also, the variable you use ($userid) should be $bbuserinfo[userid]. I think that should fix it up. I'll install it just as soon as you've debugged it. I love the idea!
Keep up the great work! :) |
Quote:
|
Sorry -- I should have known better. I haven't been coding enough!! You need to use $vbulletin->userinfo['userid']. So your query should look like this:
PHP Code:
Sorry for messing around with your hack. Nothing personal. I think it's an excellent idea and I probably couldn't have written it from scratch. So, great job! Installed and I love it! :D |
I like the idea, but is it collapsible? I couldnt tell from the pic..
If not, how about a option to allow the user to enable/disable it? i only ask this because large forums can get crowded, and some people prefer to turn things like this off while others like these options :) |
Quote:
And like I said, its my first released hack and the first time i've ever used the plugin / hook system, so I'll leave it in Beta until im sure all the little bugs are fixed, and I can add functionality to it. Thanks a lot for the support. And what image was broken and how did you fix it? Quote:
|
Great! I'm glad it worked out. I like feeling useful every once and a while :). Just for future reference, the IF statements in the templates don't create queries, so you can use them without worrying about that.
Again, very nice hack. Cheers, Tim |
Quote:
|
Nice job..I just would like the font to be sized down ;)
|
All times are GMT. The time now is 05:29 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:
|