PDA

View Full Version : Profile Enhancements - Show extra social networks to your Instant Messaging/Send Message and Postbit


utahraves
10-08-2009, 10:00 PM
Please look at the screen shots for more details.


Let me know if there are any problems. I tried to do this from memory as I did this a long time ago and overwrote the script, so I decided to re-do it and post it so I wouldn't forget :). I don't know how to automatically do this kind of thing with a plugin, so it is ALL manual updates to your files/templates.


Version Info:
1.0 - Initial Release
1.1 - Fixed the missing </if> and the tutorial to point to the right template.
1.2 - Added Last.FM and YouTube.

ShawneyJ
10-09-2009, 01:53 AM
wow this looks good, will test it now thanks.

graham_w
10-09-2009, 02:05 AM
Nice work. Hopefully someone can give you a hand to make it all auto so you only have to add the product :)

ShawneyJ
10-09-2009, 02:20 AM
im stuck :D what template am i looking for here, please see attachment?
it says in template memberinfo_block_contactinfo but i cant find any of that code.

XtremeOffroad
10-09-2009, 02:24 AM
Great idea, I'll watch this for updates.
Thanks

ShawneyJ
10-09-2009, 02:37 AM
ah great, utahraves is offline. its not the type of hack just to want to come back to and continue the next day lol.
there has to be something wrong with the instructions.
step 1, 2, and 3 is done. but template name is missing between step 3 and 4!
anyone know the name of the template in my attachment? thanks ;)

EDIT: maybe it is template memberinfo_block_contactinfo, i just cant find the code thats in the instructions.

utahraves
10-09-2009, 04:24 AM
Oops, its on memberinfo I believe. I'm not home so I'm not sure. Ill see if I can find a laptop and look

ShawneyJ
10-09-2009, 04:32 AM
Oops, its on memberinfo I believe. I'm not home so I'm not sure. Ill see if I can find a laptop and look

yep your right ;) its memberinfo template thanks.

also im not sure but at the end of

<if condition="$userinfo['field8']">
<li class="vbmenu_option"><img src="$stylevar[imgdir_misc]/twitter.gif" alt="" class="alt2 inlineimg" /> <a href="http://www.twitter.com/$userinfo[field8]" target="_blank" dir="ltr"><phrase 1="$prepared[username]">$vbphrase[visit_twitter]</phrase></a></li>

you may have missed a </if> tag

i was getting a </if> tag error and had to add it.

utahraves
10-09-2009, 04:38 AM
Haha crapola, I was nervous writing the tutorial and copy/pasting stuff. I'll add that to the list to fix.

ShawneyJ
10-09-2009, 04:47 AM
lol, good news is, it works like a charm. :D thanks m8.

redlabour
10-09-2009, 05:41 AM
Useless as long as this is not a Product. And in Fact last.FM is hardly missing.

Anyone knows a alternative as a simple Product?

utahraves
10-09-2009, 06:27 AM
I'd be happy to update this as a product if someone can point me in the right direction on how to do such a thing :p

redlabour
10-09-2009, 06:28 AM
[How-To] Walkthrough of hack development & Coding Tips (https://vborg.vbsupport.ru/showthread.php?t=213316&highlight=product)

;)

utahraves
10-09-2009, 06:32 AM
Thanks :) Looks like I have some reading to do.

redlabour
10-09-2009, 06:53 AM
;)

Any Chance to get lastFM added to your Hack?

utahraves
10-09-2009, 06:55 AM
I can probably do that. It doesn't seem that hard. :D

redlabour
10-09-2009, 07:23 AM
Awesome! :D

BTW - i am waiting a long Time for a solution like this. Hopefully and happy to see the final Product in Future.

And only one Request - maybe in future Versions - the best Way was if there was a Way to add other Services via AdminCP in a Formular like:


Name of Service
URL Structure to Userprofile at this Service
Icon for this Service

James Argo
10-09-2009, 06:13 PM
Looks very promising :) Tag it and wait for final release (as product xml import I hope) :)

Mihalis
10-12-2009, 02:01 PM
There is one problem with this mod. If the user has not filled any other communication fields (like skype, AIM etc.) you don't get the icons in postbit or postbit legacy.

Kimberley
10-12-2009, 03:15 PM
anyone tested this on vb 3.7.3 version? if so does it work please

choccyclaire
10-12-2009, 07:45 PM
Can you add youtube as well. :)

redlabour
10-15-2009, 10:50 AM
Seems this Mod is dead. :(

ravelink69
10-17-2009, 09:31 PM
step 2 says create a phrase :

STEP 2: Create 3 phrases titled visit_myspace, visit_facebook, visit_twitter
Each phrase should correspond with the service in question:

ive never had to do this that i remember, can someone point me in the right direction on how to make phrases and where?

ravelink69
10-18-2009, 05:26 PM
i did all this and i cant seem to get it to work...

and nevermind on the phrase thing, i see now that i had to switch over to the admincp of vbulletin and not my server.

Brandon Sheley
10-18-2009, 06:16 PM
nice mod
I'll be adding this one soon
/me clicks install

FTG STRYKER FG
10-20-2009, 11:24 PM
Nice, worked as stated.

Only problem (and its nothing big) is that my postbit icons are not showing up next to the rest of them. They are 1 line down.

Oh, and they are not showing up on the member list even thought I have it turned on to show in the member list and to be searchable in the member list. Weird. But your instructions don't talk about that. Any ideas?

utahraves
10-22-2009, 05:07 AM
Sorry for delays, I've been busy IRL :P

There is one problem with this mod. If the user has not filled any other communication fields (like skype, AIM etc.) you don't get the icons in postbit or postbit legacy.
When editing the file that you have to reupload to your server, that helps you define WHAT is going to show, depending on what is on the list. It's the one with OR commands in it.
Seems this Mod is dead. :(
Not dead, just busy.
step 2 says create a phrase :

STEP 2: Create 3 phrases titled visit_myspace, visit_facebook, visit_twitter
Each phrase should correspond with the service in question:

ive never had to do this that i remember, can someone point me in the right direction on how to make phrases and where?
Phrases is done in the Admincp
i did all this and i cant seem to get it to work...

and nevermind on the phrase thing, i see now that i had to switch over to the admincp of vbulletin and not my server.
What version are you using?
Nice, worked as stated.

Only problem (and its nothing big) is that my postbit icons are not showing up next to the rest of them. They are 1 line down.

Oh, and they are not showing up on the member list even thought I have it turned on to show in the member list and to be searchable in the member list. Weird. But your instructions don't talk about that. Any ideas?
If they're not showing up RIGHT next to the ones you have in your postbit, you will need to go back into your code and make sure there aren't any additional <BR /> or <BR> or line breaks in the code next to where you added the code for the buttons in the postbit. I haven't written it far enough for them to show up in the member list (mostly because I don't use the default member list).


I saw a request for YouTube and one for Last.FM.
I've been so busy I haven't been able to get working on an automatic one (such as the product import). I'll go ahead and upload instructions here in a few to add YouTube and Last.FM using this method that I've provided.

utahraves
10-22-2009, 05:36 AM
Uploaded 1.2 - Last.FM and YouTube added into the code.

If you don't want one of the features (such as YouTube or Last.FM) it should be easy for you to NOT put that part of the code into vBulletin :)

ravelink69
10-22-2009, 08:28 PM
im using version 3.8.1

choccyclaire
12-17-2009, 01:41 AM
How do you stop the icon from showing up in the postbit for guests much like how the default instant messaging icons don't show unless you register.

I just stuck in a if member condition for now.

redlabour
12-20-2009, 06:26 PM
VZ Group is hardly missed.

Raptor
12-21-2009, 02:00 AM
everything works for me except the drop down on the postbit

no links or icons showing. i've followed instructions to the letter

vb3.8.4 pl1

tried on both default and custom skin.

Raptor
12-21-2009, 02:16 AM
also I have no images at all on my drop down menu (not even mail icons next to the send email to...) - not even on my default skin - I do see img src.. code in memberinfo template tho - any clue as to why there is no icons showing ?

Raptor
12-21-2009, 04:02 AM
all the instructions are messed up (postbit) twitter is mentioned 3 times and IF conditions are missing

mattpist
12-27-2009, 07:54 AM
this is an okay hack, but your code in the howto.html is missing a few items.

first, this:

STEP 5: Open template POSTBIT

Find:

$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

Add next to:

<if condition="$post[field5]">
<a href ="http://www.myspace.com/$post[field5]"target="_blank"><img src ="$stylevar[imgdir_misc]/myspace.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_myspace]"</phrase>></a>
</if>
<if condition="$post[field7]">
<a href ="http://www.facebook.com/$post[field7]"target="_blank"><img src ="$stylevar[imgdir_misc]/facebook.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_facebook]"</phrase>></a>
</if><if condition="$post[field8]">
<a href ="http://www.twitter.com/$post[field8]"target="_blank"><img src ="$stylevar[imgdir_misc]/twitter.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_twitter]"</phrase>></a>
</if>
<a href ="http://www.twitter.com/$post[field9]"target="_blank"><img src ="$stylevar[imgdir_misc]/youtube.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_youtube]"</phrase>></a>
</if>
<a href ="http://www.twitter.com/$post[field10]"target="_blank"><img src ="$stylevar[imgdir_misc]/lastfm.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_lastfm]"</phrase>></a>
</if>


should be (changes bolded):

<if condition="$post[field15]">
<a href ="http://www.myspace.com/$post[field15]"target="_blank"><img src ="$stylevar[imgdir_misc]/myspace.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_myspace]"</phrase>></a>
</if>
<if condition="$post[field16]">
<a href ="http://www.facebook.com/$post[field16]"target="_blank"><img src ="$stylevar[imgdir_misc]/facebook.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_facebook]"</phrase>></a>
</if><if condition="$post[field17]">
<a href ="http://www.twitter.com/$post[field17]"target="_blank"><img src ="$stylevar[imgdir_misc]/twitter.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_twitter]"</phrase>></a>
</if><if condition="$post[field19]">
<a href ="http://www.youtube.com/user/$post[field19]"target="_blank"><img src ="$stylevar[imgdir_misc]/youtube.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_youtube]"</phrase>></a>
</if><if condition="$post[field20]">
<a href ="http://www.last.fm/user/$post[field20]"target="_blank"><img src ="$stylevar[imgdir_misc]/lastfm.gif"border="0"<phrase 1="$post[username]">alt="$vbphrase[visit_lastfm]"</phrase>></a>
</if>

also, i added flickr to my list as well, which wasn't hard, just followed your instructions over again changing the details slightly.

also, the icons at this site (http://www.komodomedia.com/blog/2009/06/social-network-icon-pack/) are a lot nicer! you should use those!

Kavadas
02-25-2010, 01:15 AM
Wow, yeah, definitely might wanna revise that install doc. My drop down menu also doesn't work.

utahraves
03-29-2010, 11:52 PM
I can no longer support this as my board is now a 4.0 series and not a 3.8. Anyone who wants to republish this with their own name can do so as long as they include my name in their thread.