Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Add Twitter to vBSEO Social Bookmarking Details »»
Add Twitter to vBSEO Social Bookmarking
Version: 1.1, by crazyace crazyace is offline
Developer Last Online: Sep 2012 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 4.0.2 Rating:
Released: 03-17-2010 Last Update: 03-17-2010 Installs: 17
Template Edits
Re-useable Code Translations  
No support by the author.

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.

Download Now

File Type: zip Add_Twitter_to_vBSEO_1.1.zip (7.2 KB, 131 views)

Screenshots

File Type: png default area.PNG (5.0 KB, 0 views)
File Type: png twitter in postbit.PNG (19.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-18-2010, 02:44 PM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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.
Reply With Quote
  #3  
Old 03-18-2010, 04:20 PM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forums are now working. I have the files uploaded.
Reply With Quote
  #4  
Old 03-18-2010, 08:49 PM
ps2wiz ps2wiz is offline
 
Join Date: Apr 2005
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #5  
Old 03-18-2010, 08:57 PM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ps2wiz View Post
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
Reply With Quote
  #6  
Old 03-19-2010, 02:51 AM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff...did you post this on vbseo's site?
Reply With Quote
  #7  
Old 03-19-2010, 04:26 AM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AzzidReign View Post
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/
Reply With Quote
  #8  
Old 03-19-2010, 10:06 PM
TroyTrojansFan TroyTrojansFan is offline
 
Join Date: Dec 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 03-19-2010, 10:58 PM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TroyTrojansFan View Post
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?
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.
Reply With Quote
  #10  
Old 03-19-2010, 11:59 PM
crazyace crazyace is offline
 
Join Date: Oct 2009
Location: Nashville TN
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TroyTrojansFan View Post
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?
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:12 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.04861 seconds
  • Memory Usage 2,327KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete