![]() |
I am getting this error
PHP Code:
|
I installed this today on Vbulletin 4.0.1 and it worked flawlessly. This is the first time that I've added a plugin that I didn't just upload a file for. I have one tiny suggestion - and I recognize that this might be a significant suggestion - but it would be great if it could take the post tags and make them hash tags with the post to twitter.
|
Installed and work perfectly fine. Although, I would love to to use $includeforums function instead of $excludeforums. Such a pain to go over 200+ forums to exclude them lol
|
Quote:
|
Quote:
|
I can't believe I'm the only one who gets the empty thread id. Why is god picking on me?!
|
I have a big forum and i installed this but sometimes when making a new post happens sometimes not always but twitter has limits for 150 tweets now I have exceeded this i guess so I have to disable it every now and then. Is there a way to edit this to allow people to create threads but if the thread doesn't work to skip this and still allow them to post the thread.
Fatal error: User is over daily status update limit. on line 204 in [path]/twitter.php I'd love to have a fix for this as this twitter idea is very good for advertising. Thanks |
Quote:
|
It makes bitLY links but doesn't post up on twitter now :(
|
Not having much luck with this atm.... Anyone able to give me hand/spot whats off with my code?
PHP Code:
Code:
Fatal error: Uncaught exception 'BitlyException' with message 'You must be authenticated to access shorten' in /home/srorg/public_html/collegetalkspot.com/bitly.php:193 Stack trace: #0 /home/srorg/public_html/collegetalkspot.com/bitly.php(382): Bitly->doCall('shorten', Array) #1 /home/srorg/public_html/collegetalkspot.com/global.php(28) : eval()'d code(30): Bitly->shorten('http://www.coll...') #2 /home/srorg/public_html/collegetalkspot.com/global.php(28): eval() #3 /home/srorg/public_html/collegetalkspot.com/forum.php(69): require_once('/home/srorg/pub...') #4 {main} thrown in /home/srorg/public_html/collegetalkspot.com/bitly.php on line 193 |
First, you could just disable bitly (change $useBitly= ; to false). In the above code I see the <> signs included in both your keys; they aren't supposed to be.
|
ok, I've installed this per the instructions and it's working great for new threads; however, I tried to also install a duplicate using the hook "newreply_post_complete" to get thread replies tweeted as well, and that doesn't seem to be working.
I have a technical forum with a moderate amount of activity, and tweets when threads receive replies are important to my members. Any guidance on modifying this to tweet thread replies would be great! |
Quote:
;) Actually, yes I do. URLs are set to: Basic Friendly URLs Here is my Twitter plugin code: PHP Code:
|
OK, I was able to answer my own question.
The issue had to do with the context of the tweet; if the tweet appeared to be one that had already been sent through the API, then it did not post, which is why replies to posts weren't showing up when I hooked into newpost_complete. The solution: add a date/timestamp to the tweet. I modified the tweet contents to contain: $tweet .= date("F j, Y, g:i:s a"); as part of the $tweet string, which generates a date/time stamp in the format of Month day, Year hour:min:sec am/pm. This differentiates the tweet context enough so that a new tweet is posted. Then, attach the plugin to newpost_complete and newthread_post_complete and you get posts for new threads, and replies to new threads. Cool! |
Quote:
Standard: showthread.php?t=threadid Friendly: showthread.php?threadttitle Plugin: PHP Code:
|
buro9
Fantastic mod, awesome support. Managed to get it to work just fine by reading through all the posts. 5 stars! :) |
Hi girls,
i got this error by submitting a thread: syntax error, unexpected $end .... like the other peoples here. Do you support this mod? |
Quote:
What is the content of your plugin? If you filled it in correctly, that error does not occur. |
2 Things are/aen't happening for me...
1. New threads aren't showing up in Twitter. 2. After I finish typing out a new thread and click "Submit new thread" it submits it but I get a blank screen and need to click the back arrow on my browser and then click on the forum and it shows the Thread that I had made. Here's my code... PHP Code:
I triple checked my bitly and twitter information and it appears to be correct |
Does it make it to Twitter?
Have you checked your error_log to see if that sheds light on the white page issue? I'd guess out of memory, but that is a total stab in the dark. |
Quote:
Sorry it took me a few minutes i went into my server to download the error log and look through. Couldn't find anything |
Quote:
here is my code= Code:
// The array below are the ids of non-public forums, update these to be your admin forum ids or anything non-public by default |
I noticed while logged into my bitly account that the 2 test threads I had tried are being shown on the "Home" section. They just never went from bitly to Twitter. I have the correct Twitter information submitted to bitly. Is there something else I'm supposed to do?
|
Quote:
PHP Code:
|
it just started working.
I have no idea why, but it did. :rolleyes: |
Ok... I basically disabled bit.ly by changing the variable from true to false, did a test thread post and it went straight to Twitter, no white screen or anything. worked nice except for the super long Link.
So, I've narrowed the problem down to being a bit.ly issue and I remember reading in this thread where others had the same issue. did anyone figure out a way to solve this? |
Well, shoot. Now the bitly link to replies takes users to the "page not found" page on vBulletin. So, I don't have the replies piece working after all (however, the new threads component works great).
Anyone else get replies tweets working? |
Quote:
Call myself a coder and i don't find the right thing to fix my own screwups. xD I'll try it *without* them now. :D Edit: Thanks, this worked for me. :P I also figured out why it wouldn't go away even when i disabled the plugin... I'd edited another plugin by another name by mistake and it had the screwed up code in it. :P |
If you are having problems with not being authorised make sure you don't have a extra space after your API key before the last ' . This worked for me and everything is running fine now.
|
I've tried everything within my ability. Re-copied code and started from scratch, I reset the API key and put it in (no blank space at the end).
If I have bit.ly turned on, I get a blank screen, no errors that I can find. The post/thread goes through. I have to hit the back button and view the forum to see the thread. It doesn't go to Twitter, it shows up at Bit.ly. It gets listed, has a shortened URL that can posted to Twitter. If I choose that, it goes there just fine.... If I turn off Bit.ly, the new Thread goes through to Twitter with no problems and no white screen. I just have a really long URL |
ok, for those who want to post thread replies and new threads to twitter -- I think I figured this out.
1. Use the following to create a string for new threads (modify to suite you, but leave the datestamp portion in) -- keep the rest of the provided plugin code as is: PHP Code:
3. Use the following plugin code for replies: PHP Code:
newreply_post_ajax newreply_post_complete It looks like vBulletin triggers one or the other upon posting a new reply, but not both (and, most new posts will go through 'newreply_post_ajax'). vBulletin plugins are a new thing for me -- took a bit to figure this one out. You can see a working feed at http://www.twitter.com/mediawikiusers |
|
works perfectly in vb3.8 ...thanks for this
|
Great mod! Really worth it if someone teamed up with you to develop it into a full product.
I am getting this error though: Quote:
Quote:
I've checked all the code in the plugin, all exactly the same as yours (with my info ofcourse). bit.ly seems to be working fine since new URLs are being created, just not being posted to Twitter... EDIT I got it to work! BUT no bit.ly URL :( Here what I did, I went into twitter.php and set the following to false. $options[CURLOPT_FOLLOWLOCATION] = false; now to solve the bit.ly issue. Thanks |
Could I use this with multiple twitter accounts?
For example, I've got a hiking forum that I'd like to go to a hiking related twitter account, then I've got a mountain biking forum (same board) that I'd like to go to a different mountain biking related twitter account. Is this possible? Thanks, great mod regardless. |
After reading the entire thread, I have wonderfully concluded my error message is different from any other!
Expectation Failed on line 229 in /var/www/ufck/forums/twitter.php #0 /var/www/ufck/forums/twitter.php(648): Twitter->doCall('statuses/update...', Array, true) #1 /var/www/ufck/forums/newthread.php(262) : eval()'d code(26): Twitter->updateStatus('test http://bit...') #2 /var/www/ufck/forums/newthread.php(262): eval() #3 {main} What is broken? |
Can you select the forums you want to be tweeted? if not then this would be a great addition for future updates.
|
Quote:
|
Awesome, I'm gonna install this great mod then. :D
|
Quote:
|
All times are GMT. The time now is 05:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|