Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Site Info
Webmasters
admin
admin

Who's Online
4 user(s) are online (2 user(s) are browsing XOOPS Docman)

Members: 0
Guests: 4

more...

2.9. Image Manager

The image manager is a tool that enables people to upload, organise and retrieve images for use throughout the site. You must configure the image manager before you can use it (via system->images). This involves creating some categories to store your images and setting preferences on issues such as maximum image dimensions, file size and user group access rights. Each category is configured separately.

2.9.1. Adding image categories

You must create at least one category before you can upload images. The configuration options are summarised below:

FieldDescription
Category name:Give your category an appropriate name. Keep it short, as people will select it through a drop-down box.
Select groups for image manager useSelect the user groups that you want to be able to access the images in this category. These groups will be able to see and select images (for use in submissions etc.) but cannot upload new images. The Webmaster group has access by default.
Select groups allowed to upload images:Select the user groups you want to permit to upload new images into this category. The default is upload by the Webmaster group only. Typically upload rights are given to trusted (administrative) groups only. Bear in mind that if you allow the general public to upload images they may send in some offensive ones.
Max size allowed (kb):It is useful to impose a limit on the file size uploaded images. This prevents people from posting ridiculously large images that are difficult to download. The default is 50,000 bytes (it is not KB as stated, that is an error).
Max width allowed (pixels):Set a maximum width on images to preserve the integrity of your layout. Consider what would happen if someone uses a 1024 pixel wide image on your 800 pixel wide site! If you have a ‘standard’ size you like to use for your site this is a good place to set it.
Max height allowed (pixels):As above.
Display order in image manager:You can set the order in which categories appear in the image manager drop down box here. If you want to have some flexibility in ordering the categories, assign them order numbers in (say) multiples of 10. That way you can always come back and insert a new category between them.
Display this category?The default is “yes”. If you choose “no”, the category will be hidden when people access the image manager from the user side. This can be useful for hiding administrative categories from your users.
Images are uploaded to: There are two options here (and you cannot change your mind afterwards). You can:
  • store images as files in the uploads directory (default), or

  • store images as binary “blob” data in the database.

The difference is that option two actually stores the image in the database, while option one does not (it stores a reference to the image location instead).

The advantage of option two is that when you back up your database you will back up your images as well. However, images take up a lot of space, so your database file will be much bigger. If your website is hosted remotely and you have to download the backup file it will take a lot longer.

Table 2.9. Adding Image Categories

2.9.2. Editing and deleting images and categories

Once you have created some categories they will appear at the top of the image manager page in the system module. Each category has links to three options alongside it:

  • List:” This will display a list of the images in the category, along with their details. You can edit the name, display order of images here. You also have the option to reassign images to a different category, to show or hide them, and to delete them.

  • Edit:” This opens the configuration options for the category so that you can change them.

  • Delete:” Select delete to remove a category. If you are storing images as binary blobs in the database this will delete them permanently. If you are storing images as files in the uploads directory, your images will still be in the that directory (though they won’t be available through image manager).

2.9.3. Adding image files through the control panel

You must create at least one category before you can upload images.

FieldDescription
Name:Give your category an appropriate name. Keep it short, as people will select it through a drop-down box.
Category:Choose the category that you want the image to be assigned to here.
Image file:Press the browse button and navigate to the image that you want to upload.
Display order in image manager:You can set the order in which images appear in the category here. If you want to have some flexibility in ordering the images, assign them order numbers in (say) multiples of 10. That way you can always come back and insert a new image between them.
Display this image?The default is “yes”. If you choose “no” the image will be hidden when people access this category from the user side.

Table 2.10. Adding image files

2.9.4. Accessing the image manager from the user side

The image manager can be accessed by the user in some modules such as news, downloads, links, forums and many others. This allows people to illustrate news stories and other resources that they submit. It is accessed by pressing the image manager button available in the submission forms of relevant modules:

The Image manager opens in a new window. Users can select image categories via a drop down box. The categories that users can see depend on the group to which they belong (and on the access rights that have been granted to that group).

When a category is selected a list of images is displayed along with three ‘alignment’ buttons (left, centre, right). Users choose an image to insert by selecting the appropriate alignment button next to it. This inserts the tags and URL needed to display the image into the submission form the user is working on. The window closes automatically.

If a user belongs to a group that has upload rights, an ‘Add Image File’ link is also available in the Image Manager window. This displays an upload form that allows users to name and browse to an image that they wish to submit. It also displays the constraints on image dimensions and file size that have been set for that category.

The comments are owned by the author. We aren't responsible for their content.

Author Thread
dalong
Published: 2006/11/16 8:00  Updated: 2006/11/16 8:00
Just popping in
Joined: 2006/11/16
From:
Comments: 2
 Re: xo-002 http://www.apachefriends.org/en/xampp.html
very good!
I like here!

Author Thread
dalong
Published: 2006/11/16 10:13  Updated: 2006/11/16 10:13
Just popping in
Joined: 2006/11/16
From:
Comments: 2
 Re: xo-002 http://www.apachefriends.org/en/xampp.html
thank for your work!

Author Thread
huqilong
Published: 2006/11/20 2:50  Updated: 2006/11/20 2:50
Just popping in
Joined: 2006/11/16
From:
Comments: 3
 Re: xo-002 http://www.apachefriends.org/en/xampp.html
I hava a question ,when I have installed phpeclipse,I can't user the button for the apache in the Eclipse IDE,how shoud I do?

Author Thread
huqilong
Published: 2006/11/20 3:10  Updated: 2006/11/20 3:10
Just popping in
Joined: 2006/11/16
From:
Comments: 3
 Re: xo-002 http://www.apachefriends.org/en/xampp.html
dddd

Author Thread
Mark_1900
Published: 2006/11/18 11:05  Updated: 2006/11/18 11:09
Just popping in
Joined: 2006/11/18
From:
Comments: 2
 Alias Permission Problems
For an Alias I also had to add a Directory tag to the httpd.conf, otherwise I had permission problems accessing the files... <br /> [code] Alias /wiki "C:/Documents and Settings/Me/wiki"<br /> <Directory "C:/Documents and Settings/Me/wiki"><br /> Options Indexes MultiViews<br /> AllowOverride None<br /> Order allow,deny<br /> Allow from all<br /> </Directory><br /> [/code]<br /> Oh and all these editing tags seem broken!!

Author Thread
Mark_1900
Published: 2006/11/18 11:21  Updated: 2006/11/18 11:32
Just popping in
Joined: 2006/11/18
From:
Comments: 2
 Getting the correct php_dbg.dll
I want a debugger. I downloaded the latest XAMPP 1.5.4a and noticed that it comes with PHP 5.1.6 & PHP 4.4.4, and neither are supported. The debugger module only supports a subset of these major versions from 5.1.0 to 5.1.2 and 4.4.0 to 4.4.2 (http://dd.cron.ru/dbg/downloads.php). I think right at the beginning you should specify which versions to download to get a debugger Version "XAMPP 1.5.2" would be fine.

Author Thread
huqilong
Published: 2006/11/30 6:28  Updated: 2006/11/30 6:28
Just popping in
Joined: 2006/11/16
From:
Comments: 3
 Re: xo-002 http://www.apachefriends.org/en/xampp-windows....
I want to know how to use phpeclipse with eclipse detailly!

Author Thread
thierrybo
Published: 2007/2/3 16:19  Updated: 2007/2/3 16:21
Just popping in
Joined: 2007/2/3
From:
Comments: 1
 Re: xo-002 ch02s03.html Workspace Method 2
I do not agree with the suggested method 2: Quote:
For example you have set up XAMPP and your “document root” path is the XAMPP default:
C:Program Filesapachefriendsxampphtdocs
Quote:
,then your appropriate workspace path should be one level less:
C:Program Filesapachefriendsxampp
If htdocs is your document root, then each folder inside IS a new project and you should set workspace directory as Document Root directory. With suggested method, all your web projects are managed with ONE big PHPeclipse project.

Author Thread
dafydd
Published: 2007/4/3 6:01  Updated: 2007/4/3 6:01
Just popping in
Joined: 2007/4/3
From:
Comments: 2
 Re: xo-002 ch01.html
Trying this out on a Mac. J2SE 1.5.0_07-164 installed. 1.5.0_06 is what's available on the download site. However, it would almost certainly be updated with Software Update.

Author Thread
dafydd
Published: 2007/4/6 1:00  Updated: 2007/4/6 1:00
Just popping in
Joined: 2007/4/3
From:
Comments: 2
 Re: xo-002 ch01s04.html
Second question: How do we point the XAMPP start/stop buttons in the Eclipse toobar to where we put XAMPP?

dafydd

Author Thread
dysmas
Published: 2007/8/4 14:18  Updated: 2007/8/4 14:18
Just popping in
Joined: 2007/8/4
From:
Comments: 1
 Debugging standalone PHP applications
Thanks hundred times for all the detailed explanations here !!

And especially for the note which explains why debugging a CLI application does not work in 1.1.8 version and only in 1.1.9. (wrong port, as I guessed, but I have been looking for this information for some hours before coming here). Unfortunately this 1.1.9 CVS version does not work in the last 3.2.0 Eclipse version I just got. Let us hope the stable version is going quickly.

Author Thread
Mercyful
Published: 2007/9/10 14:46  Updated: 2007/9/10 14:46
Just popping in
Joined: 2007/9/10
From:
Comments: 1
 Re: dbg is not working
I want using eclipse3.2 with php-plugin and for debugging i want using dbg.
I'm using xampp 1.6.3a with php 4.4.7. and php_dbg.dll-4.4.x
After step by step installation
http://docs.schuetzengau-freising.de/ ... =xo-002&file=ch01s05.html
the debugger dbg will not work.
When i called phpinfo() there is no section dbg shown.
Who have any ideas?
Thanks a lot!
Regards Mercyful

Author Thread
keryx
Published: 2007/9/26 22:59  Updated: 2007/9/26 22:59
Just popping in
Joined: 2007/9/26
From:
Comments: 1
 Re: xo-002 ch04.html
A section about verrors should be nice. I get the following:


<terminated, exit value: 0>PHP C:\Program\PHP\php.exe : <path>/<fil>.php

I've googled like crazy but to no avail. And yes - it does not stop at breakpoints and "variables" are empty. DBG is working:

if (function_exists ("DebugBreak")) {
DebugBreak ();
echo "debugging started!<br />\n";
}

Outputs "debugging started!" And DBG is reported on phpinfo().

Author Thread
koski
Published: 2007/10/19 3:55  Updated: 2007/10/19 3:55
Just popping in
Joined: 2007/10/19
From:
Comments: 1
 Re: xo-002 ch01s03.html
Hi,

Seems that the mentioned link for cvs:

http://phpeclipse.sourceforge.net/update/cvs

is out of date or wrong.

Author Thread
andybruk
Published: 2007/11/18 1:11  Updated: 2007/11/18 1:11
Just popping in
Joined: 2007/11/18
From:
Comments: 1
 Re: xo-002 index.html
I've been searching for a PHP debugger for ages. This is the only one I can find that works perfectly, thanks very much for providing this documentation.<br /><br />I doubt if I could ever get it to work on Windows, but it works so well with Ubuntu Linux and Eclipse 3.1.<br />
Powered by XOOPS 2.0 © 2001-2005 The XOOPS Project