PDA

View Full Version : Calendar babes


NuclioN
08-04-2004, 09:49 AM
I saw a site where they had a calendar babe for each month. How to do this??

KW802
08-04-2004, 10:15 AM
Nuclion,

That kind of stuff usually isn't my thing but, what the heck, I'm always curious in seeing how stuff works..... do you have a demo site where it's working now so we can see what the end result is supposed to look like?

Our Sponsors
 

Brian
08-04-2004, 12:12 PM
Hmm... A simple way would be to edit your 'calendar_smallmonth_header' template and look for:

<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td></if>

Replace that with:

<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td><else /><td class="alt1" colspan="7">
<img src="/calendarimages/month$month.jpg">
</td>
</tr>
<tr>
</if>

You can of course change the path/image name in the code above. Assuming that is left the same though, you would then want to create a new directory called "calendarimages" in your root directory. Then create some images called month1.jpg, month2.jpg, all the way up to month12.jpg. Upload those files into your calendarimages directory and that should be it. :)

Natch
08-04-2004, 12:28 PM
Boofo's site is where I've seen this - bearfacts2.com

Our Sponsors
 

NuclioN
08-04-2004, 03:04 PM
Tnx Brian, i give it a try :)

-- Yes Natch, seen it at bearfacts2.com

KW802
08-04-2004, 04:53 PM
Hmm... A simple way would be to edit your 'calendar_smallmonth_header' template and look for:....
<snip>
Interesting. One of the sites I'm working at (slowly :( ) is for a local town site where hot rods are big; that code would be good for a 'hot rod of the month' type thing.

chrisvonc
08-04-2004, 09:47 PM
Worked good Brian! Thank you very much!

bezzell
08-07-2004, 12:22 AM
Another option - edit your 'calendar_smallmonth_header' template and look for:
<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td></if>
Replace that with:
<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td><else /><td class="alt2" colspan="7" align="center" style="padding:0px">
<a href="/calendarimages/month$month.jpg" target="blank" />
<img src="/calendarimages/thumb/month$month.jpg" alt="Click for full size image" width="100%" border="0" />
</a>
</td>
</tr>
<tr>
</if>
Create 2 new directories - "calendarimages" and "calendarimages/thumb" in your root directory. Create 2 images - full-size and thumbnail calendar sized.
Name each month1.jpg, month2.jpg, etc... - Upload the full-size to "calendarimages", upload the thumbnails (176 x 106 pixels, your mileage may vary) to "calendarimages/thumb".

This should give you a thumbnail image on your calendar, with a linked full-size image that opens in a new window.

Sample here -> www.dauphinislandforums.com

Allen Mead
08-09-2004, 05:03 PM
To ask a silly question, will this alternate the pic automatically every month?

Plus, how do I get the window to automatically size to the lager image rather than a full size explorer window?

Cheers in advance.

Fargo
08-14-2004, 08:29 AM
To ask a silly question, will this alternate the pic automatically every month?

Plus, how do I get the window to automatically size to the lager image rather than a full size explorer window?

Cheers in advance.

Im not positive about Brian's code, but it looks like Bezzell's code will indeed alternate pictures for the specific month.

"<img src="/calendarimages/thumb/month$month.jpg".............."

Brian
08-14-2004, 12:58 PM
To ask a silly question, will this alternate the pic automatically every month?

Plus, how do I get the window to automatically size to the lager image rather than a full size explorer window?

Cheers in advance.
Yes, it will alternate the image every month. As for the size... You'll just need to make sure that you make the images the size you would like them to be when you create them.

Allen Mead
08-16-2004, 05:01 PM
aaaaahhhh cool, so I could do it week by week then.

Brian
08-16-2004, 06:09 PM
Week by week would probably be a little harder... Though off the top of my head I'm not sure if there's something in the default vB calendar functions to easily determine which week in the month it is.

Allen Mead
08-16-2004, 06:23 PM
Week by week would probably be a little harder... Though off the top of my head I'm not sure if there's something in the default vB calendar functions to easily determine which week in the month it is.

Brian, any chance of either you or Zachery to have a chew on that?

Brian
08-17-2004, 12:50 PM
Actually it's not that hard... Just open your /forum/includes/functions_calendar.php file and look for:
$show['highlighttoday'] = iif($daylink == $todaylink, true, false);

Right below that, Add:
if ($show['highlighttoday'])
{
$calweek = $rows;
}


Follow the same instructions as above, except you will want to use something like this for the image in your 'calendar_smallmonth_header' template instead:

<img src="/calendarimages/week$calweek.jpg">

And then you will want to make images called week1 up to week5. That will produce a different image every week... Now if you wanted a different one for every week and every month you could change the image to something like this:

<img src="/calendarimages/month$month_week$calweek.jpg">

And then create images named like this: month1_week4.php
Of course that would be a bit of a pain and you'd have to create 52 images, but that's how it would be done. :)

Fargo
08-17-2004, 01:36 PM
thanks, Brian - this will prove quite useful.

ambrosious
08-17-2004, 05:25 PM
Thanks to you all. It works!

mr.gamesbay
09-14-2004, 07:31 PM
Hmm... A simple way would be to edit your 'calendar_smallmonth_header' template and look for:

<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td></if>

Replace that with:

<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td><else /><td class="alt1" colspan="7">
<img src="/calendarimages/month$month.jpg">
</td>
</tr>
<tr>
</if>

You can of course change the path/image name in the code above. Assuming that is left the same though, you would then want to create a new directory called "calendarimages" in your root directory. Then create some images called month1.jpg, month2.jpg, all the way up to month12.jpg. Upload those files into your calendarimages directory and that should be it. :)

My calendar_smallmonth_header looks different:

<tr>
<if condition="$dontshowweek">
<td class="tcat" colspan="$colspan" align="$stylevar[left]"><span class="smallfont"><b>$vboptions[blockbullet]
<else />
<td class="tcat" colspan="$colspan" align="center"><b>
</if><a href="$vboptions[bburl]/calendar.php?$session[sessionurl]month=$month&amp;year=$year&amp;c=$calendarid&amp;do=displaymonth">$monthname $year</a><if condition="$dontshowweek"></b></span></if></td>
</tr>
<tr align="center">
<if condition="!$dontshowweek"><td class="thead">&nbsp;</td></if>
<if condition="$show['day1']"><td class="thead">$day1</td></if>
<if condition="$show['day2']"><td class="thead">$day2</td></if>
<if condition="$show['day3']"><td class="thead">$day3</td></if>
<if condition="$show['day4']"><td class="thead">$day4</td></if>
<if condition="$show['day5']"><td class="thead">$day5</td></if>
<if condition="$show['day6']"><td class="thead">$day6</td></if>
<if condition="$show['day7']"><td class="thead">$day7</td></if>
</tr>
$calendarrowbits

some help? :)

Thanks

Edit:Ups, sorry. I see right now this is a Hack for vBadvanced CMPS. I have the normal version. Is there a Hack too.

04screamer
09-19-2004, 10:05 AM
bezzell,

Nice addition. Thanks.

http://www.modernengineuity.com

MorrisMcD
09-25-2004, 08:43 PM
Ok.. All this code makes my head spin.. I run a football site and I have a great idea.. I could have the team we are playing each week, show up on the calendar.. Did any of you do the week by week idea and any possibility of pasting yer code here?

Thanks

Earl Grey
10-28-2004, 12:04 PM
Sweet I found It!

sorry for bugging you guys in e-mail... this should do just fine...


need to get better at my searching skills :confused:

Earl Grey
10-29-2004, 02:10 PM
I could use some help guys, I've looked high and low, can't seem to figure out why this is happening.

I believe I've followed the instructions correctly. The image space above the calendar and link to larger image is working fine. The problem is the url to the images is not correct.

I created the calendarimages file and within that the thumbs file. I uploaded this right along the rest of my files (i.e. images, install, include...) with the image titles, as mentioned in the post.

The problem is that I am getting 'red x' no image. on both thumb and full.

Here are the urls that are being pulled and are broken;
http://www.lobo.net/calendarimages/thumb/month10.jpg
http://www.lobo.net/calendarimages/month10.jpg


Here are the working ones;
http://www.lobo.net/~rbf/forum/guild_forum/calendarimages/thumb/month10.jpg
http://www.lobo.net/~rbf/forum/guild_forum/calendarimages/month10.jpg

Notice "~rbf/forum/guild_forum/" is missing from the broken set

