181
aerograf
Re: Problems with Soapbox
  • 2017/2/14 9:12

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


I Tried Soapbox 1,60
The problem was solved with the access rights to the change in admin / permissions.php on line 46:
Form2 = new XoopsGroupPermForm "", $ xoopsModule -> getVar 'mid'), "Column_permissions"_AM_SB_SELECT_COLS);

The same problem with autoteaser, yet disabled, and a problem with the date when creating or modifying



182
aerograf
Re: Problems with Soapbox
  • 2017/2/13 16:08

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Well, the same does not work rating



183
aerograf
Problems with Soapbox
  • 2017/2/13 14:54

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


The problem is as follows:
1. Do not set permissions in the module
2. It is not sent by the user article
Soapbox 1,61 Beta 1
PHP 7.0.11
MYSQL 5.7.13-6-log
XOOPS 2.5.8.1
ModuleAdmin 1.2



184
aerograf
Re: Russian Translation of Lexikon and the Tutorial
  • 2017/2/13 9:24

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Quote:

Mamba wrote:
Quote:
Send Update instructions ...

a) fork the document from GitHub
b) pull it to your local Git repository
c) make changes locally and push back to your GitHub repository
d) make a Pull Request


The changes on GitHub why it is not used ....



185
aerograf
Re: Problems with Lexicon
  • 2017/2/11 5:25

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


If you see a white screen, try to insert in the class/Utility.php file in getAlphaArray () function after a $ alpha = array (); code:
function unichr($a) {
    return 
mb_convert_encoding(pack("N",$a), mb_internal_encoding(), 'UCS-4BE');
    }

and replace the below uchr -> unichr



186
aerograf
Re: Problems with Lexicon
  • 2017/2/11 3:35

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Strings may be a little biased ...
still have to edit the file for localization:
blocks / entries_initial.php - line 93
Example:http://xoops.shmel.org/modules/lexikon/



187
aerograf
Re: Problems with Lexicon
  • 2017/2/11 1:50

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Test.
Because not been changed one file, I post the whole module:
https://www.shmel.org/files/singlefile.php?cid=3&lid=262
It changed not only the module files and templates.
Modal is set to Cyrillic
For national locations:
If you find our national symbolshttps://unicode-table.com/en/#control-character here it is for you
To set necessary change:
submit.php - line 141
admin / entry.php - line 387
admin / functions.php - line 445
class / Utility.php - line 376
Be warned: block does not work ....
Your comments ......



188
aerograf
Re: Problems with Lexicon
  • 2017/2/10 20:08

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Quote:

aerograf wrote:
Help to plc.
How to change the encoding?
The idea should be UTF8, but for some reason, displays in 1251 ...

public static function getAlphaArray() 
{   
    global 
$xoopsUser$xoopsDB$xoopsModule;
    
$gpermHandler xoops_getHandler('groupperm');
    
$groups       is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
        
/** @var XoopsModuleHandler $moduleHandler */
    
$moduleHandler xoops_getHandler('module');
    
$module        $moduleHandler->getByDirname('lexikon');
    
$module_id     $module->getVar('mid');
    
$allowed_cats  $gpermHandler->getItemIds('lexikon_view'$groups$module_id);
    
$catids        implode(','$allowed_cats);
    
$catperms      " AND categoryID IN ($catids) ";
    
$alpha         = array();
    for (
$a 65$a < (65 26); ++$a) {
        
$letterlinks             = array(); 
        
$initial                 chr($a);
        
$sql                     $xoopsDB->query('SELECT entryID FROM '
                                                       
$xoopsDB->prefix('lxentries')
                                                       . 
" WHERE init = '$initial' AND submit = '0' AND offline ='0' AND request = '0' "
                                                       
$catperms
                                                       
'');
        
$howmany                 $xoopsDB->getRowsNum($sql);
        
$letterlinks['total']    = $howmany;
        
$letterlinks['id']       = chr($a);
        
$letterlinks['linktext'] = chr($a);
        
$alpha['initial'][] = $letterlinks;
    } 
    for (
$a 192$a < (192 32); ++$a) { 
        
$letterlinks             = array();
        
$initial                 chr($a);
        
$sql                     $xoopsDB->query('SELECT entryID FROM '
                                                       
$xoopsDB->prefix('lxentries')
                                                       . 
" WHERE init = '$initial' AND submit = '0' AND offline ='0' AND request = '0' "
                                                       
$catperms
                                                       
'');
        
$howmany                 $xoopsDB->getRowsNum($sql);
        
$letterlinks['total']    = $howmany;
        
$letterlinks['id']       = chr($a);
        
$letterlinks['linktext'] = chr($a);
        
$alpha['initial'][] = $letterlinks;
    }   
    
    return 
$alpha;
}


Question withdrawn. Solution found ....



189
aerograf
Re: Russian Translation of Lexikon and the Tutorial
  • 2017/2/10 6:53

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Quote:

Mamba wrote:
as well as the Tutorial:

https://xoops.gitbooks.io/lexikon-tutorial/content/ru/


Send Update instructions ...



190
aerograf
Re: Problems with Lexicon
  • 2017/2/8 13:52

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Quote:
The file submit.php on line 328 garbage ....


Sorry, wrong ....




TopTop
« 1 ... 16 17 18 (19) 20 21 »



Login

Who's Online

242 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 242


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