Resource icon

[XFR] User Albums 1.0.0 b7

No permission to download
Both of the places where the upload limit is specified are set to the same figure. We have the dimensions left blank in both places. So far, with a 10MB limit set, we can only get a 2.1MB image to upload. Any other ideas?

What is the resolution of the image you're testing with? Is it greater than 4000x4000?

PHP upload limit set correctly?
 
The images have not been greater than 4000x4000. The current one I'm testing is 1024x3885.

If the php upload limit is the option you set on the "attachments" listing in the options menu, then that is set to 10240kb with no pixel dimension criteria, the same as I have set in the user albums options.
 
The images have not been greater than 4000x4000. The current one I'm testing is 1024x3885.

If the php upload limit is the option you set on the "attachments" listing in the options menu, then that is set to 10240kb with no pixel dimension criteria, the same as I have set in the user albums options.

The PHP upload limit is the "upload_max_filesize" parameter set in your PHP.ini. If you're on a shared host that information/setting is sometimes available in the hosting control panel. If you are on a VPS or dedicated server you'll need to edit the php.ini, change the upload_max_filesize to something >= the file size you are trying to upload.

If you are unsure of how to check or change this, feel free to send me a message directly. I don't mind taking a look for you if you want.
 
Pepelac, with the experimental global album in place.. is it possible to add in permission to allow certain usergroups to upload images, but not create albums please?

Thanks!
 
I know I'm being dense about this but are instructions posted anywhere for how to use the vB 3.8 albums importer? I've downloaded it from this thread but have no idea where on the server it should be placed or how to run it. Thanks for any info!
 
One more question, on creating an album, the page gives 3 radio buttons for type of album: Public, Private and xfr_useralbums_global which I assume is the variable for a phrase that did not get set. I created a new phrase using that variable name as the title and the text as "Global." Not sure if that is correct. Thanks again.
 
Just found something else. After creating a test album (new install of Xenforo and User Albums) , I went to my profile page and selected the Albums tab. The test album is listed but the image to the left (avatar?, album cover?) is broken. Also the description of the album contained a smiley but on this page/tab the smiley shows as its code rather than the graphic. The album, avatar and description display fine everywhere else (sidebar, etc.).

Edit: Okay...It seems that the broken image has something to do with the Flexile skin I was using as a generic album cover type image displays when using other skins. Still not sure about the missing phrase and how to use the importer as mentioned in the previous two posts, though. Thanks!
 
I've been running the import of my vb 3.8.2 albums and about 67% of the way through I run into this error:

Code:
Fatal error: Call to a member function thumbnail() on a non-object in /home/[removed]/public_html/[removed].com/library/XfRu/UserAlbums/Model/Images.php on line 272

Is this due to a bad image or the quantity of photos being processed (about 7500 of 10,000 at this point during the import I would estimate)? And is there anything I can do to get past this point. I've tried running the import twice and it craps out at exactly the same point each time. Thanks!
 
bad image is a good guess...or perhaps there's an image in there with improper file permissions?

The $image object is defined by:
PHP:
$image = XenForo_Image_Abstract::createFromFile($uploadedImage->getTempFile(), $uploadedImage->getImageInfoField('type'));

My guess is XenForo_Image_Abstract::createFromFile is failing due to a permissions issue. It's just a guess though..
 
Hmm...not sure how it could be a permissions issue since all the images were created and placed there by vB's albums uploader but I'll go through the album folders and set them to 777 and try again. If it is a bad image rather than a permissions issue, I wish there was a way to tell which picture it is crapping out on. The error the importer gives is greek to me. What's a "non-object?" The import of the first 7500 or so works like a charm and the albums look great and have all the right content, captions, owners, etc. Just can't get past the 67% mark. So close.
 
Well, I set permissions to 777 on all original vB album folders, subfolders and files, and re-ran the import. Same outcome. It fails at 67% of the way through with the above-noted error. I hope the author can help clear this up. Thanks for the advice anyway.
 
Well, I checked the import log after another attempted import of the albums (which failed at 67% as usual) and found the final 7 or so entries have a thumbnail sizes of 0 x 0 when all the images in the log prior to that have normal sizes. It aborts after that point. I checked those particular pictures in the original albums and they are perfectly fine, nothing corrupt or abnormal about them. I've made sure that all permissions are set correctly in both file systems (777 in old forum and new forum for albums folders and images) and I've got User Albums itself set to allow unlimited albums per user and unlimited images per album. My fifth try at the import and it craps out at the exact same point again...67%. That's about as much as I know to try on my own. I'll have to wait until the author of the add-on returns and hope he can help. I LOVE the add-on - it is exactly what I was looking for. I just need to get the import to complete so I can move on with my forum setup.
 
So I added hot link protecting and for some reason this photo album didn't like it. I have no idea as to why.


PHP:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sociallyuncensored.eu [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sociallyuncensored.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?xenforo.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?twitter.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|svg|css|js|pdf|zip)$ http://www.sociallyuncensored.eu/hotlink.jpg [NC,R,L]
 
Random but a lot of questions are answered in the old thread: http://xenforo.com/community/threads/xfr-user-albums.14033/
So I added hot link protecting and for some reason this photo album didn't like it. I have no idea as to why.


PHP:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sociallyuncensored.eu [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sociallyuncensored.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?xenforo.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?twitter.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|svg|css|js|pdf|zip)$ http://www.sociallyuncensored.eu/hotlink.jpg [NC,R,L]
Forreal?
 
Top Bottom