View Full Version : different message in specific forum
squawell
06-20-2002, 08:22 PM
i add some words in postbit template...
but we know it will show up in each post...
and i only want some specific forums show up another words
how to do can make that??
for example:
in requests forum it show==only for request posts
but in another forum it show==do not say dirty word
something like this.....
hope u can understand what i mean??
Logician
06-21-2002, 10:07 AM
1- Put $squawell_var into your postbit template. (where you want your text)
2- Edit admin/functions.php find:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
Before that add:
if ($forum[forumid]==X) {$squawell_var='only for request posts ';}
else {$squawell_var='do not say dirty word';}
Dont forget to edit X with for forumid..
Enjoy..
Logician
squawell
06-21-2002, 01:18 PM
Logician thankz for ur reply..
but it doesn't work....:(
Logician
06-21-2002, 01:55 PM
reapply plz.. edited the code.. it should work now..
squawell
06-21-2002, 07:15 PM
Originally posted by Logician
reapply plz.. edited the code.. it should work now..
Logician thankz ur reply again.....:D
now it can show up the message but....in specific forum
it still show the same message not my set up words!!
see this:
if ($forum[forumid]==13) {$squawell_var='only for request posts ';}
else {$squawell_var='do not say dirty word';}
still show the do not say dirty wordand the
only for request postsdid not show up......
what's wrong? :cry:
Logician
06-21-2002, 07:27 PM
is forumid 13 right? may I check in your board if you applied it and if you dont mind? What's its URL?
squawell
06-21-2002, 09:54 PM
Originally posted by Logician
is forumid 13 right? may I check in your board if you applied it and if you dont mind? What's its URL?
yes im sure my forumid is 13.....
ok...this is my forum but it in my localhost...and this is url
if u dont mind this is a chinese forum...hope u can see the chinese
and thankz for ur help.... :bunny:
scsa20
06-21-2002, 10:29 PM
well...I know my chinese text support works :rolleyes:
anyways, the only forumids are 2 and 3 :rolleyes:
squawell
06-21-2002, 10:52 PM
Originally posted by scsa20
well...I know my chinese text support works :rolleyes:
anyways, the only forumids are 2 and 3 :rolleyes:
i know...
because i change my forum so the forumid is different and i
have to change the code.....
but just like u see it show the same message....
Logician
06-22-2002, 06:50 AM
I couldnt check your board (url was down) but I tested my code in my board and it works..
If you have only forumid 2 and 3, make sure you edited the text like:
if ($forum[forumid]==3) {$squawell_var='only for request posts ';}
else {$squawell_var='do not say dirty word';}
squawell
06-22-2002, 08:54 AM
Originally posted by Logician
I couldnt check your board (url was down) but I tested my code in my board and it works..
If you have only forumid 2 and 3, make sure you edited the text like:
if ($forum[forumid]==3) {$squawell_var='only for request posts ';}
else {$squawell_var='do not say dirty word';}
sorry... my forum builded on my localhost so if i dont start the
program noone can visit!!
But the problem is solved.........i forget change the $forumid to
$forum[forumid]....sorry....and now it works....
thankz Logician..:D:D:D:D
Chris M
06-22-2002, 12:21 PM
Cool...
Would this (below) give out nothing if that forum wasnt the specified one?? (I mean like : I want it to show in only one forum, and nothing to show anywhere else)
if ($forum[forumid]==3) {$squawell_var='only for request posts ';}
else {$squawell_var='';}
Satan
Logician
06-22-2002, 03:01 PM
you are correct hellsatan
Chris M
06-22-2002, 04:08 PM
Great!:)
Thanks...
Satan
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.