Here is the code I altered on calendar_smallmonth_header;
<tr>
<if condition="$show['dontshowweek']">
<td class="tcat" colspan="$colspan" align="left"><span class="smallfont"><b>$vba_options[portal_blockbullet]
<else />
<td class="tcat" colspan="$colspan" align="center"><b>
</if><a href="$vboptions[bburl]/calendar.php?$session[sessionurl]month=$month&amp;year=$year&amp;c=$calendarid&amp;do=displaymonth">$monthname $year</a></td>
</tr>
<tr align="center">
<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td><else /><td class="alt2" colspan="7" align="center" style="padding:0px">
<a href="/calendarimages/month$month.jpg" target="blank" />
<img src="/calendarimages/thumb/month$month.jpg" alt="Click For Full Sized Image" width="100%" border="0" />
</a>
</td>
</tr>
<tr>
</if>
<if condition="$show['day1']"><td class="thead">$day1</td></if>
<if condition="$show['day2']"><td class="thead">$day2</td></if>
<if condition="$show['day3']"><td class="thead">$day3</td></if>
<if condition="$show['day4']"><td class="thead">$day4</td></if>
<if condition="$show['day5']"><td class="thead">$day5</td></if>
<if condition="$show['day6']"><td class="thead">$day6</td></if>
<if condition="$show['day7']"><td class="thead">$day7</td></if>
</tr>
$calendarrowbits

Earl Grey
10-30-2004, 11:35 AM
In case someone else has this problem...

It was the slashes

Props to Jake

VVIper
07-08-2005, 07:46 AM
I tried this mod at the top and it didnt work, is it relevent to Vb3 .07 and CMPS v2.0 RC1?

sunnycher
07-08-2005, 07:59 PM
Anyway to have this and have it do random images? Such as the gallery random image module?

mholtum
07-08-2005, 08:59 PM
Anyway to have this and have it do random images? Such as the gallery random image module?Random as in everytime the page loads? or random monthly?

sunnycher
07-08-2005, 09:02 PM
No. like on my front forum hompage I have 4 images showing., they are random images from the gallery. Is that possible to do one random image with the calendar?
I don't think my photography forum ( mostly women) would appreciate the BABE calendar LOL!!!

mholtum
07-08-2005, 09:17 PM
No. like on my front forum hompage I have 4 images showing., they are random images from the gallery. Is that possible to do one random image with the calendar?
I don't think my photography forum ( mostly women) would appreciate the BABE calendar LOL!!!
I know. But do you want it to change with every page load or monthly?

sunnycher
07-08-2005, 09:20 PM
page load would be nice! or even daily.

wildondallas
07-09-2005, 08:17 PM
Well, I can't seem to figure out why this doesn't work anymore after upgrading to vBulletin Version 3.0.7 and CMPS v2.0 RC1? It just stopped working. The Calendar is also now, a little wider than our columns? I think there was a thread on here about how to fix the width of it, but it has been so long ago, I can't remeber. It has worked for us for the months until the update. I just read through this thread again and started from scratch, but no luck, still not working? Anyone else having the same problem with the updates affecting this mod? Or if any of you have any suggestions, it would be greatly appreciated, as the image above the calendar is used to display our Hottie of the Month, and links to her profile page, so we really need to get it working soon. We have a new hottie for July, but can't display her picture on the home page for people to find out about it. Thanks :)
See top of right column(Calendar, but no image?) www.wildondallas.com (http://www.wildondallas.com)

YSR50
07-09-2005, 08:24 PM
http://www.vbadvanced.com/forum/showthread.php?t=8622

we are running 3.0.7 and CMPS 2 RC2 and it works fine (see link above). I didn't set it up to link but the images show up and change with the months. Now I just need to find out how to get the weekly code to work that Brian mentions earlier in this thread.

wildondallas
07-09-2005, 08:58 PM
Thanks YSR50. That got the image to show. Can you tell me what to do, to get the border around it. We had it originally between the month listed above the image, and the dates below the image. Any ideas. Take a look at my site again, and you will see my issue. Thanks again :)

VVIper
07-10-2005, 03:07 AM
i have the same problem also dallas same versions

pennylessz28
09-28-2005, 04:26 PM
How did I miss this mod! I am so turning my calendar back on! HEHE

pennylessz28
10-07-2005, 04:54 PM
I'm so going to add this when I get around to it.

shadowdancer36
02-07-2006, 07:34 PM
It would be nice if someone could turn this into a MOD or Plugin :p (hint) (hint) I hate messing around with code. I always mess something up.

VVIper
04-08-2006, 07:59 AM
where is the Module upload?