Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Twitter panel

Asked Modified Viewed 3,860 times
I
Ivoht
I
Ivoht 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 23 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

I would like to make a panel which shows my tweets.
however I get this error;

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /mnt/webb/33/87/51957987/htdocs/test/administration/panel_editor.php(128) : eval()'d code on line 7


this is the code I use in the panel, whats wrong?

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Name"wink;
echo '
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
search: 'Cv de wuif',
interval: 6000,
title: 'Volg CV de Wuif op Twitter',
subject: '',
width: 250,
height: 300,
theme: {
shell: {
background: '#8ec1da',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
toptweets: true,
behavior: 'default'
}
}).render().start();
</script>

';
closeside();[/syntaxhighlighter]
0 replies

3 posts

A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Try using this Code :
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Name"wink;
echo "
<script src='http://widgets.twimg.com/j/2/widget.js'></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
search: 'Cv de wuif',
interval: 6000,
title: 'Volg CV de Wuif op Twitter',
subject: '',
width: 250,
height: 300,
theme: {
shell: {
background: '#8ec1da',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
toptweets: true,
behavior: 'default'
}
}).render().start();
</script>

";
closeside();[/syntaxhighlighter]
0 replies
I
Ivoht
I
Ivoht 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 23 threads in the forums
  • Started this discussions
answered
Junior Member

works fine now!
thanks
0 replies
— 1 year later —
G
Giuseppe
G
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

It is possible only its own channel or the news to see me

my username is minecraft_dm
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

I
I
Ivoht 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 23 threads in the forums
  • Started this discussions
G
G
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet