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)

defi 10-11-2004 07:54 PM

The templates were fine; Exactly as you said. This problem is still occuring... Any other ideas?

Rick Sample 10-12-2004 10:19 PM

What does this mean in the installation instructions

2. 4images tables and vbulletin tables have to be in the same database.

Does this mean we have to combine or tell 4images to use the vbulletin mysql database? If so, how?

mtha 10-13-2004 05:22 AM

Quote:

Originally Posted by defi
The templates were fine; Exactly as you said. This problem is still occuring... Any other ideas?

It seems like the value in page_header.php doesnt read properly

if ($user_info['user_level'] >= USER) doesnt return TRUE even when you logged in.

Check:

- constants.php

// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);


-sessions.php

$user_table_fields = array(
"user_id" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"

make sure you have correct user_level
If you dont use forum's groupid, make sure that the field is filled with "user#" value


check includes/page_header.php
this should be default, but still chec, just incase
PHP Code:

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
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) ? 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);



let me know how you come up with..


Quote:

What does this mean in the installation instructions

2. 4images tables and vbulletin tables have to be in the same database.

Does this mean we have to combine or tell 4images to use the vbulletin mysql database? If so, how?
this mean both of them use the same database (supposed 4images has a different prefix)

if you dont have any table with the same name, then you can just dump one database and restore into the other, using phpMyAdmin maybe?

SnitchSeeker 10-13-2004 08:26 AM

Quote:

Originally Posted by mtha
It seems like the value in page_header.php doesnt read properly

if ($user_info['user_level'] >= USER) doesnt return TRUE even when you logged in.

Check:

- constants.php

// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);


-sessions.php

$user_table_fields = array(
"user_id" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"

make sure you have correct user_level
If you dont use forum's groupid, make sure that the field is filled with "user#" value


check includes/page_header.php
this should be default, but still chec, just incase
PHP Code:

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
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) ? 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);



let me know how you come up with..



this mean both of them use the same database (supposed 4images has a different prefix)

if you dont have any table with the same name, then you can just dump one database and restore into the other, using phpMyAdmin maybe?

Some of my users are complaining that they can't view images once there are comments for it. They can view all images fine that don't have comments, but when there are comments to an image, the whole page loads - except the image itself. It shows up blank, like it isn't even part of the page.

I have no idea how many people are experiencing this, but at least a few are since they have PM'ed me about it.

Any idea why this might be?

mtha 10-13-2004 03:38 PM

Quote:

Originally Posted by SnitchSeeker
Some of my users are complaining that they can't view images once there are comments for it. They can view all images fine that don't have comments, but when there are comments to an image, the whole page loads - except the image itself. It shows up blank, like it isn't even part of the page.

I have no idea how many people are experiencing this, but at least a few are since they have PM'ed me about it.

Any idea why this might be?

can you replicate the problem? I registered and view one with comment, andit was displayed fine.

I did not do anything with comments, nor display pictures.

- did you have this problem before integration?
- were you able to see the problem yourself?
- can you get your user's account, and using his account to see the problem?

defi 10-13-2004 04:19 PM

I found the error,

Code:

- constants.php

// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);

For 'user' I was using another groupid of registered users which have 1+ posts as opposed to user's with 0 posts which made up the user groupid '2'...

Anyways, I sorted out the problem, thanks for leading me to the fix :)

InsaneContender 10-13-2004 07:30 PM

I work at CommunityForums as well, and I've noticed that the fix works great for just registered users, however - it does not work for administrators (who's usergroupid is still 6)

What could be causing this?

mtha 10-13-2004 07:57 PM

Quote:

Originally Posted by InsaneContender
I work at CommunityForums as well, and I've noticed that the fix works great for just registered users, however - it does not work for administrators (who's usergroupid is still 6)

What could be causing this?

could be the same reason :)

defi sorted out the problem, he should know what cause it, right? do the same check!

InsaneContender 10-13-2004 09:15 PM

I think I may know - when I first registered it - I used my name as the admin (userid: 1)

My userid is 1 on the forums as well

Could this conflict?

mtha 10-14-2004 06:01 PM

Quote:

Originally Posted by InsaneContender
I think I may know - when I first registered it - I used my name as the admin (userid: 1)

My userid is 1 on the forums as well

Could this conflict?

This hack uses vBulletin's user table, and it doesnt care about what you did with the old registration you did with 4images.

because your board has custom groups, with custom settings (which I dont know), so I cant guess the reason.

try to check and play with the code I gave above.

If you want, you can test, getting your user_level ,
in page_header.php
FINE

if ($user_info['user_level'] >= USER) {

ADD ABOVE:

echo "Userlevel: ". $user_info['user_level'] ." - ";
echo "User setting: ". USER;

then go to your album, read the value for user level on top of your page. Should this be the correct user_level?
compare this with the second number .


All times are GMT. The time now is 08:34 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.01580 seconds
  • Memory Usage 1,783KB
  • 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
  • (2)bbcode_php_printable
  • (6)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