Home Forum
Qivva Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Caption images
(1 viewing) 1 Guest
Go to bottom
TOPIC: Caption images
#1906
CheshireCat
Senior Boarder
Posts: 61
graphgraph
User Offline Click here to see the profile of this user
Caption images 9 Years, 4 Months ago Karma: 1
I got bored with my calendar (even though I've now added multiple colours according to events) and wanted an image over the calendar just like you have on printed ones.

I'm finishing off a patch that does this.

It has 4 options,

0 = default i.e. not image in the caption
1 = use an image name that is made up from the month number i.e. 1-12.type
2 = used a fixed image name of 0.type
3 = use a random image name from 1-12.type

The event calendar options will allow you to select the option (0-4 above), the path e.g. images/eventcal/, the image type e.g. .jpeg or .png

Here is an example using mytest server with option of a fixed image i.e. 0.jpeg,
[img size=162]http://extensions.qivva.com/images/fbfiles/images/caption_example.jpeg[/img]

It's actually really simple code change but give me a day or two to finish testing.
 
Logged Logged
 
Last Edit: 2010/01/17 10:26 By CheshireCat.
  The administrator has disabled public write access.
#1907
CheshireCat
Senior Boarder
Posts: 61
graphgraph
User Offline Click here to see the profile of this user
Re:Caption images 9 Years, 4 Months ago Karma: 1
Have changed that to 5 options,
0 = default i.e. no image in the caption
1 = fixed image name of 0.type
2 = image name that is made up from the month number i.e. m1-m12
3 = pick a random image from the months using mt_rand(1,12)
4 = image name that is made up from the weekday number i.e. d0-d6
5 = pick a random image from the days using mt_rand(0,6)
 
Logged Logged
  The administrator has disabled public write access.
#1908
CheshireCat
Senior Boarder
Posts: 61
graphgraph
User Offline Click here to see the profile of this user
Re:Caption images 9 Years, 4 Months ago Karma: 1
Have also added a new option of image location - can be set to be above the month/year text i.e. the <<Jan 2010>> as per my example or below the text (above the Days-of-week names).
 
Logged Logged
  The administrator has disabled public write access.
#1928
CheshireCat
Senior Boarder
Posts: 61
graphgraph
User Offline Click here to see the profile of this user
Re:Caption images 9 Years, 4 Months ago Karma: 1
Another example showing image below the text in the caption. Note that this also shows the new tooltip event start times and tooltip title feature. [img size=271]http://extensions.qivva.com/images/fbfiles/images/below_sample.jpeg[/img]
 
Logged Logged
  The administrator has disabled public write access.
#1930
CheshireCat
Senior Boarder
Posts: 61
graphgraph
User Offline Click here to see the profile of this user
Re:Caption images 9 Years, 4 Months ago Karma: 1
Here is a snapshot of what I have that does all of this. If you have your own fancy css files then don't overwrite them but just upload the xml and php files and clobber your existing xml and php file. New module options all now available.
File Attachment:
File Name: mod_eventlistcal15q-6e9eba14c6c6cc6e5971ece41ebd729e.zip
File Size: 21086
 
Logged Logged
  The administrator has disabled public write access.
Go to top
Drug Amoxil Online (Amoxicillin) is used to treat many different types of infections caused by bacteria, such as ear infections, bladder infections, pneumonia, gonorrhea, and E. coli or salmonella infection. Sleeping pills: l-tryptophan, Phenergan, Unisom, Sominex - currently the most popular are the following hypnotic drugs. Click to see full text here:
Italian online pharmacy. Cialis, Viagra and other generic drugs. The best price and free shipping.
Sponsored by: sominex online shop.