vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Anyone with coding knowledge... (https://vborg.vbsupport.ru/showthread.php?t=112580)

DrainBamaged 04-09-2006 07:39 PM

Anyone with coding knowledge...
 
I want to create a certain forum... say: forumid 6, that has a MAXIMUM post character limit of 200.

I've tried this:

Code:

if ($threadinfo['forumid']==6) {$postmaxchars=200;}
But to no avail.

I know next to nothing about PHP or vBulletin coding, so thanks for the help.

(For version 3.5.4)

ZombieAndy 04-09-2006 08:23 PM

https://vborg.vbsupport.ru/showthread.php?t=93445

should help you :)

DrainBamaged 04-09-2006 09:06 PM

Then how come:

Code:

<if condition="$threadinfo['forumid'] == 6">
    {$postmaxchars=200;}
</if>

Doesn't work??

Quote:

Originally Posted by vBulletin
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '=', expecting '}' in /home/teenage/domains/teenagespace.com/public_html/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 13

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Anyone?

DrainBamaged 04-11-2006 12:58 AM

... :(

Cole2026 04-11-2006 01:45 AM

What hook are you trying to do this in?

DrainBamaged 04-11-2006 07:57 PM

Honestly, I have no idea - I'm a grapghics and HTML guy. All I want is something that says, "If the user is in forumid 6, then have a post character limit of 200."

DrainBamaged 04-12-2006 10:01 PM

Please???


All times are GMT. The time now is 05:53 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.01037 seconds
  • Memory Usage 1,720KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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