vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   how to do that?? (https://vborg.vbsupport.ru/showthread.php?t=33796)

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

if ($foruminfo['allowposting']==1) {
  eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}

with:
Code:

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

1 Attachment(s)
see the pic~

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


All times are GMT. The time now is 09:33 AM.

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.04730 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete