Daily Lucky Numbers:


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Chen Zhen

EhPortal Support / Re: Is there a Turkish language pack?
November 27, 2022, 11:31:42 PM
There are no Turkish language packs for the latest version of EhPortal.
EhPortal Support / Re: Re-Enable hooks
November 27, 2022, 11:30:23 PM

You can also delete all EhPortal packages from your package manager.
Download the attachment, install it & then uninstall it via your package manager.
Clear your error log.

Afterward you can delete that package then download EhPortal anew & install it.
EhPortal Support / Re: Re-Enable hooks
November 27, 2022, 11:19:04 PM
The latest repair_settings tool should allow you to remove the EhPortal hooks.
When you load the settings tool just look to your bottom right for the button to do that.
EhPortal Support / Re: Forum clone in the bbc block.
November 17, 2022, 09:03:57 PM
I'm not quite sure where your php file is located but you shouldn't be defining an existing php function.

Assuming the file is in your main forum directory, just use this in your PHP page code:
global $boarddir;
require_once($boarddir . '/test.php');
Releases & Version Updates / Re: SMF Banner Bar
October 16, 2022, 07:18:47 PM
It was likely because of the improper regex I used to filter the input which removed it when saved.
This should work fine now for version 1.5+.
Releases & Version Updates / Re: SMF Banner Bar
October 16, 2022, 03:24:03 PM

I made a small mistake within the regex for filtering that input where the range quantifier has to be escaped when not using it for a range  :-[  inside square brackets.

Thanks for the report!

Version 1.5 is now available.

+   Changed:   unique function to determine if enabled
+   Changed:    buffer not parsed when disabled
!   Fixed:      regex meta-character (hyphen) inside square brackets escaped
Releases & Version Updates / Re: SMF Banner Bar
October 16, 2022, 02:54:31 PM
Quote from: Dave on October 16, 2022, 11:48:24 AMSorry to bother you but how do I change the size of the text in the bar?

You had '.quizbanner { fontsize: 1.1rem; }' I upped that to 1.2rem and larger but it makes no difference

You forgot the hyphen.

quizbanner { font-size: 1.1rem; }

Releases & Version Updates / Re: SMF Banner Bar
October 16, 2022, 03:35:52 AM

Version 1.4 is now available.

+*&   Added: option to disable for specific actions
+*&   Added: help text for some admin options
+    Added: limited regex filter for BannerBar CSS input
!   Fixed: output no longer executed during XML output
!   Fixed: Banner Bar can now be displayed in Admin
!   Fixed: recommended values are now applied for admin links

Please note the PR for SMF 2.1 regarding mail & carriage returns in the header:

SMF 2.0.19 has the same issue therefore PHP emails may fail when using PHP 8+.
ZhenMailer already uses the appropriate CR that is needed for PHP8+ although it might explain any issues people have with older PHP versions.

I know you decided to go with SMTP email but I'm curious to know if you were referring to ZhenMailer having an issue with DB dumps or was SMF not sending any emails at all?
Those don't use the same SMF function to send emails as ZhenMailer has its own for sending DB dumps.

If you were only having problems with sending regular SMF emails with php mail(), SMF 2019 & PHP 8+ then an edit will likely fix it.

file: ../Sources/Subs-Post.php

$line_break = $context['server']['is_windows'] || !$use_sendmail ? "\r\n" : "\n";

replace with:
$line_break = ($context['server']['is_windows'] || !$use_sendmail || version_compare(PHP_VERSION, '8.0.0', '>=')) ? "\r\n" : "\n";

Keep in mind if the SMF devs release a SMF 2.0.20 patch then you may need to revert the edit prior to applying the patch or perhaps ignoring the parsing error you'll get when it attempts to make this very same edit.
Releases & Version Updates / Re: SMF Banner Bar
October 09, 2022, 12:30:35 PM

Version 1.3 is now available.

!    Fixed: hidden div added to the end of the body element (buffer hook)
!*&   Fixed: added admin option to center Banner Bar horizontally

The download section has been updated with EhPortal version 1.39 to reflect the changes discussed in this thread.

I'll mark the topic as solved.
I see what the problem is..

Please try the attachment & let me know if I fixed it this time.

Alright.. my mistake as registration is enabled on your forum.
I'm taking a look at it now.

The last attachment has an update for Gravatars since I neglected to previously support them which I thought might be the issue.
I've tested it with default forum avatars, uploaded avatars, external source avatars & gravatars whereas all seem to work without issue.

At the moment you have registration disabled on your climbing forum..
If you want I can take a look at the home page with the block on it so I can try to see what's going on.
Looking at the HTML of the page will allow me to see what URL's it's using for the avatars that aren't working properly.
If you create a temporary user with access & PM me some credentials then I'll take a look.
Try updating EhPortal with the attachment & let me know if it fixes your issue.