Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Use this forum to post MODS or HACKS to the CB connector files. Make sure to include the connector version in the subject of the topic. If the MOD or HACK fits well and other users are interested these MODs/HACKS could eventually make it into the core code.

Moderators: geeffland, Drakkim

Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Postby p17blo » Fri Nov 30, 2007 1:32 am

Well I knew there had to be a simple way, and there is. I have seen several hacks that need several file hacks and even these cause wrapper loops when clicking on register when in the forum area of PHPBB3 (assuming you are using the CBconnecter)

open includes\functions.php
find
Code: Select all
'U_REGISTER' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register'),


replace with
Code: Select all
'U_REGISTER'=> 'http://yourjoomlawebsite/index.php?option=com_comprofiler&task=registers" TARGET="_top',


Make sure you include the "s and the 's

Save the file and over write the original (keeping a backup of course)

Now, whenever your PHPBB3 site calls the registrationo function it simply loads the Joomla CB registration page breaking the wrapper window if there is one.

If anyone is intested I will continue to work on other working links for profiles as well

Sorry if this isn't 'new' info, but I searched hi and low and simply found unanswered threads and dead links.

Paul
p17blo
New Forum Poster
 
Posts: 1
Joined: Thu Nov 29, 2007 2:55 am

Postby geeffland » Fri Nov 30, 2007 4:47 pm

Thanks for the post...

for link modification in phpbb2 you can also view this thread
http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,19834/catid,34/

Similar stuff should work in phpbb3... just have not had the time to work on it yet...

Side note... working on another MOD to the CBC Wrapper which may do this automatically in the future for forums shown in the wrapper...

Greg
User avatar
geeffland
Site Admin
 
Posts: 1150
Joined: Tue Jun 06, 2006 2:16 pm
Location: Kansas City

Postby murraybs » Sun Dec 23, 2007 6:18 am

I've been running a mod that's worked reasonably well for me that involves editing 3 files.

This appears much cleaner and quite a bit less likely to foul up the phpBB3 automatic updater.
-murraybs
murraybs
Moderate Forum Poster
 
Posts: 63
Joined: Wed Jun 13, 2007 8:49 pm
Location: Citrus Heights, CA USA

Re: Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Postby kirkhayes » Mon Feb 04, 2008 6:39 am

This works well. I am wondering though..can we make it so that when someone clicks on a "user name" on the forum that it could be linked to the CB Profile and not the PHPBB3 Profile.

I have been looking through all the code and I have found references to "u_viewprofile" and "viewprofile", but no definitions or anything that looked like I would be able to redirect it to CB User Profile Page. I was hoping to find it in the common.php, but it isn't there that I can see.

I was thinking maybe an htaccess rewrite might work, but I'm not sure.

Any ideas?
kirkhayes
New Forum Poster
 
Posts: 2
Joined: Thu Jan 17, 2008 2:30 am

Re: Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Postby geeffland » Mon Feb 04, 2008 3:05 pm

I would think something similar to what was done for phpbb2 should work.

Also I am working on a modified CBC Wrapper... and one of its functions is to take a link for a user profile with the phpbb ID and show the correct CB profile.

I just need to find some time to finish coding v2 and the CBC Wrapper so I can get them released...

Greg
User avatar
geeffland
Site Admin
 
Posts: 1150
Joined: Tue Jun 06, 2006 2:16 pm
Location: Kansas City

Re: Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Postby stodd » Wed Jun 25, 2008 5:43 pm

Any update on the new CBC Wrapper?
stodd
New Forum Poster
 
Posts: 19
Joined: Mon Jan 29, 2007 5:28 am

Re: Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Postby geeffland » Wed Jun 25, 2008 9:55 pm

Still in process... have a few minor issues to iron out ( main one is passing POST data to an IFRAME )... then will release with v2
Thanks,
Greg
CB Connector Developer
User avatar
geeffland
Site Admin
 
Posts: 1150
Joined: Tue Jun 06, 2006 2:16 pm
Location: Kansas City

Re: Absolutely SIMPLE reg redirect for ALL reg links in PHPBB3

Postby stodd » Wed Jun 25, 2008 10:27 pm

Thanks for the update Greg!
stodd
New Forum Poster
 
Posts: 19
Joined: Mon Jan 29, 2007 5:28 am


Return to CB connector MODS and HACKS

Who is online

Users browsing this forum: No registered users and 1 guest

cron