The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hidden Link

5 posters

Go down

Solved Hidden Link

Post by aussie Mon 27 Aug - 3:50

Hi, I am just starting out. Can someone please advise. I have installed script below & works fine however The button or text stating the "Links are Hidden, You must reply to see Links" is not appearing Is there a way to make either the button or Text show when using the "Hide" function or does it need to be entered manually each time "Hide" option is used
I am using phpbB3 version with Win10
Thanks for your time

Code:
$(function(){
        $(function(){
              $('<a class="sceditor-button sceditor-button-fahide-hotrofm" unselectable="on"><div unselectable="on">Hide</div></a>').insertAfter('.sceditor-button-fahide').click(function(){
                  $('#text_editor_textarea').sceditor("instance").insertText("[img]https://i.servimg.com/u/f37/19/53/09/53/unlock10.gif[/img][hide]","[/hide]");
              });
          });
            $("body").prepend("<style>.sceditor-button-fahide-hotrofm div {background-position: 0 -692px;}.sceditor-button-fahide {display: none !important;}</style>");
    });

Also tried below

Code:
$(function(){
    $(function(){
          $('<a class="sceditor-button sceditor-button-fahide-hotrofm" unselectable="on"><div unselectable="on">Hide</div></a>').insertAfter('.sceditor-button-fahide').click(function(){
              $('#text_editor_textarea').sceditor("instance").insertText("[img]https://i.servimg.com/u/f37/19/53/09/53/unlock10.gif[/img][hide]","[/hide]");
          });
      });
        $("body").prepend("<style>.sceditor-button-fahide-hotrofm div {background-position: 0 -692px;}.sceditor-button-fahide {display: none !important;}</style>");
});


Last edited by aussie on Wed 5 Sep - 15:23; edited 2 times in total
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by brandon_g Mon 27 Aug - 4:25

Hello,

From now on now please use code tags (
Code:
[code][/code]
) when posting scripts here.

What exactly is the problem your having? I know it has something to do with the hide feature, but thats about as much I got.

-Brandon


Hidden Link Brando10
Remember to mark your topic Hidden Link Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Hidden Link Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10051
Reputation : 920
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Hidden Link

Post by aussie Mon 27 Aug - 4:42

Hi Brandon, Sorry about not using the code tab in my previous post. My problem is although the Hide function hides the link as it should, no text appears to say "Link is hidden, You must reply to see Link" I need to have that text or a button to auto appear on the post when using the Hide function, My board is
Code:
http://memorylane.board-directory.net
Thanks
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by mpelmmc Mon 27 Aug - 5:45

Hello @aussie

Where did you get the code from ? Also, may you please put the code you posted above into the code tags ? That would make our job much easier.

Thank you so much.
mpelmmc
mpelmmc
Helper
Helper

Male Posts : 1089
Reputation : 170
Language : English and Spanish

https://help.forumotion.com/

Back to top Go down

Solved Re: Hidden Link

Post by aussie Mon 27 Aug - 6:11

mpelmmc,
Here's where I found the script
Thanks

Code:
https://help.forumotion.com/t152868-link-is-hidden-you-must-reply-to-see?highlight=Links+are+Hidden+++You+must+reply+to+see+Links
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by Ape Mon 27 Aug - 19:39

Your forum editor should already have the hide setting in the tools
there is no real need for a code anymore.
Hidden Link Captur54 if you can't see the text then we can do something with CSS files but you must link us to a topic that has this already used and guests can see it or a test account sent by pm


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by aussie Tue 28 Aug - 2:19

Thanks APE ,
pm sent
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by Ape Tue 28 Aug - 3:12

I sent a reply by PM with a video to show you what i mean


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by aussie Tue 28 Aug - 3:44

Sorry mate but the "Reply To See Hidden" does not appear. I logged in with non staff account & the pic below is what appears.

Hidden Link HIDE
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by Ape Wed 29 Aug - 20:03

do you have a test account i can use with admin powers ?
https://help.forumotion.com/t156280-how-to-make-a-test-account-for-your-forum#1077992

also if you are posting your forum link you don't need to use the code tags its only if you are sending a code like css or templates Wink


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by aussie Thu 30 Aug - 1:08

