vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   4images Gallery 1.7 + vB 3.0.x (update Oct 30) (https://vborg.vbsupport.ru/showthread.php?t=66335)

InsaneContender 10-14-2004 07:20 PM

This is what I got:

Userlevel: 1 - User setting: 2

I am an admin, so shouldn't I be a 6?

mtha 10-15-2004 02:57 AM

Quote:

Originally Posted by InsaneContender
This is what I got:

Userlevel: 1 - User setting: 2

I am an admin, so shouldn't I be a 6?

You should have userlevel = 6.

Check your group setting, user_level setting (which assign to forum's group) ...

you need to provide me detail information on how you did to your forum and album, otherwise, I cant just guess around the reason for your modifications.

InsaneContender 10-15-2004 08:59 PM

Well, everything in the database (ids and such) match the other superadmin (Defi) and it works just fine for him. In fact - I am the only user which has this problem, and it's really bothering me... here are some of the things that are setup...

4IMAGES - Constants.php
==================================
// User levels
define('GUEST', 1);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);

// Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 6);
==================================

4IMAGES - page_header.php
==================================
Code:

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
echo "Userlevel: ". $user_info['user_level'] ." - ";
echo "User setting: ". USER;
if ($user_info['user_level'] >= USER) {
  $site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'], $lang['lang_loggedin_msg']));
  $user_box = $site_template->parse_template("user_logininfo");
  $myuserid = $user_info['user_id'];
  $site_template->register_vars(array(
    "user_box" => $user_box,
    "myuserid" => $myuserid,
    "user_loggedin" => 1,
    "user_loggedout" => 0,
    "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0
  ));
  $site_template->un_register_vars("user_logininfo");
  unset($user_box);
}
else {
  $user_box = $site_template->parse_template("user_loginform");
  $site_template->register_vars(array(
    "user_box" => $user_box,
    "user_loggedin" => 0,
    "user_loggedout" => 1,
    "is_admin" => 0
  ));
  $site_template->un_register_vars("user_loginform");
  unset($user_box);
}

============================

vBulletin - Usergroup IDs
============================
Admins: 6
Mods: 7
Registered (0 posts - no access): 2
Super Mods: 5
Unreg: 1
Awaiting Confirm: 3
Banned: 8
Registered 2 (1+ posts - access): 12
============================

It works fine for all users but me. So I really have no idea what is wrong...

And OH - my userid IS 1 and my group ID IS 6.... everything seems configured properly...

mtha 10-16-2004 05:27 AM

Quote:

Originally Posted by InsaneContender
4IMAGES - Constants.php
==================================
// User levels
define('GUEST', 1);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
...
And OH - my userid IS 1 and my group ID IS 6.... everything seems configured properly...

Did I have GUEST ID = 1? I think I had it be 0 in the instruction file
and the checking was stated again here
https://vborg.vbsupport.ru/showpost....&postcount=183

make that change back to ZERO, and you will be fine.

define('GUEST', 0);

InsaneContender 10-16-2004 06:06 AM

Yup, that did it! I wonder why I didn't notice that in the posts... well - whatever it was - it worked! Thanks!

Any explination on why it was that?

mtha 10-17-2004 09:26 AM

Quote:

Originally Posted by InsaneContender
Yup, that did it! I wonder why I didn't notice that in the posts... well - whatever it was - it worked! Thanks!

Any explination on why it was that?

There's a misleading in 4images config file. 4Images sometime check "user-id" and "user_level" for GUEST. you are unlucky enough to put 1 as user_level for guest :) => there's several user_info['user_id'] = GUEST; => seeing you as guest (and show the login box), but in the admin function part,it only check for userlevel :)

Bhuwan 10-17-2004 11:36 AM

Quote:

Originally Posted by mtha
You didnt have your 4images installed properly or your server doesnt support some image functions.

This hack REQUIRE you to have your 4images installed and running. You can get help on 4images website.

It only fails when you upload a GIF file (it tries to create a THUMBNAIL, which cuases it to error out).
Any Suggestions?

mtha 10-17-2004 02:51 PM

Quote:

Originally Posted by bchawla
It only fails when you upload a GIF file (it tries to create a THUMBNAIL, which cuases it to error out).
Any Suggestions?

check your graphic setting (Conversion tool for thumbnails)
Control Panel/ Settings / Conversion tool for thumbnails

if you dont have this setting correct, you wont be able to create thumbnails.

what it should be, based on your server, if your server has IM, GD or NetPBM. you can ask your host, or test

refer their manual for instruction

Cheertobi 10-19-2004 05:52 PM

Does this also works with 4images 1.7.1 ?

Tobi

Chadi 10-19-2004 07:30 PM

I'm getting some crazy error:

http://www.talkjesus.com/4images/admin/index.php

How do I fix this?


All times are GMT. The time now is 10:30 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.01457 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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