Daily Lucky Numbers:
7
13
20
34
36
47

Recent posts

#81
Site Discussion / Re: IPV4
Last post by Chen Zhen - March 12, 2025, 01:32:12 AM

Why are you bothering to run VPN tests on the bogus generated IPv4 addresses?
They're just what is visible for Admins on your forum & are not recorded in the database.
Also your regular users usually can't view any IP's except their own & I doubt they're going to run a check on what's visible.

To be honest, the IPv6 address likely doesn't bother people as this seems to be a pet peeve of yours.

Quote from: Duban Black on March 11, 2025, 08:49:52 PMuBOL: Generic cosmetic filtering stopped because no more DOM changes  css-generic.js:231
This appears to be a misdemeanor message from an add-on that you've loaded into your browser that you can ignore.

#82
Site Discussion / Re: IPV4
Last post by Duban Black - March 11, 2025, 08:49:52 PM
The installation works perfectly.

Yes, I think the javascript version is the best, because it is an aesthetic problem, I think it is good that internally the tracking works with the original data.

Visually now you can see the IP with IPV4 format, but I think there is an error with the conversion, because it shows me different data. I leave evidence:
2806:268:488:853:297d:d16:20de:feb

This is the generated IP
40.6.38.8

About the last thing you mention, I checked the browser inspector shows me this:
uBOL: Generic cosmetic filtering stopped because no more DOM changes  css-generic.js:231
I understand that it is just an output generated by the code and does not mean any error, I wanted to mention it anyway.

Thank you very much, you are the best
#83
Site Discussion / Re: IPV4
Last post by Chen Zhen - March 11, 2025, 04:35:08 PM
I used a global constant that only exists in PHP 8.2.27 or newer.
The attachment has a fix for your lower version of PHP.




Also note my reason for the PHP vs. JavaScript option...

I wanted to make the mod all hooks, negating the parsing of any SMF template files.
Due to the way SMF stores the IP in the $context array, the PHP option for this mod will render the IP tracking link invalid.
This can be dealt with using a single file edit to theme file(s) if necessary.

The JavaScript option will only change what is visible & will not effect the IP tracking link.
However, I can't be certain this will work for all themes due to the possible use of unique CSS classes (DOM identifiers/manipulation).
#84
Site Discussion / Re: IPV4
Last post by Duban Black - March 11, 2025, 11:37:45 AM
ok, I had no problems with the installation.

However when I select javascript I get this error:



When I select php I get this error:



In any case it does not allow me to see the post information.
#85
Site Discussion / Re: IPV4
Last post by Chen Zhen - March 10, 2025, 12:30:07 AM

Install the attached mod & set it to JavaScript mode.
If you find that mode to work then leave it set but if it fails then try PHP mode.

Navigate to this mod's settings from:
Admin -> Modification Settings -> Force IPv4 View
#86
Site Discussion / Re: IPV4
Last post by Duban Black - March 09, 2025, 07:57:29 PM
I just realized that I never uploaded the image, here it is

#87
SMF Arcade Support + Plugins / Re: I'm sorry to ask, and I ho...
Last post by Chen Zhen - March 05, 2025, 01:51:55 AM
No need for any apologies, asking questions about any WebDev mods is what this support forum is all about.



You can create categories for your Arcade & have them displayed on your various Arcade skins.
If you look at "Visual Settings" in the Arcade admin & scroll down to skin settings, you should see a check-box option for "Enable Drop Down Categories".
That is enabled for some of the skins here on this forum & what you seem to be referring to is the drop-down category list.
If you want your Arcade to display categories in that manner, then enable it for your Arcade skins.

If you leave that setting disabled, it will display categories as icons in a table like structure.
One of the skins is very basic and doesn't display any category options.

BTW - if you set permissions to allow members to pick their own skin & list, they will have options in their profile to do so.
There is a profile short cut available for this in the drop-down that appears for the Arcade button in the SMF navigation bar (Arcade Settings).

#88
SMF Arcade Support + Plugins / I'm sorry to ask, and I hope I...
Last post by Grammy - March 03, 2025, 07:17:12 PM
.... but when I just entered your arcade, I saw the choice to "View By Category".  It was the first thing I saw, before I clicked on anything, at all.  That's what I was asking about on THIS TOPIC.

Are you able to view by category in your arcade because of the skin you're using, and it's not really a part of the arcade files?

Thank you for your patience.

#89
SMF Arcade Support + Plugins / Re: Arcade throwing same error...
Last post by Grammy - February 27, 2025, 08:24:13 PM
Quote from: Chen Zhen on February 27, 2025, 03:31:31 PMThat won't do anything because you're mixing the $_SESSION array with the $txt array & that $txt key doesn't exist in the Arcade & won't have any effect.



Oh, I see!  (Well, I don't actually, but that's why you build arcades and I only enjoy them.)   :)

Thank you so much!
#90
SMF Arcade Support + Plugins / Re: Arcade throwing same error...
Last post by Chen Zhen - February 27, 2025, 03:31:31 PM
Thank you for the report.
The undefined error was a known issue & is already fixed for the upcoming release.

You can change that line you reported to this:
var str = "' . (!empty($_SESSION['arcade_shout_session']) ? $_SESSION['arcade_shout_session'] : substr(uniqid('invalid_', true), -5)) . '";



Quote from: Grammy on February 27, 2025, 02:51:23 PMNot to bump, but just adding that when I simply added
$txt['arcade_shout_session'] = 'Arcade Shout Session';to the ArcadeSkinC.english.php file, members who claimed they couldn't see the arcade can now see it and play on it.  That just sounds weird to me.  Why should that error have stopped them from even seeing the arcade?  Oh well...  I'm going to leave this "unsolved" until you guys weigh in, in case something else on my part should have been done.  Thank you.

That won't do anything because you're mixing the $_SESSION array with the $txt array & that $txt key doesn't exist in the Arcade & won't have any effect.