Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - surferboy

Pages: [1]
Discussion & Troubleshooting / issue uploading images over 100kb
« on: June 20, 2017, 10:59:27 PM »
Hi -

We have been using 4images for many years.  Most of the time, we upload images by ftp.  Recently a member tried to upload an image and it hung.  We tried it ourselves and found that anything over 100kb would cause the upload to hang.  Anything under 100kb uploads just fine.

Our server php.ini settings are massive, like file upload max size is 164M and time out at 180 seconds.  We pay for a virtual server so it has lots of capacity.

Does anyone have any suggestions or ideas on how to resolve this?  We have both the regular upload and the multiupload mods enabled.


still on version 1.7.7
php version 5.3.5

Discussion & Troubleshooting / Missing plugin to play mp4 file
« on: October 11, 2015, 04:51:03 PM »
Hi -

I added an extension for .mp4 files following Vano's instructions 

The file I wanted to play was huge, bigger than 20mb, so I uploaded it via ftp.  The file is there no problem.

The issue is that in almost all of the browsers, I get this message: "a plugin is needed to display this content."  The file will play on IE 11 but will not play on Firefox, on Waterfox, on Pale Moon, and on Chrome.  I have atttached a printscreen

Here is the mime type I have added in the upload_definitions.php file:
$mime_type_match['mp4'] = array("video/mp4", "application/octet-stream");

Here is the code in the mp4.html file:

<!-- Template file for MP4 Movies  -->
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" codebase="">
<param name="SRC" value="{media_src}">
<param name="CONTROLLER" value="TRUE">
<param name="AUTOPLAY" value="TRUE">
<param name="CACHE" value="TRUE">
<param name ="SaveEmbedTags" value="true">
width="320" height="256"
SaveEmbedTags ="true"

yes, I have the file extension in the acp settings. 

Should I use a different set of codes for the mp4.html file?  Any ideas?



Hi -

Using 4images 1.77
linux server
php v5.3.5
mysql  5.1.54

When I clicked on auto thumbnailer | check thumbnails in the ACP, I got this message:
Unknown error type: [8192] Function ereg_replace() is deprecated (file: /var/www/vhosts/ line: 34)

Anyone know if this is a minor bug or a major issue?



Hi -

I am a huge fan of breadcrumbs and I like how they work on 4images.

The only problem is that on the index page, the breadcrumb bar is empty.  I would like it to display 'Gallery - Home'

When you look at the other pages in the 4images installation, it shows Gallery - Home /  TOP 100 Pictures  /  Page:1  as an example.

Also, any ideas on how to change the styling of the breadcrumb the look of the Xenforo breadcrumb? It is really nice.



Hi -

I have searched everywhere for the html and/or css code to change the position of our sidebar from left to right.  I don't want to do this on every template (not the home.html but most of the rest). 

Can anyone suggest the code to use or the file to open to change the sidebar position?



Programming / 1000 categories and resource memory and time out issues
« on: July 17, 2012, 09:18:31 PM »
Hi -

We are a devoted 4images user. For our forum, we use Invision Power Board. Recent updates on their upcoming launch of their image gallery indicates that sub-albums will not be permitted while sub-categories will.  Given the structure of 4images, would the issue pasted below happen to our 4images installation, where we eventually exceed 1000 categories, be it regular or member categories?   Please note that resource issue that IPS describes is on a user's hosting platform and not their own hosting platforms.

 The IPS announcement and explanations are listed here:

In IP.Gallery 5.0, you will no longer be able to create sub-albums.  Sub-categories are still supported, however albums themselves can only be placed within a category, not within another album. ....These changes represent necessary deviations from past versions to allow IP.Gallery to scale effectively as the site becomes larger.  One of the primary issues faced in past versions was resource consumption as the number of albums on the site grows - this will no longer be an issue with specific rules in place that prevent complex hierarchy challenges.

Firstly, we are not removing subforums (however, we have worked on MANY sites where the admin has added over 1000 forums and suddenly they get memory and timeout issues because it takes so many resources to build the forum tree when they do this).  The difference with Gallery is that you WILL eventually top 1000 albums if your Gallery continues to grow.  This is because users create the containers, not the administrator, so mechanisms have to be built in to account for this.

Once you start reaching around 1000 albums or more when they can be structured in complex hierarchys, there is no resource efficient manner of building the tree.  For instance

Category A
--Album 1
----Subalbum 1
------Sub-subbalbum 1
------Sub-subbalbum 2
----Subalbum 2
------Sub-subbalbum 1
--------Sub-sub-subalbum 1
----------Sub-sub-sub-subalbum 1

In this scenario, to show the latest images (that you have permission to see) for any parent container, you need to loop through your children containers (the ones you can see) to figure out what their latest images are.  The only real way to do this is to load all of the albums from the database, put them into a tree structure in php, then loop through them.  Pulling all of the albums when you only have 100 isn't an issue.  Pulling all of them from the database when you have 10,000 is.  And no, there's no realistic way to pull only the albums you need because you don't know which ones you need (you have to recursively iterate through the albums to figure out what each parent's is and to determine if it is one you need to check).

Thanks to all the php programmers out there who understand php structure and can explain how or why 4images does or does not face the same issue.


Hi -

After that long back and forth about changing servers, we're still challenged with the quality of an upload of an image if we have GD selected in the ACP settings.

The issue is that with GD enabled, we do get a thumbnail automatically created but the image that is uploaded is hugely pixalated, almost as if the full size image is a blown up version of the thumbnail, and naturally, it is completely out of focus and looks terrible.

If we don't have GD enabled, we don't get the autothumbnail creation but the image that is uploaded looks perfect.

Does anyone have any thoughts?

Thanks so much.


[Edit]  - issue resolved. read solution:

