PDA

View Full Version : Blasts... if only I knew SOMETHING about PHP (request)


07-16-2000, 01:08 AM
How would I go about having the "Post" icon be automatically selected in new replies and new threads? I removed the No icon and now there isn't an icon that is automatically selected. :(

07-16-2000, 01:21 AM
This should be plain HTML, shouldn't it??

07-16-2000, 01:31 AM
Well not exactly. The template posticonbit says:

<input type="radio" name="iconid" value="$iconid" $iconchecked>&nbsp;&nbsp;<img src="$iconpath" height="15" width="15" align="abscenter" alt="$alttext">

My guess would be that something needs to be set for $iconchecked. Like if it's a new topic/reply icon01 is automatically selected.

Seeing how I don't know a single thing about PHP, I can't do this. :(

*goes to stalk ed*

07-16-2000, 01:51 AM
Wow, simple simple simple :)

find, in global.php:
/*
if ($seliconid==0) {
$seliconid=1;
}
*/

replace with:
if ($seliconid==0) {
$seliconid=1;
}

07-16-2000, 01:58 AM
Thank you. :)

07-16-2000, 02:10 AM
Its the small little hacks like these that make me love this software, but hey, the big PM type hacks are great and dandy too :D