Topic: Expertise 1.0.0

This mod will allow your forum users to tag each other's areas of expertise, with confirmation. This tagging is done through plain text keywords which describe what a user knows.  This is called cognitive authority.  The management interface for these tags, this expertise, is integrated into the existing Profile pages.


Project: http://punres.org/desc.php?pid=133
Download and Screenshots: http://punres.org/files.php?pid=133

PunRes Discussion: http://punres.org/viewtopic.php?id=925

Re: Expertise 1.0.0

Very nice

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Expertise 1.0.0

hey! Thats pretty cool!

Re: Expertise 1.0.0

Nice mod. I intalled it on my forums. However, I found a couple of bugs.

Around here (I'd give a line number but mine are out of sync because I had to make it play nice with the invitations mod):

// find the users who have been tagged with it

You need to insert the DB prefix in the query like so:

FROM ". EXPERTISE_LINKS_TABLE ." l, ".$db->prefix."users u

As you do around here:

// get current tagging users data for this user, if any

Replace query with:

$sql = "SELECT DISTINCT u.id, u.username FROM ".$db->prefix."users u, ". EXPERTISE_LINKS_TABLE ." l

Otherwise, this pretty much doesn't work if you use a DB prefix for your forum.

I'm not sure why, but in the transfer screen after adding a tag there is the following error:

Warning: Invalid argument supplied for foreach() in..... .......on line 675

Also for anyone with Tobi's invitations mod, edit expertise.php:

Find:

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'expertise_include.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/expertise_lang.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/profile.php';

After, add:

require PUN_ROOT.'lang/'.$pun_user['language'].'/invitation.php';

Also, some suggestions:
- Make already confirmed tags viewable in the profile, then have a link just to add them
- Let guests view confirmed tags
Like you said in the notes:
- Some kind of notification when you have new tags waiting
- Administrator button to remove unused tags from the database
And some picky OCD things:
- Move expertise_include.php to /include
- Rename expertise_lang.php to just expertise.php
(Those don't really matter but they bug me)

Otherwise, great mod, thanks for making it. It looks like you put a lot of effort into it.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Expertise 1.0.0

Also I'd suggest that votes could skip the confirmation if the tag already exists.

Looking for a certain modification for your forum? Please take a look here before posting.

6 (edited by jlangrock 2006-11-25 21:58)

Re: Expertise 1.0.0

Does anybody has this mod actually running ?

The modifications, remarks 

Pogenwurst wrote:

Around here (I'd give a line number but mine are out of sync because I had to make it play nice with the invitations mod):

made are fine, but in Line 676, 770, 792, 812  and 822 it looks that there are problems with the foreach statement and Array. I'm not so experienced with changing it to a  while statement, that's what I have found out could help.

Here are the error message when updating tags

Warning: Invalid argument supplied for foreach() in /homepages/26/d34113660/htdocs/forumgalopp/upload/expertise.php on line 770

Warning: Invalid argument supplied for foreach() in /homepages/26/d34113660/htdocs/forumgalopp/upload/expertise.php on line 792

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /homepages/26/d34113660/htdocs/forumgalopp/upload/expertise.php on line 815

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /homepages/26/d34113660/htdocs/forumgalopp/upload/expertise.php on line 815

Warning: Invalid argument supplied for foreach() in /homepages/26/d34113660/htdocs/forumgalopp/upload/expertise.php on line 822

The poor horseman without horses
www.galopp-sport.eu

http://claimid.com/jlangrock
[img]http://claimid.com/images/hcard.gif[/img]

Re: Expertise 1.0.0

Looks very interesting! Will implement this at my forums after my exams...

Yet Another Happy PunBB Admin!

http://driverpacks.net/

8 (edited by kankan 2012-10-12 21:13)

Re: Expertise 1.0.0

Undiging .. smile

I am facing this message :

Could not get tag data from tables expertise_tags and expertise_links

Both table expertise_tags and expertise_links exists

http://ncandelier.free.fr/expertise1.png

http://ncandelier.free.fr/expertise2.png