free joomla templates and extensions
Home Support Forum

Who's Online

We have 46 guests online
joomla-layouts.com
Welcome, Guest
Please Login or Register.    Lost Password?
Adding captions, code refactor, caching. (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Adding captions, code refactor, caching.
#525
openmtl (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Adding captions, code refactor, caching. 10 Months, 4 Weeks ago Karma: 0  
I wanted captions for each "ad" under the ad icon. I'm not actually using it for ads but as a button-based web site navigation. Looking at the code I found it was a bit messy so I recoded it. Attached are the new files. You'll find it much easier to add new features now in minutes rather than hours.
The following code should work faster and it does hit Joomla cacheing now so speeding up bigger sites.
File Attachment:
File Name: mod_miniadspot_PATCHED_FILES.zip
File Size: 4968
 
Logged Logged  
  The administrator has disabled public write access.
#526
openmtl (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Adding captions, code refactor, caching. 10 Months, 4 Weeks ago Karma: 0  
Just to be clear my code is the same licence as the existing code i.e. LGPL and I'm happy if the core code is changed to LGPLv3 or even relicensed as GPLv3. Lincoln Phipps.
 
Logged Logged  
  The administrator has disabled public write access.
#528
openmtl (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Adding captions, code refactor, caching. 10 Months, 1 Week ago Karma: 0  
As an update - I have also added a few other things which I needed like being able to do like sort on a priority for the ad display, or sort by caption and a random display. Have sent details to developer.
 
Logged Logged  
  The administrator has disabled public write access.
#529
openmtl (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Adding captions, code refactor, caching. 10 Months, 1 Week ago Karma: 0  
As another update I have added a validity range with an end date and an (optional) start date. The patch is with the developer. I've kind of run out of things I can change with this module now - it pretty much does what I what it to do !.
 
Logged Logged  
  The administrator has disabled public write access.
#530
openmtl (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Adding captions, code refactor, caching. 10 Months, 1 Week ago Karma: 0  
A copy of what I am currently testing. This has all the new features including validity dates. The valid date field is either an end date or an end date and a start date separated by a semi-colon e.g.
2009-10-22 17:00:00;2009-09-22 09:00:00
means to run the ad from 22nd September 9am to the 22nd October 5pm. If you just provided 2009-10-22 17:00:00 then it would mean (from now on but) end on 22nd October at 5pm. The date can be in any format that strtotime() accepts including relative dates. A relative start date is relative to now and the relative end date is relative to the start date. So if you do use relative then at least 1 date MUST be a fixed date else it will make no sense as both will end up being relative to now and now changes to a new time everytime the module runs. Lincoln.
File Attachment:
File Name: mod_miniadspot_omlp4.zip
File Size: 37228
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
Copyright © 2010 Joomla templates and extensions. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.