[3.3][ALPHA] PG Social Network

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
robbie787
Registered User
Posts: 62
Joined: Fri Sep 13, 2019 12:53 pm

Re: [3.3][ALPHA] PG Social Network

Post by robbie787 »

PGreca wrote:
Wed May 06, 2020 4:26 pm
Fixed the notifications and avatar upload.
Now i will focus for ACP/Pages settings, and add activity reports.

----
I' m sorry for all the bugs, but i' m try to do my best.
Hi PGreca, I just tested your update from github, the theme is looking great but a major problem is now occurring. No one can upload any images at all. It isn't posting on the main wall.

Just thought I would give you a heads up to fix it. Since the code changes.
User avatar
PGreca
Registered User
Posts: 66
Joined: Mon Oct 29, 2018 12:36 pm
Location: Italy
Contact:

Re: [3.3][ALPHA] PG Social Network

Post by PGreca »

robbie787 wrote:
Thu May 14, 2020 11:26 am
PGreca wrote:
Wed May 06, 2020 4:26 pm
Fixed the notifications and avatar upload.
Now i will focus for ACP/Pages settings, and add activity reports.

----
I' m sorry for all the bugs, but i' m try to do my best.
Hi PGreca, I just tested your update from github, the theme is looking great but a major problem is now occurring. No one can upload any images at all. It isn't posting on the main wall.

Just thought I would give you a heads up to fix it. Since the code changes.

Version 0.6.7 is up on Github
User avatar
robbie787
Registered User
Posts: 62
Joined: Fri Sep 13, 2019 12:53 pm

Re: [3.3][ALPHA] PG Social Network

Post by robbie787 »

PGreca wrote:
Fri May 15, 2020 11:43 am
robbie787 wrote:
Thu May 14, 2020 11:26 am
PGreca wrote:
Wed May 06, 2020 4:26 pm
Fixed the notifications and avatar upload.
Now i will focus for ACP/Pages settings, and add activity reports.

----
I' m sorry for all the bugs, but i' m try to do my best.
Hi PGreca, I just tested your update from github, the theme is looking great but a major problem is now occurring. No one can upload any images at all. It isn't posting on the main wall.

Just thought I would give you a heads up to fix it. Since the code changes.

Version 0.6.7 is up on Github
Awesome! Will check it out a bit later today. :D
alsthom
Registered User
Posts: 64
Joined: Fri Oct 05, 2012 5:19 pm

Re: [3.3][ALPHA] PG Social Network

Post by alsthom »

I love this extension for the instant messenger (chat) between users. However I can't make it work.
I would like to suggest to hide the sidebar with online users or the chat itself (something like messenger does)
Also I would like to suggest an option for chat to show only online users.
Thank you
User avatar
robbie787
Registered User
Posts: 62
Joined: Fri Sep 13, 2019 12:53 pm

Re: [3.3][ALPHA] PG Social Network

Post by robbie787 »

PGreca wrote:
Fri May 15, 2020 11:43 am
robbie787 wrote:
Thu May 14, 2020 11:26 am
PGreca wrote:
Wed May 06, 2020 4:26 pm
Fixed the notifications and avatar upload.
Now i will focus for ACP/Pages settings, and add activity reports.

----
I' m sorry for all the bugs, but i' m try to do my best.
Hi PGreca, I just tested your update from github, the theme is looking great but a major problem is now occurring. No one can upload any images at all. It isn't posting on the main wall.

Just thought I would give you a heads up to fix it. Since the code changes.

Version 0.6.7 is up on Github
Still same problems in 0.6.7 can't upload images and no image icon to upload images to pages. Also bit of a problem with the like button as well.
Febreen
Registered User
Posts: 20
Joined: Tue Apr 18, 2017 5:44 pm

Re: [3.3][ALPHA] PG Social Network

Post by Febreen »

Hey guys !

I just installed this extension on my forum and i love it !
I have just a question. For my opinion, the "Forum" in the navbar on the right is a problem and it's not beautiful.
On my screen:

Image

Can we move the button "Forum" between "Accueil" and "Membres" ? If yes, how ?

Thank you for your help !

I discovered a bug too. When we have a friend, he is shown on all pages in our ucp Screen:

Image

We can see "Amis: jbafort" on the left. And this is shown on all pages of the UCP.

Thanks !
User avatar
PGreca
Registered User
Posts: 66
Joined: Mon Oct 29, 2018 12:36 pm
Location: Italy
Contact:

Re: [3.3][ALPHA] PG Social Network

Post by PGreca »

Febreen wrote:
Sun May 24, 2020 10:07 pm
Hey guys !

I just installed this extension on my forum and i love it !
I have just a question. For my opinion, the "Forum" in the navbar on the right is a problem and it's not beautiful.
On my screen:

Image

Can we move the button "Forum" between "Accueil" and "Membres" ? If yes, how ?

Thank you for your help !
Open: elegance/template/navbar_header.html
Replace:

Code: Select all

<!-- IF U_SITE_HOME -->
					<li class="tab home" data-responsive-class="small-icon icon-home">
						<a class="nav-link" href="{U_SITE_HOME}" data-navbar-reference="home">{L_SITE_HOME}</a>
					</li>
				<!-- ENDIF -->
				<li class="tab forums selected" data-responsive-class="small-icon icon-forums">
					<a class="nav-link" href="{U_INDEX}">{L_FORUMS}</a>
				</li>
With:

Code: Select all

<!-- EVENT overall_header_navigation_prepend -->
Search and delete next:

Code: Select all

<!-- EVENT overall_header_navigation_prepend -->
Febreen wrote:
Sun May 24, 2020 10:07 pm
I discovered a bug too. When we have a friend, he is shown on all pages in our ucp Screen:

Image

We can see "Amis: jbafort" on the left. And this is shown on all pages of the UCP.

Thanks !
It' s a feature of phpbb, not mine..
Febreen
Registered User
Posts: 20
Joined: Tue Apr 18, 2017 5:44 pm

Re: [3.3][ALPHA] PG Social Network

Post by Febreen »

Thanks for your help PGreca.

Unfortunately, i don't have the code you ask me to change.
Look my code navbar_header.html:

Code: Select all

