xoops forums

Forum Index


Board index » All Posts (goffy)




goffy

Quite a regular
Posted on: 2012/11/18 9:41
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#271

sort order tables

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


goffy

Quite a regular
Posted on: 2012/11/18 9:38
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#272

new feature

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);
}


goffy

Quite a regular
Posted on: 2012/4/4 7:09
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#273

Re: TDMDownloads 1.62 RC Ready for Testing on XOOPS 2.5.5 RC

yes, on transifex


goffy

Quite a regular
Posted on: 2012/4/4 6:57
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#274

Re: TDMDownloads 1.62 RC Ready for Testing on XOOPS 2.5.5 RC

german translation is done


goffy

Quite a regular
Posted on: 2012/3/23 13:57
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#275

Re: Development XoopsImageManager

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?


goffy

Quite a regular
Posted on: 2012/3/22 18:48
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#276

Development XoopsImageManager

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


goffy

Quite a regular
Posted on: 2012/3/9 22:31
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#277

Xoops Image Manager

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?


goffy

Quite a regular
Posted on: 2012/1/17 8:53
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#278

Re: TDMCreate v1.38 alpha 5

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)


goffy

Quite a regular
Posted on: 2012/1/6 17:49
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#279

Re: TDMCreate v1.38 alpha 5

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


goffy

Quite a regular
Posted on: 2012/1/3 8:47
goffy
goffy (Show more)
Quite a regular
Posts: 376
Since: 2010/12/27
#280

Re: TDMCreate v1.38 alpha 5

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 ... 25 26 27 (28) 29 »