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)

boiboi 09-24-2004 11:16 PM

I get this on my vb's who's online
Is there anyway I can fix this to replace unknown location with 4images?

Guest Unknown Location /4images/categories.php?cat_id=11 202.81.174.xx

Bhuwan 09-25-2004 09:59 AM

my gallery has been running smoothly for nearly 3 weeks. now all of a sudden im getting these errors:

Warning: move_uploaded_file(./data/media/4/jiji.jpg): failed to open stream: Permission denied in *on line 114

Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php25B.tmp' to './data/media/4/jiji.jpg' in *on line 114

I checked the Windows\temp permissions and they are okay (I verified it by uploading an image using vBULLETIN, which works).

why after 3 weeks does this fail?

mtha 09-25-2004 11:19 AM

Quote:

Originally Posted by boiboi
I get this on my vb's who's online
Is there anyway I can fix this to replace unknown location with 4images?

Guest Unknown Location /4images/categories.php?cat_id=11 202.81.174.xx

Could you PLEASE read the instruction file and pay GREAT attention to step 5? Thank you very much

Quote:

=======================
Step 5: Edit vBulletin FILES (3.0.1)
------
forums/includes/functions.php
includes/functions_online.php

........

<add after>
// Album user location
else if (strpos($token, "/album/") !== false)
{
{
$userinfo['activity'] = 'album';
}
return $userinfo;
}
</add after>
======================
* Change the ($token, "/album/") according to your album location defined as ALBUM_FOLDER in sessions.php
Quote:

my gallery has been running smoothly for nearly 3 weeks. now all of a sudden im getting these errors:

Warning: move_uploaded_file(./data/media/4/jiji.jpg): failed to open stream: Permission denied in *on line 114

Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php25B.tmp' to './data/media/4/jiji.jpg' in *on line 114

I checked the Windows\temp permissions and they are okay (I verified it by uploading an image using vBULLETIN, which works).

why after 3 weeks does this fail?
are you out of quota? did you try to upload another file?

P.Jackson 09-25-2004 08:22 PM

does this hva eto be installed into the same database as vbulletin or? as i have a install scrip in fantistico (cpanal) and it creates it in a new database just want to know b4 i install

P.Jackson 09-26-2004 10:16 AM

is there no way we can ge tthis to automatically use the forums header and footer like photopost does?

vietnamscript 10-01-2004 01:58 AM

dear all I have a problem:
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
Table 'sinhvien_diendan.4images_settings' doesn't exist
please help me

SnitchSeeker 10-01-2004 04:34 PM

Holy Moly it looks like it worked!!!

Wooo Hoo!!!!!

Now I just need to fix the templates and upload the 3,000+ images I used to have before the switch...

mtha 10-02-2004 05:37 PM

Quote:

Originally Posted by P.Jackson
does this hva eto be installed into the same database as vbulletin or? as i have a install scrip in fantistico (cpanal) and it creates it in a new database just want to know b4 i install

for this script, it need to be in the same database.

Quote:

is there no way we can ge tthis to automatically use the forums header and footer like photopost does?
no, sorry.


Quote:

dear all I have a problem:
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
Table 'sinhvien_diendan.4images_settings' doesn't exist
please help me
the error says: Table 'sinhvien_diendan.4images_settings' doesn't exist

Questions:

01. Did you install 4images seperately (follow the original instruction) and make it work? If it doesnt work, make it work first!

02. Do you have the above table exist in your database? (you can use phpMyAdmin)

vietnamscript 10-03-2004 12:28 PM

I was config database file config.php of 4images same database of forum but when I install it. I have error, can you help me?

mtha 10-05-2004 12:58 PM

Quote:

Originally Posted by vietnamscript
I was config database file config.php of 4images same database of forum but when I install it. I have error, can you help me?

which means you was NOT be able to install at the first time, even with FRESH version of 4images?

As I stated in the instruction. The integration in only work when you already have vBulletin and 4images installed AND working fine.

you need to download the original 4images version from 4homepages.de and install again. Folow their install instruction and try to have your 4images works first. Alot of help on original version given in their forum.

peterska2 10-05-2004 02:15 PM

I've got a little problem.

I've installed 4images and am getting ready to start the modding for the integration but I can't get it in English. I've uploaded the language pack but due to my complete lack of German knowledge I can't find where to switch the language.

Any help?

[edit]

Deoasn't matter, I've got it.

