Welcome On Index

Extensions & Styles for phpBB 3.1.X maintained and supported by Stoker
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 139
Joined: 06 Mar 2010, 22:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy

Re: Welcome On Index

Post by Galandas »

hi I updated your extension to the latest version of phpbb, however perhaps under your correction I noticed that in the template there is an (IF) that concerns the phpBB Christmas extension, is it normal or is it a typo and should be removed?

<!-- IF (XMAS_TESTMODE and U_ACP) or not XMAS_TESTMODE -->

Code: Select all

<!-- IF ENABLE_WELCOMEONINDEX and S_WELCOMEONINDEX -->
<!-- IF ENABLE_XMAS -->
<!-- IF (XMAS_TESTMODE and U_ACP) or not XMAS_TESTMODE -->
<div class="hat"></div>
<!-- ENDIF -->
<!-- ENDIF -->
	<a class="category<!-- IF S_FOO_WELCOMEONINDEX_HIDDEN --> hidden-category<!-- ENDIF -->" style="display: none; height: 0"></a>
	<div class="forabg">
		<div class="inner">
			<ul class="topiclist">
				<li class="header">
					<dl class="row-item">
						<dt><div class="list-inner" style="width:90%;">{L_WELCOME_TO_MOD} {SITENAME}</div></dt>
						<dd>&nbsp;</dd>
					</dl>
					<a href="{U_FOO_WELCOMEONINDEX_COLLAPSE_URL}" class="collapse-btn collapse-<!-- IF S_FOO_WELCOMEONINDEX_HIDDEN -->show<!-- ELSE -->hide<!-- ENDIF -->" data-hidden="{S_FOO_WELCOMEONINDEX_HIDDEN}" data-ajax="phpbb_collapse" data-overlay="true" title="{L_COLLAPSIBLE_CATEGORIES_TITLE}" style="display: none; line-height: 0;"></a>
				</li>
			</ul>
			<div class="panel bg1 collapsible">
				<div class="inner">
					<div class="content" style="padding-top:5px;padding-left:5px;">
						<!-- IF ENABLE_WELCOMEONINDEX_AVATAR -->
						<span class="forum-image responsive-hide" style="padding:0;"><!-- IF CURRENT_USER_AVATAR -->{CURRENT_USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF --></span><!-- ENDIF -->
						<!-- IF ENABLE_WELCOMEONINDEX_DAY_MESSAGE --><span style="font-size:1.8em;">{S_WELCOME}</span><!-- ENDIF -->
						<div style="padding-top:8px;">
						<!-- IF S_USER_LOGGED_IN -->
						<!-- IF ENABLE_WELCOMEONINDEX_JOINED --><p>{L_WELCOME_YOU} {SITENAME}: {S_JOINED_DATE}<br />{MEMBER_FOR}</p><!-- ENDIF -->
						<!-- IF WELCOMEONINDEX_OUTPUT -->{WELCOMEONINDEX_OUTPUT}<!-- ELSE --><p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS}<br />{NEWEST_USER}</p><!-- ENDIF -->
						<!-- ELSE -->
						<!-- IF WELCOMEONINDEX_OUTPUT -->{WELCOMEONINDEX_OUTPUT}<!-- ELSE --><p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS}<br />{NEWEST_USER}</p><!-- ENDIF -->
						<p>{L_WELCOME_PLEASE} <a href="{U_LOGIN_LOGOUT}" style="font-weight:bold;">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED --> {L_WELCOME_OR} <a href="{U_REGISTER}" style="font-weight:bold;">{L_REGISTER}</a><!-- ENDIF --> {L_WELCOME_ENJOY}</p>
						<!-- ENDIF -->
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ENDIF -->
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 854
Joined: 04 Mar 2010, 23:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Welcome On Index

Post by Steve »

Possibly an event, has it caused an issue to the extension?
Steve wrote: 14 Nov 2024, 14:45 It's happy bastard day!
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 139
Joined: 06 Mar 2010, 22:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy

Re: Welcome On Index

Post by Galandas »

the code and to make sure that phpBB Christmas also affects this extension, all ok, I understood that the code was there for nothing.

Code: Select all

{% if ENABLE_XMAS %}
{% if (XMAS_TESTMODE and U_ACP) or not XMAS_TESTMODE %}
<div class="hat"></div>
{% endif %}
{% endif %}
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 139
Joined: 06 Mar 2010, 22:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy

Re: Welcome On Index

Post by Galandas »

I updated your extension to 3.3.x compatible and fixed a bug. If you want to download it or put it here, go ahead.
It also contains the Italian language.
Welcome-On-Index-11-24-2024_02_43_AM.png
BUG RISOLTO

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/stoker/welcomeonindex/event/listener.php on line 162: A non well formed numeric value encountered
You do not have the required permissions to view the files attached to this post.
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 139
Joined: 06 Mar 2010, 22:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy

Re: Welcome On Index

Post by Galandas »

Hi I apologize but the extension after correcting the first BUG generated another one, and reported below, and it has been solved, you have to re-download the zip with the new version. :thumb: I updated your extension to 3.3.x compatible

Fixed another BUG on recent version:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php on line 214: call_user_func() expects parameter 1 to be a valid callback, class 'stoker/welcomeonindex/event/listener' does not have a method 'ucp_prefs_get_data'
User avatar
Stoker
Site Admin
Site Admin
Posts: 3545
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Re: Welcome On Index

Post by Stoker »

Galandas wrote: 02 Dec 2024, 06:43 Hi I apologize but the extension after correcting the first BUG generated another one, and reported below, and it has been solved, you have to re-download the zip with the new version. :thumb: I updated your extension to 3.3.x compatible

Fixed another BUG on recent version:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php on line 214: call_user_func() expects parameter 1 to be a valid callback, class 'stoker/welcomeonindex/event/listener' does not have a method 'ucp_prefs_get_data'
Nice work :thumb:
Board rules! No PM support