[MOD DB] 2.0.6-2.0.4 : Topic calendar v 1.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Sep 20, 2003 1:46 am

idem. Only the variable list are external to this : the var displayed at the bottom is surrounded by a <span> class definition in the topic list box, and the input buttons or select drop down list are using standard phpBB classes, as done in many phpBB progs.

BrianHull
Registered User
Posts: 4
Joined: Thu Sep 18, 2003 2:33 pm

I really need help....

Post by BrianHull » Sat Sep 20, 2003 2:56 pm

I tried to install Topic Calendar on my forum. Here's the error I'm getting when I try to read or post a message....
I have no idea what I did wrong. I followed the directions explicitly. Can someone help me out? I left the edited files on my site, so you can see what's going on. www.brianhullphotography.com/forum

Thanks in advance. Brian

Code: Select all

General Error 
  
Could not obtain topic information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near '/-- fin mod : calendar ---------------------------------------------------------' at line 2

SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, t.topic_first_post_id, t.topic_calendar_time, t.topic_calendar_duration, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments //-- fin mod : calendar ---------------------------------------------------------------------------- FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 5 AND f.forum_id = t.forum_id 

Line : 160
File : /home/.dacia/brianhul/brianhullphotography.com/forum/viewtopic.php 


[edit=netclectic] huge block of code removed

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Sep 20, 2003 4:25 pm

Posting long code has only one result, upseting me as it makes the page unreadable :evil: . Thanks to remove it.

BrianHull
Registered User
Posts: 4
Joined: Thu Sep 18, 2003 2:33 pm

I'm sorry about that.

Post by BrianHull » Mon Sep 22, 2003 11:11 pm

I'm sorry about that. Someone asked me about the code, and I had no idea what part they were referring to.
Won't happen again.

Brian

User avatar
Haywood Jahelpme
Registered User
Posts: 475
Joined: Wed Oct 23, 2002 9:16 am
Location: San Diego
Contact:

Re: I'm sorry about that.

Post by Haywood Jahelpme » Tue Sep 23, 2003 3:37 am

BrianHull wrote: I'm sorry about that. Someone asked me about the code, and I had no idea what part they were referring to.
Won't happen again.

Brian
FYI: It's always best to post a link to the .txt version of the file. Unless they specifically ask for a section from there... That way you upset no one and they can easily see your code. :wink:

g-funk
Registered User
Posts: 34
Joined: Tue Sep 09, 2003 5:58 pm

Post by g-funk » Wed Sep 24, 2003 6:52 am

Hi Again

Ive been playing around with the big calendar again since I did not like it how the popups that are at the bottom of the screen would pop up under the mouse and start flickering. So I found a way to make the popup jump over the crusor if it would overflow out of the screen :idea:

In line 41

Code: Select all

    y = overFlowY > 0 ? y - overFlowY : y;
ive changed it to

Code: Select all

    y = overFlowY > 0 ? (y - overFlowY - renderedHeight + 15 ) : y;

Byte
G-Funk

g-funk
Registered User
Posts: 34
Joined: Tue Sep 09, 2003 5:58 pm

Post by g-funk » Thu Sep 25, 2003 2:20 pm

Hi.

I seem to have a problem with posting dates that spann for more than 1 day.

I make a new post and give it a date and add that it goes on for 3 days.
Then I hit preview and the days are only 2. if I hit preview again it subtracts another day.

Byte
G-Funk

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Thu Sep 25, 2003 3:05 pm

The first substraction of one day is normal : the limit dates are included. The second is less : I will investigate this.

[MT] Sheik deVega
Registered User
Posts: 3
Joined: Thu Sep 25, 2003 10:06 pm

Recurring Events?

Post by [MT] Sheik deVega » Thu Sep 25, 2003 10:10 pm

Is it possible to create a recurring event using this Calendar mod? For example, create an event that occurs every Friday evening each week, an event that occurs once a month on Tuesdays, or annually such as a birthday or anniversary? All I'm seeing so far are individual days, or an uninterrupted block of days...

Otherwise, this looks bloody fantastic! Very much looking forward to using this mod. Thanks for all your hard work, Ptirhiik, and those of you helping him code!
Image

PhilippT
Registered User
Posts: 419
Joined: Mon May 06, 2002 5:59 pm

Post by PhilippT » Sat Sep 27, 2003 5:23 pm

I hunt my page into the HTML Toolbox from netmechanic

and this what it say's to the calendar_box

Code: Select all