good old bablefish!

peterska2 10-05-2004 03:14 PM

<font color="red">I click install</font>

Just one question, what's the best way to link usergroups created in 4images to usergroups in vB?

mtha 10-06-2004 05:15 AM

Quote:

Originally Posted by peterska2
I click install

Just one question, what's the best way to link usergroups created in 4images to usergroups in vB?

I myself create another seperated field for album's group, with default to be member (2), and I will only care about the admins and members. All new members are automatically in member group for forum_level. Admins are set manually.

If you want to have a "waiting for moderation" group too, make the default to be the value for moderating, and add some code in activation form so that when he/she activate profile, the value of album_level changed to member.

That way I dont have to worry about vB's groups.

SnitchSeeker 10-07-2004 06:49 PM

Is there a way to include the "style picker" (bottom left of every vb page) in the 4images gallery? That 4images gallery could also trace which style/skin is selected, and feed the stylesheet (not the vb templates, only the css file). I want to customize the 4images templates to use the vb classes, and have the users personal settings determine which css is fed.

Also, how to make gallery comments increase in vb post count.

Bhuwan 10-08-2004 01:25 PM

keep getting
Fatal error: Call to undefined function: imagegif() in image_utils.php on line 79

mtha 10-09-2004 07:35 PM

Quote:

Originally Posted by bchawla
keep getting
Fatal error: Call to undefined function: imagegif() in image_utils.php on line 79

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.

Quote:

Is there a way to include the "style picker" (bottom left of every vb page) in the 4images gallery? That 4images gallery could also trace which style/skin is selected, and feed the stylesheet (not the vb templates, only the css file). I want to customize the 4images templates to use the vb classes, and have the users personal settings determine which css is fed.
Not as I think of right now.

currently, 4images use "styles" globally, based on 4images' setting, not based on users' setting.
However, you can change this to "user setting", and read the "style setting" for each user. by that way, you can change style easier.
This could be a cool hack, but I cant help right now.

Quote:

Also, how to make gallery comments increase in vb post count.
I'd suggest to use another field for gallery comments count. Create another field in user table, and give the table name in sessions.php, that's all what you need to do. If you want the field to be displayed in profile, put some hacking to your vB display too.

defi 10-09-2004 11:05 PM

I'm having problems; Everything worked great except for the login form...

Basically, (ive attached screenshots) it says Im logged out, yet myself and the members can upload images, go to the usercp and lightbox etc (I can even access the admincp) but it still shows the login form on the left... Please see the screenies

Rick Sample 10-10-2004 04:03 PM

I've noticed you said this hack is for vbulletin 3.0.1. Will it work with 3.0.0?

Also, where do we install the 4images at? in our sites main directory or in the /forums folder?

mtha 10-11-2004 04:59 AM

Quote:

Originally Posted by defi
I'm having problems; Everything worked great except for the login form...

Basically, (ive attached screenshots) it says Im logged out, yet myself and the members can upload images, go to the usercp and lightbox etc (I can even access the admincp) but it still shows the login form on the left... Please see the screenies

Do you change the user_loginfo.html template?
Try to upload the original user_loginfo.html and includes/page_header.php files again. I think you might have change that template to the one I gave somehow.

It should be the original:

HTML Code:

<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
        <td valign="top" align="left">
          {lang_loggedin_msg}<br /><br />
          &raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />
          &raquo; <a href="{url_control_panel}">{lang_control_panel}</a><br />
          &raquo; <a href="{url_logout}">{lang_logout}</a></td>
  </tr>
 </table>

Quote:

I've noticed you said this hack is for vbulletin 3.0.1. Will it work with 3.0.0?
It may work with 3.0.0 as well, there were some small code changes between versions for 3.0.0 and 3.0.1 but I think it still may work. However, I suggest you to upgrade your vB to 3.0.3 which is the latest one.

Quote:

Also, where do we install the 4images at? in our sites main directory or in the /forums folder?
It doesnt matter, you can install it anywhere you want, as long as you use the same database and dont have cookie domain conflict.

deathemperor 10-11-2004 06:40 AM

cool, thanks Mtha and blackxRam (hey don't be so critical) I found it.

for anyone wants to display random images on vbulletin 3.x pages: here's the link: http://4homepages.de/forum/viewtopic.php?t=1688&start=0

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 .

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 09:58 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.01759 seconds
  • Memory Usage 1,921KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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