1
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 1/16 4:56

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Thank you mamba and zyspec

i tried again this version in a new installation

mymenu version 1.54 Beta 2 (https://github.com/xoopsmodules25x/mymenus)

XOOPS Version XOOPS 2.5.11-Stable
PHP Version 7.4.33
MySQL Version 5.5.5-10.4.27-MariaDB

renamed class/Registry.php and Builder.php
Modules successful installed
- when try to access the mymenus administration
Error: SmartyCompilerException: Syntax error in template "file:/modules/mymenus/templates/static/mymenus_admin_menus.tpl" on line 45 "" in file /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php line 45



2
liomj
Re: Assign Smarty variable to PHP with XOOPS 2.5.11-Stable
  • 1/16 4:22

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


it does not work

actually this is for a customized block for tdmdownload modules

i solved it by editing the php file instead of the template file



3
liomj
Assign Smarty variable to PHP with XOOPS 2.5.11-Stable
  • 1/3 3:29

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


lasttime before the xoops upgrade to smarty 3 this is working
<{assign var="cid" value=$downloads.cid}>    
<{
php}>
$catid=$this->get_template_vars('cid'); 
<{/
php}>


now after using
XOOPS 2.5.11-Stable with smarty 3

i receive this error
Error ErrorUsing $this when not in object context


how to update this code ?



4
liomj
Mymenus Module with XOOPS 2.5.11-Stable
  • 1/2 2:46

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi anyone have a working mymenus module with XOOPS 2.5.11-Stable

i have a site using the following environment and is working fine

myMenus version 1.3
XOOPS Version XOOPS 2.5.11-Beta2
PHP Version 7.4.29
MySQL Version 5.5.5-10.4.24-MariaDB


now i would like to try XOOPS 2.5.11-Stable and i have tried using the following environment
----------------
mymenu version 1.54 Beta 2 (https://github.com/xoopsmodules25x/mymenus)
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 7.4.33
MySQL Version 5.5.5-10.4.27-MariaDB
Error : menu is not appearing
Only variables should be assigned by reference in file /modules/mymenus/blocks/mymenus_block.php line 28
Unknown: Non-static method MymenusRegistry::getInstance() should not be called statically in file /modules/mymenus/blocks/mymenus_block.php line 35
--------------------
Mymenu version: 1.54 Beta 5 (https://github.com/mambax7/mymenus)
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 8.2.12
MySQL Version 10.4.32-MariaDB
Error : SmartyException: Unable to load template 'db:mymenus_block.html



5
liomj
Re: I'm looking for a xoops developer to upgrade an old installation
  • 2022/10/14 7:08

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Im not a XOOPS developer, but i would like to try. I have sent you a private message



6
liomj
Re: myAlbum-P (3.07 RC 4) Install Error
  • 2022/10/11 8:06

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi

try the latest myalbum version from Github. I test in my local server and it install fine

Download
https://github.com/XoopsModules25x/myalbum/archive/refs/heads/master.zip

https://github.com/XoopsModules25x/myalbum/



7
liomj
Re: How do i check a xoops smarty plugin exist ?
  • 2022/10/6 13:30

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Yes thank you adding info in a readme file will be sufficient



8
liomj
Re: How do i check a xoops smarty plugin exist ?
  • 2022/10/4 9:58

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


thank you Mamba. i think that should work but im not sure which php file should i put it if the <{xoStats}> is in the themes template



9
liomj
Re: How do i check a xoops smarty plugin exist ?
  • 2022/10/2 22:32

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


<{if xoStats|default:false}>
Quote:
Error: Smarty error: [in sbadmin/tpl/content.tpl line 2]: syntax error: unidentified token ':false' (Smarty_Compiler.class.php, line 1410) in file /class/smarty/Smarty.class.php line 1099


<{if xoStats}>
Quote:
Error: Smarty error: [in sbadmin/tpl/content.tpl line 3]: syntax error: unrecognized tag 'xoStats' (Smarty_Compiler.class.php, line 585) in file /class/smarty/Smarty.class.php line 1099



10
liomj
How do i check a xoops smarty plugin exist ?
  • 2022/10/2 13:23

  • liomj

  • Just popping in

  • Posts: 77

  • Since: 2012/4/10


Hi

How do i check the xoops smarty plugin exist or not before display ?

Quote:
<{if xoStats}}>

<{xoStats}>
Latest Member : <a href="<{$xoops_url}>/userinfo.php?uid=<{$latestUid}>"><{$latestMemberUname}></a><br>
Total Posts : <{$totalPosts}><br>
Total Users : <{$totalUsers}><br>
Total Online : <{$totalOnline}><br>
New Users Today : <{$newUsersToday}><br>
New Users Yesterday : <{$newUsersYesterday}><br>
<{/if}>

i tried like the above but i received smarty error when the plugin does not exist




TopTop
(1) 2 3 4 ... 7 »



Login

Who's Online

193 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 193


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