1
blackrx
countdown module for XOOPS 2.5.9 ?
  • 2018/1/5 11:36

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Hi

I'm Looking for a simple countdown module for XOOPS

I would like to have this feature

- create countdown
- show list of countdown
- select countdown to show in block
- Show countdown in Years Week Days Minutes Second
- In block option option to disable or enable display of Years Week Days Minutes Second

i know there is many countdown script out there and can be paste in blocks..i'm currently using one but it would be nice to have a record of previous countdown detail in module

i found an old module in the repository called countdown it have some of the features that i would have in the module

Resized Image

it can be installed but there is problem submitting new countdown

anyone can help me to convert this module to latest XOOPS Standard or is there any other countdown module ?

2
Mamba
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/1/6 14:19

  • Mamba

  • Moderator

  • Posts: 11251

  • Since: 2004/4/23


You can try and test these two versions:

Version 1: the original version, updated for XOOPS 2.5.9 and PHP 7.2, but the the calendar button doesn't work, i.e. you have to enter the date manually

Version 2: Quick & dirty rewrite of the Version 1, incl. a Vue countdown component.

Please note: I don't have time to do anything more with these modules, but it will be a good start for you to improve it further. Or somebody else could help you. Just fork it on GitHub
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
blackrx
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/1/8 15:14

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


Thank you very much Mamba I'll try to modify it from here

out of curiosity how do you generate the 2nd module?..is it using tdmcreate?

4
Mamba
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/1/8 16:50

  • Mamba

  • Moderator

  • Posts: 11251

  • Since: 2004/4/23


Yes, TDMCreate, it saves a lot of time
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
heyula
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/1/8 17:20

  • heyula

  • Theme Designer

  • Posts: 562

  • Since: 2008/4/24


you share the download link for the version you are using.

it would be nice if you take a detailed video of how you are used.

6
Mamba
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/1/8 19:41

  • Mamba

  • Moderator

  • Posts: 11251

  • Since: 2004/4/23


Heyla, are you talking about the Countdown module, or TDMCreate?

If about TDMCreate, then there is the older video that I've made, and the principles are pretty much the same:




You can download and test TDMCreate here: https://github.com/txmodxoops/tdmcreate
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

7
ultraman147
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/6/5 10:07

  • ultraman147

  • Just popping in

  • Posts: 4

  • Since: 2007/7/15


Thanks for your sharing. I have tried to install both version 1 and 2 in my server which the PHP version is 5.5.26 and xoops 2.5.8. Some errors occured.
Version 1 --> links error. --> http://mywebsite/modules/index.php (missing "countdown")
Version 2 --> Install failure

8
zyspec
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/6/5 14:18

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


I haven't tried this but it looks to me like you should be able to change ./templates/countdown_index.tpl from:
<tr>
+        <
td class="head">
+            <
a href="../index.php?sort=name&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_NAME}></a>
+        </
td>
+        <
td class="head">
+            <
a href="../index.php?sort=description&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_DESCRIPTION}></a>
+        </
td>
+        <
td class="head">
+            <
a href="../index.php?sort=enddatetime&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_EXPIRATION}></a>
+        </
td>
+        <
td class="head">
+            <
a href="../index.php?sort=remaining&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_REMAINING}></a>
+        </
td>
+    </
tr>

to:
<tr>
+        <
td class="head">
+            <
a href="./index.php?sort=name&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_NAME}></a>
+        </
td>
+        <
td class="head">
+            <
a href="./index.php?sort=description&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_DESCRIPTION}></a>
+        </
td>
+        <
td class="head">
+            <
a href="./index.php?sort=enddatetime&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_EXPIRATION}></a>
+        </
td>
+        <
td class="head">
+            <
a href="./index.php?sort=remaining&order=<{$cd_sort_order}>"><{$smarty.const._CD_TEXT_REMAINING}></a>
+        </
td>
+    </
tr>


All this change does is removes an 'extra' period in the href links to make sure it references the current relative directory. This should fix the 'missing' /countdown directory reference.

9
ultraman147
Re: countdown module for XOOPS 2.5.9 ?

Thanks for your help first. I have rewrite the ./templates/countdown_index.tpl file and the link is properly only in the module front page. The text button on the user menu is work properly. But all the text button on the content area is still not work as the links still not complete like mywebsit/modules/index.php?op=edit&id=1

10
zyspec
Re: countdown module for XOOPS 2.5.9 ?
  • 2018/6/8 15:21

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


@ultraman147,

You're correct. I apologize, I missed 2 more places that need to be changed.

In the same file (./templates/countdown_index.tpl) around line 26 you will see:
<a href="../index.php?op=edit&amp;id=<{$event.id}>"><{$event.name}></a>

please change it to:
<a href="./index.php?op=edit&amp;id=<{$event.id}>"><{$event.name}></a>


and similarly around line 46 you will see:
<a href="../index.php?op=add"><{$smarty.const._CD_TEXT_ADD_EVENT}></a>

please change to:
<a href="./index.php?op=add"><{$smarty.const._CD_TEXT_ADD_EVENT}></a>


I hope this helps.

Login

Who's Online

40 user(s) are online (25 user(s) are browsing Support Forums)


Members: 0


Guests: 40


more...

Donat-O-Meter

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

Latest GitHub Commits