vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Social Group and Album Enhancements - Add Twitter to vBSEO Social Bookmarking (https://vborg.vbsupport.ru/showthread.php?t=238554)

crazyace 03-17-2010 10:00 PM

Add Twitter to vBSEO Social Bookmarking
 
1 Attachment(s)
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
    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:
Code:

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:
Code:

                                                <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:
Code:

                <!--VBSEO_BOOKMARKS-->

Legacy Postbit

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

Search for:
Code:

                                <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:
Code:

                <!--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

Quote:

Originally Posted by ps2wiz (Post 2006078)
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

Quote:

Originally Posted by AzzidReign (Post 2006242)
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-...marking-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

Quote:

Originally Posted by TroyTrojansFan (Post 2006760)
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

Quote:

Originally Posted by TroyTrojansFan (Post 2006760)
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

Quote:

Originally Posted by TroyTrojansFan (Post 2007337)
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

Quote:

Originally Posted by Alfa1 (Post 2009102)
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


All times are GMT. The time now is 05:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02239 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete