collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: a small hack. ?  (Read 493 times)

0 Members and 1 Guest are viewing this topic.

Offline Prenses

  • Full Member
  • ***
  • Posts: 151
  • Karma: 4
  • Gender: Female
a small hack. ?
« on: March 22, 2012, 10:23:35 PM »

hello,


l added facebook like button in my arcade.template.php page


exemple..


Code: [Select]
// Play screen
function template_arcade_game_play()
{
global $scripturl, $txt, $context, $settings;


echo '





<div style="text-align: center;">


', $context['arcade']['game']['html'], '


           
<iframe src="http://www.facebook.com/widgets/like.php?href=', $scripturl, '?action=arcade;sa=play;game=' . $context['arcade']['game']['id'],'&amp;layout=button_count&amp;show_faces=false&amp;width=125&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:125px; height:21px;" allowTransparency="true"></iframe>';






but when l like a game, in facebook all it's ok, only l have "content" empty always..


and l want to add a text" good luck" for exemple for to remplace "content" with this text.


lf anyone can help me. thank you.
SMF 1.1.11 * SMF Arcade 2.0.18