11
Mamba
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/24 19:28

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


When I look at the xBootstrap code, I see that that the Publisher templates are still using the .html extensions.

The Publisher 1.02 is updated specifically for XOOPS 2.5.7, i.e. it is using the .tpl extensions for templates. It is part of our migration to the XOOPS 2.6.0 architecture and to keeps things consistent.

The bottom line for us: Modules will be released specifically for XOOPS 2.5.7 and will require as minimum XOOPS 2.5.7 to work correctly.

xBootstrap is also designed specifically for XOOPS 2.5.7, therefore if you want to take advantage of it, you should be using the modules certified for XOOPS 2.5.7, and more of them will be released in the upcoming days/weeks.

Unfortunately, it seems like there are still some glitches, but we'll fix them in the next few weeks, so please be patient with us.

It's all part of the plan to provide a smooth migration to XOOPS 2.6.0
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

12
kakos
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/26 9:47

  • kakos

  • Friend of XOOPS

  • Posts: 77

  • Since: 2002/6/6 2


Hi Mamba and thanx for your answer...

Quote:
we definitely don't want anything being hard-coded, so if you see anything, please let us know.


Blekk has done a great job on it and certainly he can remove those have left.
As a quick example if you want to change the icons - edit, del, pdf print etc you must modify php files (item.php category.php latest_news.php). After completion of corrections by designers I will do a more detailed check because many of them possibly have been corrected.

Quote:
There were already few discussions about it - we don't recommend to use the slashes in European dates like this: "d/m/Y". PHP thinks that when there are slashes, it is a US/UK format, and reads the first number as month, and not as day. Please use "d-m-Y", as recommended by Trabis 3 years ago


Thanks for this .... in file global.php date needs to be translated in two cases

1st:
// %%%%%        TIME FORMAT SETTINGS   %%%%%
......
define('_DATESTRING','Y/n/j G:i:s');
define('_MEDIUMDATESTRING','Y/n/j G:i');
//define('_SHORTDATESTRING','n/j/Y');
define('_SHORTDATESTRING','m/d/Y');


2nd:
/**
 * Additions to 2.5.5
**/
define('_DBDATESTRING','Y-m-d');
define('_DBTIMESTRING','H:i:s');
define('_DBTIMESTAMPSTRING','Y-m-d H:i:s');


If there are problems only in European dates format with '/' a comment about it in global.php would help translators follows the right way. When I changed (in first case TIME FORMAT SETTINGS) the '/' with '-' in file global.php the date works normally.

Quote:
Normally all local changes should be done in your local language files, for example in: \language\YOURLANGUAGE\calendar.php
if you look at Publisher's file:
\modules\publisher\archive.php
the Publisher pulls the month names from the "calendar.php" file by building the array: $months_arr


The months in publisher archive appears normally. The calendar.php is translated into my language (Greek). The point still shows months in English is in the article below the title (in smarty tag <{$ item.when}>) with 3 characters like Jan,Oct etc.

Resized Image


Costas

13
SMEDrieben
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/27 18:48

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks for this version ! The tabs are back again in my system.

I have a strange experience with the templates. The look and feel of this module is quite different than before the upgrade. I tried to find out why, it looks severly mixed up.

I have templates in mytheme/modules/publisher folder. If I change something in these templates or in the .tpl that come with this version, nothing happens.

I changed the extension from .html to .tpl and emptied all caches. No change. General preferences: Check templates changes: is on yes.

Why don't changes in the templates in mytheme/modules/publisher or mydomain/modules/publisher/templates induce changes in how the data are presented ?

Thanks !

SMEDrieben

14
Mamba
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/27 19:41

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
I changed the extension from .html to .tpl and emptied all caches. No change. General preferences: Check templates changes: is on yes.

But did you update the Publisher module afterwards, as well as the System module?

Check in your database if you have actually .tpl templates inserted into the "_tplfile" table and associated with the Publisher module.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

15
SMEDrieben
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/28 12:37

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I've updated the Publisher and System modules several times, in different orders.

In the _tpl table, there are quite a lot of.tpl records attributed to the Publisher module. There are also 10 .html Publisher templates.

Should I remove the .html Publisher templates manually form the _tpl table ?

SMEDrieben

16
SMEDrieben
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/28 12:57

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


A few important steps further:

Those who want to recycle their personalized templates in the mytheme/modules/publisher folder must do 2 things:

- change the extension .html to .tpl in the names of the template files
- change the .html to .tpl in the templates themselves, e.g.

<{include file='db:publisher_header.html'}>


should be
<{include file='db:publisher_header.tpl'}>


The publisher pages are looking beatiful again !

My last question remains: what should I do with the .html templates attributed to Publisher in the _tpl tabe ?

SMEDrieben

17
Mamba
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/6/28 13:37

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
The publisher pages are looking beatiful again !

Awesome! Very happy to hear that!

Quote:
My last question remains: what should I do with the .html templates attributed to Publisher in the _tpl tabe ?

Since you have the other .tpl working OK, then you can delete the .html templates
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

18
SMEDrieben
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/7/2 20:37

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks ! The global.php changes (d-m-Y instead of d/m/Y) have solved the date issues in my case !

SMEDrieben

19
4asrir
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/7/7 15:59

  • 4asrir

  • Just popping in

  • Posts: 39

  • Since: 2009/4/18


hello

i Download Snapshot link , and i upload publisher to my modules site , and the pear and vendor files to /xoops_lib ,

is this all i need to do or i have to upload what in class and framework files too !!

also , i have one suggestion about publisher , i tested and it work perfect , but if there is any possibility to add a section for adsense code in preferences , just like the old new 1.68 module that will be great ,,

thank you every one

20
Mamba
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/7/7 23:55

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
is this all i need to do or i have to upload what in class and framework files too !!

For the time being that's all. There will be some changes in handling the PDF creation, but this will be later.

Quote:
also , i have one suggestion about publisher , i tested and it work perfect ,

Excellent! I am glad to hear it!

Quote:
but if there is any possibility to add a section for adsense code in preferences , just like the old new 1.68 module that will be great ,,

Please add this as a request on SourceForge for future releases.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

155 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 155


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