× Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

[Solved] CB /Register Only Plug-in

12 years 3 months ago 12 years 1 month ago by Chris.
hilelen
Topic Author
[Solved] CB /Register Only Plug-in #1
Hi, hope I posted at the right place.

I installed your RegisterOnly plugin in Joomla 1.5.15. It works great.

Meanwhile, I use Community Builder as my login & register form.

So, there are two problem:

1.the page RegisterOnly redict to is fine, I can log in with no problem.
But the "Register" link doesn't work.

2.I need to change the original "Register" link to CB register form. DO you know how can I fix it?

looking forward your answer
The topic has been locked.
12 years 3 months ago
Antonio Durán
Posts: 7417
More
[Solved] CB /Register Only Plug-in #2
Hi. I just realized I need a new forum/category :)

I think the best option is to change the page the plugin redirects to, as it is the component which shows the links.
So, in registeredOnly.php, just change the line:
$mainframe->redirect(JURI::base ().'index.php?option=com_user&view=login');
By something like this: (i don't have CB installed, i justo saw somethinh like this on google)
$mainframe->redirect(JURI::base ().'index.php?option=com_profiler&task=login');

(just copy the end of your CB login page url)

I think it would be a good idea to have this as a configurable option for the plugin, so i will install CB when I have time and update the plugin to work with it.

Antonio
The topic has been locked.
12 years 3 months ago
Antonio Durán
Posts: 7417
More
[Solved] CB /Register Only Plug-in #3
I just realized that that is not going to work, as the whole plugin is coded assuming usual login procedure.
As a temporal hack, you could modify the original com_content component to point to your register page.
I will make a new version available with CB support as soon as possible.

Antonio
The topic has been locked.
12 years 3 months ago
hilelen
Topic Author
[Solved] CB /Register Only Plug-in #4
Dear Antonio,

You were right for two things:

1. the CB login link is "index.php?option=com_comprofiler&task=login"

2. this method didn't work

When I open the website, I got the message below.....

"Redirection Status
The URL was redirected to http://..../index.php?option=com_comprofiler&task=login. Please click the link to go there."

I can't even open my website.

But if I disable RegisterOnly and opened very the same url above, there was no problem to open CB login page. I guess that's because RegisterOnly view CB as one of the "content" to protect it. Please correct me if I was wrong.

As for your solution "modify the original com_content component", I was told modify the core program would not be a good idea. But I will think about it.

So, looking forward your next version. That will be great.
Thanks for your answering :cheer:
The topic has been locked.
12 years 3 months ago
Antonio Durán
Posts: 7417
More
[Solved] CB /Register Only Plug-in #5
Hi. That is exactly was I was hoping: the plugin works by redirecting everything (but the login page) to the login page.
As you login page (CB) is not the hardcoded one in the plugin, there is an infinite redirect :(

I am pretty sure I will have time this afternoon, and this change does not require much coding, so I hope I will have it ready by tonight.
I will post it here so you can try before I release it ok?

Antonio
The topic has been locked.
12 years 3 months ago
Antonio Durán
Posts: 7417
More
[Solved] CB /Register Only Plug-in #6
Hi. I have the new version ready. I attach it so you can test.
Please report back so I can release it (for me it seems to work OK).

I added a configuration option to the plugin, to select between Joomla and CB logins.

Antonio

Attachment plg_registeredOnly_0.gz not found

Attachments:
The topic has been locked.
12 years 3 months ago 12 years 3 months ago by hilelen.
hilelen
Topic Author
[Solved] CB /Register Only Plug-in #7
Hi, sorry for replying late.

First of all I would like to express my thank. YOU ARE MY HERO.

Then there is a good news and a bad news for you.

Good news is -- it redirect successfully to CB login page
Bad news is -- the register link didn't work. It just linked back to CB login page.
(CB register link is worked when RegisterOnly is off)

I don't know if this problem relate to RegisterOnly Plugin.

By the way, when I installed plg_registeredOnly-0.2, I got the message below--

JInstaller::install: File '/home/.../public_html/.../tmp/install_4b6fc5e991b92/registeredOnly-0.2/language/en-GB/en-GB.plg_system_registeredOnly.ini' does not exist.
Install Plugin Success


Thank you again, and I like the configuration you added.
The topic has been locked.
12 years 3 months ago
Antonio Durán
Posts: 7417
More
[Solved] CB /Register Only Plug-in #8
Thanks for the feedback and for your support :)

I am pretty sure this is a problem with the plugin, as I forgot to test registering :(
I will test it as soon as I can (I hope it is almost right now) and post back.
I will look at the language issue too.

Antonio
The topic has been locked.
12 years 3 months ago
Antonio Durán
Posts: 7417
More
[Solved] CB /Register Only Plug-in #9
Hi again.
I just modified the plugin to allow registration and user/password recovery.
I tested with both Joomla and CB logins and it seems to work.

Please test and report how it works for you. Thanks.

Antonio

Attachment plg_registeredOnly_0-20100208.gz not found

Attachments:
The topic has been locked.
12 years 3 months ago
hilelen
Topic Author
[Solved] CB /Register Only Plug-in #10
Hi, thanks for your effort. I have tested the register function. I also logged out then tested opening some content pages straight away from URL bar or browser history. The plugin worked great and I didn't find any more error so far. Your plugin really helps me a lot. (Before your plugin I can only set every menu and articles status as "view as registered only". Now I don't need to check every status one by one.)

Thanks Again :kiss:
Cheers
The topic has been locked.