Okay, after reading some of the other posts on here about GD, I decided to check my settings in the ACP for upload.  In our old shared hosting installation, with Image Magick enabled, we never had a value specified for the field 'Auto Resize Quality.'  It never was an issue.

So on a whim, I decided to add a setting of 100 to the 'Auto Resize Quality' and that resolved the issue, actually two issues, the first being that the image that appeared in full size was now clear and sharp, and the autoresizer, that was not working, is now working.


Been a while since I posted on here. Our 4images installation has been working like a charm until now.

We just moved from a shared hosting environment to a VPS.  The scope of support from the host is limited. We are expected to use shell commands on our own.

All of the db's, user names, and passwords, were recreated on the VPS with identical everything.  The VPS is a linux environment, running php 5.3.5  Our installation is v1.7.7

Is there a file I need to modify to set a new path for uploading images or an ftp setting? I can upload images via direct FTP to the media categories but I am unable to upload a single image from the front end.

Thanks for any ideas you might have.  Our community is very active now and we are desperate to get our 4images installation up and running again.  We would be happy to pay for someone's time to assist and troubleshoot.



Discussion & Troubleshooting / Trouble uploading a remote image via URL
« on: December 04, 2010, 03:00:57 AM »
Hi -

Using v1.7.7
PHP Version 5.2.14
MySql Version 5.1.47

I tried to upload this image using the remote url function and adding her name, Susan Francia, as the image name:

The result is the "eye image" and the image name but when you click on the image name, and go to the details page, all you see is her image name but not the image. 

I tried using V@no's multiuload MOD and the regular upload function, as well as Budduke's multiupload function. All three gave a result that only showed the image name but not the image.

Budduke weighed in with his comment after trying as well:

your second one (issue) did the same thing to me also,
I even tried adding it in the admin panel (outside my mod) and the same thing happened. The link is saved correctly in the database when I looked at it, but you can not download it or thumbnail it.
I  remember something about directories that begin with a underscore like that one has and some problems linking to them but I can not remember much about it.
I do not work with remote stuff so this is new to me. I tried linking a remote image from my own site and it worked...
but it did NOT create a thumbnail. Even from the admin panel or the normal member upload screen but it did link to it and I can download it.

I was successful in uploading other remote url images from blogs and other locations. 

Does anyone have an idea what the problem might be?



Mods & Plugins (Requests & Discussions) / multi-category rss feed
« on: September 15, 2010, 06:57:50 AM »
In my search of the forums, it would not appear that anyone has asked the question of how to create an RSS feed that pulls images from the one of the top categories and all sub-categories below.

Is that possible?

I know that an external news aggregator could do that but it would require constant updating as new sub-categories were added, and the chances of displaying the the thumbnails from all the sub-categories is not likely in a aggregator widget.



Hi -

The body code for our gallery is a little too dark for the postcard preview and the postcard sent displays:

body {
  background-color: #5C5C5C;
  color: #000000;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;

Can anyone suggest where to insert a modified css style, like 'bodybright' into the postcard html or postcards.php file?

Here is a proposed code I could add to the style.css file:

bodybright {
  background-color: #C4C4C4;
  color: #000000;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;



Discussion & Troubleshooting / Upload Settings - upload mode?
« on: April 16, 2010, 02:19:35 AM »
Hi -

Still confused after all this work on my 4images v1.7.7 gallery -

In the ACP, Settings -> Upload Settings -> upload mode

What are the functions of the three choices and the reasons for selecting these options?

1. Replace Files?
2. Save files with new name?
3. No file upload?

Is there a MOD that allows me to use the existing filename during upload? It doesn't seem like the choices above provide that option.

Budduke in his user categories MOD -
has this setting:
"7. I have added if no image name inserted then it will use the filename instead (can be turned on/off)"

Is there a MOD like this?  I searched everywhere on this forum for an answer to my first question here and also to see if there was a MOD like budduke's.



A note to the moderators: if this is outside the purview of this forum, please delete this topic.

Hi -

I like the default template and have made some modifications to the size and color through the templates and the css stylesheet.

Can anyone offer some suggestions as to how to add two different colored and different width vertical external borders (lines) to the template?

In other words, it would look graphically something like this:

outer left border 60px; one color -> inner left border 15 px; another color ->template -> inner right border 15 px; same another color -> outer right border 60px; same one color



This is an organizational question and not a technical question.

I am new to the gallery function. What is the best practice for a large community that is sharing photographs within categories? I have installed the user sub category mod but I can see this turning into a gazillion sub categories. A few subcategories is good, a lot might be overwhelming.   Our community is focused on rowing. Many of our members attend a given rowing regatta.

Here is a good example:

We have a main category: Regattas

We have several subcategories for individual regattas, and undoubtedly users will add more subcategories for other regattas that they attend, be it in Sydney, Australia or Munich, Germany. Let's take one subcategory we created to get the ball rolling:
Head of the Charles (HOCR)

Now, we, as an organization, attend this event every year and take a number of photographs. So it seems natural to create subcategories for each year under Head of the Charles such as:
HOCR2007, HOCR2008, HOCR2009, and so on

So far so good. Now we, as the organizer of our community, upload our photographs to HOCR2009.  Do we make a subcategory yet again for our photographs, as opposed to other members' photographs? The dilemma is that perahps 100 of our members attend the Head of the Charles, and many of them are taking photographs.  Should they all share their photographs in this one subcategory, say HOCR2009?

To review:
Regattas -> Head of the Charles (HOCR) -> HOCR2009 -> even more subcategories under here? 

I realize there is nothing we can do to prevent members from creating their own subcategories but those of you with experience in large galleries must have some feeling on how to make this work well.  I ask this because we are starting to add descriptions to the main categories to nudge our members towards a preferred sorting method.



Pages: [1]
Post your comments here