Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 06:32 am EST
Geeklog Forums
Uploading photos for static pages
Status: offline
jlhughes
Forum User
Full Member
Registered: 04/25/02
Posts: 154
Has anyone worked out a hack for static pages that allows for photos to be uploaded? Essentially, I want static page creation to have the sort of image upload functionality found in story creation.
I need to allow a few select users to create static pages and they will need to be able to add images to the content.
John Hughes
5
8
Quote
This is perfect option for me, since the people I\'m dealing with all use Windows.
However, for the non-Windows world it would be a valuable addition if someone incorporated Geeklog\'s image management facility into the static pages editor.
5
7
Quote
Status: offline
samstone
Forum User
Full Member
Registered: 09/29/02
Posts: 820
That\'s right. No only for none-windows user but also for non-IE user, since HTMLArea wouldn\'t work on browsers other than IE. But, a new version of HTMLArea is coming out that is compatible with Mozilla (all OS).
Sam
8
7
Quote
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
Quote by jlhughes: Has anyone worked out a hack for static pages that allows for photos to be uploaded? Essentially, I want static page creation to have the sort of image upload functionality found in story creation.
umm... why not just use the File Uploader? It was coded by the same person who made Story Importer. Are they not in the Downloads section? (I haven\'t checked.) Probably at Squatty.com or at gplugs.sourceforge.net
Both of them are included with the Admin Toolbox as well, which can be edited ( I think in lib-custom.php?) to only show those two items and none of the other admin tools. And then you could give permissions for a group of your users to that block.... Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
5
9
Quote
Status: offline
emagin
Forum User
Regular Poster
Registered: 08/05/03
Posts: 92
HTML area will only allow you to LINK to an image, which still poses the question how an average user uploads an image instantly (no approval) to include in static page.
Is it possible to use the Story Editor for admins and use the BROWSE... to images interface?
That seems like the most consisten way to do it.
Is it possible to use the Story Editor for admins and use the BROWSE... to images interface?
That seems like the most consisten way to do it.
7
7
Quote
Status: offline
jlhughes
Forum User
Full Member
Registered: 04/25/02
Posts: 154
There is a package of HTMLarea (both 2.03 and 3.0 beta) with an image manager and image editor incorporated. You can get a copy at
http://www.zhuo.org/htmlarea/
Two things to keep in mind:
1. You need to add security to the image manager and editor or anyone who finds it installed will be able to upload, delete and edit photos. This is an example of the code that needs to be added at the top of all *.php pages in directory htmlarea/popups/ImageManager and /ImageEditor
if (!SEC_hasRights('story.edit')) {
$display .= COM_siteHeader ('menu');
$display .= COM_startBlock ($MESSAGE[30], '',
COM_getBlockTemplate ('_msg_block', 'header'));
$display .= $MESSAGE[31];
$display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
$display .= COM_siteFooter ();
COM_errorLog("User {$_USER['username']} tried to illegally access the story administration screen",1);
echo $display;
exit;
}
2. The older version of HTMLarea works more consistently than the beta. My site users found that the beta editor SOMETIMES would not load and instead of a plain textarea box you got just the editor buttons and no window. Page refreshing would help SOMETIMES. Deleting the cache, closing the browser window and revisiting the page would work SOMETIMES. And SOMETIMES nothing you did would get the editor to display.
http://www.zhuo.org/htmlarea/
Two things to keep in mind:
1. You need to add security to the image manager and editor or anyone who finds it installed will be able to upload, delete and edit photos. This is an example of the code that needs to be added at the top of all *.php pages in directory htmlarea/popups/ImageManager and /ImageEditor
Text Formatted Code
if (!SEC_hasRights('story.edit')) {
$display .= COM_siteHeader ('menu');
$display .= COM_startBlock ($MESSAGE[30], '',
COM_getBlockTemplate ('_msg_block', 'header'));
$display .= $MESSAGE[31];
$display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
$display .= COM_siteFooter ();
COM_errorLog("User {$_USER['username']} tried to illegally access the story administration screen",1);
echo $display;
exit;
}
2. The older version of HTMLarea works more consistently than the beta. My site users found that the beta editor SOMETIMES would not load and instead of a plain textarea box you got just the editor buttons and no window. Page refreshing would help SOMETIMES. Deleting the cache, closing the browser window and revisiting the page would work SOMETIMES. And SOMETIMES nothing you did would get the editor to display.
6
6
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
So, since I don't want to make my members mad with refreshing the pages everytime with HTMLarea 3, can I use HTMLarea2 with the Image Manager and other plugins?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
8
5
Quote
Status: offline
samstone
Forum User
Full Member
Registered: 09/29/02
Posts: 820
Hi BeeWee,
I have used HTMLArea in all of my sites, and the stability is acceptable, even though not perfect. The need to refresh the page is not the case on Mozilla.
There are also some fixes on the HTMLArea forum, that I am about to try. Basically HTMLArea works 90% of the time. I hope I will gain that 10% after the fix.
2.0 is a generation behind. I've fogotten what was missing on it after I fell in love with 3.0.
---------edited---------
I used this fix here and so far it looks very good.
I have used HTMLArea in all of my sites, and the stability is acceptable, even though not perfect. The need to refresh the page is not the case on Mozilla.
There are also some fixes on the HTMLArea forum, that I am about to try. Basically HTMLArea works 90% of the time. I hope I will gain that 10% after the fix.
2.0 is a generation behind. I've fogotten what was missing on it after I fell in love with 3.0.
---------edited---------
I used this fix here and so far it looks very good.
4
7
Quote
All times are EST. The time is now 06:32 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content