GithubHelp home page GithubHelp logo

vinny / share-on Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 14.0 551 KB

Share On is an extension for phpBB that allows users to share the topics and posts on social networks.

Home Page: https://www.phpbb.com/customise/db/extension/shareon/

License: GNU General Public License v2.0

PHP 83.06% HTML 12.44% CSS 3.57% JavaScript 0.93%
phpbb phpbb-extension social-network

share-on's People

Contributors

chrizathens avatar galixte avatar mzoricc avatar phpbb-es avatar vinny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

share-on's Issues

Problem phpbb 3.1.X

Hi Vinny,

I contact you because since 1 year, I have upgraded to the version 3.1 of phpbb.
Otherwise, I still have your extension "share on" for the version 3.0 of phpbb on my ftp. For example I still have the "acp_shaeron.php" file. But I want to delete all the extension, because now I have this error in my acp:
Fatal error: Uncaught exception 'phpbb\exception\runtime_exception' with message 'FILE_NOT_FOUND' in /home/fmeurope/public_html/forum/phpbb/file_downloader.php:72 Stack trace: #0 /home/fmeurope/public_html/forum/includes/functions_admin.php(3057): phpbb\file_downloader->get('www.suportephpb...', '/shareon', 'shareon.txt', 80, 6) #1 /home/fmeurope/public_html/forum/includes/acp/acp_shareon.php(107): get_remote_file('www.suportephpb...', '/shareon', 'shareon.txt', '', 0) #2 /home/fmeurope/public_html/forum/includes/acp/acp_shareon.php(86): acp_shareon->shareon_version_compare('2.2.0') #3 /home/fmeurope/public_html/forum/includes/functions_module.php(674): acp_shareon->main('shareon', 'index') #4 /home/fmeurope/public_html/forum/adm/index.php(81): p_master->load_active() #5 {main} thrown in /home/fmeurope/public_html/forum/phpbb/file_downloader.php on line 72

So If you can help me.

Amaury.

To share the content from the post

Hi @vinny,

the most expected behaviour is the sharing of the content from the post directly into the social network post,. Do you know if the 3.0.x version will propose this functionality?

Regards.

All share options share login page not article

Using on phpbb 3.2 and was fine until yesterday when suddenly all I can share is the site login page. Have tried disabling, deleting date, removing extension, downloading latest version from GitHub and installing etc but same issue. Can't figure out what has gone wrong.

Améliorations

Bonjour
J'ai apporté quelques améliorations personnelles, je vous les partagent au cas où.
J'ai enlevé les images pour mettre à la place des icônes vectoriels ( https://fontawesome.com/ )
Mise aux normes du codes html

  <br />
  <ul class="share-buttons">	
        <!-- IF S_SO_FACEBOOK -->
            <li><a href="{postrow.U_FACEBOOK}" title="{L_SHARE_ON_FACEBOOK}" class="js-newWindow" data-popup="width=580,height=325"><i class="icon fa-facebook-square icon-gray" aria-hidden="true"></i></a></li>
        <!-- ENDIF -->		

  	<!-- IF S_SO_TWITTER -->
  		<li><a href="{postrow.U_TWITTER}" title="{L_SHARE_ON_TWITTER}" class="js-newWindow" data-popup="width=550,height=300"><i class="icon fa-twitter-square icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_TUENTI -->
  <li><a href="{postrow.U_TUENTI}" title="{L_SHARE_ON_TUENTI}" class="share-button share-icon-button tuenti-icon js-newWindow" data-popup="width=741,height=551"></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_DIGG -->
  		<li><a href="{postrow.U_DIGG}" title="{L_SHARE_ON_DIGG}" onclick="window.open(this.href);return false;"><i class="icon fa-digg icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_REDDIT -->
  		<li><a href="{postrow.U_REDDIT}" title="{L_SHARE_ON_REDDIT}" onclick="window.open(this.href);return false;"><i class="icon fa-reddit icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_DELICIOUS -->
  		<li><a href="{postrow.U_DELICIOUS}" title="{L_SHARE_ON_DELICIOUS}" class="js-newWindow" data-popup="width=540,height=500"><i class="icon fa-delicious icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_VK -->
  		<li><a href="{postrow.U_VK}" title="{L_SHARE_ON_VK}" class="js-newWindow" data-popup="width=607,height=510"><i class="icon fa-vk icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_TUMBLR -->
  		<li><a href="{postrow.U_TUMBLR}" title="{L_SHARE_ON_TUMBLR}" class="js-newWindow" data-popup="width=542,height=460"><i class="icon fa-tumblr-square icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_GOOGLE -->
  		<li><a href="{postrow.U_GOOGLE}" title="{L_SHARE_ON_GOOGLE}" onclick="window.open(this.href);return false;"><i class="icon fa-google-plus-g icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_WHATSAPP -->
  		<li><a href="{postrow.U_WHATSAPP}" title="{L_SHARE_ON_WHATSAPP}" onclick="window.open(this.href);return false;"><i class="icon fa-whatsapp icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->

  	<!-- IF S_SO_POCKET -->
  		<li><a href="{postrow.U_POCKET}" title="{L_SHARE_ON_POCKET}" onclick="window.open(this.href);return false;"><i class="icon fa-get-pocket icon-gray" aria-hidden="true"></i></a></li>
  	<!-- ENDIF -->
  </ul>
  <br />

Il me manque que l'icone Tuenti mais il me sert pas.

De plus je les ais plaqués en bas à droite donc j'ai renommé le fichier viewtopic_body_postrow_post_notices_after.html en viewtopic_body_postrow_back2top_after.html

Il reste donc que cette partie dans le fichier shareon.css

.share-buttons {
float: none;
position: absolute;
margin: 0;
bottom: 13px;
right: 15px;
list-style: none;
}

.share-buttons > li {
float: left;
margin-right: 3px;
}

.share-buttons i { font-size: 18px; }

.share-buttons i:hover { opacity: .6; }

Facebook Share

Hi @vinny,

on phpBB-fr.com a user reports to me a problem about Facebook sharing.

If he shares a post from a topic, there is not:

  • the image from the post shared but from the footer (cosmetic image),
  • the good link from the post shared but to the index link (./index.php),
  • the message from the post shared but from the home page.

Is it the normal behaviour ?

phpBB 3.1 support?

Hi,

Will there be a 3.1 extensions-compatible version of this excellent add-on for phpBB?

Add forum_id to shared URLs

https://www.phpbb.com/customise/db/mod/share_on/support/mod_not_showing_the_right_url-t_115711

'U_FACEBOOK' => 'http://www.facebook.com/sharer.php?t=' . urlencode($topic_data['topic_title']) . '&u=' . urlencode(generate_board_url() . "/viewtopic.$phpEx?" . "t=$topic_id"),

should be:
'U_FACEBOOK' => 'http://www.facebook.com/sharer.php?t=' . urlencode($topic_data['topic_title']) . '&u=' . urlencode(generate_board_url() . "/viewtopic.$phpEx?" . "f=$forum_id&t=$topic_id"),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.