This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

What add-on is this?

duderuud

New Member
Validated XF Owner
XF2 Forms Owner
XF2 Private Threads
XF2 Spaminator
XF2 FAQ
XF2 Simple Stats
I was just looking for this template/warning option.

 
Care to share on how to do that for all replies in a specific forum?
 
Care to share on how to do that for all replies in a specific forum?

Okay, this is what I have.

Template quick_reply_macros

Find:
HTML:
You must validate your XenForo license to see code

Replace:
HTML:
You must validate your XenForo license to see code

Change node_id == 167 to your node id
 
Thanks for your help.

Looks like the only thing added is an extra if statement ands the else $0.
Doesn't seem to work though, it just outputs the $0 for me:



Snippet from my edited macro:
Code:
You must validate your XenForo license to see code
 
You should make a template modification, not edit the template directly.
 
Oh, you need to create an add-on for that I see. This is getting tricky for me...I'll let you know how it goes!
 
Well you really don't need to create an addon, just a template modification.
 
Again thanks! Getting closer:



That still doesn't work though. Do I need to edit something else?
 
Yes, same result
 
Also tried changing the language and disabled all add-ons but that doesn't solve it also.
 
Could you post your entire quick_reply_macros please?

Because I think you made more edits. The phrase that should be custom is reply_placeholder (that is what is actually showing the text in the reply field) but your custom template now only seems to edit the phrase $placeholder.
 
I was the one that did the original template modification (Admin->Appearance->Template modifications) and I can verify that what Ozzy47 gave in this post is 100% correct.
https://snogssite.com/threads/what-add-on-is-this.3258/post-24851And there are no other edits.

If you copied the "Find" info directly from what he posted, that could be the problem. XenForo converts tabs to spaces in posts. What he posted should be copied directly from the main template so the tabs are used. Otherwise, the "Find" will never match anything.

And you you are editing the template itself, you shouldn't be. That's what "Template modifications" are for. And what was given in the post won't help you at all because $0 does not exist in an actual template. $0 is a template modification variable for the original "Find" value.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…