$USER Version 3.0RC1

Bug #612112 reported by Andivista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jisko
New
Undecided
Unassigned

Bug Description

Hello,

is it right that in the file /includes/functions.php is written $USER
When i use print_r($USER['twitter']['oauth_token']); i get no result but with print_r($_USER['twitter']['oauth_token']); i see the token.

I changed it but the tweets are not stored in the Database ( only one ).

print_r($return); shows all tweets ( statuses/friends_timeline?page=1 ) on the screen but they are not stored. What are you doing for store ( PHP / foreach)?

In pages/twitter.php you use $_USER ( global $_USER; )

Original is:

function retrieveTweets($type = 'statuses/friends_timeline')
{
        global $USER;
        global $jk;

        $pages = array(1, 2);

        import('twitter/toauth.class');

        //Calling the tOAuth class with the user keys
        $connection = new tOAuth($jk->tw_consumerkey, $jk->tw_secretkey, $USER['twitter']['oauth_token'], $USER['twitter']['oauth_token_secret']);

        //The array that will contain all the notes
        $array = array();

i changed all $USER to $_USER

Another Question: I can`t find the Twitter Class in the new Version of Jisko ( import('twitter/twitter.class'); )

Greetings from Berlin and Thx for this great Script!

Andi

http://andivista.com/micro/

I don`t understand why Jisko 3.0RC1 TwitterOAuth is not working ( http://toolbar4u.de/jisko ) because the Rest runs great!

Revision history for this message
Marcos Garcia (marcosgdf) wrote : Re: [Bug 612112] [NEW] $USER Version 3.0RC1

Thanks for your contributions! But... $_USER is reffering to the logged
user, and $USER reffers to the user who is trying to update their tweets.

Are you sure is making problems?

marcos garcía // <email address hidden>

On Sat, Jul 31, 2010 at 9:07 PM, Andivista <email address hidden>wrote:

> Public bug reported:
>
> Hello,
>
> is it right that in the file /includes/functions.php is written $USER
> When i use print_r($USER['twitter']['oauth_token']); i get no result but
> with print_r($_USER['twitter']['oauth_token']); i see the token.
>
> I changed it but the tweets are not stored in the Database ( only one ).
>
> print_r($return); shows all tweets ( statuses/friends_timeline?page=1 )
> on the screen but they are not stored. What are you doing for store (
> PHP / foreach)?
>
> In pages/twitter.php you use $_USER ( global $_USER; )
>
> Original is:
>
> function retrieveTweets($type = 'statuses/friends_timeline')
> {
> global $USER;
> global $jk;
>
> $pages = array(1, 2);
>
> import('twitter/toauth.class');
>
> //Calling the tOAuth class with the user keys
> $connection = new tOAuth($jk->tw_consumerkey, $jk->tw_secretkey,
> $USER['twitter']['oauth_token'], $USER['twitter']['oauth_token_secret']);
>
> //The array that will contain all the notes
> $array = array();
>
> i changed all $USER to $_USER
>
> Another Question: I can`t find the Twitter Class in the new Version of
> Jisko ( import('twitter/twitter.class'); )
>
> Greetings from Berlin and Thx for this great Script!
>
> Andi
>
> http://andivista.com/micro/
>
> I don`t understand why Jisko 3.0RC1 TwitterOAuth is not working (
> http://toolbar4u.de/jisko ) because the Rest runs great!
>
> ** Affects: jisko
> Importance: Undecided
> Status: New
>
> --
> $USER Version 3.0RC1
> https://bugs.launchpad.net/bugs/612112
> You received this bug notification because you are subscribed to Jisko.
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.