[ABD] phpBB Social Network 0.7.2

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.
eXo`
Registered User
Posts: 146
Joined: Sat Mar 13, 2010 7:28 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by eXo` »

Still no answer on which changes to make Chat works on subsilver2 themes? You guys said you did make it work but never answered what changes to do.......

User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [RC] phpBB3 Social Network 0.5.2

Post by Kamahl19 »

eXo` wrote:Still no answer on which changes to make Chat works on subsilver2 themes? You guys said you did make it work but never answered what changes to do.......
We are not working on subsilver2 for SN anymore. If you want to use only Instant Messenger it should work on subsilver

eaglesfannation
Registered User
Posts: 105
Joined: Sat May 08, 2010 10:29 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by eaglesfannation »

Yea there is a fine line to respecting the mod authors works and being easy on your requests. However subsilver2 is a very popular style base and needs to start having support for it more frequently. I tired this on my subsilver2 board (X-Treme style) and I remember the IM bar not even coming up...

eXo`
Registered User
Posts: 146
Joined: Sat Mar 13, 2010 7:28 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by eXo` »

Like i said earlier, http://www.phpbb.com/community/viewtopi ... #p12968160

I managed to make it almost work.. but got this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /socialnet/includes/functions.php on line 307: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function

cm_
Registered User
Posts: 21
Joined: Mon Apr 18, 2011 2:30 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by cm_ »

eaglesfannation wrote:Yea there is a fine line to respecting the mod authors works and being easy on your requests. However subsilver2 is a very popular style base and needs to start having support for it more frequently. I tired this on my subsilver2 board (X-Treme style) and I remember the IM bar not even coming up...
do you want to use the whole social network mod or just the im?
i'm not sure if the whole mod works the way i solved the problem
because i'm just using the im!
i will test it later and tell you

cm_
Registered User
Posts: 21
Joined: Mon Apr 18, 2011 2:30 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by cm_ »

ok, so i tested my version and its working, didn't find any bugs
except the status bar on the index page isn't in the right posistion...but it works! :)

Anyway backup your board before you do the changes.

If you want to use the sn mod with a subsilver based mod you have to do the
following changes:

in memberlist_view.html

find

Code: Select all

</form>
add before

Code: Select all

<!-- IF SN_MODULE_APPROVAL_ENABLED -->
  <!-- INCLUDE socialnet/memberlist_viewprofile_friendlist.html -->
<!-- ENDIF -->
<!-- IF SN_MODULE_USERSTATUS_ENABLED && SN_MODULE_USERSTATUS_VIEWPROFILE_ENABLE -->
  <!-- INCLUDE socialnet/userstatus_memberlist.html -->
<!-- ENDIF -->
in overall_footer.html

find

Code: Select all

</body>
add before

Code: Select all

<!-- IF SN_MODULE_IM_ENABLED -->
    <!-- INCLUDE socialnet/im.html -->
<!-- ENDIF -->
in overall_header.html

find

Code: Select all

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
add before

Code: Select all

<!-- INCLUDE socialnet/overall_header_hook.html -->
find

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
replace with

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}<!-- IF SN_MODULE_IM_ENABLED --> im-page<!-- ENDIF -->">
find

Code: Select all

<ul id="navlist">
add after

Code: Select all

<!-- IF SN_MODULE_MAINPAGE_ENABLED --><li class="icon-home"><a href="{U_SN_MAINPAGE}">{L_SN_MP_MAINPAGE}</a></li><!-- ENDIF -->
find

Code: Select all

<div id="wrapheader">
add after

Code: Select all

<!-- IF SN_MODULE_USERSTATUS_ENABLED -->
            <!-- INCLUDE socialnet/userstatus_index.html -->
        <!-- ENDIF -->
find

Code: Select all

<div id="wrapcentre">
replace with

Code: Select all

<div id="wrapcentre" class="<!-- IF B_SN_US_ON_HEADER -->snUsOnHeader<!-- ENDIF -->">
in stylesheet.css
find

Code: Select all

/* Layout
add before

Code: Select all

@import url("socialnet.css");
@import url("jquery-ui.custom.css");
that's it!
And don't forget to copy the root folder to your server.

By the way, I at first installed the mod with automod and edited the subsilver files
afterwards. I don't know what happens if you try to install it without the edits in the
prosilver template.

Ok guys, would be cool if you tell me if it worked. Have fun with the sn mod in subsilver :D

eXo`
Registered User
Posts: 146
Joined: Sat Mar 13, 2010 7:28 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by eXo` »

Still getting this error.....

Code: Select all

[phpBB Debug] PHP Notice: in file /socialnet/includes/functions.php on line 307: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function

cm_
Registered User
Posts: 21
Joined: Mon Apr 18, 2011 2:30 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by cm_ »

eXo` wrote:Still getting this error.....

Code: Select all

[phpBB Debug] PHP Notice: in file /socialnet/includes/functions.php on line 307: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function
hm..ok no idea what's causing this problem.

This are the lines 303-307 from my /socialnet/includes/functions.php

Code: Select all

// WINDOWS SERVER FIX
		$_phpbb_root_path = str_replace('\\','/',$phpbb_root_path);
		$path = preg_replace( '#^'.preg_quote($_phpbb_root_path).'#si', str_replace( '//', '/', $config['script_path'] . '/'), $matches[3]);
		
		return "{$matches[1]}={$matches[2]}{$path}{$matches[4]}";
But I didn't change anything in this file, so I doubt those lines will help you.

User avatar
wintstar
Registered User
Posts: 280
Joined: Sat Mar 07, 2009 12:39 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by wintstar »

eXo` wrote:Like i said earlier, http://www.phpbb.com/community/viewtopi ... #p12968160

I managed to make it almost work.. but got this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /socialnet/includes/functions.php on line 307: preg_replace_callback() [function.preg-replace-callback]: Unable to call custom replacement function
Replace your root/socialnet/includes/functions.php with this

functions.zip

Greatings
Stephan

eaglesfannation
Registered User
Posts: 105
Joined: Sat May 08, 2010 10:29 pm

Re: [RC] phpBB3 Social Network 0.5.2

Post by eaglesfannation »

Im on a subsilver2 style and everything works OK but I need some assistence with a few things...

1.) I had to disable the mainpage for now because when I go to it I get the following error...

Code: Select all

Fatal error: Class 'pcr_phpbb' not found in /home/h2kpro/public_html/forums/includes/hooks/hook_post_count_requirements.php on line 63
2.) I cant see an "x" to close out a IM tab. I know its on the right but I cant see anything (my chatbar background is white).
3.) And Lastly when looking at the chat online, the green online dot is in the middle of their name. Anyway to move the avatar and their name over to the left more so they can fit nicer. And also sometimes the avatar doesnt show. Thanks in advance...

artikkk
Registered User
Posts: 379
Joined: Sun Jan 04, 2009 1:37 pm
Location: Roma

Re: [RC] [NEW] phpBB3 Social Network 0.6.0

Post by artikkk »

phpBB3 Social Network 0.6.0 released! :)
sorry for my bad english :S

User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [RC] [NEW] phpBB3 Social Network 0.6.0

Post by Kamahl19 »

That's right! phpBB3 Social Network 0.6.0 released

We have fixed several bugs, added many small features and the main new feature is the next module Notification

http://www.phpbb3hacks.com/obrazky/ntf1.png
http://www.phpbb3hacks.com/obrazky/ntf2.png
Last edited by Kamahl19 on Thu May 19, 2011 10:33 am, edited 1 time in total.

Peter77sx
Registered User
Posts: 3259
Joined: Wed Nov 09, 2005 2:51 pm

Re: [RC] [NEW] phpBB3 Social Network 0.6.0

Post by Peter77sx »

Nice... congrats :)

User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [RC] phpBB3 Social Network 0.6.0

Post by Kamahl19 »

I have added update instructions to install package, because I forgot it on first time :)

eaglesfannation
Registered User
Posts: 105
Joined: Sat May 08, 2010 10:29 pm

Re: [RC] phpBB3 Social Network 0.6.0

Post by eaglesfannation »

Karmah thanks. I re-uploaded files and ran update_database.php to update database. I really need your help if you would be so kind. I cannot use mainpage because of a conflict with post requirements mod. Sorry for the double post but here is my issues...

I'm on a subsilver2 style and everything works OK but I need some assistance with a few things. I have customized some things here and there with the style template files to suite my dark subsilver2 style better.

1.) I had to disable the mainpage for now because when I go to it I get the following error...

Code: Select all

Fatal error: Class 'pcr_phpbb' not found in /home/h2kpro/public_html/forums/includes/hooks/hook_post_count_requirements.php on line 63
Obviously there is a conflict with the Post Requirmenets mod. Here is the hook file that came with it...

Code: Select all

<?php

/**

*

* @package Post Count Requirements

* @license http://opensource.org/licenses/gpl-license.php GNU Public License

*

**/



/**

* @ignore

**/

if (!defined('IN_PHPBB'))

{

	exit;

}



/**

* Class that contains all hooked methods

**/

abstract class pcr_hook

{

	/**

	* Register all hooks

	* @author Erik Frèrejean

	**/

	static public function register(&$phpbb_hook)

	{

		$phpbb_hook->register('phpbb_user_session_handler', 'pcr_hook::post_count_requirements_init');

		$phpbb_hook->register(array('template', 'display'), 'pcr_hook::post_count_requirements_pages');

	}



	/**

	* A hook that is used to initialise the Post Count Requirements core

	* @author Erik Frèrejean

	**/

	static public function post_count_requirements_init(&$hook)

	{



		if (!class_exists('pcr_phpbb'))

		{

			global $phpbb_root_path, $phpEx;



			require($phpbb_root_path . 'includes/mods/post_count_requirements/pcr_phpbb.' . $phpEx);

			pcr_phpbb::init();

		}



		if (!class_exists('pcr_core'))

		{

			global $phpbb_root_path, $phpEx;



			require ($phpbb_root_path . 'includes/mods/post_count_requirements/pcr_core.' . $phpEx);

			pcr_core::init();

		}

	}



	/**

	* A hook that checks auth for pages

	**/

	static public function post_count_requirements_pages(&$hook)

	{

		global $phpbb_root_path, $phpEx;



		if (!empty(pcr_phpbb::$user->page['page_dir']))

		{

			return;

		}



		// Is user allowed to bypass the post count requirements?

		$pcr_bypass = false;



		$sql = "SELECT * 

			FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g 

			WHERE ug.user_id = " . pcr_phpbb::$user->data['user_id'] . " AND ug.group_id = g.group_id";

		$result = pcr_phpbb::$db->sql_query($sql);



		while ($row = pcr_phpbb::$db->sql_fetchrow($result))

		{

			if ($row['group_bypass_post_req'] == 1)

			{

				$pcr_bypass = true;

			}

		}

		pcr_phpbb::$db->sql_freeresult($result);



		// Page specific cases

		switch (pcr_phpbb::$user->page['page_name'])

		{

			case 'posting.' . $phpEx:

				global $forum_id;



				// Does the user have the required post count to post in this forum?

				$forum_id = intval($forum_id);

				$sql = "SELECT f.*

					FROM " . FORUMS_TABLE . " f

					WHERE f.forum_id = $forum_id";

				$result = pcr_phpbb::$db->sql_query($sql);

				$forum_data = pcr_phpbb::$db->sql_fetchrow($result);

				pcr_phpbb::$db->sql_freeresult($result);



				if (pcr_core::check_pcr($forum_id, 'post') == false && $pcr_bypass == false)

				{

					$remaining_posts = ($forum_data['forum_postcount_post'] - pcr_phpbb::$user->data['user_posts']);

					$posts_var_1 = ($forum_data['forum_postcount_post'] == 1) ? pcr_phpbb::$user->lang['POSTREQ_POST'] : pcr_phpbb::$user->lang['POSTREQ_POSTS'];

					$posts_var_2 = ($remaining_posts == 1) ? pcr_phpbb::$user->lang['POSTREQ_POST'] : pcr_phpbb::$user->lang['POSTREQ_POSTS'];

					$access_error = sprintf(pcr_phpbb::$user->lang['POSTREQ_NOACCESS_POST'], $forum_data['forum_postcount_post'], $posts_var_1);

					if (pcr_phpbb::$user->data['user_id'] != ANONYMOUS)

					{

						$needed_posts = "<br /><br />" . sprintf(pcr_phpbb::$user->lang['POSTREQ_NOACCESS_MORE'], $remaining_posts, $posts_var_2);

					}

					else

					{

						$needed_posts = '';

					}



					trigger_error($access_error . $needed_posts);

				}

			break;



			case 'viewforum.' . $phpEx:

				global $forum_id;



				// Does the user have the required post count to view this forum?

				$forum_id = intval($forum_id);

				$sql = "SELECT f.*

					FROM " . FORUMS_TABLE . " f

					WHERE f.forum_id = $forum_id";

				$result = pcr_phpbb::$db->sql_query($sql);

				$forum_data = pcr_phpbb::$db->sql_fetchrow($result);

				pcr_phpbb::$db->sql_freeresult($result);



				if (pcr_core::check_pcr($forum_id, 'view') == false && $pcr_bypass == false)

				{

					$remaining_posts = ($forum_data['forum_postcount_view'] - pcr_phpbb::$user->data['user_posts']);

					$posts_var_1 = ($forum_data['forum_postcount_view'] == 1) ? pcr_phpbb::$user->lang['POSTREQ_POST'] : pcr_phpbb::$user->lang['POSTREQ_POSTS'];

					$posts_var_2 = ($remaining_posts == 1) ? pcr_phpbb::$user->lang['POSTREQ_POST'] : pcr_phpbb::$user->lang['POSTREQ_POSTS'];

					$access_error = sprintf(pcr_phpbb::$user->lang['POSTREQ_NOACCESS_VIEW'], $forum_data['forum_postcount_view'], $posts_var_1);

					if (pcr_phpbb::$user->data['user_id'] != ANONYMOUS)

					{

						$needed_posts = "<br /><br />" . sprintf(pcr_phpbb::$user->lang['POSTREQ_NOACCESS_MORE'], $remaining_posts, $posts_var_2);

					}

					else

					{

						$needed_posts = '';

					}



					trigger_error($access_error . $needed_posts);

				}

			break;



			case 'viewtopic.' . $phpEx:

				global $forum_id;



				// Does the user have the required post count to view this forum?

				$forum_id = intval($forum_id);

				$sql = "SELECT f.*

					FROM " . FORUMS_TABLE . " f

					WHERE f.forum_id = $forum_id";

				$result = pcr_phpbb::$db->sql_query($sql);

				$forum_data = pcr_phpbb::$db->sql_fetchrow($result);

				pcr_phpbb::$db->sql_freeresult($result);



				if (pcr_core::check_pcr($forum_id, 'view') == false && $pcr_bypass == false)

				{

					$remaining_posts = ($forum_data['forum_postcount_view'] - pcr_phpbb::$user->data['user_posts']);

					$posts_var_1 = ($forum_data['forum_postcount_view'] == 1) ? pcr_phpbb::$user->lang['POSTREQ_POST'] : pcr_phpbb::$user->lang['POSTREQ_POSTS'];

					$posts_var_2 = ($remaining_posts == 1) ? pcr_phpbb::$user->lang['POSTREQ_POST'] : pcr_phpbb::$user->lang['POSTREQ_POSTS'];

					$access_error = sprintf(pcr_phpbb::$user->lang['POSTREQ_NOACCESS_VIEW'], $forum_data['forum_postcount_view'], $posts_var_1);

					if (pcr_phpbb::$user->data['user_id'] != ANONYMOUS)

					{

						$needed_posts = "<br /><br />" . sprintf(pcr_phpbb::$user->lang['POSTREQ_NOACCESS_MORE'], $remaining_posts, $posts_var_2);

					}

					else

					{

						$needed_posts = '';

					}



					trigger_error($access_error . $needed_posts);

				}

			break;

		}

	}

}



pcr_hook::register($phpbb_hook);



?>
2.) I cant see an "x" to close out a IM conversation tab. I know its on the right part of the tab as when I click over in that area it closes but I cant see anything.

3.) And Lastly when looking at the chat online, the green online dot is in the middle of their name. Anyway to move the avatar and their username over to the left more so they can fit nicer without the dot overlapping or their username cutting off? And also sometimes the avatar doesn't show right away or sometimes at all...

Thanks in advance, and thanks for your time put into what looks to be an amazing mod. I am confident that once I get access to the mainpage I can customize it to suite my taste. Some additional questions if you do not mind answering. How do you add images to the image section of the user wall in the profiles. And how do you limit the amount of conversations (posts) on the mainpage. Back when I did have access to it I remember it going waaaaaay down the page. Thank you again my friend...

Locked

Return to “[3.0.x] Abandoned MODs”