PDA


View Full Version : Calendar Babes for CMPS 2?


bezzell
06-11-2005, 10:35 PM
I'd modified CMPS 1 with the Calendar Babes hack (original thread (http://www.vbadvanced.com/forum/showthread.php?t=2153) ) for use as a Photo of the Month. When I upgraded to CMPS 2, the hack no longer works.

Any suggestions where in the new version to make a simillar modification?

I see the new templates (adv_portal_calendar_*), but I'm not sure which one to look at for modification.

Thanks, and love the new version!

Brian
06-12-2005, 12:54 PM
Just add that <img> tag in your adv_portal_calendar_header template.

bezzell
06-12-2005, 09:02 PM
Thanks Brian - that did it!

YSR50
06-28-2005, 02:49 AM
what about a weekly picture, is this still possible? Thanks

YSR50
06-28-2005, 01:27 PM
also, is it possible to put the photo between the month and the dates?

TIA

wildondallas
07-09-2005, 10:11 PM
also, is it possible to put the photo between the month and the dates?

TIA
I would like to know how to do this also. I got the image to show, but with no surrounding border, like all the other blocks. Before the update to the current cmps and vb, it was enclosed within the mini calendar block. Any suggestions?

VVIper
07-10-2005, 03:58 AM
wildondalis, your site only shows the image and not the calendar,
did you get it fixed or not.
I am also using VBA RC1 and VB 3.0.7
If i use the IMG tag it inserts but like you i want it to pull files and thumbnails from a directory in the root of the website.

wildondallas
07-10-2005, 12:10 PM
its not working how i want yet VVIper, and i am patiently waiting for a response.

majorj0nny1
07-11-2005, 08:13 PM
does anyone have any idea what needs to be done to create a DALY! calendar pic ? currently I got it down to weekly...

YSR50
07-13-2005, 04:08 AM
does anyone have any idea what needs to be done to create a DALY! calendar pic ? currently I got it down to weekly...
how did you get it to work weekly in CMPS 2?

majorj0nny1
07-13-2005, 04:53 AM
how did you get it to work weekly in CMPS 2?

sorry - Im not using CMPS2 ... still 1.01

here is my current callendar_smallmonth_header:

<tr>
<if condition="$show['dontshowweek']">
<td class="tcat" colspan="$colspan" align="$stylevar[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="left">

<if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td><else /><td class="alt1" colspan="7">
<img src="/calendarimages/week$calweek.jpg">
</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


does that not work for CMPS2?

YSR50
07-16-2005, 02:28 AM
sorry - Im not using CMPS2 ... still 1.01

here is my current callendar_smallmonth_header:

does that not work for CMPS2?
not for me. the new file (adv_portal_calendar_header) looks like this
<tr>
<if condition="$show['day1']"><td align="center" class="thead">$day1</td></if>
<if condition="$show['day2']"><td align="center" class="thead">$day2</td></if>
<if condition="$show['day3']"><td align="center" class="thead">$day3</td></if>
<if condition="$show['day4']"><td align="center" class="thead">$day4</td></if>
<if condition="$show['day5']"><td align="center" class="thead">$day5</td></if>
<if condition="$show['day6']"><td align="center" class="thead">$day6</td></if>
<if condition="$show['day7']"><td align="center" class="thead">$day7</td></if>
</tr>
$calendarrowbits
so there is no <if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td></if>
to replace.

like Brian said above, just add that <img> tag. That works fine for monthly<img src="/calendarimages/month$month.jpg"> or weekly <img src="/calendarimages/week$calweek.jpg"> but not month_week <img src="/calendarimages/month$month_week$calweek.jpg">at least not for me :(

gorp
07-16-2005, 10:01 PM
not for me. the new file (adv_portal_calendar_header) looks like this
<tr>
<if condition="$show['day1']"><td align="center" class="thead">$day1</td></if>
<if condition="$show['day2']"><td align="center" class="thead">$day2</td></if>
<if condition="$show['day3']"><td align="center" class="thead">$day3</td></if>
<if condition="$show['day4']"><td align="center" class="thead">$day4</td></if>
<if condition="$show['day5']"><td align="center" class="thead">$day5</td></if>
<if condition="$show['day6']"><td align="center" class="thead">$day6</td></if>
<if condition="$show['day7']"><td align="center" class="thead">$day7</td></if>
</tr>
$calendarrowbits
so there is no <if condition="!$show['dontshowweek']"><td class="thead">&nbsp;</td></if>
to replace.

like Brian said above, just add that <img> tag. That works fine for monthly<img src="/calendarimages/month$month.jpg"> or weekly <img src="/calendarimages/week$calweek.jpg"> but not month_week <img src="/calendarimages/month$month_week$calweek.jpg">at least not for me :(
wherever I add the img tag to that table the pic is outside the calendar box, and not inside it.

majorj0nny1
07-17-2005, 07:24 PM
brian ... is there a method to do this daly ?

hendri
08-01-2005, 08:27 AM
how to put the image inside the calendar box ?

Allen Mead
09-24-2005, 02:26 PM
I've go this to work (see here http://www.astra-mk2.com ) although for some reason, the calendar portal is now slightly wider that the others. This may be to do with the thumbnail images sizes. I haven't changed these yet to see if it makes a difference. The other ting it seems to have done is make the gap between the top of the calendar portal to the bottom of the online users portal bigger than the others.

you need to open this template as mentioned before;

adv_portal_calendar_header

Add this code above:

<tr align="center">
<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>
Which gives you the following:

<tr align="center">
<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>

<tr>
<if condition="$show['day1']"><td align="center" class="thead">$day1</td></if>
<if condition="$show['day2']"><td align="center" class="thead">$day2</td></if>
<if condition="$show['day3']"><td align="center" class="thead">$day3</td></if>
<if condition="$show['day4']"><td align="center" class="thead">$day4</td></if>
<if condition="$show['day5']"><td align="center" class="thead">$day5</td></if>
<if condition="$show['day6']"><td align="center" class="thead">$day6</td></if>
<if condition="$show['day7']"><td align="center" class="thead">$day7</td></if>
</tr>
$calendarrowbits

Allen Mead
09-28-2005, 04:40 PM
Any help with the positioning of the modules?

bouncingpeanut
11-05-2005, 02:28 PM
I've go this to work (see here http://www.astra-mk2.com ) although for some reason, the calendar portal is now slightly wider that the others. This may be to do with the thumbnail images sizes. I haven't changed these yet to see if it makes a difference. The other ting it seems to have done is make the gap between the top of the calendar portal to the bottom of the online users portal bigger than the others.

you need to open this template as mentioned before;

adv_portal_calendar_header

Add this code above:

<tr align="center">
<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>
Which gives you the following:

<tr align="center">
<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>

<tr>
<if condition="$show['day1']"><td align="center" class="thead">$day1</td></if>
<if condition="$show['day2']"><td align="center" class="thead">$day2</td></if>
<if condition="$show['day3']"><td align="center" class="thead">$day3</td></if>
<if condition="$show['day4']"><td align="center" class="thead">$day4</td></if>
<if condition="$show['day5']"><td align="center" class="thead">$day5</td></if>
<if condition="$show['day6']"><td align="center" class="thead">$day6</td></if>
<if condition="$show['day7']"><td align="center" class="thead">$day7</td></if>
</tr>
$calendarrowbits


Nice one - thanks for the helpful instructions :)

cbr929rrerion
11-06-2005, 09:53 PM
thanks.. got it working on mine too.. Great idea..

cbr929rrerion
11-10-2005, 01:32 PM
I would like for it to change daily too.. is there a way to do that and if some one has the script can you post it.. using 3.5 gold and 2.0 cmps

thanks

cbr929rrerion
11-16-2005, 12:56 PM
Brian, can you tell me how I can do this for daily and what I would need to name the images etc...

I would really like that alot..

cbr929rrerion
11-22-2005, 02:14 AM
brian, can you show me how to set it up to change daily? I would really like it, when I get it woking I will post for all to use if you get me started...

divided_by_fear
11-22-2005, 05:55 AM
yeah this would be really nice i had something like this on a php site but it would pull the images from a folder i chose... and every refresh it would show a different image...also what do we have to make a folder for them images and put them images in there? or is there a way we coud pull it from gallery?

interfx
12-09-2005, 06:17 PM
Does this work on VB3.5?

spectre1a
12-12-2005, 11:50 PM
Does this work on VB3.5?

i would like to know too as i cant find any of them files anywhere

beansbaxter
12-14-2005, 06:21 PM
I got this to work monthly, but not weekly. How do I make it weekly or daily???

cbr929rrerion
12-24-2005, 02:32 PM
BRIAN HELP..

can you show us newbies how to do the code for weekly..

Please.. please....

cbr929rrerion
08-22-2006, 02:47 AM
So does anyone have the code for daily pics or weekly using VB 3.5 and cmps 2.0?

I would appreciate if you can post the code.. I have it working monthly but would love the code for daily, or weekly..

thanks

YSR50
04-19-2007, 04:41 PM
We upgraded to vB 3.6.5 and CMPS 2.2.1 this past weekend and my weekly calendar picture stopped working. As long as I keep an image named week.jpg in my calendarimages folder it still shows up on our home page but it will not recognize week1.jpg, week2.jpg, week3.jpg...

Can someone tell me if the problem is with the week$calweek.jpg phrase that is used in the adv_portal_calendar_header template? If so, how can I fix it?

TIA

YSR50
04-20-2007, 08:18 PM
anyone? is there a weekly variable anymore?

YSR50
04-24-2007, 01:10 AM
ttt