Aricie
Intégrateur de vos solutions d'avenir
DNN Community Forums

Settings for Active Forums (activemodules.com) and friendlier url

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author
Messages


Sh@wn











New Member



Posts:




New Member



    Hi,

    how can I set friendlier url with active forums (Rewritting rule)?

    thanks



    Deleted User











    New Member



    Posts:




    New Member



      Hello,

      What is exactly your problem ? friendlier url doesn't work correctly with active forums ?

      Cheers,

      Aurélien



      Jesse











      New Member



      Posts:




      New Member



        [QUOTE]Sh@wn a dit

        Hi,

        how can I set friendlier url with active forums (Rewritting rule)?

        thanks

        [/QUOTE]

        Hi

        Active forums uses the following http parameters:

        • aff -> forum id
        • aft -> topic id
        • afv -> action type (topic / topicsview / post ...)
        • afpgj -> page id
        • afq -> post id when quoting
        • ... (there may be a few others)

        Accordingly, if you browse a topic with dnn rewriting, you get something similar to:

        http://www.yourdomain.com...e/en-US/Default.aspx

        where xx stand for specific numbers

        right?

        Now, without a specific provider, you can simplify this a bit for instance with the following rule:

        [${Scheme}][${RootPath}][/${Language}][/${TabPath}][/${TabName}][/${aff}][/${aft}][/${afpgj}][/${afq}][/${afv}][/${ControlKey}][/${Params,SubPath}][.${Extension}][?${QueryString,QueryStringValue}]

        Then for the previous url, which corresponds to browsing some topics message, you'll get:

        http://www.yourdomain.com.../xx/yy/zz/topic.aspx

        where xx is the forum id, yy the topic id, zz the page id and topic the action

        If you wish to rewrite further and replace the ids with the corresponding titles, you'll need to provide a dedicated Active forums extension performing those unit transforms.

        We do provide a few sample extensions with source code for reference. You may for instance have a look at the DNN core forum extension, which should be pretty similar to what you need (~50 effective lines of code to declare and provide the group id -> goupe names, forum ids -> forum titles, thread ids -> thread titles, post ids -> post titles etc...).

         

        Furthermore, since you can perform the development with the trial version, we decided that we would offer the full version to anyone who returns us such an extension to a community module.

        Active forums is definitely a good candidate, so you can go for a free licence if you feel like doing the job.



        Sh@wn











        New Member



        Posts:




        New Member



          Thanks Jesse,

          I'll try your solution.



          Chris H











          New Member



          Posts:




          New Member



            I'm using CATALook and need to build my own extension.  I need to transform the below url to a friendly url. 

            http://www.rosehart.com/F...ductName,ProductName

            I'm not sure if I can figure out an extension for this or if it's possible. 

            You are not authorized to post a reply.
            Page 1 of 212 > >>