The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 4 of 4

Thread: Need help embedding calendar using PHP

  1. #1

    Need help embedding calendar using PHP

    Hey there,

    I posted this same question over in the FlashMX forum but am realizing that maybe it's not the place to post this...I would really appreciate any help I can get:

    I recently purchased a Flash/PHP calendar script from www.phpjabbers.com/web-calendar. The way it works is that it has a .swf and 2 PHP files. The changes to the calendar are made from a web-based admin site that is set up by one of the PHP files namely "calendar-admin.php". It works perfectly on the html sites that I've used it on. However, when I try to incorporate it into my Flash site, it's not exactly coming up roses. I have to admit, too, that I'm not PHP educated.

    First, I tried just using loadMovie to load the external .swf. All that happens is a skeleton of the calendar shows up.

    The way that the admin site is set up is it has 3 pages: the settings page, the data page (where appointments and such are added to the calendar), and the html code page which gives the code that is pasted into an html document. Below is the html code for my calendar:
    Code:
     
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub...ersion=8,0,0,0" width="500" height="417" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="calendar.swf?link=calendar-data.php&cid=2&owner=phpjabbers.com" /><param name="quality" value="high" />
    <param name="bgcolor" value="#FFFFFF" />
    <embed src="calendar.swf?link=calendar-data.php&cid=2&owner=phpjabbers.com" quality="high" bgcolor="#FFFFFF" width="500" height="417" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    So I came up with another way to embed the calendar into my flash site. I inserted this code:

    Code:
     
    loadVariables("calendar.swf?link=calendar-data.php&cid=2&owner=phpjabbers.com","cal_MC");
    This actually almost works, however, the size comes up as 180px by 150px when the calendar should be 500px by 417px. The calendar.swf is actually the smaller dimensions above, but the admin site changes this in the html code. So my question is, how do I fix it? I really have no clue here as to why it's doing this. Should I be approaching it in a different way?

    I would appreciate any help I get can with this. The people who designed the script said they only support customers who use it with html but did say that other customers have been able to get it to work using loadMovie. HELP!! I so want this work on my photography site in order for clients to see my availability.

    Thanks in advance to anyone that can help me out.
    Jen H.

    P.S. I use FlashMX.

  2. #2
    Anyone? Please?

  3. #3
    You'll need to set:
    Code:
    cal_MC._width = 500;
    cal_MC._height = 417;
    That should work, or am I misunderstanding you?
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  4. #4
    Like I said, my knowledge is limited in this area, so I don't know if that's the remedy. I'll try it though and let you know. Thanks a bunch!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012