<div class="navbar" role="navigation">
	<div class="inner">

	<ul id="nav-main" class="nav-main linklist" role="menubar">

		<li id="quick-links" class="quick-links dropdown-container responsive-menu<!-- IF not S_DISPLAY_QUICK_LINKS and not S_DISPLAY_SEARCH --> hidden<!-- ENDIF -->" data-skip-responsive="true">
			<a href="#" class="dropdown-trigger">
				<i class="icon fa-bars fa-fw" aria-hidden="true"></i><span>{L_QUICK_LINKS}</span>
			</a>
			<div class="dropdown">
				<div class="pointer"><div class="pointer-inner"></div></div>
				<ul class="dropdown-contents" role="menu">
					<!-- EVENT navbar_header_quick_links_before -->

					<!-- IF S_DISPLAY_SEARCH -->
						<li class="separator"></li>
						<!-- IF S_REGISTERED_USER -->
							<li>
								<a href="{U_SEARCH_SELF}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-gray" aria-hidden="true"></i><span>{L_SEARCH_SELF}</span>
								</a>
							</li>
						<!-- ENDIF -->
						<!-- IF S_USER_LOGGED_IN -->
							<li>
								<a href="{U_SEARCH_NEW}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-red" aria-hidden="true"></i><span>{L_SEARCH_NEW}</span>
								</a>
							</li>
						<!-- ENDIF -->
						<!-- IF S_LOAD_UNREADS -->
							<li>
								<a href="{U_SEARCH_UNREAD}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-red" aria-hidden="true"></i><span>{L_SEARCH_UNREAD}</span>
								</a>
							</li>
						<!-- ENDIF -->
							<li>
								<a href="{U_SEARCH_UNANSWERED}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-gray" aria-hidden="true"></i><span>{L_SEARCH_UNANSWERED}</span>
								</a>
							</li>
							<li>
								<a href="{U_SEARCH_ACTIVE_TOPICS}" role="menuitem">
									<i class="icon fa-file-o fa-fw icon-blue" aria-hidden="true"></i><span>{L_SEARCH_ACTIVE_TOPICS}</span>
								</a>
							</li>
							<li class="separator"></li>
							<li>
								<a href="{U_SEARCH}" role="menuitem">
									<i class="icon fa-search fa-fw" aria-hidden="true"></i><span>{L_SEARCH}</span>
								</a>
							</li>
					<!-- ENDIF -->

					<!-- IF not S_IS_BOT and (S_DISPLAY_MEMBERLIST or U_TEAM) -->
						<li class="separator"></li>
						<!-- IF S_DISPLAY_MEMBERLIST -->
							<li>
								<a href="{U_MEMBERLIST}" role="menuitem">
									<i class="icon fa-group fa-fw" aria-hidden="true"></i><span>{L_MEMBERLIST}</span>
								</a>
							</li>
						<!-- ENDIF -->
						<!-- IF U_TEAM -->
							<li>
								<a href="{U_TEAM}" role="menuitem">
									<i class="icon fa-shield fa-fw" aria-hidden="true"></i><span>{L_THE_TEAM}</span>
								</a>
							</li>
						<!-- ENDIF -->
					<!-- ENDIF -->
					<li class="separator"></li>

					<!-- EVENT navbar_header_quick_links_after -->
				</ul>
			</div>
		</li>

		
		<li <!-- IF not S_USER_LOGGED_IN -->data-skip-responsive="true"<!-- ELSE -->data-last-responsive="true"<!-- ENDIF -->>
			<!--<a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">
				<i class="icon fa-question-circle fa-fw" aria-hidden="true"></i><span>{L_FAQ}</span>
			</a>-->
		</li> 
		<!-- EVENT overall_header_navigation_append -->
		<!-- IF U_ACP -->
			<li data-last-responsive="true">
				<a href="{U_ACP}" title="{L_ACP}" role="menuitem">
					<i class="icon fa-cogs fa-fw" aria-hidden="true"></i><span>{L_ACP_SHORT}</span>
				</a>
			</li>
		<!-- ENDIF -->
		<!-- IF U_MCP -->
			<li data-last-responsive="true">
				<a href="{U_MCP}" title="{L_MCP}" role="menuitem">
					<i class="icon fa-gavel fa-fw" aria-hidden="true"></i><span>{L_MCP_SHORT}</span>
				</a>
			</li>
		<!-- ENDIF -->

	<!-- IF S_REGISTERED_USER -->
		<!-- EVENT navbar_header_user_profile_prepend -->
		<li id="username_logged_in" class="rightside <!-- IF CURRENT_USER_AVATAR --> no-bulletin<!-- ENDIF -->" data-skip-responsive="true">
			<!-- EVENT navbar_header_username_prepend -->
			<div class="header-profile dropdown-container">
				<a href="{U_PROFILE}" class="header-avatar dropdown-trigger"><!-- IF CURRENT_USER_AVATAR -->{CURRENT_USER_AVATAR} <!-- ENDIF --> {CURRENT_USERNAME_SIMPLE}</a>
				<div class="dropdown">
					<div class="pointer"><div class="pointer-inner"></div></div>
					<ul class="dropdown-contents" role="menu">
						<!-- IF U_RESTORE_PERMISSIONS -->
							<li>
								<a href="{U_RESTORE_PERMISSIONS}">
									<i class="icon fa-refresh fa-fw" aria-hidden="true"></i><span>{L_RESTORE_PERMISSIONS}</span>
								</a>
							</li>
						<!-- ENDIF -->

					<!-- EVENT navbar_header_profile_list_before -->

						<li>
							<a href="{U_PROFILE}" title="{L_PROFILE}" role="menuitem">
								<i class="icon fa-sliders fa-fw" aria-hidden="true"></i><span>{L_PROFILE}</span>
							</a>
						</li>
						<!-- IF U_USER_PROFILE -->
							<li>
								<a href="{U_USER_PROFILE}" title="{L_READ_PROFILE}" role="menuitem">
									<i class="icon fa-user fa-fw" aria-hidden="true"></i><span>{L_READ_PROFILE}</span>
								</a>
							</li>
						<!-- ENDIF -->

						<!-- EVENT navbar_header_profile_list_after -->

						<li class="separator"></li>
						<li>
							<a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x" role="menuitem">
								<i class="icon fa-power-off fa-fw" aria-hidden="true"></i><span>{L_LOGIN_LOGOUT}</span>
							</a>
						</li>
					</ul>
				</div>
			</div>
			<!-- EVENT navbar_header_username_append -->
		</li>
		<!-- IF S_DISPLAY_PM -->
			<li class="rightside" data-skip-responsive="true">
				<a href="{U_PRIVATEMSGS}" role="menuitem">
					<i class="icon fa-inbox fa-fw" aria-hidden="true"></i><span>{L_PRIVATE_MESSAGES} </span><strong class="badge<!-- IF not PRIVATE_MESSAGE_COUNT --> hidden<!-- ENDIF -->">{PRIVATE_MESSAGE_COUNT}</strong>
				</a>
			</li>
		<!-- ENDIF -->
		<!-- IF S_NOTIFICATIONS_DISPLAY -->
			<li class="dropdown-container dropdown-{S_CONTENT_FLOW_END} rightside" data-skip-responsive="true">
				<a href="{U_VIEW_ALL_NOTIFICATIONS}" id="notification_list_button" class="dropdown-trigger">
					<i class="icon fa-bell fa-fw" aria-hidden="true"></i><span>{L_NOTIFICATIONS} </span><strong class="badge<!-- IF not NOTIFICATIONS_COUNT --> hidden<!-- ENDIF -->">{NOTIFICATIONS_COUNT}</strong>
				</a>
				<!-- INCLUDE notification_dropdown.html -->
			</li>
		<!-- ENDIF -->
		<!-- EVENT navbar_header_user_profile_append -->
	<!-- ELSE IF not S_IS_BOT -->
		<li class="rightside"  data-skip-responsive="true">
			<a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x" role="menuitem">
				<i class="icon fa-power-off fa-fw" aria-hidden="true"></i><span>{L_LOGIN_LOGOUT}</span>
			</a>
		</li>
		<!-- IF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) -->
			<li class="rightside" data-skip-responsive="true">
				<a href="{U_REGISTER}" role="menuitem">
					<i class="icon fa-pencil-square-o  fa-fw" aria-hidden="true"></i><span>{L_REGISTER}</span>
				</a>
			</li>
		<!-- ENDIF -->
		<!-- EVENT navbar_header_logged_out_content -->
	<!-- ENDIF -->
	</ul>

	<ul id="nav-breadcrumbs" class="nav-breadcrumbs linklist navlinks" role="menubar">
		<!-- DEFINE $MICRODATA = ' itemtype="http://schema.org/ListItem" itemprop="itemListElement" itemscope' -->
		{% set navlink_position = 1 %}
		<!-- EVENT overall_header_breadcrumbs_before -->
		<li class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
			<!-- EVENT overall_header_navigation_prepend -->
			<!-- EVENT overall_header_breadcrumb_prepend -->
				<span class="crumb" {$MICRODATA}><a href="{U_INDEX}" itemtype="https://schema.org/Thing" itemprop="item" accesskey="h" data-navbar-reference="index"><!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw"></i><!-- ENDIF --><span itemprop="name">{L_INDEX}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>

			<!-- BEGIN navlinks -->
				{% set NAVLINK_NAME = navlinks.BREADCRUMB_NAME | default(navlinks.FORUM_NAME) %}
				{% set NAVLINK_LINK = navlinks.U_BREADCRUMB | default(navlinks.U_VIEW_FORUM) %}
				<!-- EVENT overall_header_navlink_prepend -->
				<span class="crumb" {$MICRODATA}<!-- IF navlinks.MICRODATA --> {navlinks.MICRODATA}<!-- ENDIF -->><a href="{{ NAVLINK_LINK }}" itemtype="https://schema.org/Thing" itemprop="item"><span itemprop="name">{{ NAVLINK_NAME }}</span></a><meta itemprop="position" content="{{ navlink_position }}{% set navlink_position = navlink_position + 1 %}" /></span>
				<!-- EVENT overall_header_navlink_append -->
			<!-- END navlinks -->
			<!-- EVENT overall_header_breadcrumb_append -->
		</li>
		<!-- EVENT overall_header_breadcrumbs_after -->

		<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
			<li class="rightside responsive-search">
				<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}" role="menuitem">
					<i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">{L_SEARCH}</span>
				</a>
			</li>
		<!-- ENDIF -->
	</ul>

	</div>
