Quoteoftheday

Please post answers on the most frequently asked questions about CMSimple
Post Reply
ustalo
Posts: 99
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Quoteoftheday

Post by ustalo » Sun Apr 26, 2020 2:16 pm

Quoteoftheday
If it is possible to change phrase every time page reloads (not once a day, month, year)?
As on some php script
Aleksei

lck
Posts: 2058
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Quoteoftheday

Post by lck » Sun Apr 26, 2020 8:00 pm

ustalo wrote:
Sun Apr 26, 2020 2:16 pm
If it is possible to change phrase every time page reloads (not once a day, month, year)?
Not to my knowledge. You can use Newsrotator or a jQuery-Script.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

ustalo
Posts: 99
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Re: Quoteoftheday

Post by ustalo » Mon Apr 27, 2020 3:47 am

We have got solution from master. It works. Change 2 words in code.
www.cms.sima.spb.ru
Aleksei

ustalo
Posts: 99
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Re: Quoteoftheday

Post by ustalo » Mon Apr 27, 2020 5:55 am

Master Christoph give us solution

You can try to change
<https://github.com/cmsimple-xh/quoteoft ... ex.php#L72>
to


if (true) {

Untested.

We test. It is works.
Aleksei

ustalo
Posts: 99
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Re: Quoteoftheday

Post by ustalo » Mon Apr 27, 2020 5:57 am

Master Christoph give us solution

You can try to change
<https://github.com/cmsimple-xh/quoteoft ... ex.php#L72>
to


if (true) {

Untested.

We test. It is works.
Aleksei

lck
Posts: 2058
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Quoteoftheday

Post by lck » Mon Apr 27, 2020 9:42 am

ustalo wrote:
Mon Apr 27, 2020 5:57 am
Master Christoph give us solution
...
We test. It is works.
Yes it works :) . Thank you Christoph.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Post Reply