Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 07:48:43 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149678 Posts in 21101 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: New module : News Tweet  (Read 1752 times)
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« on: August 27, 2009, 11:39:13 PM »

Simply put : it's the news module from wb2.8 with twitter updates
( work on 2.8 )

In the settings you can enable twitter support, add your twitter id, password and a prefix to your tweets like "New : "

then when you post you post, you have the choice to tweet that news, by default, when first creating the news, it suggest to tweet about it, when done, it automaticly goes to "no";

The tweet is the prefex, the title (shorten if necessary) followed by the link to the news (shorten by http://is.gd/ )

this is a first release, some texte have been directly inputed so no multilinguage yet, BUT charset is OK to tweet.
« Last Edit: September 05, 2010, 10:49:28 PM by VotreEspace » Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
bupaje

Offline Offline

Posts: 519


WWW
« Reply #1 on: August 28, 2009, 07:04:11 PM »

Have to try this when I get home. Thanks for your efforts.
Logged

My Blog, My Site
Supertramp

Offline Offline

Posts: 19


« Reply #2 on: March 17, 2010, 01:01:21 AM »

It works very fine... Thank you.

But i habe another question.
can i copy these files into the "News" folder?
Because, when i install the files normaly, the wsb create a new modul and all my news-entries from the past weren't in this modul.
when i copy the NewsTweet files into the News folder, i habe all my older news-entries??

I don't want to try it, because i think i will lost all my older news entries.

Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #3 on: March 17, 2010, 02:11:13 PM »

I tried this at first, but there was too much problems doing this, that's why it's a separate module, if you try to move the file to the news folder you'll end up braking the news module.

this was not a news replacement.
BUT the database is the same to you could transfert some news. with some mysql
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
snark
Guest
« Reply #4 on: March 17, 2010, 07:31:03 PM »

does it work with the anynews?

Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #5 on: March 17, 2010, 07:43:21 PM »

anynews only works with the news module
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Supertramp

Offline Offline

Posts: 19


« Reply #6 on: March 22, 2010, 11:56:46 AM »

Thanks for the answer.

is it easy to transfer the news to newstweet? I doesn't have any skills in mysql...

best regards Smiley
Logged
Supertramp

Offline Offline

Posts: 19


« Reply #7 on: March 23, 2010, 12:02:27 AM »

I have now all older news included, manually.

But I have a last question.
Is it possible, that the characters " #fb "  in each message are the last characters? So I could use the facebook tool "selektive twitter".

Thanks,
tony
Logged
Supertramp

Offline Offline

Posts: 19


« Reply #8 on: March 23, 2010, 01:00:24 AM »

I have found it, to get the prefix after the short url.

But how can I do some with the mysql news-database? to get my older news to the new news-tweet module??
this is really the last question.

Best regards
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #9 on: March 26, 2010, 03:41:41 PM »

Ok, let's have some fun in MySQL

you need to have the old section_id & new page_id, section_id for your newstweet

first you copy every records in your news tweet, you only need your actual news section ID :

Code:
INSERT IGNORE INTO `wb_mod_newstweet_posts` (`post_id`,`section_id`,`page_id`,`group_id`,`active`,
`position`,`title`,`link`,`content_short`,`content_long`,`commenting`,
`published_when`,`published_until`,`posted_when`,`posted_by`)
SELECT `post_id`,`section_id`,`page_id`,`group_id`,`active`,
`position`,`title`,`link`,`content_short`,`content_long`,`commenting`,
`published_when`,`published_until`,`posted_when`,`posted_by` FROM `wb_mod_news_posts` WHERE `section_id` = *YOUR OLD NEWS SECTION_ID*;

INSERT IGNORE INTO `wb_mod_newstweet_groups` SELECT * FROM `wb_mod_news_groups` WHERE `section_id` = *YOUR OLD NEWS SECTION_ID*;

INSERT IGNORE INTO `wb_mod_newstweet_comments` SELECT * FROM `wb_mod_news_comments` WHERE `section_id` = *YOUR OLD NEWS SECTION_ID*;

Then you need to adapt your records
Code:
UPDATE `wb_mod_newstweet_posts` SET `section_id` = *YOUR NEWSTWEET PAGE_ID*, `page_id` = *YOUR NEWSTWEET SECTION_ID*, `twitted` = 1
WHERE `section_id` = *YOUR OLD NEWS SECTION_ID*;

UPDATE `wb_mod_newstweet_groups` SET `section_id` = *YOUR NEWSTWEET PAGE_ID*, `page_id` = *YOUR NEWSTWEET SECTION_ID*
WHERE `section_id` = *YOUR OLD NEWS SECTION_ID*;

UPDATE `wb_mod_newstweet_comments` SET `section_id` = *YOUR NEWSTWEET PAGE_ID*, `page_id` = *YOUR NEWSTWEET SECTION_ID*
WHERE `section_id` = *YOUR OLD NEWS SECTION_ID*;


in the first update i've noted tweeted as "1" so if you modify one of your news, it wont retweet an old news.

Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Supertramp

Offline Offline

Posts: 19


« Reply #10 on: March 28, 2010, 10:18:45 PM »

Thanks very much!
It works!!!
Thank you all alot
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #11 on: September 05, 2010, 08:05:22 PM »

this module is now deprecated, since Twitter change their authentification system.

i'll upgrade for my install and let you know.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #12 on: September 05, 2010, 10:49:04 PM »

i've updated it.

it got an upgrade from the original

need a registered twitter api codes, all is explained in the settings.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
snaak

Offline Offline

Posts: 8


« Reply #13 on: October 11, 2010, 10:29:36 AM »

Great module!
Only one problem when posting a new newsitem / tweet. When saving only 'twitting... ' is shown...All oAuth params are set. Someone got a clue?
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #14 on: October 11, 2010, 01:57:52 PM »

the module require cURL to work, is cURL active ?
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
snaak

Offline Offline

Posts: 8


« Reply #15 on: October 12, 2010, 08:44:01 AM »

Hi VotreSpace, thanks for reply.
Yes cURL is enabled:

cURL support enabled
cURL Information libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5

Any suggestions?
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #16 on: October 12, 2010, 07:49:53 PM »

can cURL takes outside links ?

I have no test to test it, but some bad hosting are blocking external connection of curl.
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!