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
 Event Calendar and Birthday Link
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

leatherlips
Senior Member

USA
1838 Posts

Posted - 01 May 2008 :  11:01:00  Show Profile  Visit leatherlips's Homepage
In the events calendar in the month view you may see a birthday icon indicating a birthday. If you hover over the icon it is supposed to be a link to that day. There is also an anchor called #BDays added to the end of the URL to take you to the birthday section of the page. However, it does not work. Somewhere in the code the #BDays is not being defined or something. Here are the sections of code in cal.asp that sets up the link.

Response.Write  "<p>" & getCurrentIcon(strCalIconBDay,"","vAlign=""midle""") & _
                        " <a name=""#BDays""><font size=" & strDefaultFontSize & " color=" & strForumFontColor & ">" & _
                        "<b>Birthdays:</b></a>"

*************************************************

if DOB = DoubleNum(Month(dateCursor)) & DoubleNum(Day(dateCursor)) then
                        Response.Write "<a href=""?date=" & dateCursor & "#BDays"">" & getCurrentIcon(strCalIconBDay, strCalBDay,"") & "</a>"


Anyone know how to get the link to actually work when you click on the birthday icon? I've tried adding the # in the code above (shown in red) but it does not work either.

You can view this page to see what I mean. You'll see the birthday icon on January 16.<

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 01 May 2008 11:08:29

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 01 May 2008 :  11:21:39  Show Profile
I noticed if you hover over the birthday icon it gives the url link plus #BDays, but the date link 16th has not a # on the end and works.. Not having the Birthday incorporated try taking the #Bdays out of last line and the # out at red code
ie
Response.Write  "<p>" & getCurrentIcon(strCalIconBDay,"","vAlign=""midle""") & _
                        " <a name=""BDays""><font size=" & strDefaultFontSize & " color=" & strForumFontColor & ">" & _
                        "<b>Birthdays:</b></a>"

*************************************************

if DOB = DoubleNum(Month(dateCursor)) & DoubleNum(Day(dateCursor)) then
                        Response.Write "<a href=""?date=" & dateCursor & """>"


worth a try, I have not tested it sorry..(backup file first)
Andy

<

Edited by - Andy Humm on 01 May 2008 12:13:45
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 01 May 2008 :  11:28:34  Show Profile  Visit leatherlips's Homepage
The red # in my code above was not in the original code. I tried it with and without. You code will cause the icon to work like the date link (16). The icon is supposed to take you further down the page to where the birthdays start. This is the link the icon points to, but does not actually take you to:

http://www.mangionemagic.com/forum/cal.asp?date=1/16/2008#BDays

The link itself works but not by clicking the icon.<

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

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 01 May 2008 :  11:50:41  Show Profile
You've forgotten the script name (cal.asp) in your link, it's just a querystring at the moment. Also, try adding an ampersand (&) before the hash (#).

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 01 May 2008 :  13:27:46  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by Shaggy

You've forgotten the script name (cal.asp) in your link, it's just a querystring at the moment. Also, try adding an ampersand (&) before the hash (#).

Sounds simple enough, but how exactly to you name the cal in the script? <

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

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 01 May 2008 :  13:40:53  Show Profile
This is the problem line, it needs cal.asp before the ?:
Response.Write "<a href=""cal.asp?date=" & dateCursor & "#BDays"">" & getCurrentIcon(strCalIconBDay, strCalBDay,"") & "</a>"
<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 01 May 2008 :  14:14:06  Show Profile  Visit leatherlips's Homepage
Shaggy, I thought that was what you meant and I actually tried that but it did not work. What I don't understand is if you hover over the icon the link it wants to go to is correct. It just won't "click" and take you to it.<

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

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 01 May 2008 :  14:28:27  Show Profile
I have also tried this code [Shaggy's] and still experience the same symptoms as Leatherlips.
When you hover the mouse over the birthday icon you get http://www.domain.com/forum/cal.asp?date=1/16/2008#BDays in the browser status window, and the mouse pointer changes to a hand, indicating that the hyperlink looks alright.

However, when you click on the icon, nothing happens.

Even before I put the cal.asp before the ?date= I still had the browser status window showing a full link to http://www.domain.com/forum/cal.asp?date=1/16/2008#BDays

From leatherlips' quoted link above it does direct you to the date and drop down to the birthday listing. But the icon will not here.
Puzzled?

This is the current code for the cell

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

            'if there is a birthday for this date then show the BDay icon
            if blnCalShowBDays then
                if NOT rsBDays.EOF then
                    DOB = rsBDays("DOB")
                    if DOB = DoubleNum(Month(dateCursor)) & DoubleNum(Day(dateCursor)) then
                       Response.Write "<a href=""?date=" & dateCursor & "#BDays"">" & getCurrentIcon(strCalIconBDay, strCalBDay,"") & "</a>" 
                        rsBDays.Movenext
                    end if
                end if
            end if

            Response.Write  "</td><td align=right>" 


            'Day of the month
            Response.Write  _
				"<a href=""?date=" & dateCursor & """ style=""text-decoration:none;"">" & Day(dateCursor) & "</a>" & _
                "</td></tr></table>" 
