vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   different message in specific forum (https://vborg.vbsupport.ru/showthread.php?t=40090)

squawell 06-20-2002 08:22 PM

different message in specific forum
 
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:

PHP Code:

    $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); 

Before that add:

PHP Code:

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

Quote:

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:
PHP Code:

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

Quote:

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

Quote:

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:

PHP Code:

if ($forum[forumid]==3) {$squawell_var='only for request posts ';}
else {
$squawell_var='do not say dirty word';} 



All times are GMT. The time now is 11:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete