PDA

View Full Version : Social Group and Album Enhancements - Add Twitter to vBSEO Social Bookmarking


crazyace
03-17-2010, 10:00 PM
If you use vBSEO and want to add Twitter to your Social Bookmarking area, then this is for you.


Upload files to your forum root
Open vBSEO and go to Other Enhancements>> Social Bookmarking
Put a check in add custom
Add this code http://twitter.com/home/?status=Check+this+out+%url%,images/vbseo/twitter.png,Share on Twitter,Share on Twitter

Now you should see your twitter icon listed with your other Social Bookmarking icons.

You can change "Check This Out" to what ever you want. But make sure you use +'s for the spaces. Using %20's will not work. Make sure to never use http://www.twitter.com/ - This will not work. You will need to always use http://twitter.com - For some reason twitter doesn't want you to use the www address. Now this will work fine if you're all ready logged in. But for people that are not logged in, it will not work well at all.

If you would like to add a "&" symbol you will need to use +%26 in order to have it added. So here is an example:
http://twitter.com/home/?status=Read+26%+Share+%url%,images/vbseo/twitter.png,Share on Twitter,Share on Twitter


If you would like to have your vBSEO Social Bookmarks in the postbit like mine here is what you will need to do.


vB4 Post Bit

Here is how to locate the postbit template to edit:

AdminCP>> Styles & Templates>> Style Manager>> Edit Templates>> Postbit Templates>> postbit

Search for: <div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>

After Add: <!--VBSEO_BOOKMARKS-->


Legacy Postbit

AdminCP>> Styles & Templates>> Style Manager>> Edit Templates>> Postbit Templates>> postbit_legacy

Search for: <div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>

After Add: <!--VBSEO_BOOKMARKS-->


Now save and you should be good to go.


NOTE: If you don't have vBSEO RC2 installed you will get an added "$post[postid]" on the end of your shared twitter posts. This is a bug in RC1. Instead of giving you a #post123 you get #post$post[postid]. So to fix just update to RC2.

crazyace
03-18-2010, 02:44 PM
*Update 1.1
I found that the images should be 20x20 and not 16x16. That's why the image would hang down a bit. With the updated image it is now in-line with the other bookmark icons.

crazyace
03-18-2010, 04:20 PM
Forums are now working. I have the files uploaded.

ps2wiz
03-18-2010, 08:49 PM
Thanks!

crazyace
03-18-2010, 08:57 PM
Thanks!

You're very welcome. I plan on working on changing the code a bit to see what other results I can get from it. That way I can try to improve it even more. Any feedback would be great :D

AzzidReign
03-19-2010, 02:51 AM
Great stuff...did you post this on vbseo's site?

crazyace
03-19-2010, 04:26 AM
Great stuff...did you post this on vbseo's site?

Yeah that was the whole reason I set out to try and fix this issue. I was googling about twitter stuff when I found the posts from people on vBSEO asking for this. So I did it :-)

Heres the link, but it has less info than here - http://www.vbseo.com/f4/add-twitter-vbseo-social-bookmarking-41945/

TroyTrojansFan
03-19-2010, 10:06 PM
The hack works nice. :) Thank you and good job. :)

However, one small complaint and I apologize if you have already addressed this and I didn't recognize it, but on my twitter post using the twitter icon in vbseo, my URLl listed in the twitter post is:

http://www.raptureforums.com/forum/prophecy-end-times-chat/33399-there-hope-fearful-world.html#post$post[postid]

Is that "post$post[postid] supposed to be there? :confused:

crazyace
03-19-2010, 10:58 PM
The hack works nice. :) Thank you and good job. :)

However, one small complaint and I apologize if you have already addressed this and I didn't recognize it, but on my twitter post using the twitter icon in vbseo, my URLl listed in the twitter post is:

http://www.raptureforums.com/forum/prophecy-end-times-chat/33399-there-hope-fearful-world.html#post$post[postid]

Is that "post$post[postid] supposed to be there? :confused:

You're very welcome. No that shouldn't be in the posts. Out of all the testing that I have done, I didn't have that issue with 3 different sites. I'm not sure as to why it would pull that into the link. I will try some different settings and see what I can come up with.

crazyace
03-19-2010, 11:59 PM
The hack works nice. :) Thank you and good job. :)

However, one small complaint and I apologize if you have already addressed this and I didn't recognize it, but on my twitter post using the twitter icon in vbseo, my URLl listed in the twitter post is:

http://www.raptureforums.com/forum/prophecy-end-times-chat/33399-there-hope-fearful-world.html#post$post[postid]

Is that "post$post[postid] supposed to be there? :confused:

Out of the testing that I just got done doing, I noticed that only "#post158" should be at the end of it. The number at the end will be what ever the post number is. So getting, the $post[postid] makes me think that something is wrong with vBSEO or its settings. It's possible that another mod is causing the issue.

But that's odd, is that it still works even with that odd code at the end of the link.

TroyTrojansFan
03-20-2010, 12:39 AM
Well, I am using mrpaint's post to twitter on threads. That might be the problem? But like we mentioned, the mod is still working. :D

crazyace
03-20-2010, 01:16 AM
Troy, I see that you are still using vBSEO RC1. Try upgrading to RC2 and see if that helps. I know they fixed a lot of bugs in RC2.

TroyTrojansFan
03-21-2010, 01:30 AM
I installed vbSEO RC2 and that fixed the problem. :up: Great job on the mod, it works great and just as expected. :up:

Brandon Sheley
03-21-2010, 01:56 AM
thanks for this, ill add it shortly :)

crazyace
03-23-2010, 02:10 AM
I installed vbSEO RC2 and that fixed the problem. :up: Great job on the mod, it works great and just as expected. :up:

You're very welcome. I'm happy that I was able to help you get it fixed :-)

Alfa1
03-24-2010, 12:44 AM
Is it possible to add this to vbulletins social bookmarking?

crazyace
03-24-2010, 01:44 PM
Is it possible to add this to vbulletins social bookmarking?
It may be. But I don't think that the URL will work the same way. The vBSEO 3.5 RC2 is processing the URL to make it work. I'll check into this and see what I can come up with :)

woffie
03-24-2010, 08:33 PM
Real nice!

trackpads
04-19-2010, 02:18 AM
Thanks! Installed