PDA

View Full Version : Topic In Profile


tnguy3n
11-24-2005, 10:00 PM
Mark As Informative Threads (or whatever, I got no idea what to name it, just a part of my Hack System)
Author: tnguy3n
Support: www.vbviet.org

This hacks gives admins & mods (or any usergroup you set) the ability to mark user threads as a informative threads/article, and show it in the user's profile.
To install this hack, just simply upload the product xml file in Admin CP -> Product Manager.

TIPS:
- To add more usergroup to have access to this feature, open Mark As Informative on showthread_complete hook, then add more usergroup ID in the array of this line code if(!in_array($vbulletin->userinfo[usergroupid], array(5,6,7)))
- Limit the "Mark As Informative" option in showthread, add more forumid to the array in line (in_array($thread[forumid], array(2,3)))
seperate by commas. ie. in_array($thread[forumid], array(2,3,4,5,6,7,8)))

Installation: 3-4 mins (easy)
Template mod: 2
Product: 1

Boofo
11-25-2005, 04:27 PM
So this is like sticky threads right?

tnguy3n
11-25-2005, 04:37 PM
Nope, it pulls out from database all threads of a user that are marked 'isquality' and display it in his profile.
Maybe live sample gives a better explanation...
http://www.vbviet.org/forums/member.php?u=2 (username/password: demo/demo)

tnguy3n
11-25-2005, 04:51 PM
as in another example, I have a few tutorial, tech, informative forums on my board (where no trash post allowed). When a user post an informative thread in those forums, mods/admins can mark it as informative or "quality" thread. It's sorta similar to the list of hacks of hackers in profile on vb.org. ;)

Boofo
11-26-2005, 03:38 AM
Why don't you make the usergroup and forum ids settings? It would be easier to add to them that way. ;)

Snake
11-26-2005, 10:41 AM
/me installs

tnguy3n
11-26-2005, 01:54 PM
Why don't you make the usergroup and forum ids settings? It would be easier to add to them that way. ;)

it's only 2 settings, I don't think the webmasters are that lazy to fix that themselves. :P

BluPhoenix
11-27-2005, 05:23 AM
An Excellent Idea.. Will be good for adding a "My Favourite Threads" option to peoples profiles :)

Flow Fusion
11-27-2005, 11:09 AM
OK installed now how do I use it? I think this hack conflicts with the "first post on every page hack," cause I don't seem to see it.

tnguy3n
11-27-2005, 03:38 PM
OK installed now how do I use it? I think this hack conflicts with the "first post on every page hack," cause I don't seem to see it.

then you got to make change in firstpage (or whatever template for that hack) too.

Flow Fusion
11-27-2005, 03:40 PM
any Idea How?

tnguy3n
11-27-2005, 03:41 PM
change should be the same as of postbit template.

Flow Fusion
11-27-2005, 05:00 PM
It has to be another place I can put this code?

Flow Fusion
11-27-2005, 08:56 PM
OK perhaps this is my issue - Limit the "Mark As Informative" option in showthread, add more forumid to the array in line (in_array($thread[forumid], array(2,3)))
seperate by commas. ie. in_array($thread[forumid], array(2,3,4,5,6,7,8)))

Where do I find this?


*damn found it*

jAcKz
12-04-2005, 05:01 AM
Great! Now how can I remove informative threads from a user profile in case they aren't informative any more or something like that?

tnguy3n
12-06-2005, 12:38 AM
Great! Now how can I remove informative threads from a user profile in case they aren't informative any more or something like that?

I'll rewrite the hack, and will also work on that, my friend. ;)

ugmphelon
12-06-2005, 04:04 AM
- Limit the "Mark As Informative" option in showthread, add more forumid to the array in line (in_array($thread[forumid], array(2,3)))
seperate by commas. ie. in_array($thread[forumid], array(2,3,4,5,6,7,8)))

cant find this?

jAcKz
12-06-2005, 04:09 AM
I'll rewrite the hack, and will also work on that, my friend. ;)

Thank you very much!

ugmphelon
12-06-2005, 07:07 PM
any help?

ugmphelon
12-06-2005, 09:13 PM
nvm i got it