I encountered the same error as Chadamgames. Any time a gift was sent to anyone, that user was unable to log in. I had to go into mySQL and delete the gifts from there (I myself couldn't log in).
I have a simple fix, but the gift images dowsent show on the profile page.
The error is showing on php5 because oop is different.
$this can only be used inside an object.
It's a reference to itself, as you could guess.
From outside the object, you must use the instance name of the object.
there have been a lot of changes between php4 and php5.
code: (at line 544)
$NoticeCollector->AddNotice('<span><a href="./" '.'id="RemoveMessage'.$Row['GiftID'].'" '.'onclick="RemoveGiftMessage(\''.$Context->Configuration['WEB_ROOT'].'extensions/UserGifts/ajax/remove.php\', \''.$Row['GiftID'].'\', \'RemoveMessage'.$Row['GiftID'].'\'); return false;">'.$Context->GetDefinition('UserGiftsHide').'</a></span>'.GetImage($Context->Configuration['WEB_ROOT'].'extensions/UserGifts/gifts/'.$Context->UserGiftsGifts['Icon'][$Row['Gift']]).'<br/>'.$Giftmessage);
Getting this error right after enabling the extension?
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/wohoo/public_html/BLABLA/talkbox/extensions/UserGifts/default.php on line 663
Good extenstion.
It seems to be working OK.
However, uploading images is causing some problems.
Either the file type is not recognised (.png) or when the upload is accepted, instead of showing the uploaded image, it shows the last image uploaded!
Has anybody come across this and knows a solution? Thanks
How to make gifts public for all the users by default? I know I can use Global Preference Setting but that won't make the value true by default for future users.
I have the same problem with uploading new "gifts". It shows the last gift that I uploaded. I have tons if "gifts" that I would like to ad but I can't. Please help. Thanks.
I added this extension but I dont see any option where i can send gifts.I went to the roles and permission section but I dont see any option to give the permission.Please look into this where could be the problem?
Comments
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/wohoo/public_html/BLABLA/talkbox/extensions/UserGifts/default.php on line 663
$PreferencesForm->AddPreference("GIFT_OPTIONS", "PUBLIC_GIFTS", "PublicGifts");
right? I'd really appreciate some help with this...