1
slyss
Calendar go on top left (wrong)
  • 2006/3/30 14:18

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


i everybody, my XOOPS is 2.0.13.2

i use hack photo + profile by m0nty and i have one problem...

in new registration, when a user click on "calendar" to insert his date of birth, the calendar go on top left of site... and somatimes disappear because the page in down...

----> i want which the calendar stay near the button calendar...

see the attach.... thanks

Resized Image
[size=x-large]2008 Xoops Book[/size]

2
Lourdes
Re: Calendar go on top left (wrong)
  • 2006/3/30 20:47

  • Lourdes

  • Not too shy to talk

  • Posts: 119

  • Since: 2005/2/26


Have you tried viewing your site in Internet Explorer? The table issue may be your theme reacting different due to using Fire Fox.

3
slyss
Re: Calendar go on top left (wrong)
  • 2006/3/30 21:03

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

Lourdes wrote:
Have you tried viewing your site in Internet Explorer? The table issue may be your theme reacting different due to using Fire Fox.


in fact:

with Internet Explorer work good...
with Firefox work bad...

but in my site i use the module Pical and the button CALENDAR of pical's module work good with firefox...

why?...
[size=x-large]2008 Xoops Book[/size]

4
m0nty
Re: Calendar go on top left (wrong)
  • 2006/3/31 13:36

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


dunno.. haven't got a site to test on at mo..

could try (in dobcalendar.js):

if (this.isPopup) {
        
div.style.position "absolute";
        
div.style.display "none";
        
div.style.width "150px";
    }


change absolute to relative

5
slyss
Re: Calendar go on top left (wrong)
  • 2006/3/31 16:16

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:


change absolute to relative


hi m0nty,

if i change absolute to relative don't work... the calendar not appear.... but with pical work good...
[size=x-large]2008 Xoops Book[/size]

6
slyss
Re: Calendar go on top left (wrong)
  • 2006/3/31 16:31

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


m0nty if help you this is the code (work good) of PICAL:

<script type="text/javascript" src="http://www.stefanosnetwork.com/site/include/calendar.js"></script>
<
script type="text/javascript">
<!--
var 
calendar null;

function 
selected(caldate) {
  
cal.sel.value date;
}

function 
closeHandler(cal) {
  
cal.hide();
  
Calendar.removeEvent(document"mousedown"checkCalendar);
}

function 
checkCalendar(ev) {
  var 
el Calendar.is_ie Calendar.getElement(ev) : Calendar.getTargetElement(ev);
  for (; 
el != nullel el.parentNode)
    if (
el == calendar.element || el.tagName == "A") break;
  if (
el == null) {
    
calendar.callCloseHandler(); Calendar.stopEvent(ev);
  }
}
function 
showCalendar(id) {
  var 
el xoopsGetElementById(id);
  if (
calendar != null) {
    
calendar.hide();
  } else {
    var 
cal = new Calendar(truenullselectedcloseHandler);
    
calendar cal;
    
cal.setRange(20002015);
    
calendar.create();
  }
  
calendar.sel el;
  
calendar.parseDate(el.value);
  
calendar.showAtElement(el);
  
Calendar.addEvent(document"mousedown"checkCalendar);
  return 
false;
}

Calendar._DN = new Array
(
"Sunday",
 
"Monday",
 
"Tuesday",
 
"Wednesday",
 
"Thursday",
 
"Friday",
 
"Saturday",
 
"Sunday");
Calendar._MN = new Array
(
"January",
 
"February",
 
"March",
 
"April",
 
"May",
 
"June",
 
"July",
 
"August",
 
"September",
 
"October",
 
"November",
 
"December");

Calendar._TT = {};
Calendar._TT["TOGGLE"] = "Toggle first day of week";
Calendar._TT["PREV_YEAR"] = "Prev. year (hold for menu)";
Calendar._TT["PREV_MONTH"] = "Prev. month (hold for menu)";
Calendar._TT["GO_TODAY"] = "Go Today";
Calendar._TT["NEXT_MONTH"] = "Next month (hold for menu)";
Calendar._TT["NEXT_YEAR"] = "Next year (hold for menu)";
Calendar._TT["SEL_DATE"] = "Select date";
Calendar._TT["DRAG_TO_MOVE"] = "Drag to move";
Calendar._TT["PART_TODAY"] = "(Today)";
Calendar._TT["MON_FIRST"] = "Display Monday first";
Calendar._TT["SUN_FIRST"] = "Display Sunday first";
Calendar._TT["CLOSE"] = "Close";
Calendar._TT["TODAY"] = "Today";

// date formats
Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd";
Calendar._TT["TT_DATE_FORMAT"] = "y-mm-dd";

Calendar._TT["WK"] = "";
//-->
</script>


pical use: calendar.js and is total equal of dobcalendar.js

..... any suggestion ?
[size=x-large]2008 Xoops Book[/size]

7
slyss
Re: Calendar go on top left (wrong)
  • 2006/4/1 9:19

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


the creator of PICAL answer me this:

Though I don't check it well, it looks like a problem of CSS.

Check:
- your theme.html contains <{$xoops_module_header}>
- your style.css contains some class names as calendar.js

or
http://www.peak.ne.jp/xoops/md/xhnewbb/viewtopic.php


but i don't understand

any suggestion ?
[size=x-large]2008 Xoops Book[/size]

Login

Who's Online

147 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 147


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits