phpBB Arcade mod convert ext - phpBB 3.1 missing event

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
KillBill.
Registered User
Posts: 20
Joined: Wed Feb 11, 2015 6:07 am

phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by KillBill. »

I would like to ask for your help to phpBB 3.1 to be added to the following:

1. [PHP]
  • Identifer: core.faq
    Location: faq.php
    Parameters: $mode
    Explanation: phpBB Arcade faq
Example:

Code: Select all

$mode = request_var('mode', '');

$vars = array('mode');
extract($phpbb_dispatcher->trigger_event('core.faq', compact($vars)));
2. [PHP]
  • Identifer: core.index_common_after
    Location: index.php
    Parameters: not be
    Explanation: phpBB Arcade game score submission
Example:

Code: Select all

include($phpbb_root_path . 'common.' . $phpEx);

extract($phpbb_dispatcher->trigger_event('core.index_common_after'));
3. [PHP]
  • Identifer: core.ucp_switch_permissions
    Location: ucp.php
    Parameters: $message
    Explanation: phpBB Arcade switch permissions + Adding extra messages
Example:

Code: Select all

		$message = sprintf($user->lang['PERMISSIONS_TRANSFERRED'], $user_row['username']);

		$vars = array('message');
		extract($phpbb_dispatcher->trigger_event('core.ucp_switch_permissions', compact($vars)));

		$message .= '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
4. [PHP]
  • Identifer: core.ucp_restore_permissions
    Location: ucp.php
    Parameters: $message
    Explanation: phpBB Arcade restore permissions + Adding extra messages
Example:

Code: Select all

		$message = $user->lang['PERMISSIONS_RESTORED'];

		$vars = array('message');
		extract($phpbb_dispatcher->trigger_event('core.ucp_restore_permissions', compact($vars)));

		$message .= '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
5. [PHP]
  • Identifer: core.acp_style_activate
    Location: includes/acp/acp_styles.php
    Parameters: $ids
    Explanation: phpBB Arcade category style update
Example:

Code: Select all

		// Activate styles
		$sql = 'UPDATE ' . STYLES_TABLE . '
			SET style_active = 1
			WHERE style_id IN (' . implode(', ', $ids) . ')';
		$this->db->sql_query($sql);

		$vars = array('ids');
		extract($phpbb_dispatcher->trigger_event('core.acp_style_activate', compact($vars)));
6. [PHP]
  • Identifer: core.acp_style_deactivate
    Location: includes/acp/acp_styles.php
    Parameters: $ids
    Explanation: phpBB Arcade category style update
Example:

Code: Select all

		// Deactivate styles
		$sql = 'UPDATE ' . STYLES_TABLE . '
			SET style_active = 0
			WHERE style_id IN (' . implode(', ', $ids) . ')';
		$this->db->sql_query($sql);

		$vars = array('ids');
		extract($phpbb_dispatcher->trigger_event('core.acp_style_deactivate', compact($vars)));
7. [PHP]
  • Identifer: core.ucp_pm_compose_predefined_message
    Location: includes/ucp/ucp_pm_compose.php
    Parameters: $message_text, $message_subject
    Explanation: phpBB Arcade reported bug games - reply
Example:

Code: Select all

		$message_text = $message_subject = '';

		$vars = array(
			'message_text',
			'message_subject',
		);
		extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_predefined_message', compact($vars)));
8. [PHP]
  • Identifer: core.ucp_avatar
    Location: includes/ucp/ucp_profile.php
    Parameters: not be
    Explanation: phpBB Arcade users data purge cache
Example:

Code: Select all

									$sql = 'UPDATE ' . USERS_TABLE . '
										SET ' . $db->sql_build_array('UPDATE', $result) . '
										WHERE user_id = ' . (int) $user->data['user_id'];

									$db->sql_query($sql);

									extract($phpbb_dispatcher->trigger_event('core.ucp_avatar'));
1. [Template]
  • Identifer: index_body_online_block_after
    Location: styles/prosilver/template/index_body.html
    Explanation: phpBB Arcade who is playing
Example:

