We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5282
    • 147 Posts
    Hi !
    In my modx website i use a forum for the UserComments
    ( the forum i use is a PunBB forum )
    i put a link at the bottom of the pages :
    "click here to write a comment"

    at the beginning, it was quite long to do this, i had to:
    1_ create the topic in the forum
    2_ copy the url linking to the topic
    3_ paste the url in the web page

    but now i use a template variable and it’s far quicker ! :

    punbb url’s look like this : http://www.yoursite.com/yourforumroot/post.php?tid=XXXX
    where XXXX is the id of the topic

    so you can create a template variable ( a text tv will do it ), called "comment" for example

    in your template(s), add somewhere
    Click <a href="http://www.yoursite.com/yourforumroot/post.php?tid=[*#comment*]> here </a> to write a comment
    


    the # symbol enables the tv to be edited with Quickedit

    it’s done !

    Now you only have to create the topic in the forum, remember the id , and add the value to the pages with Quickedit !

    ( p.s. this will work with every forum, just modify the html code to fit the forum’s url )
      i’m not a native english speaker, sorry if there are any mistakes ! smiley

      Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )
      • 15914
      • 145 Posts
      That sounds pretty inventive. Many thanks for sharing. Do you have a link to a working installation of this that we could have a peek at?
        Kunal Kapoor
        Technical Director
        Limesharp Internet Limited - Effective, Functional, Standards Compliant

        IRC Nick: KingKoopa
        Skype ID: KingKoopa16
        • 5282
        • 147 Posts
        my website uses this tip
        http://www.pikkitux.com ( French language )

        well it’s juste a simple template variable, it works !
        on my website, you can see it in action , at the bottom of the "articles pages" ( not the folder ones )
        you can see" Cliquez ici ..... "

        i just have to create the topic in punbb, look at the id of the topic, and add the value to the pages with quickedit
          i’m not a native english speaker, sorry if there are any mistakes ! smiley

          Pikkitux.com Website about Ubuntu Linux, Website Creation, and many other how-tos, tips and tricks ... ( French Language, and of course Modx Powered ! )