![]() |
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. |
All times are GMT. The time now is 09:32 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:
|