Follow us on Facebook and Twitter!

Change Comments Form's elements links to local
#1
Hello,

In the integrated comments page html, all Commentics' classes anchor values are shown with full external URL references to the hosting site.
I would like to see local reference instead - will save many DNS trips, analytics external hit counts, and improve site responsiveness
Reply
#2
Hi,

Can you provide an example of what you mean.
Have you completed the interview?
Reply
#3
(06-Feb-2015, 07:31 PM)Steven Wrote: Can you provide an example of what you mean.

If my domain is example.com, then I see in the source of the main comments form many hard links as in this example:

class="cmtx_buttons"><a href="http://example.com/comment1.php#cmtx_form" id="cmtx_reply_44" class="cmtx_reply_enabled" title="Reply to this comment" rel="nofollow" onclick="document.getElementById('cmtx_hide_reply').style.display='block';document.getElementById('cmtx_reply_id').value='44';document.getElementById('cmtx_reply_message').innerHTML='You are replying to tester41. ';document.getElementById('cmtx_reset_reply').style.display='inline'"><img src="http://example.com/Commentics/upload_a/i.../reply.png" alt="Reply" title="Reply to this comment"/>Reply</a></div></div>

For the reasons I mentioned in the OP, I woulod prefer to see relative linking as ./comment1.php#cmtx_form and ./Commentics/upload_a/images/buttons/reply.png  etc.
Reply
#4
Oh, and one more thing:
IIRC the installation instructions recommend to rename the /upload directory to something else for security reasons, but I still see in the html page source the full (modified) path...
Reply
#5
I understand, so you'd prefer a relative URL rather than an absolute URL. The reason it uses absolute URLs is because many websites use a base tag. The base tag changes all relative URLs to begin with whatever the base href is set to. With Commentics this behaviour is completely unwanted because it ruins the location of the URL meaning that the images can't be found and as far as I know the only way to prevent it is to use an absolute URL. There may be a better way but if there is then I'm not aware of it.

The installation instructions recommend to rename the /admin/ folder for security reasons. Renaming the /upload/ folder is optional and doesn't affect security.
Have you completed the interview?
Reply
#6
Thanks for the explanation. I didn't realize that base tag is being used by many of the uninitiated.
And thank you for setting me straight on the /upload directory with its path in the clear.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Require a minimum length for comments moreno84 2 834 24-Aug-2016, 09:23 AM
Last Post: moreno84
  Auto-pruning old comments and instant approval link via email sfcheng 5 1,595 25-Apr-2016, 10:09 PM
Last Post: MikeDo
  Focus on reply and post form and more frontend admin functions tvladan 1 1,306 17-Jan-2015, 02:15 PM
Last Post: Steven
  Local upload CommiC 1 1,873 26-Oct-2014, 12:50 PM
Last Post: huuptag2014
  Auto update on new comments Hootie81 4 2,180 01-Oct-2014, 09:55 PM
Last Post: Hootie81
  Close Form masonbarge 5 3,481 14-Mar-2014, 12:50 PM
Last Post: egdotcom
  Custom links to privacy policy and terms and conditions george 0 1,320 27-Sep-2013, 05:09 PM
Last Post: george
  delete multiple comments minetick 0 1,414 25-Apr-2012, 02:45 PM
Last Post: minetick
  Convert links at output utaka 2 1,713 02-Jan-2011, 10:11 AM
Last Post: utaka
  Latest comments list utaka 5 3,398 31-Dec-2010, 09:05 AM
Last Post: Static

Forum Jump:


Users browsing this thread: 1 Guest(s)