Jump to content

How to work with sharecodes!?


shought

Recommended Posts

  • Administrator

@seagate Thank you for reporting this issue. Well, it's the member's fault in here because he accidently changed the sharecode button HTML code by separating them in two different <p> tags which the script doesn't detect. Basically, what happen he pressed enter accidentally between "Site" and "Sharecode" then he backspaced that enter.

 

Original Button

<p>
	<b>Site:</b> <a href="https://example.com" ipsnoembed="false" rel="external nofollow">https://example.com</a><br>
	<b>Sharecode<sup _title="How to use Sharecode System" data-ipstooltip=""><a href="https://nsaneforums.com/topic/21385-how-to-work-with-sharecodes/" rel="" target="_blank"><span style="color:#e74c3c;"> [?]</span></a></sup>:</b> /test1234
</p>

 

On this editor once you hit enter it add <p> tag and remove the <br> both tags outputs will show the same result while <p> tag creates paragraph separation and <br> just breaks to the next line

 

<p>
	<b>Site:</b> <a href="https://example.com" ipsnoembed="false" rel="external nofollow">https://example.com</a>
  </p>
<p>
	<b>Sharecode<sup _title="How to use Sharecode System" data-ipstooltip=""><a href="https://nsaneforums.com/topic/21385-how-to-work-with-sharecodes/" rel="" target="_blank"><span style="color:#e74c3c;"> [?]</span></a></sup>:</b> /test1234
  </p>

 

The good news is I have already fixed this and I will update the code tomorrow once I am done testing it, and the bad news is that the button won't appear on some members' topic because they copy the topic description form other website or from old topic that they shared before and have <div> tags. This editor accepts it and displays it, yet if you use this editor normally it will add only <p> tags because the rest of this system made of <div> tags. The topic that has <div> tags will keep recognize it and if you press enter it won't add <p> tag it will continue adding <div> tags.

 

<div>
	<b>Site:</b> <a href="https://example.com" ipsnoembed="false" rel="external nofollow">https://example.com</a><br>
	<b>Sharecode<sup _title="How to use Sharecode System" data-ipstooltip=""><a href="https://nsaneforums.com/topic/21385-how-to-work-with-sharecodes/" rel="" target="_blank"><span style="color:#e74c3c;"> [?]</span></a></sup>:</b> /test1234
</div>

 

Here where the issue is which I have already been testing and trying to make this integration works on <div> tag, yet it gets really complicated.

 

The integration start scanning all outside and inside the editor itself and creates copy link button everywhere because the rest of this system made of <div> tags. The solation in here you mention the topic author and tell him to clear the <div> tags from his topic by copy the topic and paste it inside the windows notepad where it will remove all <div> tags and then copy it back from there and paste it on the editor. They need to do this only once and in the future that can just copy the description from the old topic.

 

Other option is to report it to the stuff team using the report button where we have access to edit HTML directly and remove the <div> tag from the sharecoded link until I find a good solution for this.

 

For the "pass" this integration doesn't generate copy link button for the passowords. I'll see if I can make it do that, but no promises. :) 

Link to comment
Share on other sites


3 hours ago, Matt said:

@seagate Thank you for reporting this issue.

 

For the "pass" this integration doesn't generate copy link button for the passowords. I'll see if I can make it do that, but no promises. :) 

That's exactly what I was going to ask about a functional button for copying the written password. Is it possible for this button, in order to be functional enough, to cover a wider range (lowercase and uppercase letters, abbreviations in the word, in bold, italic or underlined font) - for example "pass", "Pass", "password", "Password" - some such examples? Because after the colon, some people may accidentally leave two spaces, others may use lowercase and uppercase letters, abbreviations in the word, in bold, italic or underlined font - which would affect the password written in this way. 😎

Link to comment
Share on other sites


  • Administrator

@seagate a new version has been updated now, and it addresses the issue you reported along the <div> tag I mentioned. Also, added extra function to the button.

  • Thanks 1
Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 member

    • Karlston
×
×
  • Create New...