Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Post Icons; Removal
Topic Started: Sep 18 2008, 04:04 PM (1,551 Views)
Shingle
Member
 *  
How do I remove the 'Post Icons' section from my forum when a member goes to post?

Posted Image

This bit.

Please note I don't want to CHANGE them, I want to remove the entire section if possible. Thanks for any help I get
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
Admin CP Posted Image Skinning & Styles Posted Image Board Wrappers Posted Image Footer
Code:
 
<script type="text/javascript">/*remove posticons by Stefan*/if(document.location.href.indexOf('act=Post')!==-1){var e=document.getElementsByTagName('TD');for(var n=0;n<e.length;n++){if((e[n].className==='pformleft')&&(e[n].innerHTML.indexOf('Post Icons')!==-1)){e[n].parentNode.style.display='none';break;}}}</script>
Offline Profile Quote Post Goto Top
 
Shingle
Member
 *  
Thank you so much! I searched for ages and found nothing! :wub:
Offline Profile Quote Post Goto Top
 
KittMouri
Member Avatar
Member
 *  
...ah...curious...if you wanted to change them...is there a code for that?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
Use the following code to change the post icons, KittMouri.

Simply change image.gif of each new_image[#] array with the post icon image URL.

Admin CP Posted Image Skinning & Styles Posted Image Board Wrappers Posted Image Footer
Code:
 
<script type='text/javascript'>
<!--
/*
Change Post Icons v2
Created by iFusion
*/

var upload_base = "http://server/folder/"

var new_image=new Array();
new_image[0]="image.gif"
new_image[1]="image.gif"
new_image[2]="image.gif"
new_image[3]="image.gif"
new_image[4]="image.gif"
new_image[5]="image.gif"
new_image[6]="image.gif"
new_image[7]="image.gif"
new_image[8]="image.gif"
new_image[9]="image.gif"
new_image[10]="image.gif"
new_image[11]="image.gif"
new_image[12]="image.gif"
new_image[13]="image.gif"
new_image[14]="image.gif"

for (i=0;i<document.images.length;i++){
if (document.images[i].src.match(/style_images\/1\/icon(\d+)\.gif/i) != null){
if(RegExp.$1 < new_image.length) document.images[i].src = upload_base + new_image[RegExp.$1]
}}
-->
</script>
Offline Profile Quote Post Goto Top
 
Drakkus
Member Avatar
Member
 *  
Hiya, I'm not sure if you're still getting posts from this, Cory, and I'm sorry to come to it five years late (xD) but I tried this code - it works absolutely beautifully as long as you're in the first post screen, but if you preview the post the icons come right back. Is there something I can change in the script (I'm wildly presuming that it might be in the "act" bit, but I know pretty much zero about javascript) to make it work even if you click "preview post"? Thank you for providing it in the first place! :D
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
They remain the same for me when I preview a post in Firefox.
Offline Profile Quote Post Goto Top
 
Drakkus
Member Avatar
Member
 *  
Thanks for getting back to me! I should however clarify that I mean the post icon removing script rather than the icon changing one, as I don't think I made that clear and I didn't know if you were referring to the same. Unfortunately I have the problem in both opera and firefox - upon initial posting the icons aren't there, but on previewing they're all back.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
 *   *   *   *   *   *   *   *   *  
Try this instead:
Code:
 
<script type="text/javascript">
//<![CDATA[
function killPostIcons() {
var input = document.getElementsByTagName('input');

for (var x = 0; x < input.length; x++) {
if (input[x].name === 'iconid') {
input[x].parentNode.parentNode.style.display = 'none';
}
}
}

killPostIcons();
//]]>
</script>
Offline Profile Quote Post Goto Top
 
Drakkus
Member Avatar
Member
 *  
That works perfectly, thank you so much! ♥
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply