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.
The forum of the forums
3 posters

    Link acces sign

    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Link acces sign

    Post by Glavee Thu 1 Jan - 18:25

    Hi!

    I recently set on my forum to let just mermbers+ to acces the links, but I wanna ask you if I can put a warning in there to let the guests know that only members can acces the links, and instead of the link, to be '(ONLY MEMBERS CAN ACCESS THE LINKS)'. It would be a way more cool if I can put an image instead of this message!

    Thanks!
    avatar
    Fierce Star
    Forumember


    Male Posts : 110
    Reputation : 17
    Language : English
    Location : United States

    Link acces sign Empty Re: Link acces sign

    Post by Fierce Star Thu 1 Jan - 19:29

    Hi,

    Try adding this to your Javascipt Codes Management (Located at ACP -> Modules -> Javascript Codes Management -> Add):
    Title: Optional
    Placement: In the topics
    Code:
    Code:
    $(function() {
      var IMGsrc = "http://2img.net/i/fa/i/smiles/icon_rr.png";
      $('span[style="color:#f00"]:contains("to see this link")').html('<img src="'+ IMGsrc  + '"/>');
    });
    Replace https://2img.net/i/fa/i/smiles/icon_rr.png with the URL of your image.
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Thu 1 Jan - 19:58

    Fierce Star wrote:Hi,

    Try adding this to your Javascipt Codes Management (Located at ACP -> Modules -> Javascript Codes Management -> Add):
    Title: Optional
    Placement: In the topics
    Code:
    Code:
    $(function() {
     Â  var IMGsrc = "http://2img.net/i/fa/i/smiles/icon_rr.png";
     Â  $('span[style="color:#f00"]:contains("to see this link")').html('<img src="'+ IMGsrc  + '"/>');
    });
    Replace https://2img.net/i/fa/i/smiles/icon_rr.png with the URL of your image.

    It doesn't work... :/
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Thu 1 Jan - 23:16

    can you give me a link to your forum that has a link on it that shows the msg?
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Thu 1 Jan - 23:59

    _Twisted_Mods_ wrote:can you give me a link to your forum that has a link on it that shows the msg?

    http://1001hacks.omgforum.net/t10-1-8-taco-client-pvp-huge-hakes-get-rekt-by-elitetaco9000

    Scroll down to 'Download:' and under it is the link.
    avatar
    Fierce Star
    Forumember


    Male Posts : 110
    Reputation : 17
    Language : English
    Location : United States

    Link acces sign Empty Re: Link acces sign

    Post by Fierce Star Fri 2 Jan - 0:17

    For the code to work, you'll need to have set the permissions in General -> Categories and Forums -> Edit -> Permissions -> See links in the messages : (Set it to "Members").
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Fri 2 Jan - 0:28

    Fierce Star wrote:For the code to work, you'll need to have set the permissions in General -> Categories and Forums -> Edit -> Permissions ->  See links in the messages : (Set it to "Members").

    I've already done this.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Fri 2 Jan - 3:08

    you can enable links for everyone and this will replace the links url and content

    but if they disable javascript the links will still show .. other then that i have no idea

    just create a new javascript and set placement to in topics

    Code:
    $(function(){
    if(_userdata.session_logged_in == 0){
      $('.post-entry .entry-content a').attr('href',"/forum");
      $('.post-entry .entry-content a').html(' <img src="http://i55.servimg.com/u/f55/18/84/19/28/admin10.png> ');
      }});
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Fri 2 Jan - 18:34

    _Twisted_Mods_ wrote:you can enable links for everyone and this will replace the links url and content

    but if they disable javascript the links will still show .. other then that i have no idea

    just create a new javascript and set placement to in topics

    Code:
    $(function(){
    if(_userdata.session_logged_in == 0){
      $('.post-entry .entry-content a').attr('href',"/forum");
      $('.post-entry .entry-content a').html(' <img src="http://i55.servimg.com/u/f55/18/84/19/28/admin10.png> ');
      }});

    Look guys, this is what I'm talking about:

    Link acces sign Untitl11
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Sat 3 Jan - 21:01

    BUMP
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Sat 3 Jan - 23:59

    did the script not work? or u needing something else?
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Mon 5 Jan - 21:25

    It doesn't work
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Mon 5 Jan - 21:49

    you have it set to in topic and you have JavaScript on... also did you logout to see if it worked
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Wed 14 Jan - 16:19

    @_Twisted_Mods_ The images doesn't work, just the links aren't enabled for guests.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Thu 15 Jan - 3:39

    Code:
    $(function(){
    if(_userdata.session_logged_in == 0){
      $('.post-entry .entry-content a').attr('href',"/forum");
      $('.post-entry .entry-content a').html(' <img src="http://i55.servimg.com/u/f55/18/84/19/28/admin10.png"> ');
      }});

    was missing the " at end of the image url
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Thu 15 Jan - 21:29

    @_Twisted_Mods_ Doesn't work... It still appears only the text. :/
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Sun 18 Jan - 12:39

    Bump
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Tue 20 Jan - 16:12

    BUMP
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Tue 20 Jan - 16:18

    @_Twisted_Mods_ your code works just for images, not for links.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Tue 20 Jan - 19:16

    it should covert all links inside post to images
    Glavee
    Glavee
    Forumember


    Posts : 149
    Reputation : 1
    Language : English

    Link acces sign Empty Re: Link acces sign

    Post by Glavee Sun 25 Jan - 13:08

    But it doesn't... BUMP
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Sun 25 Jan - 14:08

    last try

    Code:
    $(document).ready(function(){
    if(_userdata.session_logged_in == 1){
      $('.post-entry a').attr('href',"/forum");
      $('.post-entry a').html(' <img src="http://i55.servimg.com/u/f55/18/84/19/28/admin10.png"> ');
      }});



    you are running punbb on your forum correct if so.. and this does not work then its another script on your forum is causing it not to run because i tested this on my test forum on punbb
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Link acces sign Empty Re: Link acces sign

    Post by _Twisted_Mods_ Fri 13 Feb - 1:56

    Has this request been completed?

      Current date/time is Mon 23 Sep - 16:29