PM sent
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by Ape Thu 30 Aug - 12:48

ok I have made some change and found that this is a bug in our system and I have made a report to our head office I hope this will be fixed soon

I will get back to you when i get news Smile

regards

APE.


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by aussie Thu 30 Aug - 12:53

OK Thanks, Great you did find it so it does not create headaches for others. If it cannot be fixed on this version phpbb then perhaps you can recommend another version to switch over to.
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by Ape Tue 4 Sep - 18:07

okay I have spoke to our head office and they say this is not a bug it was never there to begin with but I was sure it was but a staff member said maybe it was a code used in Javascript that was used to show this.

I have asked that member of staff to come and help you more on this Wink

kind regards.

APE.


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by TheCrow Tue 4 Sep - 21:07

Hi there,

I am using this code to my forum to hide the original hide icon and add this new one where it adds whatever I want it to add. To do this you simply need to add this Javascript to your forum and set it to all the pages:
Code:
$(function(){
  $(function(){
    $('<a class="sceditor-button sceditor-button-hidcon" unselectable="on" title="Hidden Content"><div unselectable="on" style="background:url(https://i.servimg.com/u/f37/19/06/26/04/66974910.png);background-size:16px;">Hidden Content</div></a>').insertAfter('a.sceditor-button-faspoiler').click(function(){
      $('#text_editor_textarea').sceditor("instance").insertText('Please reply to see the following hidden content: \n[hide]','[/hide]');
    });
  $('a.sceditor-button-fahide').remove();
  });
});
TheCrow
TheCrow
Manager
Manager

Male Posts : 6878
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

JaneDoe likes this post

Back to top Go down

Solved Re: Hidden Link

Post by aussie Wed 5 Sep - 0:34

Hi Luffy, Still not working The phase "You Need to Reply to Reveal Link" or whatever it is supposed to show is not appearing. Feel free to access site & make any changes if necessary
Thanks
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by TheCrow Wed 5 Sep - 0:36

What this code does is whenever the hidden icon is pressed (from now on) it will show the text and the hidden code tags. This
Code:
eye
icon doesn't show up on your editor?

(If so, can I please have an account to check this out?)

Regards.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6878
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Hidden Link

Post by Ape Wed 5 Sep - 1:09

With @Luffy 's code you should see this in your Quick reply editor Hidden Link Captur57

you will need to put the Javascript set to post only

Then make a new post with something hid using that button in your editor


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by TheCrow Wed 5 Sep - 1:23

Having this Javascript set to posts only, the icon will appear only in the Quick Reply editor. Now If you set this to all the pages, it will still work but this will replace the hidden icon in all the pages the editor appears! Wink
TheCrow
TheCrow
Manager
Manager

Male Posts : 6878
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Hidden Link

Post by aussie Wed 5 Sep - 1:49

I see what you mean now. If I am correct you are saying that to make sure the phase Please reply to See Hidden that will be seen by someone reading the post the poster must click on the eye icon when posting the hidden content. When I have used the Hide on other boards The Phase Reply to see Hidden Content auto appeared once teh "Hide" tab was used. Out of curiousity is there a way the Phase can be change to ie- "Click To Reveal Hidden Content"

Many thanks for your help APE & Luffy
aussie
aussie
New Member

Posts : 9
Reputation : 1
Language : English

Back to top Go down

Solved Re: Hidden Link

Post by TheCrow Wed 5 Sep - 1:51

Yes @aussie,

You can change this part of the code above
Code:
Please reply to see the following hidden content:
to anything you want to say before the hide tags! Wink
TheCrow
TheCrow
Manager
Manager

Male Posts : 6878
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Hidden Link

Post by Ape Wed 5 Sep - 2:04

Yes I made mine on the test look like this
Hidden Link Captur59
with some tables codes and CSS you can do anything Wink

just a shame the box don't go away after you reply thou Sad


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Hidden Link

Post by Ape Wed 5 Sep - 19:35

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


Hidden Link Left1212Hidden Link Center11Hidden Link Right112
Hidden Link Ape_b110
Hidden Link Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18693
Reputation : 1959
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum