Hello,

This is what I am getting in the source for the link for "Login" to Reply ie href= "< e m >/user/login%2526destination%3Dforum< / e m >">Login" ( I had to put the spaces in the < e m > tags as they kept getting stripped out of post)

The < e m > tags are being generated and put in there somehow and its obviously resolving to a page that doesn't exist. Any ideas?

Thanks,

Ed

Comments

Qui.dormit.non.peccet’s picture

You are indeed correct - if you want a temporary fix until someone who knows what they're doing replies, you may want to try this:

Change

Install.module; line 824
$NEW_REPLY_TEXT = t('<a href="%login">Login</a> to reply', array('%login' => url('user/login&destination='.uieforum_get_module_menu_name())));

to

 $NEW_REPLY_TEXT = l('Login to reply', 'user/login', '', 'destination='.uieforum_get_module_menu_name());
Qui.dormit.non.peccet’s picture

Alternatively..
if you want the user to be redirected back to the post they wished to reply to, use
$NEW_REPLY_TEXT = l('Login to reply', 'user/login', '', 'destination='.uieforum_get_module_menu_name().'?c=newpost%26ThreadID='.uie_id('ThreadID'));
instead

oh, and if you're posting code and don't want it to be stripped out, use code tag =) (thats wht I use.. don't hassle. I'm not brave enough to try other tags ... and it's short ;)

EdKirby’s picture

Cool Beans, Man! Works like a charm!

I appreciate the fix! I had found that piece of code trying to fix it but not being a php programmer I was a little stumped.

Thanks Again,

Ed

Qui.dormit.non.peccet’s picture

Status: Active » Needs review

Cool =) No problem.

daniel.hunt’s picture

Assigned: Unassigned » daniel.hunt
Status: Needs review » Fixed

Excellent work guys - patch applied!

Daniel

Anonymous’s picture

Status: Fixed » Closed (fixed)