vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Admin Attachment (https://vborg.vbsupport.ru/showthread.php?t=32691)

yasunari 04-30-2002 07:31 AM

deleted.

Chris M 04-30-2002 08:12 AM

Satan

snakes1100 04-30-2002 10:22 AM

Anybody?

Chris M 04-30-2002 03:01 PM

Anybody what?

If you are trying to make it for all staff, change the "and" to "&&"...

That should make it work...

PHP Code:

if (($maxattachsize!=and $filesize>$maxattachsize and $bbuserinfo[usergroupid]!=6) && ($bbuserinfo[usergroupid]!=5)) { 
// too big! 
eval("standarderror(\"".gettemplate("error_attachtoobig")."\");"); 
exit; 

if ((
$filesize!=$attachment_size and $bbuserinfo[usergroupid]!=6) && ($bbuserinfo[usergroupid]!=5)) { 

I just noticed something else...

You didnt close the brackets, which made the parse error...

Satan

Chris M 04-30-2002 03:24 PM

Ok...

Maybe not...

Try :

PHP Code:

if (($maxattachsize!=and $filesize>$maxattachsize and ($bbuserinfo[usergroupid]!=6) && ($bbuserinfo[usergroupid]!=5)) { 
// too big! 
eval("standarderror(\"".gettemplate("error_attachtoobig")."\");"); 
exit; 

if ((
$filesize!=$attachment_size and ($bbuserinfo[usergroupid]!=6) && ($bbuserinfo[usergroupid]!=5)) { 

Satan

Admin 04-30-2002 03:33 PM

[QUOTE]Originally posted by hellsatan
If you are trying to make it for all staff, change the "and" to "&&"...

Chris M 04-30-2002 04:06 PM

I thought it was that...Then I was wrong...Thanks for clearing it up...

Then I noticed that there were stray ")" on the end of codes, and that there were no "(" to start!

I am not sure if that works or not, but I think it should...

Satan

snakes1100 04-30-2002 04:46 PM

Ill try when i get home thanx satan...

Chris M 04-30-2002 06:31 PM

Np...

@FireFly - I have indentified a problem...

When Moderators and Users try and add attachments, it will not allow them to...Even when they are within the restrictions...

I am only using the Basic code you first mentioned, as I dont want Mods over-working the board...

Satan

snakes1100 04-30-2002 08:42 PM

@satan
Im running the basic line that firefly wrote, it runs fine and all users can upload.


All times are GMT. The time now is 01:42 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.01059 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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