Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  Next/Last Month broken in calendar
Users Browsing Forum
No Members and 1 Guests

Next/Last Month broken in calendar  This thread currently has 1,594 views. Print
2 Pages 1 2 » Recommend Thread
twoclones
December 30, 2005, 12:56pm Report to Moderator Report to Moderator

There is nothing which Everyone Knows.
Posts: 152
Gender: Male
Posts Per Day: 0.09
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 22 hours 19 minutes
Location: The Honest Washington.
In prior versions of eblah, the small Next Month and Last Month calendars to the right of the current month display have included links to those months.  See the 8.3 version at http://www.greatgoats.com/cgi-bin/Blah/Blah.pl?,v=cal for a working example.  Click  on the name of a month to move to that months calendar...

When I upgraded boards to 9.6 this link stopped working.  


Life is a,
Butch
{if you're lucky}
Logged Offline
Site Site Private Message Private message
Justin
December 30, 2005, 2:56pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,000
Gender: Male
Posts Per Day: 6.79
Reputation: 93.38%
Reputation Score: +296 / -21
Time Online: 36 days 16 hours 47 minutes
Location: Tallassee, AL
Age: 21
Yep.  These were removed because it puts bots (ie: Google bot) into a frenzy.  


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 17
Martin
December 30, 2005, 3:31pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,491
Gender: Male
Posts Per Day: 3.33
Reputation: 98.57%
Reputation Score: +207 / -3
Time Online: 35 days 9 hours 55 minutes
Location: UK
Age: 49
Quoted from admin
Yep.  These were removed because it puts bots (ie: Google bot) into a frenzy.  


But I do have a mod to put it back but it's down to the individual, no come back.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 2 - 17
twoclones
December 30, 2005, 5:01pm Report to Moderator Report to Moderator

There is nothing which Everyone Knows.
Posts: 152
Gender: Male
Posts Per Day: 0.09
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 22 hours 19 minutes
Location: The Honest Washington.
Quoted Text
it puts bots (ie: Google bot) into a frenzy


I am interested to know why the bots have trouble with this...  Is it simply a matter of how deeply nested the links can appear when linking through the years one month at a time?


Life is a,
Butch
{if you're lucky}
Logged Offline
Site Site Private Message Private message Reply: 3 - 17
JonN
January 2, 2006, 6:05am Report to Moderator Report to Moderator
E-Blah Member
Posts: 7
Posts Per Day: 0.01
Time Online: 4 hours 6 minutes
Quoted from Warlock


But I do have a mod to put it back but it's down to the individual, no come back.


Okay Martin, so what is the mod to put it back in please?  I for one would love to have this feature back again.

I can see that the next month / last month links could cause problems for the bots.  I haven't figured out exactly how as yet, but there should be a way of preventing the bots from traversing the calendar.  My knowledge of Robots.txt is limited, but is there a way of preventing indexing of particular files, rather than directories??  

Many thanks
Logged Offline
Private Message Private message Reply: 4 - 17
Martin
January 2, 2006, 6:21am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,491
Gender: Male
Posts Per Day: 3.33
Reputation: 98.57%
Reputation Score: +207 / -3
Time Online: 35 days 9 hours 55 minutes
Location: UK
Age: 49
I've emailed it to you.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 5 - 17
JonN
January 2, 2006, 6:24am Report to Moderator Report to Moderator
E-Blah Member
Posts: 7
Posts Per Day: 0.01
Time Online: 4 hours 6 minutes
Ok Martin, I've figured what to change in calendar.pl so as to put back in the links.

Probably more than necessary, but in the sub routine SimpleCalendar, I've changed the following,

Code

Replace:
<tr>
  <td colspan="8" class="titlebg"><table cellpadding="0" cellspacing="0" width="100%"><tr><td class="titlebgtext"><b>$months[$tempmonth] $thisyear</b></td><td align="right" class="titlebgtext"><span class="smalltext">$toptitle</span></td></tr></table></td>
</tr><tr>
  <td class="catbg" width="13">&nbsp;</td>

with:
<tr>
  <td colspan="8" class="titlebg"><table cellpadding="0" cellspacing="0" width="100%"><tr><td class="titlebgtext"><b><a href="$scripturl,v=cal,month=$tempmonth2,year=$thisyear">$months[$tempmonth] $thisyear</a></b></td><td align="right" class="titlebgtext"><span class="smalltext">$toptitle</span></td></tr></table></td>
</tr><tr>
  <td class="catbg" width="13">&nbsp;</td>


This puts the links back in again.

Many thanks.
Logged Offline
Private Message Private message Reply: 6 - 17
Martin
January 2, 2006, 6:28am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,491
Gender: Male
Posts Per Day: 3.33
Reputation: 98.57%
Reputation Score: +207 / -3
Time Online: 35 days 9 hours 55 minutes
Location: UK
Age: 49
Code
<a href="$scripturl,v=cal,month=$tempmonth2,year=$thisyear">


This is pre 9.6 format so if you are on 9.6 then don't use it as you may get problems, use this instead:

Code
<a href="$surl\lv-cal,month-$tempmonth2,year-$thisyear">



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 7 - 17
JonN
January 2, 2006, 6:45am Report to Moderator Report to Moderator
E-Blah Member
Posts: 7
Posts Per Day: 0.01
Time Online: 4 hours 6 minutes
Hi Martin.  Thanks for that - it doesn't seem to cause any problem though.  I have replaced my mod with yours and that works too.

On a different note, I've just noticed that the red highlight for the current day appears in all months.  IE today is the 2nd and the 2nd is highlighted not only in January, but also every other month.  The eblah forum calendar exhibits the same behaviour.  A small bug??  (Actually probably better to start a new thread with this one.)

Thanks again
Logged Offline
Private Message Private message Reply: 8 - 17
Martin
January 2, 2006, 6:48am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,491
Gender: Male
Posts Per Day: 3.33
Reputation: 98.57%
Reputation Score: +207 / -3
Time Online: 35 days 9 hours 55 minutes
Location: UK
Age: 49
I don't see that, the only day highlighted when I view is today on the main calendar.


I see what you mean now, whether this is a small bug or not, I would say no as no matter what month you are looking at it will still be the 2nd day of the month.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 9 - 17
JonN
January 2, 2006, 6:55am Report to Moderator Report to Moderator
E-Blah Member
Posts: 7
Posts Per Day: 0.01
Time Online: 4 hours 6 minutes
Yes, only on the main calendar, but I'm getting the current day highlight appearing on every month I view.  

With some more testing I see that I'm only getting the highlight for all months in 2006.  2005 doesn't exhibit the same behaviour, ie the red highlight is missing (as it should be).

Try looking at http://forum.mathtech.co.uk/cgi-bin/forum/Blah.pl?v-cal/ and selecting any month in 2006, the 2nd of the month is always highlighted

Logged Offline
Private Message Private message Reply: 10 - 17
Martin
January 2, 2006, 7:10am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,491
Gender: Male
Posts Per Day: 3.33
Reputation: 98.57%
Reputation Score: +207 / -3
Time Online: 35 days 9 hours 55 minutes
Location: UK
Age: 49
I'll take a look if Justin doesn't beat me to it.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 11 - 17
JonN
January 2, 2006, 7:50am Report to Moderator Report to Moderator
E-Blah Member
Posts: 7
Posts Per Day: 0.01
Time Online: 4 hours 6 minutes
Thanks for that Martin

I've started a new thread for the highlight problem.  I also have a fix which I'll email to you direct.  Can you check please and let me know whether I've really fixed the problem and am not causing more problems.  

http://www.eblah.com/forum/m-1136208623/
Logged Offline
Private Message Private message Reply: 12 - 17
Martin
January 2, 2006, 8:15am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,491
Gender: Male
Posts Per Day: 3.33
Reputation: 98.57%
Reputation Score: +207 / -3
Time Online: 35 days 9 hours 55 minutes
Location: UK
Age: 49



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 13 - 17
Ablefish
January 11, 2006, 1:51pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 38
Gender: Male
Posts Per Day: 0.03
Time Online: 17 hours 26 minutes
Location: Vancouver, BC
Age: 36
Is this Bot Frenzy the same reason we can't click on a date and have that go to add an event for that day?  This is something that's always made the calendar feel less friendly.

And if this could be implemented somehow, it'd be great if you could click on the cell/div that holds the date, instead of the number.  


This is my signature.
Logged Offline
Private Message Private message Reply: 14 - 17
2 Pages 1 2 » Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Bugs  ›  Next/Last Month broken in calendar