I was having a problem with the administration tasks on posts where, for example, I wanted to splt a thread somewhere, when I do the drop down on the list and select "split", the browser would go to "http://admin/uieforum/split/thread/44" instead of "http://www.example.com/admin/uieforum/split/thread/44".

Well, digging through the code and poke at it a bit, I found a fix!

In functions.inc.php, on line 1122 where it shows:

t(url('/admin/'.uieforum_get_module_menu_name().'/edit/post/'.$PostID)) => t('Delete Post'),
t(url('/admin/'.uieforum_get_module_menu_name().'/edit/post/move/'.$PostID)) => t('Move Post'),
t(url('/admin/'.uieforum_get_module_menu_name().'/split/thread/'.$PostID)) => t('Split Thread'),
t(url('/admin/'.uieforum_get_module_menu_name().'/merge/thread/'.$ThreadID)) => t('Merge Thread')

The '/' in front of admin needs to be removed, so the code looks like:

t(url('admin/'.uieforum_get_module_menu_name().'/edit/post/'.$PostID)) => t('Delete Post'),
t(url('admin/'.uieforum_get_module_menu_name().'/edit/post/move/'.$PostID)) => t('Move Post'),
t(url('admin/'.uieforum_get_module_menu_name().'/split/thread/'.$PostID)) => t('Split Thread'),
t(url('admin/'.uieforum_get_module_menu_name().'/merge/thread/'.$ThreadID)) => t('Merge Thread')

This fixed this problem for me. Hopefully, this might fix it for others.

Comments

daniel.hunt’s picture

Nice find - thanks

daniel.hunt’s picture

Assigned: Unassigned » daniel.hunt
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)