DuelingOgres
Forum Replies Created
-
In order to address the issue on my site, I had to roll all the way back to v2.0.5. That was the version right before the Instagram checkout, but I’m no programmer, so that may just be conjecture.
Hi @drwpcom . Unfortunately changing the memory limit does nothing to fix this issue.
Nice! That did the trick! Thanks a lot, @kubitomakita !!
So for anyone who comes across this, here’s my updated code, placed in the functions section of my child theme:
notification_add_global_merge_tag( new BracketSpace\Notification\Defaults\MergeTag\HtmlTag( [ 'slug' => 'com_leads', 'name' => __( 'Discord Role ComLeads', 'lurxquad' ), 'description' => __( 'Alerts the Discord Role @CommunityLeader', 'notification' ), 'resolver' => function( $trigger ) { return get_option( 'com_leads', '<@&443118576942055456>' ); }, ] ) );
Remember that you’ll need to create a webhook in Discord for the notification (more info on how to do that here bracketspace.com/downloads/notification-discord/) and you’ll need the Global Merge Tags template from here docs.bracketspace.com/notification/developer/triggers/adding-merge-tags-to-existing-triggers
You’ll also need to get the ID of the role or user you’re trying to tag, which can be done in Discord by a) right-clicking the role or user and looking for “Copy ID” and then wrapping it with
<@&[ID NUMBER]>
or b) typing in\@[ROLE]
to output the ID in the aforementioned format.- This reply was modified 5 years, 6 months ago by DuelingOgres.
I’m not sure if I would feel comfortable, since I’m a novice using plugins and tend to poke the code with a pointy stick until it works. For instance, right now I’m trying a custom global merge tag to input the
<@&443118576942055456>
to see if it will populate correctly on the Discord side:notification_add_global_merge_tag( new BracketSpace\Notification\Defaults\MergeTag\StringTag( [ 'slug' => 'com_leads', 'name' => __( 'Discord Role ComLeads', '<@&443118576942055456>' ), 'resolver' => function( $trigger ) { return get_option( 'com_leads', '<@&443118576942055456>' ); }, ] ) );
I’m not sure what should go in the ‘textdomain’ field, so I just placed the role ID.
In any case, I do follow instruction fairly well, so if I need to be a test subject, I can comply.
UPDATE
My custom global did not work, it still stripped the “HTML” lol- This reply was modified 5 years, 6 months ago by DuelingOgres.
It seems to be happening in any field I put it in.
I thought it was also stripping the merge tags, but that is functioning now. It may have just been a really late night last night when I was first attempting to set it up ^.^
Is there a way to pass the role ID from Discord through without treating the
<@&443118576942055456>
as an HTML tag?I think that will actually alert the role it’s intended for.
- This reply was modified 5 years, 6 months ago by DuelingOgres.
- This reply was modified 5 years, 6 months ago by DuelingOgres.
Forum: Plugins
In reply to: [Event Tickets and Registration] Email text template syntaxThanks András, yeah I finally found that link on my own and to be honest forgot that I had a conversation open in here about it!
But yes, for anyone who comes along with a similar question, you have to create a template override and place it in a different directory within your WordPress install.
Forum: Plugins
In reply to: [Event Tickets and Registration] Email text template syntaxHey @erishel, will I put that right in the text editor in Registrations>Email Settings>Confirmation Message?
- This reply was modified 6 years, 5 months ago by DuelingOgres.
Forum: Plugins
In reply to: [Starbox - the Author Box for Humans] profile image not working!Dang, that sucks. Sorry it didn’t work out for you! Did you clear the old attempts, save them, then try to upload again, then save? Caches can be very weird sometimes when it comes to updating changes in a timely fashion. I’ve had a few times where my server host doesn’t show changes for upwards of 15 minutes, and sometimes it’s because I have to do something as simple as clear my browser cache.
- This reply was modified 8 years, 3 months ago by DuelingOgres.
Forum: Plugins
In reply to: [Starbox - the Author Box for Humans] profile image not working!I just removed any erroneous characters that some systems don’t like to play nice with.
For instance, if the file name you’re trying to use is “this is my profile pic.jpg” edit it to say “this_is_my_profile_pic.jpg”
The one I was trying to use actually had a period in the original file name, which can confuse the system into thinking that anything after the period is a file extension.
Forum: Plugins
In reply to: [Starbox - the Author Box for Humans] profile image not working!Hey guys, check the filename of the picture. I changed mine, removed any spaces or periods, and it worked!
Forum: Plugins
In reply to: [Starbox - the Author Box for Humans] profile image not working!Also having the same issue! Just added a new User, reduced the image size to 80*80 and still no picture.