Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Connect button on user list

11 years 8 months ago - 11 years 8 months ago #221689 by ClaraPerry
Replied by ClaraPerry on topic Connect button on user list
Ok no problem. Thanks for all your help.
Last edit: 11 years 8 months ago by ClaraPerry.

Please Log in or Create an account to join the conversation.

  • bruno_c
  • bruno_c
  • OFFLINE
  • Posts: 24
  • Thanks: 2
  • Karma: 0
10 years 10 months ago #238114 by bruno_c
Replied by bruno_c on topic Connect button on user list
A "solution" that works fine on my site :
in the file : components\com_comprofiler\comprofiler.php
comment lines 1722 and 1724 and insert line 1724 like this:
// $url=cbSef( "index.php?option=com_comprofiler&task=userProfile&user=" . $connectionid . $andItemid );
echo "<script type=\"text/javascript\"> alert('".addslashes(htmlspecialchars($cbCon->getUserMSG()))."'); </script>\n";
echo "<script type=\"text/javascript\">history.go(-1);</script>\n";
// document.location.href='".cbUnHtmlspecialchars($url)."';</script>\n";


the "history.go(-1)" forces the browser to go back to the previous page
Best regards,
Bruno

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum