[Liam W.] Post Macros

[Liam W.] Post Macros 5.2.0 Fix 3

No permission to download

Coderax

New member
Ah I'll look at that!
Also, it would be awesome if you could add support for auto-submit for global macros as well! :) And is there any chance you could also make it move the thread after submitted macro? I'm running an application system on the forums, and they either get approved or denied. I've used an add-on that automatically moves them to their respective sub-forum when the prefix is edited. Would love to see this be implemented in to Post Macros! :)
 

sevenmix

Member
Hi, im having this error:


  • Error: Call to undefined method XF\Mvc\Reply\Error::getParam()
  • src/addons/LiamW/PostMacros/XF/Pub/Controller/Thread.php:18
  • Generado por: Almado
  • 11 Ago 2020 a la(s) 11:30
#0 src/XF/Mvc/Dispatcher.php(350): LiamW\PostMacros\XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\LiveContent\XF\Pub\Controller\Thread), NULL)
#2 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\LiveContent\XF\Pub\Controller\Thread), NULL)
#3 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#5 src/XF.php(391): XF\App->run()
#6 index.php(20): XF::runApp('XF\\Pub\\App')
#7 {main}


array(4) {
["url"] => string(102) "/temas/copys-persuasivos-email-marketing-landing-pages-y-anuncios-para-redes-sociales.778602/add-reply"
["referrer"] => string(113) "https://forobeta.com/temas/copys-pe...-pages-y-anuncios-para-redes-sociales.778602/"
["_GET"] => array(0) {
}
["_POST"] => array(9) {
["message_html"] => string(679) "<p><img class="smilie smilie--emoji fr-fic fr-dii" alt="🔥" title="Fire 🔥" src="https://twemoji.maxcdn.com/2/72x72/1f525.png" data-shortname="🔥">Disponible<img class="smilie smilie--emoji fr-fic fr-dii" alt="🔥" title="Fire 🔥" src="https://twemoji.maxcdn.com/2/72x72/1f525.png" data-shortname="🔥">: <strong>COPYS PERSUASIVO</strong>S<img class="smilie smilie--emoji fr-fic fr-dii" alt="📈" title="Chart increasing 📈" src="https://twemoji.maxcdn.com/2/72x72/1f4c8.png" data-shortname="📈">&nbsp;para email marketing, landing pages, cartas de ventas y anuncios para RRSS.</p><p><br></p><p><br></p>"
["attachment_hash"] => string(32) "da2da37ed3c33d725191c986206ffd06"
["attachment_hash_combined"] => string(88) "{"type":"post","context":{"thread_id":778602},"hash":"da2da37ed3c33d725191c986206ffd06"}"
["last_date"] => string(10) "1596119623"
["last_known_date"] => string(10) "1596119623"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(93) "/temas/copys-persuasivos-email-marketing-landing-pages-y-anuncios-para-redes-sociales.778602/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 

sevenmix

Member
Hi

the users are gettin the error just posting in any thread, i disabled the addon

im just using the macros for administrator

xf 2.1
 

gogo

Active member
I kind of get this to work. But still have some major problems.

1) How exactly these placeholders are used?

Bash:
my_username=>visitor.username

my_twitter=>visitor.Profile.custom_fields.twitter

my_skype=>visitor.Profile.custom_fields.skype

my_facebook=>visitor.Profile.custom_fields.facebook

thread_author=>thread.username

thread_title=>thread.title

forum_title=>forum.title

resource_author=>resource.User.username

resource_title=>resource.title

resource_category_title=>resource_category.title

conversation_title=>conversation.title

2) How do I get something like the following?

1599806982646.png

3) Can I get a preset TEXT (PER NODE) in the edit box like this? How?

1599807117311.png
 

CRUEL-MODZ

Well-known member
Hello,

1) How exactly these placeholders are used?

Bash:
my_username=>visitor.username

my_twitter=>visitor.Profile.custom_fields.twitter

my_skype=>visitor.Profile.custom_fields.skype

my_facebook=>visitor.Profile.custom_fields.facebook

thread_author=>thread.username

thread_title=>thread.title

forum_title=>forum.title

resource_author=>resource.User.username

resource_title=>resource.title

resource_category_title=>resource_category.title

conversation_title=>conversation.title
To use this you have to put a { before and a } after like this: {my_username} (it only works for a macro)
2) How do I get something like the following?

1599806982646.png
If you want to use this you have to put: {?+Placeholder label} in the macro (it only works for a macro)
3) Can I get a preset TEXT (PER NODE) in the edit box like this? How?
This is not possible to have predefined macros, you have a button on the editor that allows you to have a list of all the macros created: https://prnt.sc/ufgtzh

Regards, CRUEL-MODZ
 
Top