XMB Forum Software

[Resolved] Change 'Yahoo', 'MSN' profile options to 'Facebook', 'Twitter' etc?

annabelle sucks - 6-21-2014 at 10:39 AM

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 ^_^ :heart:

lottos - 6-21-2014 at 01:24 PM

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 - 6-21-2014 at 05:15 PM

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 - 6-21-2014 at 10:05 PM

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 - 6-22-2014 at 01:27 PM

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 231 times

Attachment: memcp_profile.txt (9kB)
This file has been downloaded 204 times

Attachment: viewthread_post_yahoo.txt (224B)
This file has been downloaded 193 times

lottos - 6-22-2014 at 10:36 PM

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 - 6-23-2014 at 04:17 PM

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 202 times

Attachment: memcp_profile.txt (9kB)
This file has been downloaded 217 times

Attachment: member_profile.txt (4kB)
This file has been downloaded 237 times

annabelle sucks - 6-25-2014 at 06:32 PM

Never mind! I figured it out and it's working :) Thank you for your help lottos!

lottos - 6-25-2014 at 10:00 PM

Quote: Originally posted by annabelle sucks  
Never mind! I figured it out and it's working :) Thank you for your help lottos!


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 - 6-26-2014 at 12:37 PM

:) nice work!

Mouser - 6-30-2014 at 04:53 PM

I posted something like a long time ago. It will add all kinds of input fields. You can add/remove as required.

Because a series are added here at once, you'll see what you have t do to add more.

http://www.xmbforum2.com/hacks/contact-information.txt