41
irmtfan
Re: new install errors
  • 2013/6/14 2:21

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


userlog minimum requirement is php 5.3

but this issue is not related to php version:
Warningmkdir() [function.mkdir]: Permission denied in file /class/file/folder.php line 529

you should create the folder yourself.
go to admin > modules> userlog > home you will see this:
Quote:

Could not create any folder inside 'DIR' because its chmod is under 755.
If you need to store logs in file, you should create folder 'DIR/userlog' and set chmod = 755 manually using Cpanel.




42
irmtfan
Re: SourceForge offers now Snapshot downloads from SVN!
  • 2013/6/14 2:13

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


excellent.
The best news i heard today

Now we are free from providing a download link after each commit



43
irmtfan
Re: posting error with Newbb
  • 2013/6/14 2:10

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I still dont understand. You have this issue in a fresh install or an upgrade in your localhost?
If it is a fresh install we should find the issue in newbb.

But if it is an upgrade, first we should find if the upgrade done correctly from newbb version X to version 4.33

for example the following upgrade method is wrong and will not work. (at least in irmtfan modules)

Step 1- install the latest version (eg: 4.33)
Step 2- import the old database (eg: 3.08) and try to upgrade it by clicking on update button.

Only this upgrade will work:
Quote:

To Upgrade from older newbb versions 1.x 2.x 3.0.x
==========================
1- close your website. (highly recommended) be sure you be logged in.
2- get a backup from your old newbb database.(all XOOPSPREFIX_bb_* tables)
3- get a backup from your old newbb/images directory to save your custom old images. Also get a backup from any changes you done in files.
4- IF EXIST get a backup from your old newbb/include/plugin.php
5- delete your old newbb folder located in modules
6- IF EXIST delete old newbb folder (templates) in htdocs/themes/default/modules/newbb AND htdocs/themes/YOUR_THEME/modules/newbb
7- upload the newbb to htdocs/modules/newbb (upload the compressed file and decompressed via Cpanel is the best way to insure all files are correctly uploaded)
8- go to your admin -> system -> modules -> newbb -> upgrade (important: wait until you see the report page)
9- go to system -> maintenance -> clear all caches
10- change the default settings to your desired in the module preferences and newbb/include/plugin.php and IF EXIST based on your old back-upped plugin.php. Set the permissions in newbb -> admin -> permission for all groups one by one. pay attention that webmasters group has all accesses regardless of permissions. using a non webmaster test account is recommended to test the permissions for each group.
11 - dont forget to open your website again.


Also please let us know all debug messages in the page include all queries.



44
irmtfan
Re: Cannot post to forums
  • 2013/6/14 1:53

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


You have a 500 error in submitting the post and in modules/newbb/viewtopic.php so Im sure it is not related to newbb. Im sure you have an issue in your configurations.
Newbb will work on php 5.2 but you will miss some few features.
If i were you i would do these:
- go to Cpanel and in modules/newbb and see if there is any error_log file there.
- provide us a full php info.
- try to see the topic by post_id instead of topic_id eg here:
this:
https://xoops.org/modules/newbb/viewtopic.php?post_id=354122#forumpost354122
instead of this:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=76153

- go to the _bb_posts table and find if posts exist there.

Usually 500 errors are very hard to debug but we will try to help you.



45
irmtfan
Re: Upgrading issue from v2.5.5 to v2.5.6
  • 2013/6/7 2:22

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


huum
Mamba, why you didnt download the french 2.5.5 and 2.5.6 and tried to replicate it yourself. This way you did not need to wait for tatane and others and you could save your time !



46
irmtfan
Re: Bug recurring
  • 2013/6/7 2:10

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


IMO it is not a bug but an inappropriate usage of core functions in a module.
while you received php errors and warning you should solve it yourself.
Core cannot check everything otherwise codes will be huge.
IMO a program should just have facilities to show errors and warnings in every bad usage.
eg: i will receive errors when i use this code:
if(empty($myClass->myMethod()))


Fatal error: Can't use method return value in write context in ...

So i have to change my codes and i cannot send bug to php.net


@zyspec:
Your improve is nice. IMO We should have it in the 2.5.7

But still i think it is just an improvement.
we cannot call it a bug and a fix is not needed



47
irmtfan
Re: Updating Cloned Publisher
  • 2013/6/7 1:54

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I think you can change the prefix to recipe like this:
1- go to phpmyadmin
2- rename all _publisher_ in tables to _recipe_

