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)

Chris M 04-30-2002 08:47 PM

Hmmm...

Confusing...

What version of vB are you using?

Satan

snakes1100 04-30-2002 08:51 PM

Im running 2.2.5

Your latest code didnt work either, still get the same parse errors.

Chris M 04-30-2002 08:55 PM

Hmmm...

I am also running 2.2.5...

Try this :

PHP Code:

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

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

It probably wont work, but give it a try...

Strange...Maybe our vB just doesnt like many hacks...

Satan

snakes1100 04-30-2002 09:04 PM

satan, still getting the same parse error...

Chris M 05-01-2002 09:26 AM

Hmmm...

I am not sure where to go from here...

PHP Code:

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

if ((
$filesize!=$attachment_size and ($bbuserinfo[userid]==1) && ($bbuserinfo[userid]==2)) { 

That should make it work for the UserID, but I am not sure about the Usergroup...

If it does, let me know...

That way you can give some Mods and Admins access, and not allow others...

Maybe I will come up with something soon...

Satan

snakes1100 05-01-2002 05:06 PM

ooooops! :dead:

Chris M 05-01-2002 05:51 PM

Hmmm...

I thought not...

Sorry FireFly...Nice attempt, but it aint workin...

Any clues as to where you went wrong?

Satan

snakes1100 05-01-2002 06:05 PM

uhh ohh, found out what the problem was and fix'd it.

The original code by firefly is working OK, it was a error on my part after editing the file late last night. I have no ftp access at work, so i couldn't ck it out. I knew i had it working originaly.

@satan, sorry for the mix up bud and appreciate all your help so far.

Chris M 05-01-2002 06:28 PM

Hey...

I do my best...

I am going to wait for FireFly to make an excuse now...:D

Satan

heretic 05-01-2002 08:42 PM

ok, for one thing show more than just this code. because every example there's anopen bracket- show all of the hack, and the affected block


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.01027 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