PDA

View Full Version : Topic In Profile


tnguy3n
25 Nov 2005, 17:23
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.++++++.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
25 Nov 2005, 17:27
So this is like sticky threads right?

tnguy3n
25 Nov 2005, 17:37
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.++++++.org/forums/member.php?u=2 (username/password: demo/demo)

tnguy3n
25 Nov 2005, 17:51
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
26 Nov 2005, 04:38
Why don't you make the usergroup and forum ids settings? It would be easier to add to them that way. ;)

Snake
26 Nov 2005, 11:41
/me installs

tnguy3n
26 Nov 2005, 14:54
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
27 Nov 2005, 06:23
An Excellent Idea.. Will be good for adding a "My Favourite Threads" option to peoples profiles :)

Flow Fusion
27 Nov 2005, 12:09
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
27 Nov 2005, 16:38
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
27 Nov 2005, 16:40
any Idea How?

tnguy3n
27 Nov 2005, 16:41
change should be the same as of postbit template.

Flow Fusion
27 Nov 2005, 18:00
It has to be another place I can put this code?

Flow Fusion
27 Nov 2005, 21:56
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
04 Dec 2005, 06:01
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
06 Dec 2005, 01:38
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
06 Dec 2005, 05:04
- 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
06 Dec 2005, 05:09
I'll rewrite the hack, and will also work on that, my friend. ;)

Thank you very much!

ugmphelon
06 Dec 2005, 20:07
any help?

ugmphelon
06 Dec 2005, 22:13
nvm i got it