[ABD] Share On [Facebook, Twitter, Orkut, Digg, MySpace,...]

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
JesusADS
Registered User
Posts: 140
Joined: Tue Oct 27, 2009 2:26 pm
Location: Venezuela

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by JesusADS »

dramacius wrote:it works all of a sudden...
Next Question, how do I get it to post to my Fan Page rather than my personal wall?
Like i said you before, It will share in the facebook account that you are logged in at the moment...

unknown2 wrote:
JesusADS wrote:Yes, the share buttons are shown only in the first post, if you want to have the buttons in all post, remove the postrow.S_SHARE_ON_FIRST_POST variable from the viewtopic_body.html, although it doesn't make many sence because all the buttons will share the same thing...


Best regards :)
In viewtopic_body.html i have this:

Code: Select all

<!-- IF postrow.S_SHARE_ON_FIRST_POST and postrow.S_SO_STATUS -->
								<!-- IF postrow.S_SO_FACEBOOK --><a href="{postrow.U_FACEBOOK}" target="_blank"><img src="{T_IMAGESET_LANG_PATH}/facebook_share.png" alt="Divulgar no Facebook" title="Divulgar no Facebook"/></a><!-- ENDIF -->
								<!-- IF postrow.S_SO_TWITTER --> <a href="{postrow.U_TWITTER}" target="_blank"><img src="{T_IMAGESET_LANG_PATH}/twitter_share.png" alt="{L_SHARE_ON_TWITTER}" title="{L_SHARE_ON_TWITTER}"/></a><!-- ENDIF -->
								<!-- IF postrow.S_SO_ORKUT -->   <a href="{postrow.U_ORKUT}" target="_blank"><img src="{T_IMAGESET_LANG_PATH}/orkut_share.gif" alt="{L_SHARE_ON_ORKUT}" title="{L_SHARE_ON_ORKUT}"/></a><!-- ENDIF -->
							<!-- ENDIF -->
You want me to remove the first line only?

Regards
No, just the variable postrow.S_SHARE_ON_FIRST_POST.. from this

Code: Select all

<!-- IF postrow.S_SHARE_ON_FIRST_POST and postrow.S_SO_STATUS -->
to this

Code: Select all

<!-- IF postrow.S_SO_STATUS -->
greetings

unknown2
Registered User
Posts: 676
Joined: Sat Mar 07, 2009 1:34 pm

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by unknown2 »

Now the button its appearing in all the topics :) TKS!


The only problem that remains is the one that i already posted:
unknown2 wrote:The problem is that some part of the sentence that shows in me screen says that my browser dont support that functionalitty and that i must change to opera or firefox.
But the thing is that im using firefox at this moment :\
How should i post something that people can read the body of the message, instead of only the topic name?

User avatar
FreakyBlue
Registered User
Posts: 331
Joined: Sun Jul 27, 2008 6:00 pm
Name: David Jansen
Contact:

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by FreakyBlue »

gennyna wrote:i have this problem:

Code: Select all

