ok Jaffa got a few bits for you
lets start simple
the img folder needs to be renamed to images (to conform to the SDK) this will fix the no icon displaying in the Addon Management Menu
a piece of code I'm fairly sure you'll of fixed by now if you've spotted it
in
update_hook.php find
(lines 261 - 266)
- Code: Select all
if ($this->data['config']['forum_type'] == 0) /*DF*/{
$query="update {$this->data['config']['forum_prefix']}users u inner join {$roster->db->prefix}members m
set u.user_sig = concat(\"[img]\", '$sig[0]', m.name, '$sig[1]', \"[/img]\")
where ucase(u.name) = ucase(m.name)
and user_sig is null"; /*only updates people with blank signatures*/
}
and change to
- Code: Select all
if ($this->data['config']['forum_type'] == 0) /*DF*/{
$query="update {$this->data['config']['forum_prefix']}users u inner join {$roster->db->prefix}members m inner join {$roster->db->prefix}players p
set u.user_sig = concat(\"[img]\", '$sig[0]', m.name, '$sig[1]', \"[/img]\")
where ucase(u.name) = ucase(m.name)
and p.name=m.name
and user_sig is null"; /*only updates people with blank signatures*/
}
that will stop the script trying to update peoples sigs who have not uploaded any roster data same as the avatar code
well that's it for bugs I've found while testing this
now on to a idea I had but I'm unsure on if it can be done
do you think it would be possible to move all the CMS/Forum specific stuff (like which tables/fields to grab info from and send to) off to seperate files and then use them like include files
so you'd have something like
inc/phpbb3.php
inc/dragonfly.php
it will probably require a massive rewrite of the update hook but it would then allow others to write files with the info need to do this sort of thing to their own CMS or Forums
and maybe I'm just thinking to far fetched
if you decide to try it though let me know I have a bit of space and access to a few databases (read 600gb of space and unlimited databases)
and I'd be willing to help out on this.
oh and also a thought i had about the real name/which field to use
I've noticed both systems (dragonfly & phpBB3) both have an option to create custom fields you could just let the users decide where to pull the data from with just a text input field