Code: Select all

			{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
			<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
			<!-- EVENT index_body_block_online_append -->
		</p>
	</div>
<!-- ENDIF -->

<!-- EVENT index_body_online_block_after -->
2. [Template]
  • Identifer: overall_header_navbar_before
    Location: styles/prosilver/template/overall_header.html
    Explanation: phpBB Arcade Menu
Example:

Code: Select all

		<!-- EVENT overall_header_navbar_before -->
		<!-- INCLUDE navbar_header.html -->
I know that this is not the correct way to bulking, but for me, the Chinese use English page.
So I ask for your help if possible, that these amendments be included in the next release.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by DavidIQ »

The explanations should not be linked at all to any specific extension. The explanation should be about what the general, intended purpose of the event is. And yes, putting everything together into one topic is not the greatest of ideas. You need to crate a topic for each otherwise this is likely to not be done.
Image

KillBill.
Registered User
Posts: 20
Joined: Wed Feb 11, 2015 6:07 am

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by KillBill. »

DavidIQ wrote:The explanations should not be linked at all to any specific extension. The explanation should be about what the general, intended purpose of the event is. And yes, putting everything together into one topic is not the greatest of ideas. You need to crate a topic for each otherwise this is likely to not be done.
I create new topic / request event?

User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by nickvergessen »

Just edit the first post, but also note that most of your events are already available, just at a little different place, but they allow the same modification.

As for the faq sample, I think you should just copy the code and use a controller.
We are doing that for phpBB itself aswell in 3.2
Member of the Development-TeamNo Support via PM

KillBill.
Registered User
Posts: 20
Joined: Wed Feb 11, 2015 6:07 am

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by KillBill. »

nickvergessen wrote:note that most of your events are already available, just at a little different place, but they allow the same modification.
I'm sorry, but I can not find them.
What are those that already exist?

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by DavidIQ »

KillBill. wrote:
nickvergessen wrote:note that most of your events are already available, just at a little different place, but they allow the same modification.
I'm sorry, but I can not find them.
What are those that already exist?
There's an entire list here that you should have looked at before creating the topics and the tickets...
https://wiki.phpbb.com/Event_List
Image

KillBill.
Registered User
Posts: 20
Joined: Wed Feb 11, 2015 6:07 am

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by KillBill. »

I am looking at this list, but I do not see what I asked.
Please tell me which one exists? :oops:

Khaos-Rage
Registered User
Posts: 35
Joined: Wed Aug 06, 2014 12:27 am

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by Khaos-Rage »

KillBill. wrote:I would like to ask for your help to phpBB 3.1 to be added to the following:

1. [PHP]
Identifer: core.faq

2. [PHP]
Identifer: core.index_common_after

3. [PHP]
Identifer: core.ucp_switch_permissions

4. [PHP]
Identifer: core.ucp_restore_permissions

5. [PHP]
Identifer: core.acp_style_activate

6. [PHP]
Identifer: core.acp_style_deactivate

7. [PHP]
Identifer: core.ucp_pm_compose_predefined_message

8. [PHP]
Identifer: core.ucp_avatar

1. [Template]
Identifer: index_body_online_block_after

2. [Template]
Identifer: overall_header_navbar_before



[PHP]

1.
nickvergessen wrote:
As for the faq sample, I think you should just copy the code and use a controller.
We are doing that for phpBB itself aswell in 3.2

2. Possibly make your own controller?

3. Not sure why you would need this one.

4. Same as 3

5. Just have it in the installation instructions for users to purge the cache

6. Same as 5

7. Maybe use this core.ucp_pm_compose_compose_pm_basic_info_query_before or just send a notification?

8. Not sure on this one

[Template]

1. index_body_block_online_append

2. Possibly use one of the events in navbar_header.html or overall_header.html, but I could see why you would want that to add a new nav bar above the current one. But you could use overall_header_page_body_before to create your own?

KillBill.
Registered User
Posts: 20
Joined: Wed Feb 11, 2015 6:07 am

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by KillBill. »

core.faq -> ok
----------------------------------------------------------------------
core.index_common_after -> true, I use core.common max adedd +1 index page check function :roll:
----------------------------------------------------------------------
core.ucp_switch_permissions
core.ucp_restore_permissions
Required to transfer arcade permissions!
----------------------------------------------------------------------
core.acp_style_activate -> incorrect request correct uninstall :roll:
core.acp_style_deactivate
I test default 3.1
If a style deactivates the forum style will continue to be able to use.
This is intentional?

At present, so the two requests, do not need!
----------------------------------------------------------------------

core.ucp_pm_compose_predefined_message
Maybe use this core.ucp_pm_compose_compose_pm_basic_info_query_before or just send a notification?
NO GOOD!
----------------------------------------------------------------------

[Template]

index_body_online_block_after
index_body_block_online_append
NO GOOD!

----------------------------------------------------------------------

[Template]

overall_header_navbar_before
Possibly use one of the events in navbar_header.html or overall_header.html, but I could see why you would want that to add a new nav bar above the current one. But you could use overall_header_page_body_before to create your own?
No good ugly!

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: phpBB Arcade mod convert ext - phpBB 3.1 missing event

Post by Dragosvr92 »

Im waiting to see this released next week :)
Previous user: TheKiller
Avatar on Memberlist 1.0.3

Post Reply