works fine on 2.2.8.
one little addition:
in the main view you sort the categories by catname.
in the add new link dialogue the categorie select-list isnt sorted and gets shown by catid because of that.
you might want to change
PHP Code:
// #################### Add Link ####################
if ($action=="addlink") {
if ($bbuserinfo[usergroupid]=="1" or $bbuserinfo[usergroupid]=="3" or $bbuserinfo[usergroupid]=="0") {
eval("dooutput(\"".gettemplate('drkslinks_error1')."\");");
}else{
$result1 = $DB_site->query("SELECT * FROM gportal_weblinkscat");
to
PHP Code:
// #################### Add Link ####################
if ($action=="addlink") {
if ($bbuserinfo[usergroupid]=="1" or $bbuserinfo[usergroupid]=="3" or $bbuserinfo[usergroupid]=="0") {
eval("dooutput(\"".gettemplate('drkslinks_error1')."\");");
}else{
$result1 = $DB_site->query("SELECT * FROM gportal_weblinkscat ORDER BY catname");
and in browselinks and in main template i think you closed one
PHP Code:
</td></tr></table>
too much right above the navigational links. it at least broke my layout...
in doneaddlink template a
PHP Code:
</normalfont></td>
</tr>
</table>
</td>
</tr>
</table>
right after
PHP Code:
The link you had submitted has been added to the database successfully!!
thx for this fine hack
kreftt