xoops forums

Forum Index


Board index » All Posts (goffy)




goffy

Quite a regular
Posted on: 2012/11/29 15:05
goffy
goffy (Show more)
Quite a regular
Posts: 358
Since: 2010/12/27
#251

Re: TDMCreate 1.38.1 Beta 1 ready for testing & feedback

Hi

In module creation you have an option for active comments yes/no, but there is no var to handle 'modules_active_comments' in class/tdmcreatemodules.php and no field in table tdmcreate_modules to save the settings.


goffy

Quite a regular
Posted on: 2012/11/28 21:27
goffy
goffy (Show more)
Quite a regular
Posts: 358
Since: 2010/12/27
#252

Re: TDMCreate 1.38.1 Beta 1 ready for testing & feedback

Hi

it doesn't matter whether you say to
"Create a new block for this table (blocks: random, latest, today)" yes or no
it will be always created
blocks/blocks_{mytablename}.php
templates/blocks/xnewsletter_{mytablename}_block_day.html
...


Keep on working, the module is great
Goffy


goffy

Quite a regular
Posted on: 2012/11/18 9:50
goffy
goffy (Show more)
Quite a regular
Posts: 358
Since: 2010/12/27
#253

add update.php

you have often the need of an update, if you work on a new module

please add
$modversion['onUpdate'] = 'include/onupdate.php';
in xoops_version.php and create an empty onupdate.php


goffy

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

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: 358
Since: 2010/12/27
#255

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: 358
Since: 2010/12/27
#256

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: 358
Since: 2010/12/27
#257

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: 358
Since: 2010/12/27
#258

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: 358
Since: 2010/12/27
#259

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: 358
Since: 2010/12/27
#260

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?



TopTop
« 1 ... 23 24 25 (26) 27 »