inherit
212242
0
Aug 18, 2014 8:42:50 GMT -8
acejays98
148
August 2014
acejays98
|
Post by acejays98 on Aug 13, 2014 7:01:31 GMT -8
or simple guest cannot see images posted on a thread
is there a plugins or a code for this thanks!!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 14, 2014 14:48:52 GMT -8
This isn't really worth making into a plugin, instead, try adding this to your Global Footer..
<script type="text/javascript"> <!-- if(proboards.data('user').is_logged_in != 1) { $('.message img').css('display','none'); } // --> </script>
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Aug 16, 2014 8:56:03 GMT -8
This isn't really worth making into a plugin, instead, try adding this to your Global Footer.. <script type="text/javascript"> <!-- if(proboards.data('user').is_logged_in != 1) { $('.message img').css('display','none'); } // --> </script>
I just tried this and logged out and still see images.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 16, 2014 14:13:52 GMT -8
This isn't really worth making into a plugin, instead, try adding this to your Global Footer.. <script type="text/javascript"> <!-- if(proboards.data('user').is_logged_in != 1) { $('.message img').css('display','none'); } // --> </script>
I just tried this and logged out and still see images. If you are using the mobile app you will, there's no way around that... If you are not using the mobile app, could you link me to the thread where this is failing please.
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Aug 16, 2014 14:29:09 GMT -8
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 16, 2014 14:45:18 GMT -8
It looks like you have the code in your Global Header, not your Global Footer..
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Aug 16, 2014 15:19:14 GMT -8
It looks like you have the code in your Global Header, not your Global Footer.. Ok, I'll try that. Don't know why I thought you said header. Dumb question. Why would something like this work in a footer an not a header? Just curious. If its too detailed don't worry about it, I don't want to waste your time. Let me go move it. Ok, I don't feel so bad now. I moved it and it still doesn't work.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 16, 2014 15:54:55 GMT -8
The Headers are loaded before the posts are, so when the code runs in the header there are no posted images to find and hide..
Putting it in the footer allows the posts to load before the code tries to find them.
Could you please try disabling the Image Security plugin, I reckon that is re-inserting the images after this code hides them.
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Aug 16, 2014 16:13:44 GMT -8
The Headers are loaded before the posts are, so when the code runs in the header there are no posted images to find and hide.. Putting it in the footer allows the posts to load before the code tries to find them. Could you please try disabling the Image Security plugin, I reckon that is re-inserting the images after this code hides them. Disabled it, but the images still show. I was wondering about the plug in that resizes images. Could that be the problem?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 16, 2014 18:22:05 GMT -8
Yup, that could be another culprit..
Try disabling that one too and see if this code then works.
Let me know and I'll see what can be done
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Aug 16, 2014 20:39:16 GMT -8
Yup, that could be another culprit.. Try disabling that one too and see if this code then works. Let me know and I'll see what can be done That would be the one. I disabled it and most of the images went away. Those in signatures were still there though. Its not a big deal for me. I would rather have the resize, so I am going to re enable the plug ins. But, now if others have an issue you know where to start.
|
|
inherit
(?)?
188910
0
Jan 26, 2013 13:30:48 GMT -8
♥ ℒʊ√ ♥
Clouds float into my life no longer to carry rain or usher storm but to add color to my sunset sky.
10,458
January 2013
luv
|
Post by ♥ ℒʊ√ ♥ on Aug 16, 2014 20:45:02 GMT -8
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 17, 2014 5:17:05 GMT -8
If you want the images removed from the signatures too, try this code in your Global Footer instead..
<script type="text/javascript"> <!-- if(proboards.data('user').is_logged_in != 1) { var pIMGs = $('.message img'); for(pI=0; pI<pIMGs.length; pI++) { $(pIMGs[pI]).remove(); } var sIMGs = $('.signature img'); for(sI=0; sI<sIMGs.length; sI++) { $(sIMGs[sI]).remove(); } } // --> </script>
It should also remove the images even with the image resize plugin active.
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Aug 17, 2014 6:27:34 GMT -8
If you want the images removed from the signatures too, try this code in your Global Footer instead.. <script type="text/javascript"> <!-- if(proboards.data('user').is_logged_in != 1) { var pIMGs = $('.message img'); for(pI=0; pI<pIMGs.length; pI++) { $(pIMGs[pI]).remove(); } var sIMGs = $('.signature img'); for(sI=0; sI<sIMGs.length; sI++) { $(sIMGs[sI]).remove(); } } // --> </script> It should also remove the images even with the image resize plugin active. That worked all the way around! Thank You Todge. Its working perfectly.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Aug 17, 2014 10:27:36 GMT -8
No worries..
|
|