PDA

View Full Version : how to do that??


squawell
01-04-2002, 01:33 PM
as title

how to do like that??use different pic in different forum just

like this forum~~~

anyone know how to do????

http://home.kimo.com.tw/ezbbs13/89.jpg

Admin
01-04-2002, 01:40 PM
In forumdisplay.php replace:
if ($foruminfo['allowposting']==1) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}
with:
if ($foruminfo['allowposting']==1 and ($foruminfo['forumid']==4)) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newhacklink')."\";");
} elseif ($foruminfo['allowposting']==1) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}
where 4 is the ID of the forum you want this for, and 'forumdisplay_newhacklink' is the template that has the new icon.

squawell
01-04-2002, 01:59 PM
if my forum id is 5

which part shoul i change??

and should i change the template's pic link??

Admin
01-04-2002, 02:13 PM
Change the 4 into 5.

squawell
01-04-2002, 02:16 PM
oh~~~i see~~

should i make a new template~~

i think i should~~am i right??

Admin
01-04-2002, 02:23 PM
Yes you're right.

squawell
01-04-2002, 02:29 PM
thankz ur help FireFly~~~:D:D

and do u remember i ask u about the useid problem??

i need answer~~~ :D

squawell
01-04-2002, 02:34 PM
i use this and i got error:
if ($foruminfo['allowposting']==1 and ($foruminfo['forumid']==15 and ($foruminfo['forumid']==19)) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newhacklink')."\";");
} elseif ($foruminfo['allowposting']==1) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}

error message:

Parse error: parse error in /squawell/forums/vbb220/forumdisplay.php on line 320

what's wrong?

Admin
01-04-2002, 02:37 PM
if ($foruminfo['allowposting']==1 and ($foruminfo['forumid']==15 or $foruminfo['forumid']==19)) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newhacklink')."\";");
} elseif ($foruminfo['allowposting']==1) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}

squawell
01-04-2002, 02:40 PM
OH~~~

i must use or not and~~~

thankz again FireFly~~

squawell
01-05-2002, 08:52 AM
see the pic~

FireFly how should i change the install button to newhack button?