|
Page 1 of 1
|
Codi
Joined: July 2007
Posts: 38
Location:
|
Profile Field For Other Social Networks
I want to add two new profile fields (Facebook and Orkut, social networks), in a way that they show on the bottom line of each post.
Can anybody help me with that?
Thanks.
|
#1 Thu 30 Dec, 2010 21:49 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
mort
Spam Basher
Joined: August 2010
Posts: 998
Location: Up a tree
|
Re: Profile Field For Other Social Networks
You're really pushing your luck for support by using an "Old" version of Icy Phoenix.
This may be of some help.
http://www.icyphoenix.com/viewtopic.php?p=30202#p30202
It would probably be better if you experimented with the latest available public version of Icy Phoenix, as many people usually don't give support for older versions of anything?
|
#2 Thu 30 Dec, 2010 22:40 |
|
Codi
Joined: July 2007
Posts: 38
Location:
|
Re: Profile Field For Other Social Networks
I think that there isn't much difference between more up-to-date versions for doing what I wanna do. But of course I can be wrong.
My idea is to duplicate one of the existing fields and just change it's name and image. The problem is that I don't know what files have the iformation of these fixed profile fields. If I had it, I guess it'd b solved.
I know I'll probably have to add the fields in the user_cp_register.php and in the admin_cp_register.php (those are the only relevant files having the words "skype" and "aim" for example that I could find with the lame Windows folder search) but I know they are not the only ones to be changed. I'll have to add the information in the user file too, and the topic file, and the user view file, and so on. Has anybody ever managed to do what I'm trying to do here?
Thanks for your reply, I'll be checking the links now.
Last edited by Codi on Fri 31 Dec, 2010 03:00; edited 1 time in total |
#3 Fri 31 Dec, 2010 02:42 |
|
mort
Spam Basher
Joined: August 2010
Posts: 998
Location: Up a tree
|
Re: Profile Field For Other Social Networks
Well, You're looking at viewtopic.php - So it's a possibility that what you are looking for is in viewtopic_body.tpl
Not always the golden rule - But I think that this is the template area you need to change in viewtopic_body.tpl.
<div style="text-align:right;">
<div style="position:relative;float:left;text-align:left;">
{postrow.POSTER_ONLINE_STATUS_IMG}
{postrow.IP_IMG}
{postrow.AIM_IMG}
{postrow.ICQ_IMG}
{postrow.MSN_IMG}
{postrow.SKYPE_IMG}
{postrow.YIM_IMG}
{postrow.PROFILE_IMG}
{postrow.PM_IMG}
{postrow.EMAIL_IMG}
{postrow.WWW_IMG}
{postrow.ALBUM_IMG}
<!-- BEGIN thanks -->
{postrow.ROW_CLASS}
{postrow.thanks.L_THANKS_TEXT}: {postrow.thanks.THANKS_USERS}
<!-- END thanks -->
</div>
|
#4 Fri 31 Dec, 2010 02:55 |
|
Codi
Joined: July 2007
Posts: 38
Location:
|
Re: Profile Field For Other Social Networks
Thank you, this was a start. But like I edited above, I'll think I'll have to change the register fields too, so that the spaces can be filled with the information I need, and not just being mere copies, am I right?
Edit: For now, I'll only change the name and images of not-so-commonly-used-by-my-user fields (YahooMessenger, AIM and ICQ) to make them be the fields I want them to be (twitter, orkut and facebook). Why hadn't I thought of that before?
The only problem now is that when you click on them they still have their former functions, I mean, it's sort of useless.
I'll still appreciate it if somebody comes up with a better solution. =)
|
#5 Fri 31 Dec, 2010 03:04 |
|
mort
Spam Basher
Joined: August 2010
Posts: 998
Location: Up a tree
|
Re: Profile Field For Other Social Networks
The only problem now is that when you click on them they still have their former functions, I mean, it's sort of useless.
Of course it's useless unless you code the .php to match/include the variables for the template functions you are trying to create.
I do strongly suggest that you upgrade to the latest Icy Phoenix, because you ARE going to find it extremely different to what you are using - And you ain't doing yourself any favours by pursuing old code and template scripts.
|
#6 Fri 31 Dec, 2010 04:56 |
|
Codi
Joined: July 2007
Posts: 38
Location:
|
I do strongly suggest that you upgrade to the latest Icy Phoenix, because you ARE going to find it extremely different to what you are using - And you ain't doing yourself any favours by pursuing old code and template scripts.
If I do, will it reset all the changes I've made in the scripts and design?
Of course it's useless unless you code the .php to match/include the variables for the template functions you are trying to create.
Just point me which are these .php files, and I think I can find my way through. Thank you.
|
#7 Fri 31 Dec, 2010 05:03 |
|
mort
Spam Basher
Joined: August 2010
Posts: 998
Location: Up a tree
|
Re: Profile Field For Other Social Networks
Hardly anything is compatible between the two versions, and templates certainly are not.
Better you make a test forum with the latest - - - maybe using XAMPP on your PC to see what the differences are and how you can set your "Own" dummy upgrade prior to upgrading your live version.
I mean that IF someone was to make a MOD for this - they wouldn't waste their time making it for an older version of IP - And that's your handicap.
As for the .php files, I'm not sure if there are more than one or two involved - plus DB queries, so I'd rather not get involved with this any further.
|
#8 Fri 31 Dec, 2010 05:17 |
|
Codi
Joined: July 2007
Posts: 38
Location:
|
Re: Profile Field For Other Social Networks
I think I've found where I have to change what I nedd. It's in the usercp_viewprofile.php (Line 269)
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_blank"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" /></a>' : ' ';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_blank">' . $profiledata['user_website'] . '</a>' : ' ';
if ( !empty($profiledata['user_icq']) )
{
$icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" /></a>';
$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" /></a>';
$icq = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '">' . $lang['ICQ'] . '</a>';
}
else
{
$icq_status_img = ' ';
$icq_img = ' ';
$icq = ' ';
}
$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" /></a>' : ' ';
$aim = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : ' ';
$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="http://spaces.live.com/' . $profiledata['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" /></a>' : ' ';
$msn = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ';
$msn = $msn_img;
$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' .
$profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" /></a>' : ' ';
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
$skype_img = ( $profiledata['user_skype'] ) ? '<a href="callto://' . $profiledata['user_skype'] . '/"><img src="' . $images['icon_skype'] . '" alt="' . $lang['SKYPE'] . '" title="' . $lang['SKYPE'] . '" /></a>' : ' ';
$skype = ( $profiledata['user_skype'] ) ? '<a href="callto://' . $profiledata['user_skype'] . '/">' . $lang['SKYPE'] . '</a>' : '';
$temp_url = append_sid(SEARCH_MG . '?search_author=' . urlencode($profiledata['username']) . '&showresults=posts');
$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '" title="' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '" /></a>';
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';
// Start Advanced IP Tools Pack MOD
$encoded_ip = ( $profiledata['user_registered_ip'] == '' ) ? '' : $profiledata['user_registered_ip'];
$decoded_ip = ( decode_ip($encoded_ip) == '0.0.0.0' ) ? $lang['Not_recorded'] : decode_ip($encoded_ip);
$hostname = ( $profiledata['user_registered_hostname'] == '' ) ? $lang['Not_recorded'] : htmlspecialchars( $profiledata['user_registered_hostname'] );
I want the fields aim, yim and icq to behave just like the url one: Just as normal links (when people click on them, the address in the fields will open in another page).
Since I don't work with programming, please, somebody help here I bet it's a piece of cake for you guys who are into it.
|
#9 Fri 31 Dec, 2010 06:13 |
|
mort
Spam Basher
Joined: August 2010
Posts: 998
Location: Up a tree
|
Re: Profile Field For Other Social Networks
You'll find the same thing in viewprofile.php too
Have a look at this - It may be a start for you as it includes the DB squirts etc etc for facebook etc.
http://wannabe.contropa.com/facebook-connect-for-phpbb2/217/
|
#10 Fri 31 Dec, 2010 08:28 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: Profile Field For Other Social Networks
Mort. this mod is discontinued. It does´nt work.
due to continuos changes on FB, theres actualy no working FB connect Mod for phpBB.
they changed the code 3 o for times in the last year on FB.
I´m trying to sort an Mod out for IP, But it´s truly difficult.
____________ Out of Order
|
#11 Fri 31 Dec, 2010 09:25 |
|
mort
Spam Basher
Joined: August 2010
Posts: 998
Location: Up a tree
|
Re: Profile Field For Other Social Networks
Codi wrote: Since I don't work with programming, please, somebody help here I bet it's a piece of cake for you guys who are into it.
spydie wrote: due to continuos changes on FB, theres actualy no working FB connect Mod for phpBB.
they changed the code 3 o for times in the last year on FB.
I´m trying to sort an Mod out for IP, But it´s truly difficult.
Codi wrote:
Just point me which are these .php files, and I think I can find my way through. Thank you.
No offence - You couldn't work out the html to rationalise your forum graphics, and while you may quote bits and pieces of script that you find and suggest how "easy it should be to modify" - Consider this =
@ Codi
spydie wrote:
Mort. this mod is discontinued. It doesn't work.
I suspected that, but provided the link to show Codi that it's not as simple as he deems it to be - And why no-one is interested in going backwards when it comes to modding etc.
Codi! Now do you get my point?
Icy Phoenix has moved on, and it's time for you to spend some time catching up, rather than expect people to help you with "how it was done in the past".
|
#12 Fri 31 Dec, 2010 11:05 |
|
Codi
Joined: July 2007
Posts: 38
Location:
|
Hay, guys, thanks for all your help. I just came to say thank you, and to let you know that I have finally managed to do what I wanted.
I just still have one little problem; the links are there all right, but only the former aim works properly (going directly to the page in [user_aim]); the former yahoo message directs to the page in [user_yim], but it has my site adress before it.
This is not a big deal, I mean, I'll let my users now that all they have to do is to take out the adress of this when they are redirected to facebook.com, but that'd be even better if I could soulve this too.
But if you guys don't wanna help me with this because of the version thing, it's ok, this is not very important, anyway.
|
#13 Mon 03 Jan, 2011 01:01 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|