Pe 07.02.2010 14:00, mediawiki-l-request@lists.wikimedia.org a scris:
Hi!
Hi! I'm looking for someone who could adapt the Nimbus extension ( http://www.mediawiki.org/wiki/Extension:Nimbus) to the following need : the tag cloud should be based on the most wanted articles and not on categories. Of course this could be a paid job. This would be for Wikimini, a french encyclopedia written by children. As this is a non profit project, I need a good quote:-)
Would someone be interested?
Thank you for your kind attention and sorry for my poor english!
Laurent http://wikimini.org
Hi, I have a simle solution:
1. line 89
Original code: $exclude_condition = " WHERE cl_to NOT IN (";
Modified code: $exclude_condition = " WHERE pl_title NOT IN (";
2. line 100
Original code: // Get top categories in order of popularity (quantity of links) $sql = "SELECT cl_to as title, COUNT(*) as count FROM {$dbr->tableName( 'categorylinks' )} " . $exclude_condition . " GROUP BY cl_to HAVING count >= $min_count ORDER BY count DESC LIMIT $max_items";
Modified code: // Get top categories in order of popularity (quantity of links) $sql = "SELECT pl_title as title, COUNT(*) as count FROM {$dbr->tableName( 'pagelinks' )} " . $exclude_condition . " GROUP BY pl_title HAVING count >= $min_count ORDER BY count DESC LIMIT $max_items";
3. line 137
Original code: $currentRowP = "<a href='http://%7B$_SERVER%5B%27SERVER_NAME%27%5D%7D/wiki/index.php?title=Category:%...' style='$textSizeP' color='$color' hicolor='$hicolor'>{$title->getText()}</a>";
Modified code: $currentRowP = "<a href='http://%7B$_SERVER%5B%27SERVER_NAME%27%5D%7D/wiki/index.php/%7B$title-%3Eget...' style='$textSizeP' color='$color' hicolor='$hicolor'>{$title->getText()}</a>";
This will show only pages from main namespace. There is a problem (not solved yet) with special caracters (for me ț and ș). I think it's a flash problem.
Good luck, Geo
Is there a way to delete history pages?
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4845 (20100207) __________
The message was checked by ESET NOD32 Antivirus.
that will hide them, not delete it...
2010/2/7, Platonides Platonides@gmail.com:
Erik Luken wrote:
Is there a way to delete history pages?
You can delete a page and restore just the last revision.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
2010/2/7, Huib Laurens sterkebak@gmail.com:
that will hide them, not delete it...
2010/2/7, Platonides Platonides@gmail.com:
Erik Luken wrote:
Is there a way to delete history pages?
You can delete a page and restore just the last revision.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
"The soldiers graves are great preachers of peace...."
that will hide them, not delete it...
2010/2/7, Platonides Platonides@gmail.com:
Erik Luken wrote:
Is there a way to delete history pages?
You can delete a page and restore just the last revision.
The deleted edit is there, however, I'm unsure if anyone outside of admin can see it. I'm not worried about admins seeing the edit, just normal users.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4845 (20100207) __________
The message was checked by ESET NOD32 Antivirus.
Erik Luken wrote:
that will hide them, not delete it...
2010/2/7, Platonides Platonides@gmail.com:
Erik Luken wrote:
Is there a way to delete history pages?
You can delete a page and restore just the last revision.
The deleted edit is there, however, I'm unsure if anyone outside of admin can see it. I'm not worried about admins seeing the edit, just normal users.
By default only sysops will see it. You can customize it with deletedhistory (see that it's deleted) and deletedtext (read the deleted text) rights.
Huib Laurens wrote:
that will hide them, not delete it...
That type of deletion would be enough for most cases. You can always run maintenance/deleteArchivedRevisions.php after that if you want. Or directly use the more radical maintenance/deleteOldRevisions.php
mediawiki-l@lists.wikimedia.org