PDA

View Full Version : paperclip.gif


Tim Wheatley
10-12-2002, 06:43 AM
I have a black paperclip on my 'light' layout...

Where do I find it in the templates to make my white paperclip (paperclip_wt.gif) show? It's not in any forumdisplay template or a replacement (that I can see...)?

Tim

Tim Wheatley
10-12-2002, 06:44 AM
I'm on about showing a white paperclip in a dark templateset obviously. ;)

Dean C
10-12-2002, 09:37 AM
its hardcoded into the php files..

- miSt

Dean C
10-12-2002, 09:46 AM
Note This is untested so please test in your testboard first:

In forumdisplay.php find:


if ($thread[attach]>0) {
$paperclip="<img src=\"{imagesfolder}/paperclip.gif\" alt=\"$thread[attach] Attachment(s)\" border=\"0\" align=\"absmiddle\">";
}


Change it to:


if ($thread[attach]>0) and $bbuserinfo['styleid']=x) {
$paperclip="<img src=\"{imagesfolder}/paperclip.gif\" alt=\"$thread[attach] Attachment(s)\" border=\"0\" align=\"absmiddle\">";
}
} else {
$paperclip="<img src=\"{imagesfolder}/paperclip2.gif\" alt=\"$thread[attach] Attachment(s)\" border=\"0\" align=\"absmiddle\">";
}



You'll have to change the stylid to suit your needs..

This is my first ever go at a lil hack so it probably wont work but thats the basic jist of it :D

- miSt