Home Forum
2025-01-02
Benvenuto, Ospite
Nome Utente Password: Ricordami

Directing login to Community Builder
(1 Online) (1) Ospite
  • Pagina:
  • 1
  • 2

ARGOMENTO: Directing login to Community Builder

Directing login to Community Builder 13 Anni, 3 Mesi fa #2564

  • dacker
  • Offline
  • Fresh Boarder
  • Messaggi: 8
I have a page that is trying to redirect the login and its going to the Joomla Login instead of Community Builder ..

I have enterprise version and I am trying to redirect:

t1631.org/index.php?option=com_users&view=login&return=aHR0cDovL3QxNjMxLm9yZy9pbmRleC5waHA/b3B0aW9uPWNvbV9qZXZlbnRzJnRhc2s9aWNhbHJlcGVhdC5kZXRhaWwmZXZpZD0xMTImSXRlbWlkPTUzNiZ5ZWFyPTIwMTEmbW9udGg9MDkmZGF5PTIzJnRpdGxlPWRhbW9ucy1zZXZlbi1sYWtlcy1jYW1wb3V0JnVpZD1iYTA4OTc1NGFjNWU2NDE1OThiZjFlZjc3MmZkNzZmOQ==

to t1631.org/index.php?option=com_comprofiler&task=login {plust the &return stuff if possible)

How do I configure this in ReDJ?
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2565

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Dacker,
if you need to catch the exact URL this should work:

From URL: /index.php\?option=com_users&view=login&return=aHR0cDovL3QxNjMxLm9yZy9pbmRleC5waHA/b3B0aW9uPWNvbV9qZXZlbnRzJnRhc2s9aWNhbHJlcGVhdC5kZXRhaWwmZXZpZD0xMTImSXRlbWlkPTUzNiZ5ZWFyPTIwMTEmbW9udGg9MDkmZGF5PTIzJnRpdGxlPWRhbW9ucy1zZXZlbi1sYWtlcy1jYW1wb3V0JnVpZD1iYTA4OTc1NGFjNWU2NDE1OThiZjFlZjc3MmZkNzZmOQ==
To URL: http://{siteurl}/index.php?option=com_comprofiler&task=login


But I think a better solution is to catch every call to old login, with this:

From URL: /index.php\?option=com_users&view=login
To URL: http://{siteurl}/index.php?option=com_comprofiler&task=login


In this way you can redirect every URL that contains "option=com_users&view=login". If there are stil problems let me know.

Luigi
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2566

  • dacker
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Nope .. thats not working either ....
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2567

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Daker,
I've tested on this site. The problem with the first one is that there are 294 chars while the From URL field is limited to 255. I could use fields longer than this (e.g. text), but doing so I lose the indexes and decrease the performance.

But I've created this item and it works:

From URL: /index.php\?option=com_users&view=login&return=
To URL: http://{siteurl}/index.php?option=com_comprofiler&task=login


You can try it by yourself. If you call:

www.sistemistica.it/index.php?option=com_users&view=login&return=aHR0cDovL3QxNjMxLm9yZy9pbmRleC5waHA/b3B0aW9uPWNvbV9qZXZlbnRzJnRhc2s9aWNhbHJlcGVhdC5kZXRhaWwmZXZpZD0xMTImSXRlbWlkPTUzNiZ5ZWFyPTIwMTEmbW9udGg9MDkmZGF5PTIzJnRpdGxlPWRhbW9ucy1zZXZlbi1sYWtlcy1jYW1wb3V0JnVpZD1iYTA4OTc1NGFjNWU2NDE1OThiZjFlZjc3MmZkNzZmOQ==

You get redirected to:

www.sistemistica.it/index.php?option=com_comprofiler&task=login

So, if you still get problem I could check settings for you. Just send me an email at info(at)sistemistica.it.

Let me know,
Luigi
Ultima modifica: 13 Anni, 3 Mesi fa Da admin.
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2568

  • dacker
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Definitely making progress. I can now trap it ... can I pass the &return part back as part of the to with a macro ...i.e.

&return=aHR0cDovL3QxNjMxLm9yZy9pbmRleC5waHA/b3B0aW9uPWNvbV9qZXZlbnRzJnRhc2s9aWNhbHJlcGVhdC5kZXRhaWwmZXZpZD0xMTImSXRlbWlkPTUzNiZ5ZWFyPTIwMTEmbW9udGg9MDkmZGF5PTIzJnRpdGxlPWRhbW9ucy1zZXZlbi1sYWtlcy1jYW1wb3V0JnVpZD1iYTA4OTc1NGFjNWU2NDE1OThiZjFlZjc3MmZkNzZmOQ==
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2569

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Yes,
with the Enterprise version you have a preg_match macro. Try to add this in the To URL:

{preg_match}/&return=.*==/i{/preg_match}


Let me know,
Luigi
L'Argomento è stato bloccato.
Ringraziano per il messaggio: dacker

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2570

  • dacker
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Thats doing what its suppose to be doing . thanx .. Unfortunately, it seems Community Builder doesn't like the return stuff

.. It goes to CB but doesn't return . but thats not your issue .
Thanx.
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2571

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Dacker,
you're right, these are "not in my business"... but unfortunately that's just me, I like to meddle!

Looking at CB code, it seems there's a onAfterLoginForm triggered just after the login. It could be possible to create a simple CB plugin that catches this event, takes the return value from the GET and force redirect to these base 64 encoded page.
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2572

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Dacker,
just install and activate the attached plugin from the CB panel.


I file di questo Forum sono invisibili ai visitatori. Prego accedi o registrati per visualizzarli.


It is triggered with "onAfterLogin", check if there is a return variable that is a valid URL when decoded, and if so redirect to this.

Using this plugin together with the previous ReDJ rule should solve.

Please, let me know,
Luigi
L'Argomento è stato bloccato.

Re: Directing login to Community Builder 13 Anni, 3 Mesi fa #2573

  • dacker
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Thats was very nice for you to write that plugin .. it was expected.

Unfortunately the Forwarding URL got chagned to /login?return= so I added another redirect as /login\?return= and I got this error:


Notice: Undefined offset: 0 in /home/content/52/7991152/html/plugins/system/redj/redj.php on line 713

Warning: Cannot modify header information - headers already sent by (output started at /home/content/52/7991152/html/plugins/system/redj/redj.php:713) in /home/content/52/7991152/html/plugins/system/redj/redj.php on line 451

Warning: Cannot modify header information - headers already sent by (output started at /home/content/52/7991152/html/plugins/system/redj/redj.php:713) in /home/content/52/7991152/html/plugins/system/redj/redj.php on line 452
L'Argomento è stato bloccato.
  • Pagina:
  • 1
  • 2
Moderatori: admin
Tempo generazione pagina: 0.90 secondi
Cerca con Google
News
Chi è online
 128 visitatori online
Sponsor

slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.