Camen Design Forum

Get permanent link, post autor and post title

append delete tuta

Hello everyone,

I am trying to implement sharing buttons in NNF. My question is. How to get permanent link and post title in NNF?

I tried this code:

%
<!-- Twitter -->
<a href="http://twitter.com/share?url=<?php echo $FORUM_URL.url (PATH_URL, $file) ?>&text=<?php echo $TITLE ?>&via=<?php echo $NAME ?>" target="_blank" rel="noopener" class="share-btn twitter">
<div class="spritetwitter"></div>
</a>
%

*Permanent link*: $FORUM_URL.url (PATH_URL, $file)
*Post title*: $TITLE
*Autor*: $NAME

any suggestions?

Reply RSS

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn