vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - PhotoPlog: The Lite Gallery (https://vborg.vbsupport.ru/showthread.php?t=101368)

centers 01-08-2006 12:33 AM

Hey first i wane say WHAT A GREAT HACK hehe but i have a problem everything is working but if i click upload i get this message Sorry, center: Bad File center is my board username, my image dir is 777 what im doing wrong please help me man..

nitro 01-08-2006 12:37 AM

File is probably outside the size limits for your vb usergroup think its in permissions you can change it.

centers 01-08-2006 12:50 AM

Is not working too, im trying and trying for 4 hours now lol

calorie 01-08-2006 01:58 AM

It's either file size like nitro said, or it could be that your /tmp directory is not accessible, assuming you are trying to upload a gif, jpg, or png image.

utw-Mephisto 01-08-2006 02:01 AM

Quote:

Originally Posted by calorie
Okay, go run the following query in say phpMyAdmin and see if it returns a count:
[sql]
SELECT COUNT(*) FROM photoplog_fileuploads WHERE userid = 1;
[/sql]

Count = 1 :(

Since Userid 1 is me and I just uploaded one file it is true

calorie 01-08-2006 02:12 AM

In PhotoPlog's upload.php file find the following near the top:
Code:

require_once('./settings.php');
And afterwards place the following code temporarily:
Code:

echo "x".$permissions['photoplogmaxfilelimit']."x<br />";
echo "x".intval($permissions['photoplogmaxfilelimit'])."x<br />";
$temp_check = $db->query_first("SELECT COUNT(*) AS cnt
        FROM photoplog_fileuploads
        WHERE userid = ".intval($vbulletin->userinfo['userid'])."
");
echo "x".$temp_check['cnt']."x<br />";
exit();

Then call PhotoPlog's upload.php from a browser. What do you see?

utw-Mephisto 01-08-2006 02:14 AM

Quote:

Originally Posted by calorie
In PhotoPlog's upload.php file find the following near the top:
Code:

require_once('./settings.php');
And afterwards place the following code temporarily:
Code:

echo "x".$permissions['photoplogmaxfilelimit']."x<br />";
echo "x".intval($permissions['photoplogmaxfilelimit'])."x<br />";
$temp_check = $db->query_first("SELECT COUNT(*) AS cnt
        FROM photoplog_fileuploads
        WHERE userid = ".intval($vbulletin->userinfo['userid'])."
");
echo "x".$temp_check['cnt']."x<br />";
exit();

Then call PhotoPlog's upload.php from a browser. What do you see?


Quote:

x0x
x0x
x1x
Thats all I see

calorie 01-08-2006 02:24 AM

What is your Maximum File Limit set to for your usergroup? Still 100000? If so, run the following query. What do you see?
[sql]
SELECT usergroupid, photoplogmaxfilelimit FROM vb3_usergroup;
[/sql]

utw-Mephisto 01-08-2006 02:30 AM

Quote:

Originally Posted by calorie
What is your Maximum File Limit set to for your usergroup? Still 100000? If so, run the following query. What do you see?
[sql]
SELECT usergroupid, photoplogmaxfilelimit FROM vb3_usergroup;
[/sql]

Sorry for all your trouble and thanks for the support. However, the problem is solved.

We have several usergroups and one secondary usergroup had the setting to 0 ..

But shouldn't be the primary usergroup above the secondary permission wise ?

But again, thanks for the fast support ..

calorie 01-08-2006 03:05 AM

With primary and secondary usergroups and PhotoPlog, zero is like a buzzkill, overriding the other permission. If you change the zero to a one, the greater permission should then apply.


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