0193:<script language="Javascript" type="text/javascript"> 
0194:<!-- 
0195:var agt = navigator.userAgent.toLowerCase(); 
0196:var originalFirstChild; 
0197: 
0198:function createTitle(which, string, x, y) 
0199:{ 
0200:  // record the original first child (protection when deleting) 
0201:  if (typeof(originalFirstChild) == 'undefined') 
0202: { 
0203:  originalFirstChild = document.body.firstChild; 
0204:  } 
0205: 
0206:  x = document.all ? (event.clientX + document.body.scrollLeft) : x; 
0207:  y = document.all ? (event.clientY + document.body.scrollTop) : y; 
0208:  element = document.createElement('div'); 
0209:  element.style.position = 'absolute'; 
0210:  element.style.zIndex = 1000; 
0211:  element.style.visibility = 'hidden'; 
0212:  if (document.all) 
0213: { 
0214:  element.style.width = '200px'; 
0215:  excessWidth = 50; 
0216:  excessHeight = 20; 
0217:  } 
0218:  else 
0219: { 
0220:  excessWidth = 0; 
0221:  excessHeight = 20; 
0222:  } 
0223:  element.innerHTML = '<div class="bodyline"><table width="300" cellspacing="0" cellpadding="0" border="0"><tr><td><table width="100%"><tr><td><span class="gen">' + string + '</sp[40]^an[41]^></[42]^td[43]^></[44]^tr[45]^></tab[46]^le[47]^></[48]^td[49]^></[50]^tr[51]^></tab[52]^le[53]^></d[54]^iv>';
----:[40]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[40]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[40]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[41]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[41]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[41]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[42]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[42]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[42]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[43]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[43]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[43]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[44]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[44]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[44]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[45]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[45]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[45]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[46]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[46]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[46]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[47]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[47]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[47]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[48]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[48]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[48]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[49]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[49]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[49]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[50]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[50]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[50]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[51]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[51]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[51]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[52]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[52]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[52]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[53]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[53]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[53]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
----:[54]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[54]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[54]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
0224:  renderedElement = document.body.insertBefore(element, document.body.firstChild); 
0225:  renderedWidth = renderedElement.offsetWidth; 
0226:  renderedHeight = renderedElement.offsetHeight; 
0227:  // fix overflowing off the right side of the screen 
0228:  overFlowX = x + renderedWidth + excessWidth - document.body.offsetWidth; 
0229:  x = overFlowX > 0 ? x - overFlowX : x; 
0230:  // fix overflowing off the bottom of the screen 
0231:  overFlowY = y + renderedHeight + excessHeight - window.innerHeight - window.pageYOffset; 
0232:  y = overFlowY > 0 ? y - overFlowY : y; 
0233:  renderedElement.style.top = (y + 15) + 'px'; 
0234:  renderedElement.style.left = (x + 15) + 'px'; 
0235:  // windows versions of mozilla are like too fast here...we have to slow it down 
0236:  if (agt.indexOf('gecko') != -1 && agt.indexOf('win') != -1) 
0237: { 
0238:  setTimeout("renderedElement.style.visibility = 'visible'", 1); 
0239:  } 
0240:  else 
0241: { 
0242:  renderedElement.style.visibility = 'visible'; 
0243:  } 
0244:} 
0245: 
0246:function destroyTitle() 
0247:{ 
0248:  // make sure we don't delete the actual page contents (javascript can get out of alignment) 
0249:  if (document.body.firstChild != originalFirstChild) 
0250: { 
0251:  document.body.removeChild(document.body.firstChild); 
0252:  } 
0253:} 
0254://--> 
0255:</script[55]^> 
----:[55]^Warning: '<' + '/' + letter NOT allowed in script. 
----:[55]^Hint: use '\' to escape the '/' character for end tag embedded in script. 
----:[55]^Repair: replacing '</' with '<\/' for end tag embedded in script. 
i yust want to tell you, really dont understand but maybe youn use this information

ThE DrAgOn'S
Registered User
Posts: 376
Joined: Mon Dec 23, 2002 8:56 pm
Location: israel
Contact:

Post by ThE DrAgOn'S » Sun Sep 28, 2003 11:22 am

man i just love your mods .. but to bad thy all very long txt files just when i see the txt file i give up .. when i try useing easy mod
wont work so i jut give up :cry: any way keep giveing those good mod's :wink:

Frold
Registered User
Posts: 447
Joined: Sat Nov 02, 2002 8:19 am

Re: Recurring Events?

Post by Frold » Sun Sep 28, 2003 2:52 pm

[MT] Sheik deVega wrote: Is it possible to create a recurring event using this Calendar mod? For example, create an event that occurs every Friday evening each week, an event that occurs once a month on Tuesdays, or annually such as a birthday or anniversary? All I'm seeing so far are individual days, or an uninterrupted block of days...

Otherwise, this looks bloody fantastic! Very much looking forward to using this mod. Thanks for all your hard work, Ptirhiik, and those of you helping him code!


Ptirhiik - RPGnet-fr >> are you planing this ?

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sun Sep 28, 2003 3:03 pm

Not for the v 1, and probably not for this mod. I found this kind of function pretty useless and quite annoying while using mycalendar, so I decided not to get this one. A better approach is IMHO to have the ability to duplicate topics, which is not really something to deal within this mod :).

PhilippT
Registered User
Posts: 419
Joined: Mon May 06, 2002 5:59 pm

Post by PhilippT » Sun Sep 28, 2003 3:11 pm

im sorry to interuppt you Ptirhiik - RPGnet-fr but have you any ideas what the HTML Toolbox mean ?
(i am 90% shure that this is from the calendar box in the overall header but i really dont understand it)

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sun Sep 28, 2003 3:29 pm

> Philipt : your tool didn't recognize the code it mentioned wasn't part of the javascript instructions but the content of a var. Each tools reach its limits one day or another : here you've found one for this tool ;).

Locked

Return to “[2.0.x] MODs in Development”