Daily Lucky Numbers:
3
20
24
31
33
38

Recent posts

#21
SMF Arcade Support + Plugins / Re: Hide profile information f...
Last post by Chen Zhen - May 03, 2025, 12:53:00 AM

There isn't an option to disable it but I will add it to the next version.

For now you can edit file:
./Sources/ArcadeHooks.php

Find:
function arcade_custom_profile($memID, $area)
{
global $context, $settings, $txt, $arcadeModSettings, $user_info, $scripturl, $smcFunc;

Replacement for the above code:
function arcade_custom_profile($memID, $area)
{
global $context, $settings, $txt, $arcadeModSettings, $user_info, $scripturl, $smcFunc;
return;
#22
SMF Arcade Support + Plugins / Re: 2: Undefined array key "in...
Last post by Chen Zhen - May 02, 2025, 11:45:26 PM

This never surfaced in testing & was part of the recent update.
It will be fixed in the next release.

For now, you can change that line to this:
$getScoreHooks = !empty($modSettings['integrate_arcade_score']) ? explode(',', $modSettings['integrate_arcade_score']) : [];

Thanks for the report.

#23
SMF Arcade Support + Plugins / Re: SMF-Arcade Plug-in: Mobile...
Last post by Skhilled - May 02, 2025, 09:13:23 PM
Cool!  8)
#24
When the game ends and my score should be saved this error appears:

index.php?act=Arcade&do=newscore
/home/u964766853/domains/harrypotterhead.com/public_html/foro/ArcadeSources/ArcadeGame.php (Line 967)

message error:

2: Undefined array key "integrate_arcade_score"

#0: smf_error_handler()
Llamado desde /home/u964766853/domains/harrypotterhead.com/public_html/foro/ArcadeSources/ArcadeGame.php en línean 967
#1: ArcadeSubmit()
Llamado desde /home/u964766853/domains/harrypotterhead.com/public_html/foro/Sources/Arcade.php en línean 879
#2: Arcade()
Llamado desde /home/u964766853/domains/harrypotterhead.com/public_html/foro/Sources/ArcadeHooks.php en línean 92
#3: Arcade_game_support()
Llamado desde /home/u964766853/domains/harrypotterhead.com/public_html/foro/Sources/Subs.php en línean 5798
#4: call_integration_hook()
Llamado desde /home/u964766853/domains/harrypotterhead.com/public_html/foro/index.php en línean 269
#5: smf_main()
Llamado desde /home/u964766853/domains/harrypotterhead.com/public_html/foro/index.php en línean 196

Line 967 is:

$getScoreHooks = explode(',', $modSettings['integrate_arcade_score']);
How can I fix it?
#25
I installed the Arcade and in the user's profile appeared three data that I would like to hide, I checked in the admin options and I did not find how to do it.

How could I hide it? where in the code is this information generated?
I can't use css to solve it because those fields vary in the users.



Thank you
#26
General Code/Script Inquiries / Re: Hide content
Last post by Duban Black - April 28, 2025, 06:20:10 PM
Quote from: Dave on April 15, 2025, 05:30:06 PMOK I get it now. There is no option in the settings to allow for replies to see the hidden content, but you can set it to use 'Likes' in the current SMF2.1.4.

Yes, I would like to edit the code so that instead of liking it, I can set it to make a reply in the topic
#27
General Code/Script Inquiries / Re: Hide content
Last post by Duban Black - April 28, 2025, 06:19:37 PM
Quote from: Chen Zhen on April 12, 2025, 12:00:12 AMYou're not explaining what you're trying to accomplish in detail.

Do you want members to have the ability to read the initial (first) post in a topic but can't view any replies unless they have replied to that same topic?

-- or --

Do you want members to have the ability to read the initial (first) post in a topic but can't view any replies by other people and can only view their own replies and any replies from the original topic starter?

I would like that to see the content inside the hide you must make at least one post in the topic.
#28
General Code/Script Inquiries / Re: Hide content
Last post by Dave - April 15, 2025, 05:30:06 PM
OK I get it now. There is no option in the settings to allow for replies to see the hidden content, but you can set it to use 'Likes' in the current SMF2.1.4.
#29
General Code/Script Inquiries / Re: Hide content
Last post by Dave - April 15, 2025, 05:00:32 PM
Quote from: Duban Black on March 26, 2025, 08:08:43 PMIs there any way to hide the content of a post so that it is only visible to those who reply in the topic?

Something similar to this mod:

https://custom.simplemachines.org/index.php?mod=4013

What's wrong with that mod?
#30
General Code/Script Inquiries / Re: Hide content
Last post by Chen Zhen - April 12, 2025, 12:00:12 AM
You're not explaining what you're trying to accomplish in detail.

Do you want members to have the ability to read the initial (first) post in a topic but can't view any replies unless they have replied to that same topic?

-- or --

Do you want members to have the ability to read the initial (first) post in a topic but can't view any replies by other people and can only view their own replies and any replies from the original topic starter?