annabelle sucks
Member
Posts: 16
Registered: 6-19-2014
Member Is Offline
Mood: Nerdy
|
|
[Resolved] Change 'Yahoo', 'MSN' profile options to 'Facebook', 'Twitter' etc?
Full Board URL: http://mb.perfectdenial.org
XMB Version: 1.9.11
I'm wondering if it would be possible to change the email inputs for yahoo and msn to Facebook URLs/twitter handles? I've had a look around the
templates, but I can't seem to figure out which areas to edit. :/ Any ideas?
Thank you ^_^
|
|
lottos
Administrator
Posts: 479
Registered: 6-3-2002
Member Is Offline
Mood: pass me a TimTam
|
|
memcp_profile template
look for
<tr class="tablerow">
<td bgcolor="$altbg1" width="22%">$lang[textyahoo]</td>
<td bgcolor="$altbg2"><input type="text" name="newyahoo" size="25" value="$member[yahoo]" /></td>
</tr>
<tr class="tablerow">
<td bgcolor="$altbg1" width="22%">$lang[textmsn]</td>
<td bgcolor="$altbg2"><input type="text" name="newmsn" size="25" value="$member[msn]"/></td>
</tr>
and either hard code change for example $lang[textyahoo] to Facebook
or add $lang[textfacebook] to the lang file then change template $lang[textyahoo] to $lang[textfacebook]
Beck up template and any files before changing.
|
|
annabelle sucks
Member
Posts: 16
Registered: 6-19-2014
Member Is Offline
Mood: Nerdy
|
|
Thank you, I've changed the lang files and updates the [textyahoo] to [textfacebook] - but it doesn't seem to be appearing in the member profile, or
at the bottom of a users post. Are there any more templates which I need to edit?
|
|
lottos
Administrator
Posts: 479
Registered: 6-3-2002
Member Is Offline
Mood: pass me a TimTam
|
|
viewthread_post_yahoo template - you will need to create an image for facebook and change it accordingly in the template along with changes from yahoo
to facebook. change http://profiles.yahoo.com/$post[yahoo] to https://facebook.com/$post[yahoo] and lang['textyahoo'] and yahoo.gif...
<a href="http://profiles.yahoo.com/$post[yahoo]" onclick="window.open(this.href); return false;" title="{$lang['textyahoo']}"><img
src="$imgdir/yahoo.gif" alt="" border="0" /></a>
member_profile template - needs changes for seeing the new facebook/twitter data in the member profile
|
|
annabelle sucks
Member
Posts: 16
Registered: 6-19-2014
Member Is Offline
Mood: Nerdy
|
|
Hmm, I've changed the 'yahoo' to 'facebook' in the templates you've mentioned, but it hasn't made a difference it seems, I've also uploaded a
facebook.gif to the image directory.
I've attatched .txt files of the templates mentioned including my edits in them incase it helps.
Thank you
Attachment: member_profile.txt (4kB) This file has been downloaded 263 times
Attachment: memcp_profile.txt (9kB) This file has been downloaded 232 times
Attachment: viewthread_post_yahoo.txt (224B) This file has been downloaded 220 times
|
|
lottos
Administrator
Posts: 479
Registered: 6-3-2002
Member Is Offline
Mood: pass me a TimTam
|
|
Remember you are not changing the database reference to yahoo, only the description, so this line for example in member_profile should retain what was
originally there:
<td bgcolor="$altbg2"><a href="http://facebook.com/{$memberinfo['yahoorecode']}" onclick="window.open(this.href); return
false;">{$memberinfo['yahoo']}</a></td>
|
|
annabelle sucks
Member
Posts: 16
Registered: 6-19-2014
Member Is Offline
Mood: Nerdy
|
|
Ah I see, so I should keep the $memberinfo['yahoorecode'] and $memberinfo['yahoo'] areas the same?
I've attached updated .txt files also.
Attachment: viewthread_post_yahoo.txt (221B) This file has been downloaded 229 times
Attachment: memcp_profile.txt (9kB) This file has been downloaded 245 times
Attachment: member_profile.txt (4kB) This file has been downloaded 263 times
|
|
annabelle sucks
Member
Posts: 16
Registered: 6-19-2014
Member Is Offline
Mood: Nerdy
|
|
Never mind! I figured it out and it's working Thank you for your help lottos!
|
|
lottos
Administrator
Posts: 479
Registered: 6-3-2002
Member Is Offline
Mood: pass me a TimTam
|
|
You're very welcome - I knew you would be able to do it with the clues!
One more hint - the viewthread.php, look for the yahoo and msn stuff and change the onmouse over to reflect the new social media as the current ones
show the old onmouse overs.
|
|
lottos
Administrator
Posts: 479
Registered: 6-3-2002
Member Is Offline
Mood: pass me a TimTam
|
|
nice work!
|
|
Mouser
XMB Contributor
Posts: 202
Registered: 4-14-2008
Member Is Offline
Mood: Christmasy. Yes, in September.
|
|
|
|