Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Birthday Mod - Birthday Listing in week view
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 02 May 2008 :  18:10:52  Show Profile
Is it possible to get the weekly view of the birthday listing to display horizontally instead of the current format of vertically
Current Display:


Change to



Code available:
cal.asp line 573
'Show Birthdays
    if blnCalShowBDays then
        Do
            blnBDay = FALSE
            if NOT rsBDays.EOF then
                Member_Name = rsBDays("M_NAME")
                Member_ID = rsBDays("MEMBER_ID")
                Member_DOB = rsBDays("M_DOB")

                if Mid(Member_DOB, 5, 4) = DoubleNum(Month(dateCursor)) & DoubleNum(Day(dateCursor)) then
                    blnBDay = TRUE

                    Response.Write  "<font size=" & strDefaultFontSize & " color=" & strForumFontColor & ">" 

                    if CurrentDay <> dateCursor then
                        CurrentDay = dateCursor
                        Response.Write "<p><a href=""cal.asp?date=" & dateCursor & "&BDays"">"& getCurrentIcon(strCalIconBDay, strCalBDay, "") & "</a>" & " Birthday(s): "
                    end if
                     Response.Write  "<div class=""cal_listitem"">" & ProfileLink(Member_Name, Member_ID) & " (" & DateDiff("yyyy", DOBToDate(Member_DOB), dateCursor) & ")</div>"
                    Response.Write  "</font>" 

                rsBDays.Movenext

                end if
            end if
        Loop While blnBDay = TRUE
    end if


Cal_style.asp: for class=""cal_listitem""
.cal_listitem
	{display: list-item; list-style: square inside; margin:0px; padding:0px; color: <%= strForumFontColor %>}


Thank you in advance
andy<

leatherlips
Senior Member

USA
1838 Posts

Posted - 02 May 2008 :  21:51:25  Show Profile  Visit leatherlips's Homepage
I got it to be partially what you are asking for.

I can't figure out how to get the bullet to appear though.

Try this:

In cal_style.asp on line 22 change the parts in red to the parts in green:

{display: list-item; list-style: square inside; margin:0px; padding:0px; color: <%= strForumFontColor %>}
To

{display: inline; list-style: square inside; margin:0px; padding-right:10px; color: <%= strForumFontColor %>}

You will want to be careful though. What ever you do with this section will also effect the other bulleted lists in the calendar as in the Recent and Upcoming Events. You may therefore want to create a new class style called .cal_birthday and then use the code above. You will then need to find all of the .cal_listitem spots in cal.asp that affect the birthday list only and replace it with your .calbirthday class. I think there are two spots, lines 288 and 591.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 02 May 2008 22:16:08
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 03 May 2008 :  02:40:24  Show Profile
Thank you for the starter for ten, 'I have started so I will finish' !!

Regarding the additional bullet, the code I have used is:

cal.asp line 591
Response.Write "<class=""cal_listline"">" & " • " & ProfileLink(Member_Name, Member_ID) & "" & ""

You may notice the div tag's have been removed, this brings the list inline with the Birthday(s):
Birthday(s): • mariam55 • catherine • andyhumm • webmaster

Cal_style.asp - added new line after .cal_listitem
.cal_listitem
{display: list-item; list-style: square inside; margin:0px; padding:0px; color: <%= strForumFontColor %>}
.cal_listline
{display: inline; list-style: square inside; margin: 0px; padding-right:2px; color: <%= strForumFontColor %>}



P.S.
If you want the other bullets to be a circle ie in upcoming and recent events, plus month view (kept as vertical listing)
Cal_Style.asp
Line 25
Amend to read
.cal_listitem
{display: list-item; list-style: star inside; margin:0px; padding:0px; color: <%= strForumFontColor %>}

We got there!
<

Edited by - Andy Humm on 03 May 2008 03:39:46
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 03 May 2008 :  08:34:44  Show Profile  Visit leatherlips's Homepage
I'm going to probably keep mine in vertical view. But like you said, you can change the bullet style from square to either disc or circle.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07