1
liomj
Re: How do i check a xoops smarty plugin exist ?
  • Yesterday 13:30

  • liomj

  • Just popping in

  • Posts: 71

  • Since: 2012/4/10


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



2
Mamba
Re: How do i check a xoops smarty plugin exist ?
  • Yesterday 5:27

  • Mamba

  • Moderator

  • Posts: 11264

  • Since: 2004/4/23


I don't think that you actually have to test it, if this is on a website that you manage. Just make sure that the plugin is uploaded there, and you're done, and there will be no error.

If you want to make it available for people to download, then just add info in the README file that they have to upload the plugin, similar to how it was done in the TdmStats module. If people don't do it and then complain, you can point to the Readme file and the info there.

Am I missing something?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



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

  • liomj

  • Just popping in

  • Posts: 71

  • 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



4
Mamba
Re: How do i check a xoops smarty plugin exist ?

You could also check in the PHP if the plugin exists and then assign a value to it. Maybe something like this:
$xoStatsExists file_exists(XOOPS_ROOT_PATH'/class/smarty/xoops_plugins/function.xoStats.php');
$xoopsTpl->assign('xoStatsExists'$xoStatsExists );
And then in the template:
<{if $xoStatsExists }>
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5
Mamba
Re: Obituaries 2.4.1. Beta1 cant add new record

OK, I tested it on MariaDB, and the problem was that it was looking for default value for the obituaries_comments field.

I have updated now the code on GitHub, so it should work for a fresh installation.

If you want to use your existing installation, go to PhpMyAdmin and change the default for the obituaries_comments field to:
"as defined" and set it to 0:

Resized Image


I'll try to add it later to the Update routine for the module.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6
Mamba
Re: Obituaries 2.4.1. Beta1 cant add new record

I was testing here and it works fine.

I need more info about the errors. One thing that it might have impact is that I'm using MySQL, and you're using MariaDB.

Any chance you can send me a PM with access to your site, so I can see the errors there? This might help, because it has to be a reason why you can't add a record

Can you try a fresh install of the module? Maybe there is a conflict with your old installation?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



7
Yurdal
Re: Obituaries 2.4.1. Beta1 cant add new record
  • 10/3 14:55

  • Yurdal

  • Friend of XOOPS

  • Posts: 379

  • Since: 2005/3/27


Hi Mamba, error is gone but still cant add new record.
Thanks for helping me



8
Mamba
Re: Obituaries 2.4.1. Beta1 cant add new record

I've made some updates. The latest files are on my GitHub: https://github.com/mambax7/obituaries

Please check it out, and let me know if it works for you.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



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

  • liomj

  • Just popping in

  • Posts: 71

  • 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
goffy
Re: How do i check a xoops smarty plugin exist ?
  • 10/2 15:46

  • goffy

  • Just can't stay away

  • Posts: 505

  • Since: 2010/12/27


try

<{if xoStats|default:false}>




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



Login

Who's Online

35 user(s) are online (21 user(s) are browsing Support Forums)


Members: 0


Guests: 35


more...

Donat-O-Meter

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

Latest GitHub Commits