In the new clone system it can be done very easy.
I will definitely start with publisher.
Then one can rename the module directory at any time with ease.

eg: You will be able to rename the module directory and all tables will be renamed too.

Also i think it is better to just install "publisher" directory in local when you dont need it in running website.



48
irmtfan
Re: Problem with newbb 2 4.03
  • 2013/6/7 1:52

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I deleted old versions.
You can download this:
http://www.jadoogaran.org/test255/modules/newbb431_rev10109_irmtfan_2013_04_23.zip

but it is old too.
the latest version is in svn:
http://svn.code.sf.net/p/xoops/svn/XoopsModules/newbb/branches/irmtfan/newbb/

PS: you are very active in forums. I can not catch you with my pace



49
irmtfan
Re: Like system (module/extension) for xoops
  • 2013/5/30 6:47

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@Mamba:
Because you are very good in finding best practices, could you show us best examples of ratings?
eg:
- X star (X number) rating
- Thank you buttons
- Vote up and down system

The most important thing is they should be implemented in many elements in one web page



50
irmtfan
Re: TDMCreate v1.39 Beta 1 for Testing
  • 2013/5/30 2:43

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Good.
I test your version and you used $dirname in some places but still there are many places you can use this. It is a step forward.

i found these:
for example if my module dirname is: rating
in table names:
$modversion['tables'][1] = "mod_rating_value";


in templates:
$modversion['templates'][] = array('file' => 'rating_header.html''description' => '');


in config you must eliminate the dirname. it is not needed
$modversion['config'][] = array(
    
'name' => "rating_editor",


in one sentence: There should not be any dirname in xoops_version.php file

also: There should not be any dirname in any possible places.

impossible places are: class and function names.

current functions which we have to use dirname is:
- block functions: edit and show func
- search function
- install, uninstall, ...

there is some minor issues and requests.
1- in table create:
TDMCreate/admin/tables.php?op=create_table
if user dont select any Table Icon it will not be stored. you have to select one default for this or eliminate it.

Also as i said in the last post, It is good to add some stuff from xoops 2.6 to xoops 2.56 module creator

2- could you please change this method:
$modversion[] = array(
    
'name' => _MI_RATING_NAME,
    
'version' => 1.0,
    
'description' => _MI_RATING_DESC,
    
'author' => "XOOPS Development T


with this:
$modversion = array();
$modversion["name"] =  _MI_RATING_NAME;


It is more readable and can be changed line by line.

It is more important in some other arrays like config:
instead of this:
$modversion['config'][] = array(
    
'name' => "keywords",


use this:
$i++;
$modversion['config'][$i][ 'name'] = "keywords";

Requests: xoops 2.6 comes with some facilities but we can have some of them in xoops 2.5.6 modules very very easy
1- class request:
then you will be from codes like this:
$com_itemid = isset($_REQUEST["com_itemid"]) ? intval($_REQUEST["com_itemid"]) : 0;


It can be done very easy. see the "how to write standard module tutorial"

2- class helper:
then you will be free from any config, dirname, handler, ...
instead of this:
$categoriesHandler xoops_getModuleHandler'rating_categories''rating' );
        
$criteria = new CriteriaCompo();
        
$categories $categoriesHandler->getObjects$criteria );


you have this:
$Rating Rating::getInstance();
        
$criteria = new CriteriaCompo();
        
$categories $Rating->getHandler("categories")->getAll$criteria );

It can be done very easy. see the "how to write standard module tutorial"

Quote:

If you have time you can take action with ideas to improve it then assemble the code once the code includes all the necessary functionality.


I wrote the standard and you can implement it very easy in your modules.
but it will take many times for me to learn how your module creator works. so it is good for everybody to do the part which he best on it

Anyway I really dont have time for any other module. even i leave userlog development because I think there is more important functionality developers should work on which are vitally important for xoops.
eg: we dont have any efficient rating system like this in xoops:
http://coursesweb.net/php-mysql/voting-up-down-script-ajax_s2

It is too bad for xoops. we have plenty of useless modules in xoops 2.5.6 but dont have some vital needs.
so In my very tight idea all developers should leave all works and just try to add an efficient rating system with all possibilities. 5 star rating, thank you system , vote up and down, ...
This is what we need in modern world.
That rating system is very hard for me. but anyway we should have it in the soonest possible time to be survive in the modern world.





TopTop
« 1 2 3 4 (5) 6 7 8 ... 284 »



Login

Who's Online

148 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

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

Latest GitHub Commits