add link in profile

Discussion forum for MOD Writers regarding MOD Development.
Locked
techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

add link in profile

Post by techker » Mon Feb 22, 2010 3:59 pm

Hey guys i have intergrated phpbb3 with my dating site.

now on my site template a have a link to the form that loggs in the member automatically since it is intergrated.

now i would like to like his profile to the dating profile instead of forum profile?is this possible?or just add a link in the members forum profile to the web site profile?

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: add link in profile

Post by m157y » Mon Feb 22, 2010 5:23 pm

If you doesn't use one users table for both systems it isn't integration :)
So what the problem? You want to use one users table for those systems? Okay, just compare it and make needed changes at one of tables and switch one of system to another users table. You'll have some problem if your system placed at different databases, because you'll need to connect to both databases. But if it all-in-one, it's very simple :)
And we can have a lot of talks at abstraction, but what about more exact information about your dating-system and your works on integration?
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

Re: add link in profile

Post by techker » Mon Feb 22, 2010 6:27 pm

well it uses the same databse cause the members dont have to logging to view the forum.
as for the profile were can i edit the link?

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: add link in profile

Post by m157y » Mon Feb 22, 2010 7:46 pm

Okay, just merge users tables from dating site and phpbb and use shared fields and registration data. I think no problems with it.
About link to dating profile at phpbb, your phpbb`s users table contain id(or something else) which used for dating profile search?
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

Re: add link in profile

Post by techker » Mon Feb 22, 2010 7:56 pm

IS there a way just to edit the profile page and add a view dating site profile..

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: add link in profile

Post by m157y » Mon Feb 22, 2010 8:01 pm

You want to add it automatically or by users manually?
If manually - jsut add custom profile, if automatically i repeat my question
your phpbb`s users table contain id(or something else) which used for dating profile search
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

Re: add link in profile

Post by techker » Mon Feb 22, 2010 8:18 pm

uses member_id

i want to add it to the profile page

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: add link in profile

Post by m157y » Mon Feb 22, 2010 8:35 pm

I hope this member_id stored at phpbb`s users table, else all post below was written for nothing.

just add an language variable at language/your_lang/ucp.php, for example:

Code: Select all

'DATING_PROFILE'   => 'Dating profile',
then go to memberlist.php and find

Code: Select all

			'L_POSTS_IN_QUEUE'	=> $user->lang('NUM_POSTS_IN_QUEUE', $member['posts_in_queue']),
after this add

Code: Select all

			'DATING_ID'			=> $member['member_id'],
and then at viewprofile page(template: memberlist_view.html) you'll be able to add something like this:

Code: Select all

					<dt>&nbsp;</dt> <dd><a href="http://mydatingsite.tld/member.php?id={DATING_ID}"><strong>{L_DATING_PROFILE}</strong></a></dd>
it's for prosilver based templates

I hope you understand what you must change here for your site.
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

Re: add link in profile

Post by techker » Mon Feb 22, 2010 9:03 pm

nice thx for the details.i will look in to it and keep you posted.

techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

Re: add link in profile

Post by techker » Mon Feb 22, 2010 9:42 pm

the end part does not show?last step..edited the template but even when i refresh it does not show..

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: add link in profile

Post by m157y » Mon Feb 22, 2010 9:44 pm

Can you show your changes at viewprofile template(added line +/- 15 lines)?
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

techker
Registered User
Posts: 136
Joined: Fri Nov 21, 2003 7:31 pm

Re: add link in profile

Post by techker » Tue Feb 23, 2010 1:19 pm

just a stupid question..i have a folder called styles and d a folder templates?whats the one to edit?lol

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: add link in profile

Post by m157y » Tue Feb 23, 2010 3:56 pm

styles/style_name/template/template_file_name.html
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

Locked

Return to “[3.0.x] MOD Writers Discussion”