Welcome, Guest. Please Login or Register.
April 26, 2024, 10:42:40 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.4.1] Calendar Girls Mod V1.0 « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Beta 1.4.1] Calendar Girls Mod V1.0  (Read 6123 times)
miskie
Noobie
*
Posts: 15


I'm a llama!

[Beta 1.4.1] Calendar Girls Mod V1.0
« on: October 23, 2002, 02:04:33 AM »
Reply with quote

Here is a quick little mod I made today to Sources/Calendar.php to display an image above The recently added Calendar feature to YaBBSE.. heres an example pic from one of my sites with the mod in action :


The mod allows you to create an image directory where ever you would like to keep your Piccies for your calendar in. The Images are indexed by "Monthyear".jpg (.gif / .png if you wish, just change the .jpg extension in the code) such as April2002.jpg.

Heres all the code you need..

find:
   // Save some processing time by only doing this once. Particularly if the "Days as Link" option is

   // turned on.

   $bCanPost = CalendarCanPost();
   print "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" class=\"bordercolor\">"

Add after:

// Miskie's Calendar Image Hackery October 22nd, 2002

print "<td align=\"center\" colspan=\"2\">";
print "<img src=\"http://your.site.com/calgirls/".$months[$month].$year.".jpg\" border=0";
print "</center>";


if any of you feel so inclined to make an admin control panel for this, be my guest.  

I applied this to a heavily modified 1.4.1.  without an ounce of trouble..

** This mod ASSUMES you use only one language on your board ** since the image name is derived and not hard-coded (to allow you to add as many as you like) a non-primary language user will not be able to see your images, unless you make renamed copies for them as well, or write a whole bunch of extra code.. Im too lazy to go thru that much work :) **
« Last Edit: October 23, 2002, 06:16:55 AM by Nemesis » Logged
rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:Calendar Girls Mod V1.0
« Reply #1 on: October 23, 2002, 05:01:24 AM »
Reply with quote

Great, Does the girl come with it??  ???
Logged
miskie
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta 1.4.1] Calendar Girls Mod V1.0
« Reply #2 on: October 23, 2002, 12:32:55 PM »
Reply with quote

Sadly, no.. The girl isnt shared under GNU GPL...   ;D

Logged
phairest
Noobie
*
Posts: 11


I'm a llama!

Re:[Beta 1.4.1] Calendar Girls Mod V1.0
« Reply #3 on: July 23, 2003, 10:58:54 PM »
Reply with quote

Hey, I know this topic is really old, but I think this is a killer lil mod and I'd like to use it.  Prob is I've got yabbse 1.5.4, and the code in question is a bit different than it was back in the 1.4.1 day, so can anyone update this a bit for use with the current version (I know squat bout php)?  Thanks in advance!

EDIT:  In case anyone besides me wants to use this, a php-savvy acquaintance has supplied a solution: after
// Save some processing time by only doing this once. Particularly if the "Days as Link" option is

   // turned on.

   $bCanPost = CalendarCanPost();



   echo '

      <form action="index.php?action=calendar" method="post">

         <table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td>

            <table cellspacing="1" cellpadding="0" width="100%">

               <caption><font size="5" color="#' . $modSettings['cal_captioncolor'] . '">' . $months[$month] . ' ' . $year . '</font></caption>';


add

print "<br><center><img src=\"http://mysite.com/calgirls/".$months[$month].$year.".jpg\" border=0></center>";

Works great for me, though I assume non-default langs still won't be able to see it.  Props to Rivka of Orodruin.sourceforge.net!  ;D
« Last Edit: July 24, 2003, 03:56:25 AM by phairest » Logged
miskie
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta 1.4.1] Calendar Girls Mod V1.0
« Reply #4 on: August 08, 2003, 07:19:08 PM »
Reply with quote

Ahh, glad to see this old mod still has use after all :)
Logged
edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:[Beta 1.4.1] Calendar Girls Mod V1.0
« Reply #5 on: December 08, 2003, 08:13:18 AM »
Reply with quote

work great for me too thank
Logged

crash5456
Guest
Re:[Beta 1.4.1] Calendar Girls Mod V1.0
« Reply #6 on: December 08, 2003, 03:29:21 PM »
Reply with quote

Here's my little problem lol

I tried this mod on my board, the guys loved it :)
The women, who out number the guys like 5 to 1 say hey, can we have guys on our calender.

Is there a way to make this work, somehow have it hooked in with the gender of person so they see the pics they want on the calender.

Just askin :)
Logged
darksteel
Sr. Member
****
Posts: 305


www.cmh-ip.net

luis18a@hotmal.com
Re:[Beta 1.4.1] Calendar Girls Mod V1.0
« Reply #7 on: December 08, 2003, 08:12:35 PM »
Reply with quote

 ;D  !!! ehh, what edit file? calendar.php ??!

Salu2
Logged

mmmm....Searching Hosting !
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.4.1] Calendar Girls Mod V1.0 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.062 seconds with 21 queries.