View Full Version : Mini Mods - Myspace button in postbit
Bratz-Designs
03-16-2007, 10:00 PM
Hey all,
This small modification will add a small button to your postbit. This small modifications will put a button in the postbit to the Myspace page of the user.
Bratzer
1. Make a profile field
Profile field type = Single-line text box
Title: Myspace account
Description: Type your Myspace ID.
You can leave the rest to default.
**Note down the number of the field! Example: field16. You need to replace the X in the next code with the number!**
2. Template changes - In postbit_lecacy & Postbit
Find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After ad:
<!-- Myspace start -->
<if condition="$post[fieldX]"><a href="http://www.myspace.com/$post[fieldx]" alt="View my myspace" target="_blank">
<img src="images/misc/myspace.gif" border="0"></a>
</if>
<!-- Myspace end -->
3. Button upload
Upload it in your: images/misc folder!
Bratzer
http://www.bratz-designs.com
Currently i am working to get this integrated with the messenger fields, when this is updated you will hear from me asap!!
anywares
03-17-2007, 09:46 AM
~reserve & installed
ericgray
03-17-2007, 10:53 PM
i think i did it right, replacing the two variable "X"s with values "8"s, and can't see it -- :(
Bratz-Designs
03-18-2007, 08:12 AM
- Did you upload the banner to the correct path?
- Did do this modification both in the postbit and postbit_lecacy template?
Mark
ericgray
03-18-2007, 07:59 PM
my bad -- i didn't see to update BOTH templates -- was doing only one --
thanks -- works great!
eric
tigerroar
03-19-2007, 06:18 PM
OK, I've kind of got this working but when I click on my icon it just takes me to the myspace homepage and not to my profile. I've edited $post[fieldx] to $post[field6] to match my myspace prodile name but it still isn't working .
Any ideas?
Bratz-Designs
03-19-2007, 07:55 PM
There are 2 $post[fieldx]'s did you edit both of them? :)
tigerroar
03-20-2007, 11:45 AM
There are 2 $post[fieldx]'s did you edit both of them? :)Doh!
Thanks for that mate, corrected now and working fine.
Would this be easy to do for other sites like Bebo too??
tigerroar
03-20-2007, 05:27 PM
More of my members have Bebo pages so I altered the original code a little and got it working for Bebo too. I hope thats ok with the original author :up:
<!-- Bebo start -->
<if condition="$post[fieldX]"><a href="http://$post[fieldx].bebo.com" alt="View my Bebo" target="_blank">
<img src="images/misc/bebo.gif" border="0"></a>
</if>
<!-- Bebo end -->
Bratz-Designs
03-20-2007, 06:21 PM
More of my members have Bebo pages so I altered the original code a little and got it working for Bebo too. I hope thats ok with the original author :up:
<!-- Bebo start -->
<if condition="$post[fieldX]"><a href="http://$post[fieldx].bebo.com" alt="View my Bebo" target="_blank">
<img src="images/misc/bebo.gif" border="0"></a>
</if>
<!-- Bebo end -->
No problem, mind if i release it?
tigerroar
03-21-2007, 01:52 PM
Be my guest :)
tigerroar
03-21-2007, 01:54 PM
This is the graphic I use for it...
ZomgStuff
03-21-2007, 08:58 PM
You should of at least edited yours so the color would match your background.
danward
03-23-2007, 10:25 AM
Nice mod! :) Thanks!
dholt
03-23-2007, 11:25 AM
Is there a way to add this to the Instant Messaging field and not the Additional Information field.
danny75
03-23-2007, 11:28 AM
^^ yes
works dope
www.whoyoureppin.com
perfect for music sites thanks man
dholt
03-24-2007, 03:21 PM
Is there a way to add this to the Instant Messaging field and not the Additional Information field.
AdminCP -> Styles & Templates -> Style Manager -> (pick your style) -> Edit Templates -> User Profile Templates -> MEMBERINFO
here is the part of that template that I think were something is suppose to be added
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
</table>
</div>
<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['textimicons']">
<if condition="$userinfo['showicq']">
<tr>
<td>$vbphrase[icq]</td>
<td>$userinfo[icq]</td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$vbphrase[aim]</td>
<td>$userinfo[aim]</td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$vbphrase[msn]</td>
<td>$userinfo[msn]</td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$vbphrase[yahoo]</td>
<td>$userinfo[yahoo]</td>
</tr>
</if>
<if condition="$userinfo['skype']">
<tr>
<td>$vbphrase[skype]</td>
<td>$userinfo[skype]</td>
</tr>
</if>
<else />
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
</tr>
</if>
<if condition="$userinfo['showskype']">
<tr>
<td>$userinfo[skypeicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
</tr>
</if>
</if>
</table>
</fieldset>
</if>
</div>
</div>
</td>
</tr>
<tr>
any help with this:eek:
Bratz-Designs
03-25-2007, 11:02 AM
Is there a way to add this to the Instant Messaging field and not the Additional Information field.
I am not sure, but ill try to find it. (You mean in edit profile right?)
dholt
03-25-2007, 11:36 AM
Yes
User cp/Edit Profile/Optional Information - All information will be viewable by other forum members. scroll down too Instant Messaging and you will see.
You may enter your registered identity for the instant messaging networks if you would like other visitors to be able to contact you using that medium.
ICQ Number
AIM Screen Name
MSN Messenger Handle
Yahoo! Messenger Handle
Skype Name
There is a template called instant messaging template as there are four temlates thast look like this
im_send_aim
im_send_MSN
im_send_Yahoo
im_send_Skype
im_send_myspace maybe add a new template
and add something like this but not sure if I'm on the right path here. also I'm not sure what I need to change for it to show up
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
<span class="smallfont" style="float:$stylevar[right]"><a href="#" onclick="self.close()">$vbphrase[close_this_window]</a></span>
$vbphrase[aim]
</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
<div class="fieldset">
<img src="$stylevar[imgdir_misc]/im_aim.gif" alt="" />
<phrase 1="member.php?$session[sessionurl]u=$userinfo[userid]" 2="$userinfo[username]">$vbphrase[send_message_via_aim_to_x_link]</phrase> (<strong dir="ltr">$userinfo[aim]</strong>)
</div>
<div class="fieldset"><a href="aim:addbuddy?screenname=$userinfo[aim_link]"><phrase 1="$userinfo[aim]">$vbphrase[add_x_to_your_contact_list]</phrase></a></div>
<div class="fieldset"><a href="aim:goim?screenname=$userinfo[aim_link]&message=$vbphrase[aim_hi_are_you_there]"><phrase 1="$userinfo[aim]">$vbphrase[send_x_a_message]</phrase></a></div>
<div class="fieldset">
$vbphrase[these_functions_require_aim]
</div>
</div>
</div>
</td>
</tr>
</table>
Then edit the MEMBERINFO Template and add something after one of these.
<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['textimicons']">
<if condition="$userinfo['showicq']">
<tr>
<td>$vbphrase[icq]</td>
<td>$userinfo[icq]</td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$vbphrase[aim]</td>
<td>$userinfo[aim]</td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$vbphrase[msn]</td>
<td>$userinfo[msn]</td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$vbphrase[yahoo]</td>
<td>$userinfo[yahoo]</td>
</tr>
</if>
<if condition="$userinfo['skype']">
<tr>
<td>$vbphrase[skype]</td>
<td>$userinfo[skype]</td>
</tr>
</if>
<else />
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
</tr>
</if>
<if condition="$userinfo['showskype']">
<tr>
<td>$userinfo[skypeicon]</td>
<td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
</tr>
</if>
</if>
</table>
</fieldset>
</if>
</div>
</div>
</td>
</tr>
<tr>
Could use some help on this but it just seems like a better way and may look better
gobears20
03-25-2007, 04:41 PM
I am also wondering a way to get this in the Instant Messaging field. I added it as a profle field, but what is the best way to add this to the Instant Messaging field?
Thanks!
dholt
03-26-2007, 10:16 AM
I don't think this mod is supported as I have waited days for a response and nothing.
Bratz-Designs
03-27-2007, 02:46 PM
I don't think this mod is supported as I have waited days for a response and nothing.
"I am not sure, but ill try to find it. (You mean in edit profile right?)"
I am working on it.
dholt
03-27-2007, 10:16 PM
Yes, thank you so much i hope you can figure it out how to add it with the rest of the yahoo,msn,skyp and so on. Thanks
The Bish
04-04-2007, 05:45 AM
Installed!
Thank you for this!
sunnycher
04-04-2007, 10:17 AM
Thank you! Works great with 3.6.4
Dr.NoTime
04-04-2007, 03:00 PM
Nice! Works great. Thanks.
skooby
04-11-2007, 11:35 PM
Nice job :)
sunnycher
04-12-2007, 12:19 AM
I have one problem, when someone clicks on the little icon, it takes them to myspace.com but not 'my' space on myspace.com
is there something I'm missing here?
Thanks :)
auctionguy
04-15-2007, 06:54 AM
Installed! I love this hack!! Awsome for linking!!
USAMustangs.com
04-17-2007, 09:58 PM
cool hack.
however, i too would really like to know how to integrate this into the instant message section in edit profile.
that would make it look OEM sort of speak.
rjteeter
04-17-2007, 10:35 PM
postbit_lecacy & Postbit
Im sorry, im very new to VB. Do these have to be edited through the ACP?
Bratz-Designs
04-20-2007, 12:37 PM
postbit_lecacy & Postbit
Im sorry, im very new to VB. Do these have to be edited through the ACP?
Yes in the admincp -> Styles & Templates -> Edit templates
DieselMinded
05-08-2007, 03:51 AM
PERFECT !
Clicks Installed
DieselMinded
05-08-2007, 04:02 AM
Can you do this https://vborg.vbsupport.ru/showthread.php?t=146709
basilrath
05-08-2007, 12:31 PM
dont know if this hasbeen mentioned but the icon wont appear if members dont fill out a msn addy etc ...........in other words it dosnt create the field on its own, but as soon as you add a msn addy it appears etc...................just a thought
DieselMinded
05-08-2007, 01:08 PM
Thats the way it should be , If it showed up all the time then members would be clicking dead Myspace buttons and would quit even trying to use it , I dont want the icon there for members who dont have a myspace ,
The Only Tweak would be to show the icon when viewing profile or atleast hyperlink the number
Aimee1969
05-11-2007, 02:03 PM
1. Make a profile field
How do you do this...I'm totally new at this stuff??
Aimee1969
05-11-2007, 03:35 PM
I figured it out....I like this ;)
Shelly
05-17-2007, 05:07 AM
very nice, most all of my members have a myspace acct that they seem to always want to advertise, this makes it so much easier for them
dope15gd
05-24-2007, 08:06 PM
Just checking in to see how getting it integrated into the messenger fields is going.
It's working great for me the way it is :)
thenewuser
06-20-2007, 11:04 AM
well done :)
713JunctionP
06-27-2007, 02:17 AM
great idea! thanks!
wickedstangs
07-02-2007, 04:45 AM
installed on Vb 3.6.7PL1 works fine.
dirty68
07-07-2007, 08:56 AM
works great, thanks
sunnycher
09-18-2007, 12:02 AM
I installed this on 3.6.8 and it's not working for me there.
Course it didn't work on the other version either, had the icon and you could click it but it took you to myspace.com instead of "my" myspace.
sunnycher
09-18-2007, 12:13 AM
Ok scratch the last post, I finally got it working on all my styles.
Just have to make sure you check ALL the fieldx fields :)
Thank you!
sunnycher
09-18-2007, 02:35 AM
Are there any hacks/mods like this for Facebook?
momo2
09-19-2007, 02:44 PM
field x there are 2 of them, no wonder icon was showing not my space id..
Nice mod thanks..
DieselMinded
09-19-2007, 10:34 PM
NOTE you dont have to use the Number For myspace ID just use everything after the www.myspace.com/
And it works great I changed The Profile Field Definition to include these directions as many people were lost trying to find there number
jet2000
10-05-2007, 11:21 AM
my contribution:
To add full clickable myspace URL of user to Contact Info:
in memberinfo:
Find:
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
</td>
</tr>
</if>
add above:
<if condition="$userinfo[fieldX]">
<tr>
<td>
Myspace:<br />
<a href="http://myspace.com/$userinfo[fieldX]" target="_blank">http://myspace.com/$userinfo[fieldX]</a>
</td>
</tr>
</if>
fieldX being the custom field for myspace.
SLY LS1
10-14-2007, 02:07 PM
Are there any hacks/mods like this for Facebook?
I just modifided it for Facebook, see link below
https://vborg.vbsupport.ru/showthread.php?t=160214
ChU v2
10-14-2007, 10:03 PM
Here is my hack with detailed instructions on how to put it on the profile and in the postbit.
https://vborg.vbsupport.ru/showthread.php?t=160232
DieselMinded
05-09-2008, 02:45 AM
Running this mod on 3.7.0 and made face book work also and put it in new 3.7.0 Profiles
BigDog56
05-11-2008, 08:35 PM
With a little tweaking, I got this to work in 3.7 Thanks!
BucWiLd
10-15-2008, 04:23 AM
can you help us noobs get it on 3.7?
SnapOff Racing
10-27-2009, 05:30 AM
dont know if this hasbeen mentioned but the icon wont appear if members dont fill out a msn addy etc ...........in other words it dosnt create the field on its own, but as soon as you add a msn addy it appears etc...................just a thought
Thats the way it should be , If it showed up all the time then members would be clicking dead Myspace buttons and would quit even trying to use it , I dont want the icon there for members who dont have a myspace ,
The Only Tweak would be to show the icon when viewing profile or atleast hyperlink the number
No he's right and your misunderstanding what he is saying.
If a user doesn't have an MSN or Yahoo listed in their profile, then the MySpace button WILL NOT SHOW UP regardless if they have any info listed in their myspace field or not. So let's say a user has listed info in their myspace field but they haven't listed a yahoo or msn etc, then the myspace button will not show up. Like basilrath said the field doesn't get created.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.