Follow us on Facebook and Twitter!

Auto Pages (Outdated)
#11
By the way I am re-writing the next version of Commentics so that automatic page creation is built-in.

For that reason I won't be developing this add-on any further but I will still provide support for it.
Have you completed the interview?
Reply
#12
Steven,

Thanks for providing this add-on. It looks like it's working great.

One suggestion I have though is the way it's handling URL's. I have it set for the parameters to ignore everything except for "ref". So when a page is created it's:

http://www.demu.org/pages/view.php?ref=936

This is perfect. However, the URL that is created keeps all of the search query junk that user has at the moment. For example for this record it is:

http://www.demu.org/pages/view.php?ref=9...rchive=0&k=

Not a huge deal - but it would be really nice if we could set a option somewhere to also have the URL "cleaned" to keep only the parameters we want.
Reply
#13
Hi,

Thanks for this suggestion. I actually designed it like that on purpose. My reasoning was that the "search query junk" may be important in some way, for example it may control the page layout or the language of the text. So if the URL that the administrator clicks on were to only contain the "ref" parameter then there could be cases where the URL would not load the desired page properly. If that's not a problem to you then it's a very simple change in the code:

On line 106 there is a mysql_query. Simply change "$url2" to "$url".
Have you completed the interview?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Install on dynamic pages starams5 1 1,737 19-Jun-2017, 09:04 PM
Last Post: Steven
  Recent Comments resp. Pages kooler 2 2,020 02-Aug-2013, 06:29 PM
Last Post: kooler
  Auto populate your pages table corculator 0 2,260 25-Feb-2012, 02:12 PM
Last Post: corculator
  Auto populate your comments table corculator 0 1,873 25-Feb-2012, 01:25 PM
Last Post: corculator
  link to wrong pages Norbs 0 1,377 05-Dec-2011, 04:05 PM
Last Post: Norbs
  Arbitrary ID (Outdated) Static 18 14,127 20-Jan-2011, 02:55 AM
Last Post: Static
  cmtx_latest_box (Outdated) utaka 3 5,408 31-Dec-2010, 09:09 AM
Last Post: Static

Forum Jump:


Users browsing this thread: 1 Guest(s)