[ABD] Welcome On Index

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!
Ideas Centre
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
raykai
Registered User
Posts: 76
Joined: Tue Apr 09, 2013 5:32 am

Re: [RC] Welcome On Index

Post by raykai » Sun Jul 17, 2016 10:43 pm

how can i get this mod to show on top of Mchat mod ?

Image

and this still needs to be fixed.
open up ext/stoker/welcomeonindex/migrations/module_data.php

Code: Select all

<?php
/**
*
* @package phpBB Extension - Welcome on Index
* @copyright (c) 2014 Stoker
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

namespace stoker\welcomeonindex\migrations;

class module_data extends \phpbb\db\migration\migration
{
	public function update_data()
	{
		return array(
			array('module.add', array(
				'acp',
				'ACP_CAT_DOT_MODS',
				'ACP_WELCOMEONINDEX'
			)),
			array('module.add', array(
				'acp',
				'ACP_WELCOMEONINDEX',
				array(
					'module_basename'	=> '\stoker\welcomeonindex\acp\welcomeonindex_module',
					'modes'				=> array('settings'),
				),
			)),
		);
	}
	
	public function revert_data()
	{
		return array(
			array('module.remove', array(
				'acp',
				'ACP_CAT_DOT_MODS',
				'ACP_WELCOMEONINDEX'
			)),
			array('module.remove', array(
				'acp',
				'ACP_WELCOMEONINDEX',
				array(
					'module_basename'	=> '\stoker\adsenseads\acp\adsenseads_module',
					'modes'				=> array('settings'),
				),
			)),
		);
	}
}
this is the code of module_data.php of the mod as you see in the revert part there is the reason why

'module_basename' => '\stoker\adsenseads\acp\adsenseads_module',

replace it with


'module_basename' => '\stoker\welcomeonindex\acp\welcomeonindex_module',

save and upload back
Thanks, will fix that as soon as i get to my computer. Can take a couple of days.

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [RC] Welcome On Index

Post by Lumpy Burgertushie » Sun Jul 17, 2016 11:34 pm

open :

ext/stoker/welcomeonindex/styles/prosilver/template/event/

rename index_body_markforums_before.html
to
overall_header_page_body_before

see how that works.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

User avatar
raykai
Registered User
Posts: 76
Joined: Tue Apr 09, 2013 5:32 am

Re: [RC] Welcome On Index

Post by raykai » Mon Jul 18, 2016 12:10 am

Lumpy Burgertushie wrote:open :

ext/stoker/welcomeonindex/styles/prosilver/template/event/

rename index_body_markforums_before.html
to
overall_header_page_body_before

see how that works.

robert

that adds it to all of the top pages of all the forum sub pagers and the index page,i just need it on the index page on top of Mchat.

User avatar
3Di
Registered User
Posts: 11450
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [RC] Welcome On Index

Post by 3Di » Mon Jul 18, 2016 12:28 am

try index_body_markforums_after but for the secondary extension, not the present one.
Want to compensate me for my interest? You can.
You can pm me only in case of request for paid job. Thx.
MOD conversions, Extensions and Scripts for phpBB.

Talk19Zehn
Registered User
Posts: 248
Joined: Tue Aug 09, 2011 1:10 pm

Re: [RC] Welcome On Index

Post by Talk19Zehn » Mon Jul 18, 2016 12:35 am

Hi, perhaps set your own EVENT:

index_body.html: search
<!-- EVENT index_body_markforums_before -->
add before
<!-- EVENT index_body_markforums_welcomeonindex_before -->

and change the HTML to
index_body_markforums_welcomeonindex_before.html

... clear all(!) caches! Test it please, this idea is also without a guarantee.

Regards
Currently occasionally online .. ♪ ♫ Best regards

User avatar
3Di
Registered User
Posts: 11450
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [RC] Welcome On Index

Post by 3Di » Mon Jul 18, 2016 1:12 am

Talk19Zehn wrote:Hi, perhaps set your own EVENT:

index_body.html: search
<!-- EVENT index_body_markforums_before -->
add before
<!-- EVENT index_body_markforums_welcomeonindex_before -->

and change the HTML to
index_body_markforums_welcomeonindex_before.html

... clear all(!) caches! Test it please, this idea is also without a guarantee.

Regards
I do not think you know how template events (and generally speaking EVENTS) work.

The template events list for up to 3.1.9 ATM, is here and you can use ONLY those that are present into that list.

Events are released by phpBB (usually every new version gives some new event offered) and you cannot invent those as you wish, you should make a PR instead if you want to create a new one like: index_body_markforums_welcomeonindex_before.html, can you find it in that list?
Want to compensate me for my interest? You can.
You can pm me only in case of request for paid job. Thx.
MOD conversions, Extensions and Scripts for phpBB.

User avatar
raykai
Registered User
Posts: 76
Joined: Tue Apr 09, 2013 5:32 am

Re: [RC] Welcome On Index

Post by raykai » Mon Jul 18, 2016 1:59 am

3Di wrote:try index_body_markforums_after but for the secondary extension, not the present one.
thx this works :)

so for any one that needs this mod to be on top of Mchat 2.0.0-RC5 try that fix in ext/dmzx/mchat/styles/(watever your style name is)/template/event/

backup the file :

Code: Select all

index_body_markforums_before.html
and then rename this file to

Code: Select all

index_body_markforums_after.html
thx 3Di for the fix
Last edited by raykai on Mon Jul 18, 2016 6:56 am, edited 1 time in total.

User avatar
3Di
Registered User
Posts: 11450
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [RC] Welcome On Index

Post by 3Di » Mon Jul 18, 2016 2:20 am

raykai wrote:thx 3Di for the fix
Anytime. :)

BTW ext/dmzx/styles ? Shouldn't be ext/dmzx/[b]name of the extension[/b]/styles..
Want to compensate me for my interest? You can.
You can pm me only in case of request for paid job. Thx.
MOD conversions, Extensions and Scripts for phpBB.

User avatar
raykai
Registered User
Posts: 76
Joined: Tue Apr 09, 2013 5:32 am

Re: [RC] Welcome On Index

Post by raykai » Mon Jul 18, 2016 6:57 am

3Di wrote:
raykai wrote:thx 3Di for the fix
Anytime. :)

BTW ext/dmzx/styles ? Shouldn't be ext/dmzx/[b]name of the extension[/b]/styles..
thx ones more :D 3Di for seeing this i edited my post :mrgreen:

Talk19Zehn
Registered User
Posts: 248
Joined: Tue Aug 09, 2011 1:10 pm

Re: [RC] Welcome On Index

Post by Talk19Zehn » Mon Jul 18, 2016 7:23 am

@3Di,
I do not think you know how template events (and generally speaking EVENTS) work.
:evil:
The template events list for up to 3.1.9 ATM, is here and you can use ONLY those that are present into that list.

Events are released by phpBB (usually every new version gives some new event offered) and you cannot invent those as you wish, you should make a PR instead if you want to create a new one like: index_body_markforums_welcomeonindex_before.html, can you find it in that list?

.... this is known to me! It is not forbidden to conceive own EVENTS and / or use and / or to couple to the system files. What needs to be done, I have not mentioned.

.
Currently occasionally online .. ♪ ♫ Best regards

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20089
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [RC] Welcome On Index

Post by RMcGirr83 » Mon Jul 18, 2016 9:53 am

It isn't forbidden but will be removed when there is an update to the file that has a custom event.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Miri4ever
Registered User
Posts: 384
Joined: Sat Mar 07, 2015 11:18 am

Re: [RC] Welcome On Index

Post by Miri4ever » Mon Jul 18, 2016 10:58 am

Webside of this Exentsion down ??
Homepage: Terra Oceanica

Talk19Zehn
Registered User
Posts: 248
Joined: Tue Aug 09, 2011 1:10 pm

Re: [RC] Welcome On Index

Post by Talk19Zehn » Mon Jul 18, 2016 11:12 am

Hi RMcGirr83, that´s right! And it is clear that we have self to act. That is just not always easily.
As far as we were not been indeed, because I became so stalled equal ... ;) Is no longer important to me and now not my thought in this topic. Now it´s not my task.

Regards @All



====
Edit:
BTW: A small guide for first informations ...
https://wiki.phpbb.com/Add_Events
Currently occasionally online .. ♪ ♫ Best regards

User avatar
Stoker 4.0
Registered User
Posts: 1414
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Welcome On Index

Post by Stoker 4.0 » Mon Jul 18, 2016 11:23 am

Miri4ever wrote:Webside of this Exentsion down ??
No, running fine ;)

User avatar
Stoker 4.0
Registered User
Posts: 1414
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Welcome On Index

Post by Stoker 4.0 » Mon Sep 26, 2016 1:59 pm

Updated to 1.0.5
Fixed problem when uninstalling

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: imkingdavid, kustajuspin, pszyman, zcrox69 and 31 guests