error link if used with OpenSEF

16 years 7 months ago #43512 by angin
error link if used with OpenSEF was created by angin
How can I get this URL

www.mysite.com/component/option,com_/Itemid,0/comprofiler/

after submit my registration form. I'm using CB1.1 with OpenSEF enabled.

Thx in adv

Everything should be made as simple as possible, but not simpler

Please Log in to join the conversation.

16 years 7 months ago #43553 by angin
Replied by angin on topic Re:error link if used with OpenSEF
ok, found it from 1.0 post.

Here's the trick in case somebody have experienced the same issue.

Edit your comprofiler.html.php, go to registerForm function, about line 1263, below this,
[code:1]
...
<div style="align:center;" id="cbIconsTop">
<?php
echo getFieldIcons(1,true,true,"","",true); // to remove top icons explanation just comment or remove this line
...
[/code:1]

just add a condition,

[code:1]
if ($mosConfig_sef=='1') $linkAct = $mosConfig_live_site."/component/com,comprofiler/"; else $linkAct = "index.php?option=".$option;
[/code:1]

and change the form line into,
[code:1]
<form action="<?php echo sefRelToAbs($linkAct); ?>" method="post" id="adminForm" name="adminForm" onsubmit="return submitbutton(this)">
[/code:1]

and one more for lostPassword function I guess also need this trick.

hope this will help others who also used the 'Just History' OpenSEF.

Everything should be made as simple as possible, but not simpler

Please Log in to join the conversation.

16 years 7 months ago #43567 by beat
Replied by beat on topic Re:error link if used with OpenSEF
I checked the code of registration, as well as this change, but it seems to me that this is due to a bug in OpenSef, as the url is correct, and sefRelToAbs is handled by OpenSef normally.

Maybe you should check that with Marko.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.164 seconds

Facebook Twitter LinkedIn