</div>
Thanks for your help ! You do a great job!
User avatar
PGreca
Registered User
Posts: 66
Joined: Mon Oct 29, 2018 12:36 pm
Location: Italy
Contact:

Re: [3.3][ALPHA] PG Social Network

Post by PGreca »

Vers. 0.6.8b is up.
Fixed some bugs of chat.

--
Remember: Disable, delete data of extension, enable it. It' s an alpha version. All can change in it.
User avatar
Mightymax44
Registered User
Posts: 5
Joined: Sat Nov 16, 2019 8:17 am
Contact:

Re: [3.3][ALPHA] PG Social Network

Post by Mightymax44 »

Hi,
version 0.6.8b
When i change cover picture with validation and then reload my profile, it disappears. The photos in the gallery, i can't like the photo or comment on it.
When i upload avatar these error appears.
SQL ERROR [ mysqli ]

Erreur de syntaxe près de ' bbcode_bitfield, bbcode_uid, bbcode_options, post_parent, post_where, wall_id, ' à la ligne 1 [1064]

SQL

INSERT INTO phpbb_pg_social_wall_post (, bbcode_bitfield, bbcode_uid, bbcode_options, post_parent, post_where, wall_id, user_id, time, post_privacy, post_type, post_extra, tagged_user) VALUES ('', '', '', 0, 0, 0, 2, '2', 1590568575, 2, 1, 6, '')

BACKTRACE


It's great extension and great job.
User avatar
Mightymax44
Registered User
Posts: 5
Joined: Sat Nov 16, 2019 8:17 am
Contact:

Re: [3.3][ALPHA] PG Social Network

Post by Mightymax44 »

Mightymax44 wrote:
Wed May 27, 2020 7:42 am
Hi,
version 0.6.8b
When i change cover picture with validation and then reload my profile, it disappears. The photos in the gallery, i can't like the photo or comment on it.
When i upload avatar these error appears.
SQL ERROR [ mysqli ]

Erreur de syntaxe près de ' bbcode_bitfield, bbcode_uid, bbcode_options, post_parent, post_where, wall_id, ' à la ligne 1 [1064]

SQL

INSERT INTO phpbb_pg_social_wall_post (, bbcode_bitfield, bbcode_uid, bbcode_options, post_parent, post_where, wall_id, user_id, time, post_privacy, post_type, post_extra, tagged_user) VALUES ('', '', '', 0, 0, 0, 2, '2', 1590568575, 2, 1, 6, '')

BACKTRACE


It's great extension and great job.
I solved my problème with this:

For cover picture
controller/helper.php
remove at line 172

Code: Select all

|| !file_exists($this->pg_social_path.'/images/upload/'.$cover)
For avatar
event/listener.php
Comment this line 563

Code: Select all

//$this->social_photo->photo_upload('', (int) $this->user->data['user_id'], '', 'avatar', 'profile', $photo, 2);
User avatar
robbie787
Registered User
Posts: 62
Joined: Fri Sep 13, 2019 12:53 pm

Re: [3.3][ALPHA] PG Social Network

Post by robbie787 »

This is looking really good now.
User avatar
robbie787
Registered User
Posts: 62
Joined: Fri Sep 13, 2019 12:53 pm

Re: [3.3][ALPHA] PG Social Network

Post by robbie787 »

Once the security issue of admin/mods being able to delete members photos. Maybe it will be time to work on permissions.. for example: only certain member groups can use chat, like you have done with pages. :D
User avatar
PGreca
Registered User
Posts: 66
Joined: Mon Oct 29, 2018 12:36 pm
Location: Italy
Contact:

Re: [3.3][ALPHA] PG Social Network

Post by PGreca »

Mightymax44 wrote:
Fri May 29, 2020 10:26 am
Mightymax44 wrote:
Wed May 27, 2020 7:42 am
Hi,
version 0.6.8b
When i change cover picture with validation and then reload my profile, it disappears. The photos in the gallery, i can't like the photo or comment on it.
When i upload avatar these error appears.
SQL ERROR [ mysqli ]

Erreur de syntaxe près de ' bbcode_bitfield, bbcode_uid, bbcode_options, post_parent, post_where, wall_id, ' à la ligne 1 [1064]

SQL

INSERT INTO phpbb_pg_social_wall_post (, bbcode_bitfield, bbcode_uid, bbcode_options, post_parent, post_where, wall_id, user_id, time, post_privacy, post_type, post_extra, tagged_user) VALUES ('', '', '', 0, 0, 0, 2, '2', 1590568575, 2, 1, 6, '')

BACKTRACE


It's great extension and great job.
I solved my problème with this:

For cover picture
controller/helper.php
remove at line 172

Code: Select all

|| !file_exists($this->pg_social_path.'/images/upload/'.$cover)
For avatar
event/listener.php
Comment this line 563

Code: Select all

//$this->social_photo->photo_upload('', (int) $this->user->data['user_id'], '', 'avatar', 'profile', $photo, 2);

Really thank you for update lang!

I need to fix this error because with your code, you disable the activity's publish of new avatar.
I will fix.
elawrenc
Registered User
Posts: 131
Joined: Thu Jul 21, 2011 2:41 pm

Re: [3.3][ALPHA] PG Social Network

Post by elawrenc »

How are things coming along? Really looking forward to this one. I have some server space if you need me to host a test board.
Post Reply

Return to “Extensions in Development”

cron