PDA

View Full Version : End-User Options - Engage Twitter


Zachariah
08-21-2009, 10:00 PM
# Engage Twitter v. 1.0 for vBulletin 3.7.x - 3.8x
# ----------------------------------------------------------------
# Zachariah Boren - http://www.szone.us

This adds the ability of having for each user of your board to enter their Twitter.com account.

Tested:
- vBulletin 3.7x to vBulletin 3.8.4

This hack integrates itself into: (demo links)
- AdminCP (edit a user / profile)
- user CP
- Postbit (http://www.szone.us/f6/standalone-php-shoutcast-status-5/)
- memberlist (http://www.szone.us/members/list/)
- profile block using a twitter widget (http://www.szone.us/members/zachariah-boren/)

Installation:
upload im_twitter.gif to images/misc/
import product

Settings:
User Control Panel => Your Profile => Edit Your Details
- Optional Information
-- Instant Messaging
--- Twitter ID:

****************************
Todo:
- Add options in USERCP and/or AdmincP to change hardcoded settings of
profile widget (colors, size, block location)

- Add a 2nd widget block that alows users to have custom search
queries.


PS Opps:
- I did not see
** https://vborg.vbsupport.ru/showthread.php?t=185378
I will shoot off an email to see about a merge.

Zachariah
08-22-2009, 12:26 AM
PS Opps:
- I did not see
** https://vborg.vbsupport.ru/showthread.php?t=185378
- profile block using a twitter widget

I will shoot off an email to see about a merge / expand / other.

theforumist
08-22-2009, 04:42 AM
Tagged, I'll consider adding this if I ever get around to making a twitter account. Lol.

nightbloom
08-22-2009, 05:34 AM
OMG awesome. I already have some minor Twitter integration, but this is better. GJ!

sensimilla
08-22-2009, 06:22 AM
Thanks, always some good stuff from you.

redraider
08-22-2009, 10:38 AM
This seems like just the mod I was looking for thanks. Before I install a few questions ... Does this use the twitter password or not? If not, anyone can steal my twitter profile and put it on their profile?

Zachariah
08-22-2009, 02:00 PM
This seems like just the mod I was looking for thanks. Before I install a few questions ... Does this use the twitter password or not? If not, anyone can steal my twitter profile and put it on their profile?

No password API interface or adding content yet. (good idea to expand on) :)

It is on the honor system of the user placing in the correct username.
It does not allow them to post on your twitter account, only display content already on the twitter network. (read / only)

DobieGillis?
08-22-2009, 02:26 PM
works like a charm, I fixed my little mistake.

yahoooh
08-22-2009, 03:29 PM
thank you

Vital Signs
08-22-2009, 04:00 PM
The only problem I see is the Twitter Widget displaying posts oldest first. Any fix?

ZiG
08-22-2009, 06:54 PM
this would be great if there were a widget for CMPS or forumhome that listed the users tweets

lm3a.net
08-23-2009, 08:43 AM
Nice,,

thank you.

Atakan KOC
08-23-2009, 07:51 PM
Really nice. Good idea.

Shevko
08-24-2009, 02:50 PM
Nice Mod.. Thanks..

kmohamed
08-24-2009, 05:08 PM
this is one of the greatest mods in vborg that connect Twitter to my site is simple and easy
we want more features
i'll prefer to have widget without colors or the colors are integrated with profile style

anyway the mod is installed and motm
keep it up

Zachariah
08-24-2009, 06:31 PM
this is one of the greatest mods in vborg that connect Twitter to my site is simple and easy
we want more features
i'll prefer to have widget without colors or the colors are integrated with profile style

anyway the mod is installed and motm
keep it up

I plan to expand the widget with profile style settings, at the moment it is hard coded in a template.

briangreul
08-24-2009, 08:44 PM
Very well done mod! Works exactly as it should.

Would be neat if there were a companion Facebook mod that did the same thing.

This is exactly what I was suggesting that VBulletin do to support twitter, myspace, and facebook.

Well done!

JacquiiDesigns
08-26-2009, 10:15 AM
Nice work = Thanks Zachariah :)

Jacquii.

Milez
08-26-2009, 12:21 PM
Any updates on a new version? Looks awesome!

PixelFx
08-27-2009, 12:00 AM
this looks pretty cool

bek4ever7
09-01-2009, 11:42 PM
Installed.

But it did not display a Twitter icon along with the Yahoo, AIM, Skype icons in member infobox next to posts.

how can i add this twitter icon

Zachariah
09-02-2009, 11:20 AM
Installed.

But it did not display a Twitter icon along with the Yahoo, AIM, Skype icons in member infobox next to posts.

how can i add this twitter icon

This is a setting per user / member

Settings:
User Control Panel => Your Profile => Edit Your Details
- Optional Information
-- Instant Messaging
--- Twitter ID:

alfaowner
09-02-2009, 09:12 PM
Oldest update first is not good, has this been resolved as yet?

elzarie
09-04-2009, 05:02 PM
This is Great . Thanks much

Robbed
09-07-2009, 06:45 PM
If the user twitter account is set to private it prompts for a password when visiting there profile.

Can you have so it doesn't show on the users profile if it's private?

and what alfaowner said about the oldest update 1st

Zachariah
09-09-2009, 01:00 PM
If the user twitter account is set to private it prompts for a password when visiting there profile.

Can you have so it doesn't show on the users profile if it's private?


I will have to look if there is any other way to access the data that is comming from twitter via. API with user/password interaction.

At the moment:
- It may be that we put a disclaimer to tell the users to not fill in their name if their twitter account if it is set to private.

kmohamed
09-09-2009, 08:50 PM
ok since am using ur mod am thinking why not take it to the next level
and intgrated with threads
what i mean is that u can tweet threads

i know there are many other mods that does that but i will prefre to have this feature in one mod

Zachariah
09-09-2009, 11:03 PM
ok since am using ur mod am thinking why not take it to the next level
and intgrated with threads
what i mean is that u can tweet threads

i know there are many other mods that does that but i will prefre to have this feature in one mod

I thought about that. I was planning to use https://vborg.vbsupport.ru/showthread.php?t=208657 "description for meta and bookmarksite on showthread" and create a bookmarksite for twitter as another network to submit to. At the moment this is a file edit, but with future "hook" requests @ vb.com we might make it a plug-in some day.

There may be something can be done with the API to submit last post / last thread, limit per usergroup, limit per forum, to twitter user/password, on a CRON job so that we can throttle the speed of submits per hour, other things.

Good idea, need to do more research and dev.

nikosb
09-10-2009, 10:15 AM
thanks

RK1gaming
09-10-2009, 03:05 PM
so i have installed this and set it up and seems all ok , but it keeps asking for my user name and password - even after i put the right on in - thoughts or what did i do wrong

Zachariah
09-10-2009, 07:08 PM
so i have installed this and set it up and seems all ok , but it keeps asking for my user name and password - even after i put the right on in - thoughts or what did i do wrong

I would say your account on twiter is locked down so no one can see the info other than people in your "follow network".

Twiter.com => Settings => Account

[X] Protect my tweets
Only let people whom I approve follow my tweets. If this is checked, you WILL NOT be on the public timeline. Tweets posted previously may still be publicly visible in some places.

This add-on simply access a public feed from your account if it is locked, I do not think the script can access your data.

RK1gaming
09-11-2009, 01:24 AM
thank you sir for the answer and explanation on how it works - if i could plus rep for you - much appreciated

HastleGames
09-14-2009, 09:25 PM
The only problem I see is the Twitter Widget displaying posts oldest first. Any fix?

I have the same problem, someone fix this?

Mihalis
09-15-2009, 12:15 PM
I installed this mod and I could no longer see the content of any posts at all. I could see titles but the content of the thread is no visible. I uninstalled it and... voila, good as new. Any ideas?

Zachariah
09-15-2009, 04:05 PM
I have the same problem, someone fix this?
I will have to take a look. It has never happened to me in 10 or so installs to various forums. Once the widget comes up it shows the last post on twitter and scrolls down 19 entries of history.
I installed this mod and I could no longer see the content of any posts at all. I could see titles but the content of the thread is no visible. I uninstalled it and... voila, good as new. Any ideas?

Are you using Threaded / Hybrid Mode or default list display of posts within threads ?

There may be interference from another add-on.
- plugin of the product "add im_icons parser template"

* 1st try to move the "Execution Order " of the plugin from 5 to 2 and test then to 10 and test.

* 2nd try: in a plugin of the product "add im_icons parser template"

This integrates the twitter icon into the postbit / postbit_legacy.
Hash that part of the code out and save and see if your threads return to normal.

Wrap: /* */ around the code.

if ($vbulletin->templatecache['postbit'])
{
$vbulletin->templatecache['postbit'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit']);
}
if ($vbulletin->templatecache['postbit_legacy'])
{
$vbulletin->templatecache['postbit_legacy'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit_legacy']);
}

hippyTRIBE
09-15-2009, 05:16 PM
Nice mod.

Installed and voted for MOTM:D


i have a request. whenever i click on the join this conversation or twitter logo it takes us to twitter on the same window. This is true for any links in the twitter widget.

If we can open it another window so that the users are still in the forum, that'd be great. If this can be done where and what shud i add??

The only problem I see is the Twitter Widget displaying posts oldest first. Any fix?

I can see that the tweets starts from the latest ones and goes to the older ones.. I think if only the latest 5 or 6 tweets are listed then we won't be confused.

Zachariah
09-16-2009, 08:00 PM
Nice mod.

Installed and voted for MOTM:D


i have a request. whenever i click on the join this conversation or twitter logo it takes us to twitter on the same window. This is true for any links in the twitter widget.

If we can open it another window so that the users are still in the forum, that'd be great. If this can be done where and what shud i add??



I can see that the tweets starts from the latest ones and goes to the older ones.. I think if only the latest 5 or 6 tweets are listed then we won't be confused.

I'll add that to the to-do list of things to look at.
- New windows
- option to choose # of tweets

KURTZ
09-16-2009, 08:11 PM
nice one Zach, i'll check it soon! ;)

matt4
09-16-2009, 11:20 PM
Nice but its displaying oldest tweets first. Like the above :(

HastleGames
09-17-2009, 01:12 PM
Nice but its displaying oldest tweets first. Like the above :(

this is proof that the problem, if there

Sorry my bad English

Brandon Sheley
09-17-2009, 01:30 PM
PS Opps:
- I did not see
** https://vborg.vbsupport.ru/showthread.php?t=185378
- profile block using a twitter widget

I will shoot off an email to see about a merge / expand / other.

that one never worked, I'll give yours a try :)

Zachariah
09-17-2009, 01:45 PM
For anyone with reverse order display problems.
- Dose your webserver have PHP4x installed ?

kmohamed
09-17-2009, 04:39 PM
displaying oldest tweets first!! can u fix it pls

princeedward
09-17-2009, 06:58 PM
thanks...

HastleGames
09-17-2009, 10:38 PM
For anyone with reverse order display problems.
- Dose your webserver have PHP4x installed ?

I am using PHP 5.X

edward hamilton
09-19-2009, 06:44 PM
Great mod, easy to install.

I see this message in my control panel
Current Activity: Unknown Location /forums/sendmessage.php?do=im&type=twitter&u=1
I'm also waiting to display message with most recent at the top of the block.

edward hamilton
09-19-2009, 07:01 PM
Reinstalling engage Twitter took care of the above error, but it is frustrating that the Twitter block displays the oldest tweet first.

Mihalis
09-20-2009, 01:10 PM
Are you using Threaded / Hybrid Mode or default list display of posts within threads ?

There may be interference from another add-on.
- plugin of the product "add im_icons parser template"

* 1st try to move the "Execution Order " of the plugin from 5 to 2 and test then to 10 and test.

* 2nd try: in a plugin of the product "add im_icons parser template"

This integrates the twitter icon into the postbit / postbit_legacy.
Hash that part of the code out and save and see if your threads return to normal.

Wrap: /* */ around the code.

if ($vbulletin->templatecache['postbit'])
{
$vbulletin->templatecache['postbit'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit']);
}
if ($vbulletin->templatecache['postbit_legacy'])
{
$vbulletin->templatecache['postbit_legacy'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit_legacy']);
}

Thank you for your answer.

I am using the default list display of posts within threads, but I don't know what my members use. Why should this be an issue?

I am using this (https://vborg.vbsupport.ru/showthread.php?t=211531) plugin for facebook/myspace social networking in postbit. I don't know if that could cause an interference.

redlabour
09-20-2009, 09:39 PM
Awesome work!

hippyTRIBE
09-21-2009, 09:26 PM
Hello Zach

just found out there's a long-link for twitter in postbit legacy. "Send a message via twitter to...." (with a broken image). I don't know if this is from your hack. If it is, then can u show me how to remove it as i already have lots of TWITTER thingy in my forum. If u'd like to see:

http://www.hippytribe.com/showthread.php/emotional-atyachar-from-85.html?p=182

Thanks for accepting my suggestions on NEW WINDOWS from the twitter widget.

Zachariah
09-22-2009, 12:35 PM
Hello Zach

just found out there's a long-link for twitter in postbit legacy. "Send a message via twitter to...." (with a broken image). I don't know if this is from your hack. If it is, then can u show me how to remove it as i already have lots of TWITTER thingy in my forum. If u'd like to see:

http://www.hippytribe.com/showthread.php/emotional-atyachar-from-85.html?p=182

Thanks for accepting my suggestions on NEW WINDOWS from the twitter widget.

There is an image included w/ the hack, but it is not uploaded to your theme image folder.

http://www.hippytribe.com/pulse_blue/misc/im_twitter.gif

jewbacca614
09-23-2009, 10:22 AM
love the mod.. the box is a bit to wide.. how can i shrink it ?

Zachariah
09-24-2009, 12:20 PM
love the mod.. the box is a bit to wide.. how can i shrink it ?

Everything is hardcoded @ the moment in the template "memberinfo_block_twitter".
- next version will have setting in admincp / usercp.

TheInsaneManiac
09-25-2009, 07:10 PM
Everything is hardcoded @ the moment in the template "memberinfo_block_twitter".
- next version will have setting in admincp / usercp.
Please do. Also have the option to completly remove the feed box as I had to manually remove that from the product. I would have liked it, but I didn't want it at the top of the profile, I didn't want the last tweets to be posted first, and I only want the latest 5 tweets to be displayed.

bigcurt
09-25-2009, 10:35 PM
Awesome stuff Zach.

redlabour
09-29-2009, 04:37 AM
Can we get the Box phrased to translate the whole Hack?

Zachariah
09-29-2009, 11:44 AM
Can we get the Box phrased to translate the whole Hack?

yes, also in next ver.

Crazyfruitbat
10-03-2009, 04:53 AM
very good and easy - many thanks! Installed!

GSeybold
10-04-2009, 04:02 AM
good stuff.. thanks

edward hamilton
10-04-2009, 03:39 PM
Also have the option to completly remove the feed box as I had to manually remove that from the product. I would have liked it, but I didn't want it at the top of the profile, I didn't want the last tweets to be posted first, and I only want the latest 5 tweets to be displayed.

I have removed the feed box in the profile as well by commenting
<!-- $template_hook[profile_right_mini] -->
in the MEMBERINFO template

Javierogo
10-05-2009, 11:03 PM
Very nice mod!:up:

I just have 3 questions please:

1.- How can i control de privacy ... i mean, i want only the registered users can see it?

2.- Is possible to change the vertical size of the block?

3.- Is possible to choose the place of the block?

Thanks!

Judith2
10-06-2009, 12:29 AM
I'm looking for an Engage Facebook and MySpace! Thanks for the Twitter one :D

AdamFL
10-06-2009, 01:08 AM
Very nice! Thank you for the mod.

TheInsaneManiac
10-06-2009, 05:27 AM
I have removed the feed box in the profile as well by commenting
<!-- $template_hook[profile_right_mini] -->
in the MEMBERINFO template
That could cause issues with other products though. I just removed his tweet box code from his product.

washingtonboise
10-06-2009, 06:46 AM
upload im_twitter.gif to images/misc/
import product

There's no easy to find instructions for 'how to add an addon' either on this site, or packaged with any of the add ons I have examined. - As developers, there ought to be some level of standard for the sake of usability.

AfterWorldForum
10-06-2009, 08:27 AM
There's no easy to find instructions for 'how to add an addon' either on this site, or packaged with any of the add ons I have examined. - As developers, there ought to be some level of standard for the sake of usability.

If you are unsure about how to import, go to your adminCP, scroll down, and select "Plugin & Product from the left menu. At the bottom of the right-hand section of the screen, click [Add/Import Product].

Click on the Browse button, and point it to the XML file of the plugin you downloaded, and you're pretty much done.

Tanapangarap
12-09-2009, 12:31 AM
I will have to take a look. It has never happened to me in 10 or so installs to various forums. Once the widget comes up it shows the last post on twitter and scrolls down 19 entries of history.


Are you using Threaded / Hybrid Mode or default list display of posts within threads ?

There may be interference from another add-on.
- plugin of the product "add im_icons parser template"

* 1st try to move the "Execution Order " of the plugin from 5 to 2 and test then to 10 and test.

* 2nd try: in a plugin of the product "add im_icons parser template"

This integrates the twitter icon into the postbit / postbit_legacy.
Hash that part of the code out and save and see if your threads return to normal.

Wrap: /* */ around the code.

if ($vbulletin->templatecache['postbit'])
{
$vbulletin->templatecache['postbit'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit']);
}
if ($vbulletin->templatecache['postbit_legacy'])
{
$vbulletin->templatecache['postbit_legacy'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit_legacy']);
}

I'm glad this was posted. I was having the following show up on the header when using postbit_legacy:


Parse error: syntax error, unexpected T_VARIABLE in /home/content/h/y/p/hyperionv1/html/includes/class_postbit.php(303) : eval()'d code on line 80

Parse error: syntax error, unexpected T_VARIABLE in /home/content/h/y/p/hyperionv1/html/includes/class_postbit.php(303) : eval()'d code on line 80

Fortunately, the fix was just removing this code:

if ($vbulletin->templatecache['postbit_legacy'])
{
$vbulletin->templatecache['postbit_legacy'] = str_replace('$post[skypeicon]', '$post[skypeicon] $post[twittericon]', $vbulletin->templatecache['postbit_legacy']);
}
I know what you're thinking, but I use the new postbit anyway, and the postbit_legacy is just to please one person.

Tanapangarap
12-10-2009, 04:13 PM
If the user twitter account is set to private it prompts for a password when visiting there profile.

Can you have so it doesn't show on the users profile if it's private?
Yeah, I noticed the same issue.

Kaelon
04-06-2010, 08:31 PM
Works perfectly on 3.8.4 PL 2.

Mum
05-01-2010, 01:17 AM
Installed and works perfectly :)

Goomzee
05-25-2010, 05:15 AM
how do i add Twitter button on postbit?

Aquestor
08-09-2010, 11:27 AM
Will this be ported to vb4?

Zachariah
08-09-2010, 12:57 PM
Will this be ported to vb4?

Yes I plan to.

Xencored
08-13-2010, 11:49 PM
Yes I plan to.

Awesome cant wait :D

Aquestor
08-14-2010, 07:04 AM
Awesome cant wait :D

Me too! Great! :D

BlackThorn
09-17-2010, 09:41 AM
Thanks great job.

eternal_
10-22-2010, 12:51 AM
awesome if this could be put in a blog sidebar box too

Xencored
01-30-2011, 01:40 AM
Any news on Vb4 Zachariah? also has anyone tryed this one for Vb4 :)

Thanks

Zachariah
01-30-2011, 03:33 PM
Any news on Vb4 Zachariah? also has anyone tryed this one for Vb4 :)

Thanks

I'll install vb4 again on my DEV system and start working on it.

Xencored
01-30-2011, 06:23 PM
I'll install vb4 again on my DEV system and start working on it.

Bless you :) Thanks man :up:

Artes_Marciales
02-09-2011, 01:39 PM
Amazing!!!
Thanks!

BlueCheri
02-13-2011, 07:44 AM
Great, hope to it will be available soon.

Thanx

I'll install vb4 again on my DEV system and start working on it.

Lee G
11-12-2011, 07:57 PM
Wish I had found this a lot earlier.
How can you make it so it shows to all user groups
At present only logged in members can see it on my forums

FreshFroot
02-18-2012, 06:51 AM
I hope this gets updated to vB4. this is by far the best twitter mod for the profile on vB