71
irmtfan
Re: Xoopspoll v1.40 Beta 1 - Ready for testing
  • 2013/5/21 1:40

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@zyspec:
yes i knew that trouble.
I cannot see any need or any mean (do you see any?) to have more than one xoopspoll integrated with newbb so IMO adding a new field to "bb_topics" for this purpose is just making more unneeded queries. The only need is let user to select the preferred xoopspoll module at the first step. once he select the xoopspoll module and create the first poll that selection should be hidden.

besides in "irmtfan" branch of newbb i didnt implement any big feature until now. (eg: no field in tables) So the main question is am i allowed to make this branch more and more different with Alfred version.

Also in general im against using mid field as a solution in modules.
IMO dirname is better than mid because mid is not consistent in all installations. for example if somebody uninstall the xoopspoll module and install it again or wants to move tables from a site to another site the mid of xoopspoll is different and make it very hard or impossible to find issues.
I know using the int field (mid) is faster than varchar (dirname) but i still think dirname is better.



72
irmtfan
Re: XOOPS 2.5.6 Final Release Issues: special characters in pda.php
  • 2013/5/20 11:01

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


try this:
$charset _CHARSET;
and
<meta charset='{$charset}' />
_CHARSET is defined in language/LANG/global.php



73
irmtfan
Re: Xoopspoll v1.40 Beta 1 - Ready for testing
  • 2013/5/20 10:55

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Today i update newbb to support new xoopspoll and all old xoopspoll and umfrage versions and all new and old clones.
because i have 2 xoopspoll in my website and now one can select them in newbb > preferences.
Q: is this good to make it selectable? or just make it selectable for one time?
please test this new version:
http://svn.code.sf.net/p/xoops/svn/XoopsModules/newbb/branches/irmtfan/newbb/

Thru my tests I found this issue in xoopspoll/class/poll.pph around line 285 function renderForm.
to solve it I add a $extra:
if (!$this->hasExpired()) {
            
$endTimeText = new XoopspollFormDateTimePicker("<div class='bold middle'>" _AM_XOOPSPOLL_EXPIRATION "</div>"
                           
'xu_end_time'
                            
20
                            
$xuEndTimestamp);
        } else {
            
// START irmtfan add topic_id
            
$extra "";
            foreach(
$addHidden as $key=>$value) {
                
$extra="&amp;{$key}=" $value;
            }        
            
$xuEndFormattedTime ucfirst(date(_MEDIUMDATESTRING$xuEndTimestamp));
            
$endTimeText = new XoopsFormLabel("<div class='bold middle'>" _AM_XOOPSPOLL_EXPIRATION,
                             
sprintf(_AM_XOOPSPOLL_EXPIREDAT$xuEndFormattedTime)
                           . 
"<br /><a href='{$rtnPage}?op=restart&amp;poll_id="
                           
$this->getVar('poll_id') . $extra "'>" _AM_XOOPSPOLL_RESTART "</a></div>");
            
// END irmtfan add topic_id
        
}


Q: how can we add hejira date? now it used jquery-ui-timepicker-addon.js and i think it is possible to add hejira system.
I will work on it.



74
irmtfan
xoops 2.6 bug: Cannot add another Locale
  • 2013/5/19 2:20

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I wonder how no developer noticed this bug until now.
No Locale can be added in addition to en_US.
for example i build this locale: Locale fr-FR (French)
I change locale in admin> system> general setting and then I received this error:
Fatal error: Cannot redeclare class XoopsLocale in \xoops26\htdocs\locale\fr_FR\locale.php on line 24
your thoughts?




75
irmtfan
Re: static page module for xoops 2.5.6
  • 2013/5/19 2:15

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


The best and most updated module is publisher that can be used for static pages too.
svn.code.sf.net/p/xoops/svn/XoopsModules/publisher/trunk/publisher/


Your other option is pico that recently is updated to 2.5.6 API:
http://svn.code.sf.net/p/xoops/svn/XoopsModules/pico/





76
irmtfan
Re: XOOPS 2.5.6 Final Release Issues
  • 2013/5/18 6:39

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@culex:
I did what you described and clear caches but the issue still remained.
Is there anything else i could do? I dont know JQuery.



77
irmtfan
Re: Xoopspoll v1.40 Beta 1 - Ready for testing
  • 2013/5/18 6:31

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Very nice job! Thank you zyspec.
Xoopspoll is developed and progressed in the right direction.
Unfortunately I had not time recently to test xoopspoll and especially its integration with newbb but it is in the top of my list.



78
irmtfan
Re: The need to keep XOOPS module development in one location
  • 2013/5/15 1:53

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

A long time ago there used to be a module development section of Xoops, I had all my development going on in there and one day it got hacked.

As others mentioned, that was dev.xoops.org a subdomain of xoops.org
but sf.net is totally secure and reliable more than any personal server or hosting.
Quote:

you can't beat clicking on a link and getting the download,

I agree. that is a big disadvantage. but it is better than having outside repositories and personal SVN.
sf.net should add this feature soon.
meanwhile you can use the Git.
The main goal is finding a way to not lose any single work from any developer.



79
irmtfan
Re: Error in templates
  • 2013/5/14 2:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

is that I choose the encoding and xoops templates do not have this option.

Yes,
Never used Xoops template editor. It is not reliable. Im sure it cannot change encoding. It is always Ansi and just good for very basic changes.
you save your changes and then return to that page again and see your changes are corrupted.
As i said before, if you have access to FTP you can do it yourself.



80
irmtfan
Re: The need to keep XOOPS module development in one location
  • 2013/5/13 2:32

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@zyspec:
Sorry you misunderstood me. my bad english

I meant instead of working on modules in local, it is better to have all developers codes in SVN even their pre-alpha and not working versions.

Also you well mentioned the right place in SVN:
Branch: for any code from anybody regarding a module
trunk: most recent version of the module by merging all branches
release: only final codes after review

Our times are limited so IMO it is better to share any code with others.





TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 284 »



Login

Who's Online

215 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 215


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