![]() |
vBFavorites v1.0
Alright everyone, here's my first (hopefully of many) released hack, so have mercy :)
This hack adds a category to your index.php page containing the X (customizable) most frequented forums by that particular user. This hack does not apply to guests however, or members who have no (or less than a customizable amount of) posts. Not much more to it, it's a very simple 2 minute install and it should (although I haven't verified it) work across 2.2.x. A live demo will be available soon at Somethingleet, but for now some screenshots will have to do. Please let me know the url of the forums you install it on, if you do, I like seeing where my work is used :) Screenshots: Screenshot of what it looks like to your qualifying user with a sufficient number of posts - [here] Screenshot of how it appears to a guest - [here] Screenshot of how it appears to a registered user without a sufficient number of posts - [here] Minihacks & Customizations: Exclude a forum from favorites Make 'Your Favorites' Username's favorites If you like the hack, make sure and install it! |
Screenshot of what it looks like to your qualifying user with a sufficient number of posts
|
Screenshot of how it appears to a guest
|
Screenshot of how it appears to a registered user without a sufficient number of posts
|
nice one Mystis :)
|
how do u calculate which forums to display in favorite?
|
Looks good:)
Satan |
"most frequented forums by that particular user" ??? It looks as they are displayed random, not in any relation to the postingbehavior of a member.
|
very cool hack i like it :cheeky:
|
Quote:
Quote:
|
Looks good!
/me clicks install |
Wow! This is great!
*installs* P.S. i installed on a 2.2.6, so it should work from (at least) that and up. |
In theory it should work for all vB 2.2.x versions;)
Satan |
VERY USEFUL!!
Congrats on a great idea. Anyway to include the member name in the "Favorites" line? ie; "MemberName's Favorites" |
Quote:
|
If I'm understanding correctly, this hack shows your most frequently posted forums in the "favorite list", correct? Well, if this is the case, and Okiewan wants it simply to show the members name, then use $bbuserinfo[username] in the "favorites" line, that will show the members name. Unless I am missing something.. ;)
|
Of course you aren't Velo;)
I was just about to say the same thing;) Satan |
Uhm, "third-ary"? ;c))) ;)
|
Quote:
Edit: Nope, didn't think it would. I tried making a replacement turning {username} to $bbuserinfo[username], and that didn't work either. |
great hack....i installed it...thanks
is there a way i can exclude a forum from fav. forums? (which will effect to all) |
Sure, just change
Code:
$query = $DB_site->query("SELECT forum.forumid as forumid, forum.* as foruminfo, COUNT(post.postid) as numposts FROM forum, thread, post WHERE forum.forumid=thread.forumid AND thread.threadid=post.threadid AND post.userid='".$bbuserinfo[userid]."' GROUP BY forumid ORDER BY numposts DESC LIMIT 0,".$max_forums); Code:
$query = $DB_site->query("SELECT forum.forumid as forumid, forum.* as foruminfo, COUNT(post.postid) as numposts FROM forum, thread, post WHERE forum.forumid=thread.forumid AND thread.threadid=post.threadid AND post.userid='".$bbuserinfo[userid]."' AND forum.forumid!=9999 GROUP BY forumid ORDER BY numposts DESC LIMIT 0,".$max_forums); |
lol, I had forgot that forum names were even inputted.. I must have been thinking it was hardcoded for some reason (been a while since I added a forum). :p
Anyway, to get the effect you requested Okiewan, find in index.php: PHP Code:
PHP Code:
|
Nice velo, I was looking at it like it was much more complicated than that. I think I'm going to index all of the little code modifications on the first post.
|
nice hack. Got no use for it, on my site though...
|
Awesome hack. I installed it last night in less than 5 minutes and my members have already made several dozen posts on the thread I made for feedback praising it :).
|
That's great to hear DC :D That's on my agenda for v2, also, is making an editable list.
|
Is it possible to modify this hack so that you can have (in the style header), just below the main forum logo/buttons, little text links of just the three 'favorite' forums?
So that no matter where the user is in the forums (well, wherever the header is displayed), they can always just hit one of the three links to go to one of their top 3 forums? If that's not possible, then is there any other hack which can do this :) ? |
Sure, it would take some heavy modification, but the SQL query is there, and that's what took me the bulk of the time developing this hack. I'll give it a shot and see what I can do :)
|
sweeeeeet mystis.
SL will definitely enjoy this hack :D |
Great hack, but it would be cool if you could somehow modify this hack so that people could specifically add forums to the favorite list.
|
Mithan - that would be a complete overhaul, but I am planning to do this in version 2.
Supreem - That's great, I'm glad to be able to use it :D It was a fantastic idea. |
Ok awesome.
One thing I thought you should know as well, is that if you have the collapsable thread install, when you collapse the "favorites", the original forum section collapses as well, and vice versa. |
Quote:
|
Hallo
da ich kein english kann versuch ich meine Frage halt auf deutsch zu stellen und hoffe das jemand antworten kann :D Habe den hack wie beschrieben eingebaut... nur wie k?nnen die User nun Ihr Favoriten in das Board eintragen ?? |
Hab dann hinbekommen... nur das diese funktion arg zu lasten der boardgeschwindigkeit geht
|
Quote:
- Freetranslation.com :D |
All times are GMT. The time now is 04:43 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:
|