Share this Topic (only direct link)
4 posters
Page 1 of 1
Share this Topic (only direct link)
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Opera, Other
Screenshot of problem : https://imgur.com/9GOAI3I.png
Who the problem concerns : Yourself
Forum link : spectrofobiadesign.forumpolish.com
Description of problem
Hello, I would like to ask how to do share of Topic but to be able to copy the link on the forum. However, I want to put it in a square with the disconnector icon, as here in the example forum on the screen above in the link presented.
Amadeus- Forumember
- Posts : 157
Reputation : 1
Language : Polish, English
Location : Poland
Re: Share this Topic (only direct link)
Yes of course https://www.thelostkingdom.net/t1708-questionnement-sur-la-faction-les-mages-noirs this grey button with icons and when u click on left side mouse u see copy links or something that.
Amadeus- Forumember
- Posts : 157
Reputation : 1
Language : Polish, English
Location : Poland
Re: Share this Topic (only direct link)
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Share this Topic (only direct link)
I read it this way, but I would not like to have it in the form in the table, but only to copy only the topic link. In addition, it would be a square on which you can press.
Amadeus- Forumember
- Posts : 157
Reputation : 1
Language : Polish, English
Location : Poland
Re: Share this Topic (only direct link)
Hello @Amadeus,
This is the easiest way to do this without going in the templates. Even though your forum is #phpbb2 and it's usually difficult to code your way out of this version of forum, here's what you can do:
Create one javascript, placed In the topics only:
Then you have to create an other javascript placed again In the topics only using this code:
This should do what you are wanting to do.
Regards,
TC.
This is the easiest way to do this without going in the templates. Even though your forum is #phpbb2 and it's usually difficult to code your way out of this version of forum, here's what you can do:
Create one javascript, placed In the topics only:
- Code:
// CREATION OF THE BUTTON NEXT TO THE TITLE
$(function(){
$('<input type="text" value="" id="myInput" style="position:Fixed;top:-40px"><button id="copyButton" onclick="myFunction()">Copy Link</button>').insertAfter('.cattitle:eq(0)');
});
Then you have to create an other javascript placed again In the topics only using this code:
- Code:
//FUNCTION FOR THE COPYING OF THE URL OF THE TOPIC
function myFunction() {
var copyText = document.getElementById('myInput'),
buttonToCopy = document.getElementById('copyButton');
copyText.value=location.href;
copyText.select();
copyText.setSelectionRange(0, 99999)
document.execCommand("copy");
buttonToCopy.innerText = "Copied";
}
This should do what you are wanting to do.
Regards,
TC.
Re: Share this Topic (only direct link)
@Amadeus is this solved?
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Similar topics
» How to post a thread/topic/msg via a direct link?
» direct link image
» Direct link to another site
» The direct link to the last post
» Need header banner for direct link on to my website address
» direct link image
» Direct link to another site
» The direct link to the last post
» Need header banner for direct link on to my website address
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum