vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Image Hosting (https://vborg.vbsupport.ru/showthread.php?t=93076)

loneranger 08-21-2005 09:41 PM

yeah i agree with you just recently i have discovered a couple of bugs not everyone can be perfect utw have you ever tried coding don't mock what you can't do i had it perfect on my system but it works different on different systems i am tring to create a decent hack here i don't need you mocking me all the time talking as if you know everything, how about you grow up and offer good critism rather than just put things down.

Chris_D 08-22-2005 07:18 PM

Ok, I've fixed my issue the issue I had.

If anyone else gets the issue wherein the hack is working fine, however in the forum statistics section at the bottom, where it shows the last person to have uploaded an image, if their user ID is showing wrong then do the following:

In the INSTALL.txt file you'll find this information:
Quote:

step 4 FORUM_HOME templates changes
find;
PHP Code:

<div>
                
$vbphrase[threads]: $totalthreads,
                
$vbphrase[posts]: $totalposts,
                
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <
span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers,</span>
                </if> 

below it add
PHP Code:

Users Hosting Images$total_users,
Total images Hosted$total_images,
Newest Hosted Image$image_name by <a href=img_view_all.php?do=imgs&id=$userid>$username</a


Where it says "do=imgs&id=$userid>$username</a>", change this to "do=imgs&id=$rows[1]".

Next, go to Plugin System > Plugin Manager > Edit Image Hosting 2.1 > Find "$userid=$rows[0];" and change it to "$userid=$rows[1];".

It should now start working.

This is basically what loneranger said above.

Chris_D 08-22-2005 09:16 PM

loneranger -- it looks like you might have to release a new version if you're going to fix any genuine bugs people might have. If you do, would you also be able to introduce a thumbnailing system? So it'd use GD to crop/rezise the uploaded pictures to a much smaller size so it doesn't distort the img_view_all.php page and also might be generally convenient for people that are linking the images on other forums.

Beermonster 08-23-2005 10:47 AM

I've tried to remove this but I get

Code:

Warning: Unknown(/includes/class_bitfield_builder.php): failed to open stream: No such file or directory in /admincp/plugin.php(965) : eval()'d code on line 8

Fatal error: (null)(): Failed opening required '/includes/class_bitfield_builder.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/public_html/admincp/plugin.php(965) : eval()'d code on line 8

And I'm also unable to edit the usergroup profiles now with out getting a database error, how do I remove it totally?

loneranger 08-23-2005 01:35 PM

if you go to product manager and edit the product, look in the uninstall code bit and put at the top include('./global.php'); must have forgottern to put that in sorry

Beermonster 08-23-2005 01:47 PM

Quote:

Originally Posted by loneranger
if you go to product manager and edit the product, look in the uninstall code bit and put at the top include('./global.php'); must have forgottern to put that in sorry

Nope sorry still won't uninstall :(

loneranger 08-24-2005 01:35 PM

well i have it working on my system, just install the attacheched product and allow overwrite then try and uninstall

utw-Mephisto 08-24-2005 01:43 PM

The problem is when u get an SQL error while installing, u cannot even uninstall it again as it give also database errors ..

Is there a way to provide a manual uninstall procedure ?

Beermonster 08-24-2005 02:38 PM

Quote:

Originally Posted by loneranger
well i have it working on my system, just install the attacheched product and allow overwrite then try and uninstall


Thanks that removed it from the products list, but I still get a sql error when trying to edit the usergroups, and I'm left with a bit at the bottom that looks like the attached image.

Chris_D 08-24-2005 02:50 PM

What's the exact error message you get when trying to edit the usergroups. I had a similar thing in the forum manager with the gallery hack after an uninstall of it.

Beermonster 08-24-2005 02:59 PM

Quote:

Originally Posted by Chris_D
What's the exact error message you get when trying to edit the usergroups. I had a similar thing in the forum manager with the gallery hack after an uninstall of it.

It's this

Code:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Administrators',
        `description` = '',
        `usertitle` = 'Administrator',
        `opentag` = '<font color=\"#0000FF\"><strong>',
        `closetag` = '</strong></font>',
        `passwordexpires` = '0',
        `passwordhistory` = '360',
        `forumpermissions` = '1048575',
        `genericpermissions` = '254803903',
        `attachlimit` = '0',
        `pmquota` = '1000',
        `pmpermissions` = '3',
        `pmsendmax` = '5',
        `calendarpermissions` = '63',
        `wolpermissions` = '31',
        `adminpermissions` = '3',
        `genericoptions` = '23',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '100',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '80',
        `avatarmaxheight` = '80',
        `avatarmaxsize` = '20000',
        `imghost` = '0',
        `imghostset` = '',
        `imghost_width` = '',
        `imghost_height` = '',
        `imghost_files` = ''
WHERE usergroupid=6;

MySQL Error  : Unknown column 'imghost' in 'field list'
Error Number : 1054
Date        : Wednesday, August 24th 2005 @ 11:56:52 AM
Script      : http://www.mywebsite.com/admincp/usergroup.php
Referrer    : http://www.mywebsite.com/admincp/usergroup.php?do=edit&usergroupid=6
IP Address  :
Username    :
Classname    : vb_database


loneranger 08-24-2005 03:48 PM

are have you deleted the xml file in includes/xml/bitfield_imghost.xml ????? that might cause that error
utw have you tried that new php file above see if you can install it??? i would really like to help you solve your problem if you go into phpmyadmin you can delete the tables in there if you need more info i will write a manual unistall for you.

Beermonster 08-24-2005 04:11 PM

Quote:

Originally Posted by loneranger
have you tried that new php file above see if you can install it??? .

Yes I did and it still didn't work, so I tried it again and unistalled it and everything is fine now, don't know why it didn't work the first time, thanks for your help :)

h75 08-24-2005 04:54 PM

hey, image-hosting is working. :) but a file is missing, isn't it?

test.php?do=imgs&id=1

Beermonster 08-24-2005 05:01 PM

after all that I've reinstalled it again and it's now working fine, would be nice if when viewing the hosted images they would be thumbnails and not there full size :)

[high]* Beermonster clicks install[/high]

Chris_D 08-24-2005 06:58 PM

Quote:

Originally Posted by h75
hey, image-hosting is working. :) but a file is missing, isn't it?

test.php?do=imgs&id=1

Go to AdminCP > Styles & Templates > Look for the template called imghost_userbits > In there find test.php and replace with img_view_all.php.

Chris_D 08-24-2005 07:07 PM

loneranger --

Will you be putting some new features in like automatic thumbnails?

Also I noticed earlier that it's very easy to accidentally delete pictures. Any chance of a warning window / confirmation of deletion in a future version?

loneranger 08-25-2005 02:23 PM

right i will be working on making them thumbnails for the next release
just don't have time to code yet don't worry i will do it soon.

utw-Mephisto 08-25-2005 03:35 PM

It looks like a great hack. Did someone actually installed it from scratch on a 3.5RC2 sucessfully ? I really would love to have this on my board, but I am a bit tempted ...

Wayne Luke 08-25-2005 06:36 PM

Quote:

Originally Posted by loneranger
right i will be working on making them thumbnails for the next release
just don't have time to code yet don't worry i will do it soon.

Any updates on bug fixes? Particularly an answer to my question above. A simple answer would be nice as to how come this doesn't work at all.

Wayne Luke 08-25-2005 06:37 PM

Quote:

Originally Posted by utw-Mephisto
It looks like a great hack. Did someone actually installed it from scratch on a 3.5RC2 sucessfully ? I really would love to have this on my board, but I am a bit tempted ...

It doesn't work on a fresh install and the developer is too busy to look into fixing issues it seems.

utw-Mephisto 08-25-2005 07:25 PM

Mmm... this forum should really have a Beta forum for such hacks which are only working with a good knowledge of PHP :( :(

Bill1970 08-25-2005 09:20 PM

When I want to upload a file (here called "example.jpg") I get the following error:

Warning: getimagesize(/images/+++ Images +++/example.jpg): failed to open stream: No such file or directory in /image_host.php on line 115
unable to get image size


Can someone help me ?

Thanks !

utw-Mephisto 08-27-2005 03:58 AM

This is a working "Solution" :)

Mit vBulletin code :

http://reg.imageshack.us/content.php?page=syndicate

Logikos 08-27-2005 04:12 AM

This is a great hack! Perfect for my new project. Thanks.

/me clicks install

loneranger 08-27-2005 12:36 PM

bill make sure the directory exists and is chmod'd to 0777 also you need the full path to the directory

loneranger 08-28-2005 07:02 PM

i have now tested this for 3 hours on a fresh install of vb 3.5.0 rc2 i have also got rid of all error people have recieved so if you were not able to install earlier you should be able to now. I haven't added any new features just changed the installation script and added a more in depth installtion instructions with pictures for those who can't read lol :) hope you all enjoy this release and there shouldn't be any more bugs or errors

Chris_D 08-28-2005 07:24 PM

I hope people have more luck with this one then they can enjoy it as much as I've been doing :D

Hope you'll still consider the thumbnails :)

loneranger 08-28-2005 07:39 PM

yes chris i am still considering if but i am going on holiday this week for 2 weeks so it might be a little while before i get round to doing. i really wanted to get all the bugs sorted first before i added new features.

Chris_D 08-28-2005 08:42 PM

That's cool. I'd rather everyone else be happy with it.

loneranger 08-29-2005 05:19 PM

has anyone else tried this yet would like to hear if there are any more bugs in this, seen as ppl think i am too busy to maintain this hack, i am trying to keep on top of this. Hope it works for all of you

Wayne Luke 08-31-2005 03:22 AM

AS nothing is happening on this, I have uninstalled it. I gave my error above and explained it best I could. If asked, I would have given you temporary access to look at my installation to see what was wrong from a developer's point of view but nothing went of it. Hopefully you get it working in the future after a little more testing on your end with various php and vbulletin installations.

There are lots of errors, including direct error listings, in this thread. Might look at some of them before you get upset at people uninstalling it.

utw-Mephisto 08-31-2005 05:27 AM

You seems to be overwhelmed with all the errors. You keep asking whats wrong but at the same time you ignoring error posts ..

loneranger 08-31-2005 01:05 PM

Quote:

Originally Posted by Wayne Luke
Still getting errors....

I installed this after a few tries just by following the thread. However, I set my administrator usergroup to be able to upload 1 MB files up to 1600 X 1200 (equal to what I have in the vBulletin Attachment manager). When I go to upload a file it says "Max Filesize: 0 KB" then trying to upload any file it says File too big, even though I have tried many different file sizes. Same pictures upload fine within the vBulletin Attachment Manager.

Would be nice as well to have upgraded installation documentation that tells you about the options that need to be set. It should also be noted that I am using RC2 of vBulletin 3.5.0 but it shouldn't matter, the hack should work fine.

sorry i missed your post did you set this in vbulleti8n attachement manager or in the usergroup premissions under image hosting settings? i have had a fresh install and haven't got that error, also have you downloaded the code recently as i changed it and create a more in depth installation guide. i am sorry ppl are uninstalling it but i have tested it on my linux system with a fresh install without getting any errors. maybe wayne if you could give me admin premission i could have a look it would be very kind or if you are not intrested anymore don't worry.

Wayne Luke 08-31-2005 04:54 PM

I have already uninstalled this and have a working solution with vBA Gallery that my users are satisfied with.

To answer your question though, I set the allowances and permissions within the Image Hosting settings.

Chris_D 08-31-2005 07:16 PM

Quote:

Originally Posted by Wayne Luke
AS nothing is happening on this, I have uninstalled it. I gave my error above and explained it best I could. If asked, I would have given you temporary access to look at my installation to see what was wrong from a developer's point of view but nothing went of it. Hopefully you get it working in the future after a little more testing on your end with various php and vbulletin installations.

There are lots of errors, including direct error listings, in this thread. Might look at some of them before you get upset at people uninstalling it.

He may not have directly responded to you, but he DID release a new version which, to his knowledge, fixed all the bugs, and also incorporated your request to improve the documentation with it.

Would it have been too civil of you to have just said "I'm sorry, your new update still hasn't worked"?? You haven't even indicated whether you bothered to download the new version...

Wayne Luke 08-31-2005 07:49 PM

Actually, yes, I had the most up to date version. There have been no changes in the image_host.php file which is where you try to upload images and where it fails to do so on my previous installation. I had no problems installing the plugin where changes were made in the updated version.

The interesting this is that the post says "Final" and the zip file includes RC1.

To satify your curiosity even further, I reinstalled the plug and reuploaded the files. Set the variables for the administration usergroup how I want them and it still will not allow me to upload even a 43 byte image (smallest I could find).

I have attached images below.

Chris_D 08-31-2005 08:07 PM

Now he knows there's still a problem, I'm sure he won't mind taking a look for you. He offered to do it with the issue I had.

It sounds like you're not interested any more but I've installed it and I'm enjoying it :D

loneranger 09-01-2005 01:25 PM

thanks wayne for your feedback it seems this is the secound time this came up but the other person never replied again, i am unsure what is causing this to happen as you can see it is stored in the database fine but it's not reading it out corrctly i will look into this problem but don't really know what it could be as it is working fine on my and many other users

utw-Mephisto 09-02-2005 02:09 AM

I don't really want to annoy you or something. I do appreciate your efford to create a nice hack / plugin.

I found now a solution which is working which I have posted here :

https://vborg.vbsupport.ru/showthrea...729#post766729


All times are GMT. The time now is 12:49 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.01450 seconds
  • Memory Usage 1,846KB
  • 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
  • (2)bbcode_php_printable
  • (10)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