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 share panel

Asked Modified Viewed 6,055 times
V
val
V
val 10
  • Junior Member, joined since
  • Contributed 40 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
asked
Junior Member

hi everyone!

i saw in the forum that a twitter share panel was needed and decided to take a go for it.
It has been tested at 2 of my websites so should be cool ;)
As a note i would like to ask the admins here if ive made this correctly ( the panel itself incl version info etc ) since this is my first time ever to release something :)

regards val
val attached the following file:
twitter_share_panel.jpg [No information available / 154 Downloads]
twitter_share_panel_v10.zip [No information available / 727 Downloads]
0 replies

3 posts

H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

It works fine. I would have centred the button but that's a personal choice.

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Type:  Panel
| Name: Twitter share Panel
| Version: 1.0
| File Name: Twitter_share_panel.php
| Author: Valhalla aka Eik Toft
| Site: http://www.dvclan.dk
| Contact: admin@dvclan.dk
| Developers: Valhalla
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
   
   if (file_exists(INFUSIONS."Twitter_share_panel/locale/".$settings['locale'].".php")) {
      include INFUSIONS."Twitter_share_panel/locale/".$settings['locale'].".php";
   } else {
      include INFUSIONS."Twitter_share_panel/locale/English.php";
   }

openside($locale['Ts001']);

echo "<center>\n<a href='http://twitter.com/share' class='twitter-share-button' data-count='vertical'>Tweet</a>\n</center>\n";
echo "<script type='text/javascript' src='http://platform.twitter.com/widgets.js'></script>\n";

closeside();

?>


I attached a panel I made a while ago which will show your real time tweets in a U-Ctr panel. Just edit line 21 to edit your twitter name.

Enjoy
HobbyMan attached the following file:
my_tweets_panel.zip [No information available / 703 Downloads]
0 replies
— 2 months later —
J
jmonroe
J
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 9 threads in the forums
answered
Junior Member

Looks great. I changed the color to match Twitter's actual color they use for their logo. Not sure if it really matters but anyway...here is the file.
jmonroe attached the following file:
my_tweets_panel_1.zip [No information available / 679 Downloads]
0 replies
— 3 years later —
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
answered
Senior Member

hmn dosent work
0 replies

Category Forum

Addons Open Testing

Labels

None yet

Statistics

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

4 participants

C
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
V
V
val 10
  • Junior Member, joined since
  • Contributed 40 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
J
J
  • Junior Member, joined since
  • Contributed 41 posts on the community forums.
  • Started 9 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet