Welcome, Guest. Please login or register.
Did you miss your activation email?
February 11, 2012, 08:43:57 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149581 Posts in 21094 Topics by 7536 Members
Latest Member: SpokaneDude
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Periodic texts - 3 new modules  (Read 645 times)
snark
Guest
« on: March 01, 2011, 08:25:59 PM »

I do not know wheter this is valuable for anyone

three modules based off of the normal wysiwyg module

weekdagen(weekdays):
this displays 7 wysiwyg editors, you can fill in 7 texts and depending on the current day one of them is shown

seizoenen(seasons):
this displays 4 wysiwyg editors, you can fill in 4 texts and depending on the current season one of them is shown

maanden(months):
this displays 12 wysiwyg editors, you can fill in 12 texts and depending on the current month one of them is shown

- - - - - - -

all added text in modify.php is in dutch, just open the modify.php and change the day/season or month names

- - - - - - -

I know most of it can be done with the datefields in the sections-tab but I think this is easier to understand



« Last Edit: March 02, 2011, 08:32:36 AM by snoork » Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2814



WWW
« Reply #1 on: March 01, 2011, 08:58:44 PM »

Quote
I do not know wheter this is valuable for anyone

Don't know either, but I do know that any module sometimes fits someone Wink

Don't take these, but I like the idea, it is simple.

John

Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
macsmet

Offline Offline

Posts: 230


« Reply #2 on: March 01, 2011, 09:07:24 PM »

@Snoork: I was curious so installed it on WB 2.8.1 but getting these errors in the frontend:

Notice: Use of undefined constant Mon - assumed 'Mon' in
........modules/weekdagen/view.php on line 48

Notice: Use of undefined constant Tue - assumed 'Tue' in .....
modules/weekdagen/view.php on line 50
  Dit is dinsdag

Greetings,

MacSmet
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2814



WWW
« Reply #3 on: March 01, 2011, 10:38:27 PM »

Change in weekdagen - view.php:
date("D")) == Mon to date("D")) == 'Mon'
or
date("N")) == 1 using 'N' for numeric day where 1 = monday and 7 = sunday
Same goes for other dates Wink

Remember, strings like 'Mon' are not constants like Mon .

When coding it is good to set errorlevel to all.

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
snark
Guest
« Reply #4 on: March 01, 2011, 11:00:20 PM »

replaced the files, hope it is all good now
« Last Edit: March 02, 2011, 08:33:19 AM by snoork » Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #5 on: March 09, 2011, 11:44:29 PM »

Pretty clever! The section dates are just 1 time dates, but these are looping fields if I understand right? So you can show a section on every Monday, or throughout the whole month of May? Combined with the section droplet you can create interesting pseudo code that is easy to understand for clients and non-programmers like myself. Potentially rather powerful stuff actually... Nice!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
snark
Guest
« Reply #6 on: March 10, 2011, 06:57:47 AM »

Yeah your right, the idea came from a customers idea to have some seo friendly landingpages which display random content. This to let search engines think these pages have a high change rate. I do not know if it will work but it is a clever idea. While creating that i yhought of these three options.

Nice to hear someone likes it.
Logged
seagull

Offline Offline

Posts: 81


« Reply #7 on: April 12, 2011, 10:43:59 PM »

Snoork,

What am i doing wrong?
This happens with all the modules in the backend.

Quote
Blok: Hoofdinhoud Modul: maanden ID: 78

januari

Fatal error: Cannot redeclare class CKEditor_Plus in /var/www/vhosts/keep/httpdocs/modules/ckeditor/include.php on line 172

Jan
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!