[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1709: Undefined index: so_status
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1710: Undefined index: so_facebook
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1711: Undefined index: so_twitter
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1712: Undefined index: so_orkut
this is a my wiewtopic.php:

Code: Select all

		'S_CUSTOM_FIELDS'	=> (isset($cp_row['row']) && sizeof($cp_row['row'])) ? true : false,
		'S_TOPIC_POSTER'	=> ($topic_data['topic_poster'] == $poster_id) ? true : false,
// Mod_Share_On by JesusADS		
		'S_SO_STATUS'		=> $config['so_status'],
		'S_SO_FACEBOOK'		=> $config['so_facebook'],
		'S_SO_TWITTER'		=> $config['so_twitter'],
		'S_SO_ORKUT'		=> $config['so_orkut'],
		'S_SHARE_ON_FIRST_POST'	=> ($row['post_id'] == $topic_data['topic_first_post_id']) ? true : false,
		// Mod_Share_On
		'S_IGNORE_POST'		=> ($row['hide_post']) ? true : false,
dravekx wrote:I got this in the ACP:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php  on line 53: Undefined index: so_status
[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php on line 54: Undefined index: so_facebook
[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php on line 55: Undefined index: so_twitter
[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php on line 56: Undefined index: so_orkut
[phpBB Debug] PHP Notice: in file /adm/index.php on line 159: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 161: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 162: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 163: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
Solving these two errors by putting the debug mode off, isn't the way to do it.
The errors are there because you did not add the config values to the database like it should be done.

I've edited your ./includes/acp/*.* and english language file so the MOD is working like it should be, without errors. This way the values are added to the database inclusive a MOD version. When you release a new version of this mod, simply increase the number in the includes/acp/info/acp_shareon.php file (it's now 1.0.1). When people are overwriting the file with a new release version with for example 1.0.2, the version is automatically updated in the database ;)

You can use the files for your MOD development progress, cause I love the idea of this MOD.
If you have any questions about them, just ask.

includes/acp/info/acp_shareon.php

Code: Select all

<?php

/**
*
* @package - Share On
* @version $Id: acp_shareon.php 2009-12-10 10:50 JesusADS $
* @copyright (c) JesusADS ( http://www.puntonokia.com/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package module_install
*/
class acp_shareon_info
{
	function module()
	{
		return array(
			'filename'	=> 'acp_shareon',
			'title'		=> 'Share On MOD',
			'version'	=> '1.0.1',
			'modes'		=> array(
			'index'		=> array('title' => 'SO_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('SHARE_ON_MOD')),
			),
		);
	}
	
	function install($u_action)
	{
		global $phpbb_root_path, $phpEx, $db, $user;

		// Setup $auth_admin class so we can add permission options
		include($phpbb_root_path . 'includes/acp/auth.' . $phpEx);
		$auth_admin = new auth_admin();

		$module_data = $this->module();

		$module_basename = substr(strchr($module_data['filename'], '_'), 1);

		$sql = 'SELECT module_id
				FROM ' . MODULES_TABLE . "
				WHERE module_basename = '$module_basename'";
		$result = $db->sql_query($sql);
		$module_id = $db->sql_fetchfield('module_id');
		$db->sql_freeresult($result);

		set_config('shareon_mod_version', $module_data['version']);
		set_config('so_status', 0);
		set_config('so_facebook', 0);
		set_config('so_twitter', 0);
		set_config('so_orkut', 0);

		trigger_error(sprintf($user->lang['SHAREON_MOD_INSTALLED'], $module_data['version']) . adm_back_link($u_action));
	}
	
	function uninstall()
	{
	}
	
	function update($u_action)
	{
		global $user;
		
		$module_data = $this->module();
		
		set_config('shareon_mod_version', $module_data['version']);
		
		trigger_error(sprintf($user->lang['SHAREON_MOD_UPDATED'], $module_data['version']) . adm_back_link($u_action));
	}
}

?>
./includes/acp/acp_shareon.php

Code: Select all

<?php

/**
*
* @package - Share On
* @version $Id: acp_shareon.php 2009-12-10 10:50 JesusADS $
* @copyright (c) JesusADS ( http://www.puntonokia.com/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package acp
*/
class acp_shareon
{
	var $u_action;

	function main($id, $mode)
	{
		global $db, $user, $auth, $template, $cache;
		global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
		
		include($phpbb_root_path . 'includes/acp/info/acp_shareon.' . $phpEx);

		$user->add_lang('acp/common');
		$this->tpl_name = 'acp_shareon';
		$this->page_title = $user->lang['SHARE_ON_MOD'];
		add_form_key('acp_shareon');
		
		// Install and update the ShareOn MOD through the ACP file
    	$version = new acp_shareon_info();
		
		$shareon_version = $version->module();
		$shareon_version = $shareon_version['version'];
		
		if (!isset($config['shareon_mod_version']))
		{
			$version->install($this->u_action);
		}
		else if (version_compare($config['shareon_mod_version'], $shareon_version, '<'))
		{
			$version->update($this->u_action);
		}

		$submit = (isset($_POST['submit'])) ? true : false;
		if ($submit)
		{
			if (!check_form_key('acp_shareon'))
			{
				trigger_error('FORM_INVALID');
			}

			set_config('so_status', request_var('so_status', 0));
			set_config('so_facebook', request_var('so_facebook', 0));
			set_config('so_twitter', request_var('so_twitter', 0));
			set_config('so_orkut', request_var('so_orkut', 0));

			trigger_error($user->lang['SO_SAVED'] . adm_back_link($this->u_action));
		}
		$template->assign_vars(array(
			'SO_STATUS'		=> $config['so_status'],
			'SO_FACEBOOK'	=> $config['so_facebook'],
			'SO_TWITTER'	=> $config['so_twitter'],
			'SO_ORKUT'		=> $config['so_orkut'],
			'U_ACTION'		=> $this->u_action,
		));
	}
}

?>
language/en/mods/info_acp_shareon.php

Code: Select all

<?php

/**
*
* @package - Share On
* @version $Id: info_acp_shareon.php 2009-12-10 10:50 JesusADS $
* @copyright (c) JesusADS ( http://www.puntonokia.com/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* 
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
    $lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
    'SO_TITLE'		=> 'SHARE ON MOD Settings',
	'SO_EXPLAIN'	=> 'Configure in which sites you want to share your topics',	
	'SHARE_ON_MOD'	=> 'MOD "Share On"',	
	'SO_CONFIG'		=> 'Settings',
	'SO_SAVED'		=> 'Changes Saved.',
	'SO_SELECT'		=> 'Share On:',
	'SO_STATUS'		=> 'Enable MOD "Share On"',
	'SO_FACEBOOK'	=> 'Facebook',
	'SO_TWITTER'	=> 'Twitter',
	'SO_ORKUT'		=> 'Orkut',
	
	// Installation
	'SHAREON_MOD_INSTALLED'	=> 'ShareOn MOD successfully installed',
	'SHAREON_MOD_UPDATED'	=> 'ShareOn MOD successfully updated',
));

?>
My music and tutorials -> https://youtube.com/gh0stwrit3rMusic/
Former phpBB Style and Mod Author -> https://www.phpbb.com/customise/db/auth ... tributions

chtaylor83
Registered User
Posts: 2
Joined: Mon Mar 08, 2010 12:12 am

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by chtaylor83 »

I absolutley love the idea of this mod. It works fine when my style is set to prosilver, but it doesn't work with the mxPublisher style. The icons do not show on this style. Can someone help with this? How can I get the icons to show like they do when my style is set to prosilver?

My site is www.socialmorgue.com

Any help would be greatly appreciated!

User avatar
JesusADS
Registered User
Posts: 140
Joined: Tue Oct 27, 2009 2:26 pm
Location: Venezuela

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by JesusADS »

FreakyBlue wrote:
gennyna wrote:i have this problem:

Code: Select all

[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1709: Undefined index: so_status
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1710: Undefined index: so_facebook
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1711: Undefined index: so_twitter
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1712: Undefined index: so_orkut
this is a my wiewtopic.php:

Code: Select all

		'S_CUSTOM_FIELDS'	=> (isset($cp_row['row']) && sizeof($cp_row['row'])) ? true : false,
		'S_TOPIC_POSTER'	=> ($topic_data['topic_poster'] == $poster_id) ? true : false,
// Mod_Share_On by JesusADS		
		'S_SO_STATUS'		=> $config['so_status'],
		'S_SO_FACEBOOK'		=> $config['so_facebook'],
		'S_SO_TWITTER'		=> $config['so_twitter'],
		'S_SO_ORKUT'		=> $config['so_orkut'],
		'S_SHARE_ON_FIRST_POST'	=> ($row['post_id'] == $topic_data['topic_first_post_id']) ? true : false,
		// Mod_Share_On
		'S_IGNORE_POST'		=> ($row['hide_post']) ? true : false,
dravekx wrote:I got this in the ACP:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php  on line 53: Undefined index: so_status
[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php on line 54: Undefined index: so_facebook
[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php on line 55: Undefined index: so_twitter
[phpBB Debug] PHP Notice: in file /includes/acp/acp_shareon.php on line 56: Undefined index: so_orkut
[phpBB Debug] PHP Notice: in file /adm/index.php on line 159: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 161: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 162: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 163: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3507)
Solving these two errors by putting the debug mode off, isn't the way to do it.
The errors are there because you did not add the config values to the database like it should be done.

I've edited your ./includes/acp/*.* and english language file so the MOD is working like it should be, without errors. This way the values are added to the database inclusive a MOD version. When you release a new version of this mod, simply increase the number in the includes/acp/info/acp_shareon.php file (it's now 1.0.1). When people are overwriting the file with a new release version with for example 1.0.2, the version is automatically updated in the database ;)

You can use the files for your MOD development progress, cause I love the idea of this MOD.
If you have any questions about them, just ask.

includes/acp/info/acp_shareon.php

Code: Select all

<?php

/**
*
* @package - Share On
* @version $Id: acp_shareon.php 2009-12-10 10:50 JesusADS $
* @copyright (c) JesusADS ( http://www.puntonokia.com/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package module_install
*/
class acp_shareon_info
{
	function module()
	{
		return array(
			'filename'	=> 'acp_shareon',
			'title'		=> 'Share On MOD',
			'version'	=> '1.0.1',
			'modes'		=> array(
			'index'		=> array('title' => 'SO_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('SHARE_ON_MOD')),
			),
		);
	}
	
	function install($u_action)
	{
		global $phpbb_root_path, $phpEx, $db, $user;

		// Setup $auth_admin class so we can add permission options
		include($phpbb_root_path . 'includes/acp/auth.' . $phpEx);
		$auth_admin = new auth_admin();

		$module_data = $this->module();

		$module_basename = substr(strchr($module_data['filename'], '_'), 1);

		$sql = 'SELECT module_id
				FROM ' . MODULES_TABLE . "
				WHERE module_basename = '$module_basename'";
		$result = $db->sql_query($sql);
		$module_id = $db->sql_fetchfield('module_id');
		$db->sql_freeresult($result);

		set_config('shareon_mod_version', $module_data['version']);
		set_config('so_status', 0);
		set_config('so_facebook', 0);
		set_config('so_twitter', 0);
		set_config('so_orkut', 0);

		trigger_error(sprintf($user->lang['SHAREON_MOD_INSTALLED'], $module_data['version']) . adm_back_link($u_action));
	}
	
	function uninstall()
	{
	}
	
	function update($u_action)
	{
		global $user;
		
		$module_data = $this->module();
		
		set_config('shareon_mod_version', $module_data['version']);
		
		trigger_error(sprintf($user->lang['SHAREON_MOD_UPDATED'], $module_data['version']) . adm_back_link($u_action));
	}
}

?>
./includes/acp/acp_shareon.php

Code: Select all

<?php

/**
*
* @package - Share On
* @version $Id: acp_shareon.php 2009-12-10 10:50 JesusADS $
* @copyright (c) JesusADS ( http://www.puntonokia.com/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package acp
*/
class acp_shareon
{
	var $u_action;

	function main($id, $mode)
	{
		global $db, $user, $auth, $template, $cache;
		global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
		
		include($phpbb_root_path . 'includes/acp/info/acp_shareon.' . $phpEx);

		$user->add_lang('acp/common');
		$this->tpl_name = 'acp_shareon';
		$this->page_title = $user->lang['SHARE_ON_MOD'];
		add_form_key('acp_shareon');
		
		// Install and update the ShareOn MOD through the ACP file
    	$version = new acp_shareon_info();
		
		$shareon_version = $version->module();
		$shareon_version = $shareon_version['version'];
		
		if (!isset($config['shareon_mod_version']))
		{
			$version->install($this->u_action);
		}
		else if (version_compare($config['shareon_mod_version'], $shareon_version, '<'))
		{
			$version->update($this->u_action);
		}

		$submit = (isset($_POST['submit'])) ? true : false;
		if ($submit)
		{
			if (!check_form_key('acp_shareon'))
			{
				trigger_error('FORM_INVALID');
			}

			set_config('so_status', request_var('so_status', 0));
			set_config('so_facebook', request_var('so_facebook', 0));
			set_config('so_twitter', request_var('so_twitter', 0));
			set_config('so_orkut', request_var('so_orkut', 0));

			trigger_error($user->lang['SO_SAVED'] . adm_back_link($this->u_action));
		}
		$template->assign_vars(array(
			'SO_STATUS'		=> $config['so_status'],
			'SO_FACEBOOK'	=> $config['so_facebook'],
			'SO_TWITTER'	=> $config['so_twitter'],
			'SO_ORKUT'		=> $config['so_orkut'],
			'U_ACTION'		=> $this->u_action,
		));
	}
}

?>
language/en/mods/info_acp_shareon.php

Code: Select all

<?php

/**
*
* @package - Share On
* @version $Id: info_acp_shareon.php 2009-12-10 10:50 JesusADS $
* @copyright (c) JesusADS ( http://www.puntonokia.com/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* 
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
    $lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
    'SO_TITLE'		=> 'SHARE ON MOD Settings',
	'SO_EXPLAIN'	=> 'Configure in which sites you want to share your topics',	
	'SHARE_ON_MOD'	=> 'MOD "Share On"',	
	'SO_CONFIG'		=> 'Settings',
	'SO_SAVED'		=> 'Changes Saved.',
	'SO_SELECT'		=> 'Share On:',
	'SO_STATUS'		=> 'Enable MOD "Share On"',
	'SO_FACEBOOK'	=> 'Facebook',
	'SO_TWITTER'	=> 'Twitter',
	'SO_ORKUT'		=> 'Orkut',
	
	// Installation
	'SHAREON_MOD_INSTALLED'	=> 'ShareOn MOD successfully installed',
	'SHAREON_MOD_UPDATED'	=> 'ShareOn MOD successfully updated',
));

?>
Wow, Thanks :D

dramacius
Registered User
Posts: 47
Joined: Thu Oct 30, 2008 12:54 pm

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by dramacius »

I have a problem I don't know why but when I click the FB Share button on post all it shares is
In order to login you must be registered. Please be aware that to use most of the functions of this site you will need to register your details. The board administrator may also grant additional permissions to registered users. Please ensure you read any forum rules as you navigate around the board.
How do I make it share the content of the posts?

I have the same problem with the button I have put into my overall_header if anyone can help with either I would be apprieciative.

User avatar
JesusADS
Registered User
Posts: 140
Joined: Tue Oct 27, 2009 2:26 pm
Location: Venezuela

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by JesusADS »

New Version Released!!!

  • added Share on Digg, MySpace, Delicious and Technorati
  • added Share for Not Loged in users (Only for Prosilver)
  • Fix Problem with Orkut Images (Thanks to karot)
  • Fix Problem with Debug (Thanks to FreakyBlue)
Enjoy!! :D [/color][/size]

User avatar
JesusADS
Registered User
Posts: 140
Joined: Tue Oct 27, 2009 2:26 pm
Location: Venezuela

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by JesusADS »

dramacius wrote:I have a problem I don't know why but when I click the FB Share button on post all it shares is
In order to login you must be registered. Please be aware that to use most of the functions of this site you will need to register your details. The board administrator may also grant additional permissions to registered users. Please ensure you read any forum rules as you navigate around the board.
How do I make it share the content of the posts?

I have the same problem with the button I have put into my overall_header if anyone can help with either I would be apprieciative.
Hi!, Only registered users can share on facebook.

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by darkonia »

JesusADS wrote:New Version Released!!!

  • added Share on Digg, MySpace, Delicious and Technorati
  • added Share for Not Loged in users (Only for Prosilver)
  • Fix Problem with Orkut Images (Thanks to karot)
  • Fix Problem with Debug (Thanks to FreakyBlue)
Enjoy!! :D [/color][/size]
great update, thx :mrgreen:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

dramacius
Registered User
Posts: 47
Joined: Thu Oct 30, 2008 12:54 pm

Re: [RC] Share On [Facebook, Twitter, Orkut,...]

Post by dramacius »

JesusADS wrote:
dramacius wrote:I have a problem I don't know why but when I click the FB Share button on post all it shares is
In order to login you must be registered. Please be aware that to use most of the functions of this site you will need to register your details. The board administrator may also grant additional permissions to registered users. Please ensure you read any forum rules as you navigate around the board.
How do I make it share the content of the posts?

I have the same problem with the button I have put into my overall_header if anyone can help with either I would be apprieciative.
Hi!, Only registered users can share on facebook.

I think it was my portal causing the problems because I have changed portal and it now works.

When I was clicking the button I was logged in as my founder account so shouldn't have caused a problem with registered users.

User avatar
Sir Xiradorn
Registered User
Posts: 11
Joined: Thu Sep 17, 2009 3:51 pm
Location: MMM....i don't know.....
Name: Tony Frost
Contact:

Re: [RC] Share On [Facebook, Twitter, Orkut, Digg, MySpace,.

Post by Sir Xiradorn »

EDIT: ops..........i don't have look the update....sorry and great job!!!!!!!!

Encore204
Registered User
Posts: 314
Joined: Sun Feb 05, 2006 9:54 pm
Contact:

Re: [RC] Share On [Facebook, Twitter, Orkut, Digg, MySpace,.

Post by Encore204 »

Hi there!

2 questions.

1)Is it possible to add a share on facebook icon to every post.

2)Is it possible to share the content of a single post, rather then the entire topic.

User avatar
Sir Xiradorn
Registered User
Posts: 11
Joined: Thu Sep 17, 2009 3:51 pm
Location: MMM....i don't know.....
Name: Tony Frost
Contact:

Re: [RC] Share On [Facebook, Twitter, Orkut, Digg, MySpace,.

Post by Sir Xiradorn »

In facebook share i can add the topic title because in the facebook share there isn't the $topic_data['topic_title']. So i had modifed the viewtopic.php in this way. From

Code: Select all

'U_FACEBOOK'    => 'http://www.facebook.com/share.php?u=' . generate_board_url() . '/viewtopic.php?t='. $topic_data['topic_id'], 
to:

Code: Select all

'U_FACEBOOK'            => 'http://www.facebook.com/share.php?u=' . generate_board_url() . '/viewtopic.php?t='. $topic_data['topic_id'] .'&start=0&t='. $topic_data['topic_title'], 
the code maybe wark right (may you do same test please??....:) :mrgreen: )

@Encore. I can give to you the first answer to your 1 question. So in template part you may delete the postrow.S_SHARE_ON_FIRST_POST from the first IF conditions and postrow.S_FIRST_ROW from the second part if you have prosilver (for not logged in users) (correct me if I'm wrong)

User avatar
anybloodyid
Registered User
Posts: 276
Joined: Thu Mar 06, 2008 7:24 pm

Re: [RC] Share On [Facebook, Twitter, Orkut, Digg, MySpace,.

Post by anybloodyid »

Can this be used on a live site 3.0.7-PL1?

apnaitaly
Registered User
Posts: 323
Joined: Tue Jun 30, 2009 6:13 pm

Re: [RC] Share On [Facebook, Twitter, Orkut, Digg, MySpace,.

Post by apnaitaly »

can its working for PHPbb 3.0.7 PL1 ??????

Locked

Return to “[3.0.x] Abandoned MODs”