91
Mamba
Re: Smarty 3 and Smarty 4 coming soon to XOOPS
  • 2023/9/13 16:10

  • Mamba

  • Moderator

  • Posts: 11367

  • Since: 2004/4/23


This site is actually running already on 2.5.11 and Smarty 3

While we encourage to test the code from GitHub, don't use it yet on production sites.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



92
zivXP
Re: Smarty 3 and Smarty 4 coming soon to XOOPS
  • 2023/9/11 12:46

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

Mamba wrote:
There are still couple of minor issues, but it looks pretty solid. Yesterday I upgraded our test site that it's quite big, and it went pretty well.


That's cool!



93
Mamba
Re: Smarty 3 and Smarty 4 coming soon to XOOPS
  • 2023/9/11 12:04

  • Mamba

  • Moderator

  • Posts: 11367

  • Since: 2004/4/23


It's getting closer!

We're still testing and making improvements, as you can see from the commits on GitHub and Pull Requests

There are still couple of minor issues, but it looks pretty solid. Yesterday I upgraded our test site that it's quite big, and it went pretty well.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



94
zivXP
Re: Smarty 3 and Smarty 4 coming soon to XOOPS
  • 2023/9/10 18:38

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Any news on Xoops 2.5.11?



95
zivXP
Re: Restrict the "title" field
  • 2023/8/12 20:21

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

Mamba wrote:
Why? What's the reason?


This is done for a news aggregator (dzen.ru ). Their conditions have changed.



96
Mamba
Re: How to use XOOPS tree?
  • 2023/8/12 8:04

  • Mamba

  • Moderator

  • Posts: 11367

  • Since: 2004/4/23


Yes, when you use the getChildTreeArray function, you include it like this:

$tree->getChildTreeArray(0'title ASC');
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



97
Mamba
Re: Restrict the "title" field
  • 2023/8/12 7:48

  • Mamba

  • Moderator

  • Posts: 11367

  • Since: 2004/4/23


Why? What's the reason?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



98
zivXP
Re: Restrict the "title" field
  • 2023/8/11 12:22

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

goffy wrote:
hi

you can add a truncate in your template file
e.g. <{$title|truncate:80}>


Thanks!



99
zivXP
Re: Restrict the "title" field
  • 2023/8/11 12:15

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


I did what I needed to do. Maybe someone else will need it.
modules/news/include
edit files storyform.inc.php and storyform.original.php

$sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/submit.php');
$sform->setExtra('enctype="multipart/form-data"');
$sform->addElement(new XoopsFormText(_NW_TITLE, 'title', 50, 255, $title), true);

replace 255 with 80

This is done for a news aggregator, as conditions have changed there.



100
goffy
Re: Restrict the "title" field
  • 2023/8/10 16:21

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

you can add a truncate in your template file
e.g. <{$title|truncate:80}>




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 29422 »



Login

Who's Online

96 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 96


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