<

Edited by - Andy Humm on 01 May 2008 14:29:28
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 01 May 2008 :  14:38:12  Show Profile
Further to above if you hover over the birthday icon, right click and copy shortcut, then paste this link in the browser address, it will open the desired birthday event and drop down to the birthday listing of the day. So I believe the link seems to be generated.
?????????<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 02 May 2008 :  04:31:33  Show Profile
quote:
Originally posted by Shaggy
Also, try adding an ampersand (&) before the hash (#).
<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 02 May 2008 :  04:41:08  Show Profile
Further to my last and yours [Shaggy], if you hover over the birthday icon, right click and copy shortcut, then paste this link in the browser address, it will open the desired birthday event and drop down to the birthday listing of the day. So I believe the link seems to be generated (or shown in the browser status window) but on the /cal.asp?view=monthly the icon link it still does not work.
?????????<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 02 May 2008 :  15:16:19  Show Profile  Visit leatherlips's Homepage
Sorry Shaggy, but it will not work.

Does anyone have the events calendar mod working where the birhtday icon on the month view works when clicked? If so, could you please post lines 278 and 840 in your cal.asp page? I'd like to compare with what I have.

Thanks.<

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

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 May 2008 :  15:33:13  Show Profile
Change it and line 588 to:
                                                Response.Write "<p><a href=""cal.asp?date=" & dateCursor & "&BDays"">"& getCurrentIcon(strCalIconBDay, strCalBDay, "") & "</a>" & " <b>Birthdays:</b>"


Don't bother with 278/279; it's the same view.<

Edited by - Carefree on 02 May 2008 15:38:28
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 02 May 2008 :  15:42:42  Show Profile  Visit leatherlips's Homepage
Carefree,

That almost works. The link will now at least work but it does not anchor down the page to where the birhtdays start. Shaggy mentions putting the & before the # but that does not do anything either. Perhaps I am putting the & in the wrong place.

In your code you removed the # and replaced it with the &.

Also I now notice that there is no need to add the cal.asp in the code either. Replaceing the # with the & works regardless (except for the anchor part).<

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 15:47:57
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 May 2008 :  18:41:12  Show Profile
Yeah, there's no requirement to specify a target document, if the target is left blank, it defaults to itself. There's an issue with the anchoring tag @ 278; no configuration (ID vs Name, etc.) seems to resolve it.<
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 02 May 2008 :  20:54:08  Show Profile  Visit leatherlips's Homepage
I see the the icons do work correctly on www.coincommunity.com/forum. Perhaps bobby131313 could let us know how he got his to work? <

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 20:54:59
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07