21
irmtfan
Re: xoops256 bug (very important): template duplicate issue
  • 2013/9/15 13:30

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

TODO: provide Upgrade for existing installation, which will require to remove duplicate records, or empty the table and then update all installed modules.


It is already done. user need to update system module after upgrade to newer xoops version and duplicate templates will be removed from table.



22
irmtfan
Re: The best approach for a multi-language XOOPS
  • 2013/9/11 13:10

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


That's strange. I think we should investigate it in depth.

1- please provide your server configurations include php, mysql, ...

2- please show us your whole easiestml.php codes here.

3- do you have any error_log file inside root?



23
irmtfan
Re: The best approach for a multi-language XOOPS
  • 2013/9/2 4:12

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@mrphilong:

[mlimg] should work in any html content like blocks, themes and templates.
are you install original hack or trabis module?
I recommend trabis version:
http://www.xuups.com/easiestml.zip

I assume you dont have issue in displaying content so please show us your configuration in easiestml.php
there should be this line for mlimg.
// tag name for language image  (default [mlimg]. don't include specialchars)
define('EASIESTML_IMAGETAG','mlimg');



24
irmtfan
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/27 14:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@Mamba:
That solution is good.
But dont you think adding extra check for single quotes in template to solve an issue in just one local language (which is useless for all other languages) is not the duty of a module?
I mean when a module is working fine on default theme and english language it is a bug free module.
A local issue can be solved in local version of that module. (local template)

So after more thoughts I think adding the backslash to french definition is not too bad.
French people can add 2 definitions for this alt. one for onClick method with backslash and one for normal usage.


Quote:

Another little bug:
when I go to help section from another module (because newbb doesn't have help section), I get this error:

Notice: Undefined index: fct in file /modules/newbb/xoops_version.php line 767


good. it is a little bug i fixed.

@slider84:
I dont know why is_writable function returns false when the chmod is above 755.



25
irmtfan
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/24 0:30

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


@Cesag: You are right. I tried some ways like double quotes and backslashes (\' and ") It is a general issue. I mean in any xoops core template or modules you will have this problem in javascript functions. Also it seems it is not an issue in using single quotes inside the event. I changed the code with this:
<span class="pointer" onclick='ToggleBlockCategory("<{$topic_post.post_id}>",(this.firstElementChild || this.children[0]) , "<{$infobox.icon.expand}>", "<{$infobox.icon.collapse}>","<{$smarty.const._MD_NEWBB_HIDEUSERDATA}>","<{$smarty.const._MD_NEWBB_SEEUSERDATA}>")'>
It still works fine when you dont have ' in the definitions. Somebody could show us how we can use onClick event with single quotes inside definitions. @slider84: Newbb is using moduleadmin class. As you can see yourself those messages comes from moduleadmin class language files. I still cannot understand your issue. All xoops and modules is using the same chmod check and user should be the owner of directories.



26
irmtfan
Re: The best approach for a multi-language XOOPS
  • 2013/8/23 23:59

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:
Is there a way to create a custom block for [mling] in Control Panel Home?
You cannot create a custom block in admin side. To have a link in admin side you can add [mlimg] to admin themes. eg: In xoops256/modules/system/themes/default/xotpl/xo_head.html
<div id="xo-logo-head">
   <
div id="main-logo">
      <
class="tooltip" href="<{xoAppUrl admin.php}>" title="<{$smarty.const._OXYGEN_ADMINISTRATION}>"></a>
   </
div>
   <
div id="xo-headnav">
      <
class="tooltip" href="<{xoAppUrl}>" title="<{$smarty.const._YOURHOME}>"><img src="<{xoImgUrl img/home.png}>" alt="<{$smarty.const._YOURHOME}>"></a>
      <
class="tooltip" href="<{xoAppUrl user.php?op=logout}>" title="<{$smarty.const._LOGOUT}>"><img src="<{xoImgUrl img/logout.png}>" alt="<{$smarty.const._LOGOUT}>"></a>
      [
mlimg]
   </
div>
</
div>



27
irmtfan
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/23 4:07

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Very nice finding! I try a little but still dont know any good solution for this. possible bad solutions: 1- change the define with this:
define("_MD_NEWBB_SEEUSERDATA","Cacher les informations de l\'utilisateur");
but it will show the \ in the loading page. 2- remove alts ( in the previous versions there were no alts)
<span class="pointer" onclick="ToggleBlockCategory('<{$topic_post.post_id}>',(this.firstElementChild || this.children[0]) , '<{$infobox.icon.expand}>', '<{$infobox.icon.collapse}>','','')">
the main questions is: can we change simple quotes in the above code with something else?



28
irmtfan
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/22 3:45

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I cannot reproduce any of them too. (last forum post link in main page, Array in bottom of post, more.png)
Based on my experiences the main problem in upgrade comes from old template sets, old themes with custom strange style sheets.
Some designers manipulate xoops.css codes like .left class in their themes which is in used in the new newbb template set. (Any many other modules)
IMO a theme designer should not overwrite xoops.css codes in themes.
Anyway try to follow instructions.
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 (or rename it to newbb_old)
6- IF EXIST delete old newbb folder (templates) in htdocs/themes/default/modules/newbb AND htdocs/themes/YOUR_THEME/modules/newbb (or rename it to newbb_old)
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.

number 6 is important.
I think it is better to test any upgrade (for any module) on xoops default theme first to make sure everything is ok.

Quote:

is it possible to migrate from alfred to irmtfan newbb ?

I dont change newbb db structures. so it is quite easy.
To change alfred (lower than 4.4) to irmtfan you just need to follow upgrade instructions above.



29
irmtfan
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/15 3:00

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I never test newbb properly in admin side. thank you for your test.
two months ago i tried to rewrite newbb sync and orphan functions in admin side. I rewrote a part of it but then i ran out of time and decided to postpone it for the next major release.

I think it is better for xoops community to have a new forum module which could be cloned to any desire dirname based on this newbb. The new module could use only xoops API.
Now i dont have time for it.

Anyway it has an easy fix.

please test latest version in svn
http://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/newbb/branches/irmtfan/newbb/

You need to update module.



30
irmtfan
Re: Module header error
  • 2013/8/15 2:30

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


It seems your new theme has not $xoops_banner smarty to display banners.




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



Login

Who's Online

176 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits