This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

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, 06: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
Last Post by alkrav
31-Jul-2020, 09:04 AM
Last Post by huuptag2014
26-Oct-2014, 11:50 AM
Last Post by Hootie81
01-Oct-2014, 08:55 PM
Last Post by egdotcom
14-Mar-2014, 11:50 AM
Last Post by minetick
25-Apr-2012, 01:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)