371
goffy
Re: Development XoopsImageManager
  • 2012/3/23 13:57

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi Peekay


For creating folders I use:
if(!is_dir($path_uploads)) {
     
mkdir($path_uploads0777);
     
chmod($path_uploads0777);
     
copy(XOOPS_ROOT_PATH."/uploads/index.html"$path_uploads."index.html");
}

As I know, it should work

The permission to handle a category is managed per group (was already in the past).
The permission to handle an image is managed per user (thats new).
Explanation:
1) I create a category "mycat1"
2) I create a group "mygroup1"
3) I give mygroup1 full access right to mycat1

Possibility 1
I (as member of mygroup1) declare a picture as public in mycat1: each user, which is member of mygroup1, has full access (right to see in the list, to edit or to delete) to my picture

Possibility 2
I (as member of mygroup1) declare a picture as private in mycat1: all other users have no access to my picture (also no right to see in the list). Of course, if I use the picture e.g. in an article, everybody can see it.

Possibility 3
To say, I allow other users of mycat1 to see the picture in the list, but to give them no right to edit or delete, is not possible at the moment. If it is wished, that can be implemented

I hope, it is clear now

Any other commetns or suggestions?



372
goffy
Development XoopsImageManager
  • 2012/3/22 18:48

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi

I worked a little bit on XoopsImageManager and made following changes:
1) For each categorie you can define a seperate upload-directory (non-existing folders will be created)
2) user can define, whether an uploaded picture will be private or visible for all users with uploadpermission in this category
3) plugin XoopsImageManager for TinyMCE was adopted


Reasons:
- I want clear structure for saving images
- I want know, who loads up an image


Detailed infos about my solution you can find in changelog-file.


Two questions to xoops core team:
1) what do you think about implementing in xoops core?
2) I couldn't solve one problem in XoopsImageManager for TinyMCE: If I insert a picture via XoopsImageManager in the textbox, it will be placed always on the beginning of the text, not on the last position of the cursor. With XoopsCode it works, but I can't see the differences.

The files you can download from
http://naturfreunde-hochburg-ach.at/d ... ack_xoopsimagemanager.zip

Comments/Suggestions are welcome
Goffy



373
goffy
Xoops Image Manager
  • 2012/3/9 22:31

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi

I am trying to improve the xoops image manager (my results will follow later).

Now I have one question:
There is the option for display (column image_display in table image) for each image.

Can somebody tell me, whether this option is still in use and where?



374
goffy
Re: TDMCreate v1.38 alpha 5
  • 2012/1/17 8:53

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


hi timgno

strange, I downloaded the last version 5 minutes ago, installed and added the one line in tables.php, and it works fine

pay attention: you must save existing table definitions once more or add a new table

Option add fields ..._submitter, ..._date_created and ..._online:
in my option I would not make the option to create this fields or not. If you are checking data (in case of errors), it is really helpful to know, who did when what.

if you want to leave it, you must change my insert (check first, whether field is selected or not)



375
goffy
Re: TDMCreate v1.38 alpha 5
  • 2012/1/6 17:49

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi timgno

If you look into the data in field "tables_champs" you see, that there are missing the fielddefinitions for submitter, online and date_created

Add
$tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_submitter:int:10: :NOT NULL:0:|'.strtolower($_REQUEST['tables_name']).'_date_created:int:10: :NOT NULL:0:|'.strtolower($_REQUEST['tables_name']).'_online:tinyint:1: :NOT NULL:0:';
in admin/tables.php before line 134, then it works

greetings
goffy



376
goffy
Re: TDMCreate v1.38 alpha 5
  • 2012/1/3 8:47

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi timgno

TDMCreate 1.38 Alpha 5 (downloaded 03.01.2012 09:05 vienna time)
XOOPS 2.5.4
PHP Version 5.3.5

I tested once more and here are the results:

add a table:
if you select a image, it works, otherwise you get following errors:
Undefined index: tables_img in Datei /modules/TDMCreate/admin/tables.php Zeile 380
Data entry is not inserted - the object 'tdmcreate_tables' is not dirty in Datei /class/model/write.php Zeile 266

if you select "Create a new block for this table (blocks: random, latest, today)" = yes, it has no effect, it will be not saved


edit a table:
if you want to edit a table, then the input boxes of the last 3 fields are always empty, only the the inputboxes/option fields in sector "others" are correct

greetings
Goffy




377
goffy
Re: help for Test extgallery 1.0.9!!!!
  • 2011/1/23 11:43

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi voltan

my findings from last test:
1) slideshow configuration: splitting selection of slideshow and configuration of selected slideshow is fine, but after selection only the one slideshow configuration should be visible
2) same for album config
3) each gallery should have an unique id, otherwise it is not possible to use it more then one time (e.g. if I want a block with slideshow random photos and one with slideshow last photos)
4) as I know, css and js-files should be added with $xoTheme->addScript/$xoTheme->addStylesheet in php-files. With this method they will be included only one time, even if it was used two or more times. If the adding is in the html-template, it will be added as often a template is used and this may make problems.



378
goffy
Re: help for Test extgallery 1.0.9!!!!
  • 2010/12/29 19:10

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi all

First ideas from my side concerning admin area:
1) Tab Permission: Dropdown "Select permission" on top and result after a selection appears at the bottom, they should be keeped together
2) There is now a seperate tab for album configuration (that's good idea). Some settings must still be made under preferences (e.g.Number of Columns in each album), they should be tranfered to album configuration
3) In my opinion we should split admin/slideshow.php for easier handling (e.g. galleryview.php, galleria.php), especially if we include more slideshows. In menu.php we can make a switch and show only the register for the actual selected slideshow.

Goffy



379
goffy
Re: help for Test extgallery 1.0.9!!!!
  • 2010/12/27 14:03

  • goffy

  • Just can't stay away

  • Posts: 488

  • Since: 2010/12/27


Hi voltan1

Nice to hear, someone had the same idea. I'm working also on a "extGallery 1.0.9"

Short info about my version:
A) main slideshow:
- - - - - - - - -
for the main slideshow you can decide between:
- Colorbox (version 1.3.15), with lightbox-effect:
optional settings for: speed, duration, transition, autostart, style (10 different styles are included)

- Galleriffic (version 2.0):
optional settings for: speed, duration, transition, autostart, number of thumbs, show picture name and description, style (3 different styles are included)

- Galleria (version 1.2):
optional settings for: speed, duration, transition, autostart, show picture name and description, style (2 different styles are included)

- Spacegallery

- EasySlider (version 1.7.5):
optional settings for: speed, duration, transition, autostart, show picture name and description, style (2 different styles are included)

at the moment, I include prettyPhoto


B) block slideshows:
based on galleriffic-2.0

all works on jquery-1.4.4.js

2) additional new right 'create category'
-----------------------------------------
now you can define for each group, whether they can create categories themself
persons with this right get a new item in main menu
deleting a category can only groups with admin-rights in extgallery-modul



I think, we should share experience. If you want, send me an email-address and I can send you my version

Greetings from snowy Austria
Goffy




TopTop
« 1 ... 35 36 37 (38)



Login

Username:
Password:

Lost Password? Register now!

Who's Online

64 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits