Link acces sign
3 posters
Page 1 of 1
Link acces sign
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!
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!
Re: Link acces sign
Hi,
Try adding this to your Javascipt Codes Management (Located at ACP -> Modules -> Javascript Codes Management -> ):
Title: Optional
Placement: In the topics
Code:
Try adding this to your Javascipt Codes Management (Located at ACP -> Modules -> Javascript Codes Management -> ):
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 + '"/>');
});
Re: Link acces sign
Fierce Star wrote:Hi,
Try adding this to your Javascipt Codes Management (Located at ACP -> Modules -> Javascript Codes Management -> ):
Title: Optional
Placement: In the topics
Code:Replace https://2img.net/i/fa/i/smiles/icon_rr.png with the URL of your image.
- 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 + '"/>');
});
It doesn't work...
Re: Link acces sign
_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.
Re: Link acces sign
For the code to work, you'll need to have set the permissions in General -> Categories and Forums -> -> Permissions -> See links in the messages : (Set it to "Members").
Re: Link acces sign
Fierce Star wrote:For the code to work, you'll need to have set the permissions in General -> Categories and Forums -> -> Permissions -> See links in the messages : (Set it to "Members").
I've already done this.
Re: Link acces sign
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
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> ');
}});
Re: Link acces sign
_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:
Re: Link acces sign
you have it set to in topic and you have JavaScript on... also did you logout to see if it worked
Re: Link acces sign
@_Twisted_Mods_ The images doesn't work, just the links aren't enabled for guests.
Re: Link acces sign
- 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
Re: Link acces sign
last try
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
- 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
Similar topics
» Can't acces my forum site
» Can't acces my forum site
» Cant Acces My Acoount
» Domain Can't Acces without www
» Proxy Acces
» Can't acces my forum site
» Cant Acces My Acoount
» Domain Can't Acces without www
» Proxy Acces
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum