| View previous topic :: View next topic |
| Author |
Message |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Tue May 29, 2007 4:56 pm Post subject: Possible to place .gif beside calendars name? |
|
|
Hello.
I wonder if it is possible to put a .gif (or .jpg) on both sides of the calendars name? What I woukd like is like I have it on me free hosted calendar wich I'm dropping very soon.
Link to the calendar incl. the two "wanted" .gif (the two animated emblems beside the calenar name) http://my.calendars.net/citroenkalendar
Link to the calendar I would like to put up the same .gifs: http://www.lhm-kaffe.com/citroenkalenderen/index.php
it would be great if there is a way to do this. I have failed doing it my self, need more competent help.  |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Tue May 29, 2007 8:33 pm Post subject: |
|
|
Hi,
To do this you would have to create your own theme. Documentation for creating a theme can be found here
Let me know if you have any questions. |
|
| Back to top |
|
 |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Tue May 29, 2007 9:15 pm Post subject: |
|
|
| Yes, but I have done that. Well, not created my own theme, but done as told in instruction about copying default theme, naming it custom and then used my own colors etc. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Tue May 29, 2007 9:20 pm Post subject: |
|
|
Hi,
Edit themes/custom/functions.php and around line 13, add your gifs to:
echo("<h3 class=header>".$_cur_cal['title'] ."</h3>");
as in something like
echo("<h3 class=header><img src='images/something.gif'>".$_cur_cal['title'] ."</h3>"); |
|
| Back to top |
|
 |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Wed May 30, 2007 5:50 pm Post subject: |
|
|
OK, did as you told me. At least I think I did exactly that. Only a red cross is showing (left og calendars name).
I have checked that the gif is uploaded and ok, it shows up when pointing directly to it. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed May 30, 2007 9:44 pm Post subject: |
|
|
Hi,
src='images/something.gif' was just an example. In your case it looks like you'll want to use
src='/images/mini_chevron.gif' (note the / before images) |
|
| Back to top |
|
 |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Wed May 30, 2007 9:59 pm Post subject: |
|
|
Even I understood that the name you typed in was just an example. I had of course used my own name of the gif.
But what I not had was
| Quote: |
| (note the / before images) |
And that did the tric! Now the gif is up and running,
A bit strange though, the gif is not verticaly centered compared with the letters in the name - and the "frame" surrounding the name? Any idea why?
If you please: Is there someting I can do to get some distance/space between the gif and the calendarname?
EDIT: Forget the question about verticality. I see now that it is centered - it's the nature of the "Ë" that makes it look as if it is not centered. Sorry.' |
|
| Back to top |
|
 |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Wed May 30, 2007 10:24 pm Post subject: |
|
|
It's very clear that I not know a thing about this kind of coding: No matter what I try I get an database error when putting in the snip in order to have the same gif to the right of calendar name.
If you are so kind to guide me here as well I actually think I declare my calendar "ready".  |
|
| Back to top |
|
 |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Sun Jun 03, 2007 10:28 pm Post subject: |
|
|
No......I'm not able to fix this issue by myself. Not can I insert the .gif in a way that makes it appear at the right side of calendars name as well - nor arrange it to get a little space between the .gif's and calendars name.
Suppose it is easy and self-explaining, but I'm blinded......or incompetent.
Please, any suggestion from someone out there? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Sun Jun 03, 2007 10:31 pm Post subject: |
|
|
Hi,
You should be able to use:
echo("<h3 class=header><img src='/images/mini_chevron.gif'>".$_cur_cal['title'] ."<img src='/images/mini_chevron.gif'></h3>");
What happens if you do that? |
|
| Back to top |
|
 |
BrH
Joined: 22 Oct 2006 Posts: 17
|
Posted: Sun Jun 03, 2007 10:46 pm Post subject: |
|
|
| Quote: |
| What happens if you do that? |
What happened is that......it worked.
Honestly I have NO idea why I wasn't able to do it this way myself. I tried "everything" inserting the last .gif, but obviosly missed it some place. Oh...those small / and . and all the others. Can hardly see them.
Thank you very much, Ian. The only small issue now is if it's posible to have some space between the .gif and the calendar name? This is not a big deal at all, only something I will do if it's easy to do so. |
|
| Back to top |
|
 |
deific
Joined: 03 Jan 2008 Posts: 1
|
Posted: Thu Jan 03, 2008 4:03 am Post subject: |
|
|
Try adding which is the code for a space.
I think you can add it right after the mini_chevron.gif"> and then again before <img src="... |
|
| Back to top |
|
 |
|