411
goffy
sort order tables
  • 2012/11/18 9:41

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


the tabs/menu in module admin will be generated in order of table_id. it would be nice if there would be a possibility to sort them (e.g. with an additional field in tdmcreate_tables).



412
goffy
new feature
  • 2012/11/18 9:38

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi

you use the dir '\Frameworks\moduleclasses\icons\32\' in module admin.
it would be fine, if your own icons are copied to this dir while installing/updating

I added following code to my install.php:
$pic_path XOOPS_ROOT_PATH.'/modules/myModule/images/32/';
 if(
is_dir($pic_path)) {
  
$pic_dir = @opendir($pic_path) or die("invalid path $pic_path");
  
$exempted "index.html";
  while (
$filename readdir($pic_dir))
  {
    if((
$filename!=".") and ($filename!="..") and ($filename!=$exempted )) {
      
copy($pic_path.$filenameXOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32/'.$filename);
    }
  }
  
closedir($pic_dir);
}



413
goffy
Re: TDMDownloads 1.62 RC Ready for Testing on XOOPS 2.5.5 RC
  • 2012/4/4 7:09

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


yes, on transifex



414
goffy
Re: TDMDownloads 1.62 RC Ready for Testing on XOOPS 2.5.5 RC
  • 2012/4/4 6:57

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


german translation is done



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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?



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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/downloads/hack_xoopsimagemanager.zip

Comments/Suggestions are welcome
Goffy



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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?



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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)



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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



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

  • goffy

  • Just can't stay away

  • Posts: 535

  • 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





TopTop
« 1 ... 39 40 41 (42) 43 »



Login

Who's Online

255 user(s) are online (181 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

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

Latest GitHub Commits