TinyPortal

Development => Support => Topic started by: delvec on April 03, 2010, 08:07:53 PM

Title: php error in articles
Post by: delvec on April 03, 2010, 08:07:53 PM
First off....
Huge thanks for all the hard work getting beta 5 out and working with SMF2  O0

But Im having an issue-http://www.tinyportal.net/Themes/tp2010/images/bbc/pre.gif
trying to get this page in an article
http://www.type1parents.org/pumppage/index.php

but when I copied the php into the article I got the following error:
Parse error: syntax error, unexpected '<' in /home/type1par/public_html/Sources/TPSubs.php(1730) : eval()'d code on line 1

Any fix around this?
Title: Re: php error in articles
Post by: IchBin on April 03, 2010, 08:11:47 PM
No reason to copy the code when you can just include the page.
include('pumpage/index.php');

If you want to copy and paste the code, you have to leave out the PHP tags.
parse error, unexpected < (http://www.tinyportal.net/index.php?topic=24769)
Title: Re: php error in articles
Post by: delvec on April 03, 2010, 08:29:30 PM
nada-
comes up blank

so I went back to the code and I didnt even have the <php tags in there in the first place
Title: Re: php error in articles
Post by: delvec on April 03, 2010, 08:34:31 PM
this is what I had in there the first time-
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />

<title>InfoGrid</title>

<link rel='stylesheet' type='text/css' href='http://www.type1parents.org/pumppage/css/style.css' />

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
    <script type='text/javascript' src=' http://www.type1parents.org/pumppage/js/infogrid.js'></script>   
</head>

<body>

<div id="page-wrap">

<div class="info-col">

    <h2>Animas<br> Ping</h2>
   
    <a class="image ping" href="http://jprart.deviantart.com/art/Batman-and-Superman-64545242">View Image</a>
   
    <dl>
      <dt>Company  Info</dt>
      <dd>Animas Corp (www.animascorp.com) <br>
(877) 937-7867<br>
West Chester, PA
</dd>
      <dt>Physical  Size & Dimensions, etc.</dt>
      <dd>Dimensions (mm)- 51 x 77 x 18<br>
Volume- 5.525 ci / 90.54 cc<br>
Weight(oz)- 3.9<br>
Reservoir Size- 200units plastic<br>
Connection- Luer Lock<br>
Screen Size- 992 sq mm<br>
Colors- blue, silver, black, pink, green.</dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals- 12 per day<br>
Basal Profiles-  4<br>
Basal Intervals- 30 minutes<br>
Basal Delivery- varies, 0.2 units per hour every 3 minutes<br>
Temp Basal- -90% to +200% in increments of 10% for 0.5 to 24 hours (30 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.05 visual or audio, 0.1, 1.0, 5.0 audio<br>
Bolus type- units or carbs: standard, extended, combination<br>
1 unit Bolus Duration- 1 or 3 second <br>
Carb and Correction Factors - yes, carb and bg values can be entered into the pump or meter-remote
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AA lithium or alkaline x 1<br>
Battery Life - 4-6 weeks with lithium, 2-4 weeks with alkaline<br>
Motor ââ,¬â€œ DC<br>
Memory- non-volatile: 500 boluses, 270 basals, 120 daily totals, 60 alarms, 60 primes, 900 bg levels<br>
Software- ezManager Max, downloads in 3 minutes with dongle and software that are available at Animas
</dd>
      <dt>Miscellaneous Info</dt>
      <dd>Water Contact- Waterproof up to 12 feet for 24 hours<p>
Features- Meter-remote offers wireless bolus calculation and delivery within 10 ft. ezCarb software stores up to 500 food items from CalorieKing database on the meter-remote. Calculator features for carbohydrates, blood glucose corrections and insulin; reminders for time of day and when to perform blood glucose checks. Pump and meter-remote are available in Spanish. PC and Mac downloads are available with ezManager Max software<p>
Guarantee- 4 years
</dd>
    </dl>

</div>

        <div class="info-col">
       
        <h2>Accu-Check Spirit</h2>
       
        <a class="image spirit" href="www.accu-chekinsulinpumps.com">View Image</a>
       
        <dl>
          <dt>Company Info</dt>
          <dd> Roche Insulin Delivery Systems Inc. (www.accu-chekinsulinpumps.com )<br>
1-800-688-4578<br>
Fishers, IN
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions (mm)- 80 x 47 x 24<br>
Volume- <br>
Weight(oz)- 2.8, 4.8 with battery full cartridge infusion set<br>
Reservoir Size- 315 units<br>
Connection- Luer Lock<br>
Screen Size- <br>
Colors- blue, white </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals- 24 hourly per day<br>
Basal Profiles-  5<br>
Basal Intervals- ?<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- 0% to +200% in increments of 10% for  15 min to 24 hours (15 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments, 0.1, 0.2, 0.5, 1.0, 2.0 (pre programmable)<br>
Bolus type-  scroll, quick, extended, multiwave<br>
1 unit Bolus Duration- 5 second <br>
Carb and Correction Factors - ?
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AA  alkaline x 1<br>
Battery Life - 4 weeks with alkaline (average)<br>
Motor ââ,¬â€œ DC<br>
Memory- non-volatile: 90 days (4,500 events); history recall of last 30 boluses, alerts, daily insulin totals, and temporary basal rate increases<br>
Software- Pocket Compass with Bolus Calculator , insulin pump configuration software, IR Communication Port </dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- Water resistant 60 minutes at 2.5 meters<p>Features- choice of standard, advanced or custom selectable user menus, icon- and menu-driven programming, backlit display, reversible display screen, 12 languages, audible or vibrating bolus confirmation and alerts.
</dd>
        </dl>
       
        </div>

<div class="info-col">

    <h2>MiniMed Paradigm</h2>
   
            <a class="image minimed" href="http://www.minimed.com">View Image</a>
   
    <dl>
              <dt>Company Info</dt>
          <dd> Medtronic (www.minimed.com/)<br>
800-933-3322<br>
Northridge, CA
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions- Model 522: 2 x 3 x 0.8 inches. (5.08 x 7.62 x 2.03 centimeters)<br>
Model 722: 2 x 3.6 x 0.8 inches. (5.08 x 9.14 x 2.03 centimeters)<br>
Volume- 522: 4.9 ci 722: 5.6 ci <br>92 cc<br>
Weight(oz)- Model 522: 3.53 ounces (100 grams).<br>
Model 722: 3.81 ounces (108 grams).<br>
Reservoir Size- 176 or 300u pl <br>
Connection- Proprietary<br>
Screen Size- 774 sq mm<br>
Colors- clear, smoke, blue, purple & pink </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals-  48 per day per profile<br>
Basal Profiles-  3<br>
Basal Intervals- Increase or decrease by % or set the insulin
pump at any rate for 30 minutes, up to 24 hours.<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- 0% to +200% in increments of 10% for  15 min to 24 hours (15 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.1 visual, 0.5 or 1.0 visual or audio, remote extra<br>
Bolus type-units or carbs  Normal, Square Wave, Dual Wave.<br>
1 unit Bolus Duration- 30 second <br>
Carb and Correction Factors - yes, manual carb, BG direct from BD meter or manual entry
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AAA for pump, A23 for remote<br>
Battery Life - 3 weeks with alkaline (average)<br>
Motor - DC<br>
Memory- 4000 events, volatile (basal & history loss can occur): 24 boluses, 7 day totals<br>
Software- Medtronic CareLink Therapy Management System and ParadigmPAL 3.0 Software at Medtronic</dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- Protects against splashes or a temporary dunk in water.<p>Features- remote, vibration, colors, backlight, extended bolus, auto off, Blood Glucose Testing Reminders, Bolus WizardÃ,® Calculator</dd>    </dl>

</div>

<div class="info-col">

    <h2>Insulet<br> Omnipod</h2>
   
            <a class="image omni" href="www.myomnipod.com">View Image</a>
   
    <dl>
        <dt>Company Info</dt>
          <dd> Insulet (www.myomnipod.com)</br>
781-457-5000<br>
Bedford, MA
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions (mm)- pod: 41x61x18 pda: 66x110x26<br>
Volume- Pod: 2.7 ci PDA: 11.5 ci<br>
Weight (oz)- Pod: 1.2 oz (full res.) PDM: 4.0 oz (w/ batteries)<br>
Reservoir Size- 200 units <br>
Connection- Built in<br>
Screen Size- 1,848 sq mm on PDA controller<br>
Colors- white </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.05 u u/hr, up to 30 u/hr<br>
Total Basals-  48 per day<br>
Basal Profiles-  7<br>
Basal Intervals- ?<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- % or u/hr (1-12 hrs, in 30 min increments) <br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.05, 0.1, 0.5, 1.0u<br>
Bolus type-Meal, correction, meal & correction; normal, extended, combination<br>
1 unit Bolus Duration- 40 second <br>
Carb and Correction Factors - yes
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AAA for pump x2 for PDA<br>
Battery Life - 4 weeks (average)<br>
Motor ââ,¬â€œ stepper<br>
Memory- 90 days of data (up to 5400 records)<br>
Software- none</dd>
      <dt>Miscellaneous Info</dt>          <dd> backlight, reminders & alerts, child lock, integrated Freestyle meter, 1000 common foods in PDA, Tubeless</dd>    </dl>

</div>

<div class="info-col">

    <h2>Nipro<br>Amigo</h2>
   
            <a class="image amigo" href="http://www.niprodiabetes.com">View Image</a>
   
    <dl>
    <dt>Company Info</dt>
          <dd> Nipro Diabetes Systems (www.niprodiabetes.com)</br>
888-651-7867<br>
Miramar, FL
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions - 3.28 x 2.18 x 0.93 inches<br>
Volume- ?<br>
Weight (oz)- 3.4 <br>
Reservoir Size- 300 units plastic <br>
Connection- ?<br>
Screen Size-?<br>
Colors- solar, midnight, grape, pacific, flamingo, snow </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.05 u <br>
Total Basals-  48 per profile<br>
Basal Profiles-  4<br>
Basal Intervals- 15 minutes<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- Either as a rate in U/h (15 minutes to 24 hours in 15-minute increments) or as a percent of active profile (10-200% in 10% steps)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.10 to 5.00 U, in 0.10 U steps<br>
Bolus type-0.10 to 5.00 U, in 0.10 U steps<br>
1 unit Bolus Duration- ? <br>
Carb and Correction Factors - If enabled, calculates bolus based on inputted physician parameters including insulin-to-carbohydrate ratio, insulin sensitivity factor, insulin on board, and blood glucose target
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- CR2<br>
Battery Life - 4 weeks (average)<br>
Motor ââ,¬â€œ DC<br>
Memory- 90 days on screen and stores 1 year of history, even in the absence of a battery<br>
Software- ?</dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- watertight 1 meter for 35 minutes<br> Features- backlight, If locked, prevents inadvertent button presses. If on, audible and/or vibration feedback for button presses </dd>    </dl>

</div>

</div>


</body>

</html>


and of course your suggestion-
include('/pumppage/index.php');
Title: Re: php error in articles
Post by: Xarcell on April 03, 2010, 08:37:58 PM
Comes up blank here too Ich.

include('http://inspireromance.com/scripts/php-files/body_percentiles_infants.htm');

That's what I tried using...
Title: Re: php error in articles
Post by: IchBin on April 03, 2010, 08:41:48 PM
I didn't tell you to use the slash at the beginning of your path. If you decide to include a file, you must also make sure your file is able to include the files it needs if it's path is relative. For instance your code may have a link to a CSS file in your file that you include that looks something like this:
<link rel='stylesheet' type='text/css' href='css/style.css' />

If you're file is in a directory called script, then you'll need to change the links in your included file to use the new relative path.
<link rel='stylesheet' type='text/css' href='scripts/css/style.css' />

Title: Re: php error in articles
Post by: Xarcell on April 03, 2010, 08:42:09 PM
@ delvec

Your code is HTML, not PHP. Try switching your article to HTML.

Also, you don't use the header and body stuff in an article. use this:
<div id="page-wrap">

<div class="info-col">

    <h2>Animas<br> Ping</h2>
   
    <a class="image ping" href="http://jprart.deviantart.com/art/Batman-and-Superman-64545242">View Image</a>
   
    <dl>
      <dt>Company  Info</dt>
      <dd>Animas Corp (www.animascorp.com) <br>
(877) 937-7867<br>
West Chester, PA
</dd>
      <dt>Physical  Size & Dimensions, etc.</dt>
      <dd>Dimensions (mm)- 51 x 77 x 18<br>
Volume- 5.525 ci / 90.54 cc<br>
Weight(oz)- 3.9<br>
Reservoir Size- 200units plastic<br>
Connection- Luer Lock<br>
Screen Size- 992 sq mm<br>
Colors- blue, silver, black, pink, green.</dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals- 12 per day<br>
Basal Profiles-  4<br>
Basal Intervals- 30 minutes<br>
Basal Delivery- varies, 0.2 units per hour every 3 minutes<br>
Temp Basal- -90% to +200% in increments of 10% for 0.5 to 24 hours (30 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.05 visual or audio, 0.1, 1.0, 5.0 audio<br>
Bolus type- units or carbs: standard, extended, combination<br>
1 unit Bolus Duration- 1 or 3 second <br>
Carb and Correction Factors - yes, carb and bg values can be entered into the pump or meter-remote
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AA lithium or alkaline x 1<br>
Battery Life - 4-6 weeks with lithium, 2-4 weeks with alkaline<br>
Motor ââ,¬â€œ DC<br>
Memory- non-volatile: 500 boluses, 270 basals, 120 daily totals, 60 alarms, 60 primes, 900 bg levels<br>
Software- ezManager Max, downloads in 3 minutes with dongle and software that are available at Animas
</dd>
      <dt>Miscellaneous Info</dt>
      <dd>Water Contact- Waterproof up to 12 feet for 24 hours<p>
Features- Meter-remote offers wireless bolus calculation and delivery within 10 ft. ezCarb software stores up to 500 food items from CalorieKing database on the meter-remote. Calculator features for carbohydrates, blood glucose corrections and insulin; reminders for time of day and when to perform blood glucose checks. Pump and meter-remote are available in Spanish. PC and Mac downloads are available with ezManager Max software<p>
Guarantee- 4 years
</dd>
    </dl>

</div>

        <div class="info-col">
       
        <h2>Accu-Check Spirit</h2>
       
        <a class="image spirit" href="www.accu-chekinsulinpumps.com">View Image</a>
       
        <dl>
          <dt>Company Info</dt>
          <dd> Roche Insulin Delivery Systems Inc. (www.accu-chekinsulinpumps.com )<br>
1-800-688-4578<br>
Fishers, IN
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions (mm)- 80 x 47 x 24<br>
Volume- <br>
Weight(oz)- 2.8, 4.8 with battery full cartridge infusion set<br>
Reservoir Size- 315 units<br>
Connection- Luer Lock<br>
Screen Size- <br>
Colors- blue, white </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals- 24 hourly per day<br>
Basal Profiles-  5<br>
Basal Intervals- ?<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- 0% to +200% in increments of 10% for  15 min to 24 hours (15 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments, 0.1, 0.2, 0.5, 1.0, 2.0 (pre programmable)<br>
Bolus type-  scroll, quick, extended, multiwave<br>
1 unit Bolus Duration- 5 second <br>
Carb and Correction Factors - ?
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AA  alkaline x 1<br>
Battery Life - 4 weeks with alkaline (average)<br>
Motor ââ,¬â€œ DC<br>
Memory- non-volatile: 90 days (4,500 events); history recall of last 30 boluses, alerts, daily insulin totals, and temporary basal rate increases<br>
Software- Pocket Compass with Bolus Calculator , insulin pump configuration software, IR Communication Port </dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- Water resistant 60 minutes at 2.5 meters<p>Features- choice of standard, advanced or custom selectable user menus, icon- and menu-driven programming, backlit display, reversible display screen, 12 languages, audible or vibrating bolus confirmation and alerts.
</dd>
        </dl>
       
        </div>

<div class="info-col">

    <h2>MiniMed Paradigm</h2>
   
            <a class="image minimed" href="http://www.minimed.com">View Image</a>
   
    <dl>
              <dt>Company Info</dt>
          <dd> Medtronic (www.minimed.com/)<br>
800-933-3322<br>
Northridge, CA
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions- Model 522: 2 x 3 x 0.8 inches. (5.08 x 7.62 x 2.03 centimeters)<br>
Model 722: 2 x 3.6 x 0.8 inches. (5.08 x 9.14 x 2.03 centimeters)<br>
Volume- 522: 4.9 ci 722: 5.6 ci <br>92 cc<br>
Weight(oz)- Model 522: 3.53 ounces (100 grams).<br>
Model 722: 3.81 ounces (108 grams).<br>
Reservoir Size- 176 or 300u pl <br>
Connection- Proprietary<br>
Screen Size- 774 sq mm<br>
Colors- clear, smoke, blue, purple & pink </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals-  48 per day per profile<br>
Basal Profiles-  3<br>
Basal Intervals- Increase or decrease by % or set the insulin
pump at any rate for 30 minutes, up to 24 hours.<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- 0% to +200% in increments of 10% for  15 min to 24 hours (15 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.1 visual, 0.5 or 1.0 visual or audio, remote extra<br>
Bolus type-units or carbs  Normal, Square Wave, Dual Wave.<br>
1 unit Bolus Duration- 30 second <br>
Carb and Correction Factors - yes, manual carb, BG direct from BD meter or manual entry
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AAA for pump, A23 for remote<br>
Battery Life - 3 weeks with alkaline (average)<br>
Motor - DC<br>
Memory- 4000 events, volatile (basal & history loss can occur): 24 boluses, 7 day totals<br>
Software- Medtronic CareLink Therapy Management System and ParadigmPAL 3.0 Software at Medtronic</dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- Protects against splashes or a temporary dunk in water.<p>Features- remote, vibration, colors, backlight, extended bolus, auto off, Blood Glucose Testing Reminders, Bolus WizardÃ,® Calculator</dd>    </dl>

</div>

<div class="info-col">

    <h2>Insulet<br> Omnipod</h2>
   
            <a class="image omni" href="www.myomnipod.com">View Image</a>
   
    <dl>
        <dt>Company Info</dt>
          <dd> Insulet (www.myomnipod.com)</br>
781-457-5000<br>
Bedford, MA
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions (mm)- pod: 41x61x18 pda: 66x110x26<br>
Volume- Pod: 2.7 ci PDA: 11.5 ci<br>
Weight (oz)- Pod: 1.2 oz (full res.) PDM: 4.0 oz (w/ batteries)<br>
Reservoir Size- 200 units <br>
Connection- Built in<br>
Screen Size- 1,848 sq mm on PDA controller<br>
Colors- white </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.05 u u/hr, up to 30 u/hr<br>
Total Basals-  48 per day<br>
Basal Profiles-  7<br>
Basal Intervals- ?<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- % or u/hr (1-12 hrs, in 30 min increments) <br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.05, 0.1, 0.5, 1.0u<br>
Bolus type-Meal, correction, meal & correction; normal, extended, combination<br>
1 unit Bolus Duration- 40 second <br>
Carb and Correction Factors - yes
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AAA for pump x2 for PDA<br>
Battery Life - 4 weeks (average)<br>
Motor ââ,¬â€œ stepper<br>
Memory- 90 days of data (up to 5400 records)<br>
Software- none</dd>
      <dt>Miscellaneous Info</dt>          <dd> backlight, reminders & alerts, child lock, integrated Freestyle meter, 1000 common foods in PDA, Tubeless</dd>    </dl>

</div>

<div class="info-col">

    <h2>Nipro<br>Amigo</h2>
   
            <a class="image amigo" href="http://www.niprodiabetes.com">View Image</a>
   
    <dl>
    <dt>Company Info</dt>
          <dd> Nipro Diabetes Systems (www.niprodiabetes.com)</br>
888-651-7867<br>
Miramar, FL
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions - 3.28 x 2.18 x 0.93 inches<br>
Volume- ?<br>
Weight (oz)- 3.4 <br>
Reservoir Size- 300 units plastic <br>
Connection- ?<br>
Screen Size-?<br>
Colors- solar, midnight, grape, pacific, flamingo, snow </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.05 u <br>
Total Basals-  48 per profile<br>
Basal Profiles-  4<br>
Basal Intervals- 15 minutes<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- Either as a rate in U/h (15 minutes to 24 hours in 15-minute increments) or as a percent of active profile (10-200% in 10% steps)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.10 to 5.00 U, in 0.10 U steps<br>
Bolus type-0.10 to 5.00 U, in 0.10 U steps<br>
1 unit Bolus Duration- ? <br>
Carb and Correction Factors - If enabled, calculates bolus based on inputted physician parameters including insulin-to-carbohydrate ratio, insulin sensitivity factor, insulin on board, and blood glucose target
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- CR2<br>
Battery Life - 4 weeks (average)<br>
Motor ââ,¬â€œ DC<br>
Memory- 90 days on screen and stores 1 year of history, even in the absence of a battery<br>
Software- ?</dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- watertight 1 meter for 35 minutes<br> Features- backlight, If locked, prevents inadvertent button presses. If on, audible and/or vibration feedback for button presses </dd>    </dl>

</div>

</div>


Then inside your "Header code to be used in articles without any template/theme code:" textarea of your article, add this:

<link rel='stylesheet' type='text/css' href='http://www.type1parents.org/pumppage/css/style.css' />

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
    <script type='text/javascript' src=' http://www.type1parents.org/pumppage/js/infogrid.js'>
Title: Re: php error in articles
Post by: Xarcell on April 03, 2010, 08:44:00 PM
Quote from: IchBinâ„¢ on April 03, 2010, 08:41:48 PM
I didn't tell you to use the slash at the beginning of your path. If you decide to include a file, you must also make sure your file is able to include the files it needs if it's path is relative. For instance your code may have a link to a CSS file in your file that you include that looks something like this:
<link rel='stylesheet' type='text/css' href='css/style.css' />

If you're file is in a directory called script, then you'll need to change the links in your included file to use the new relative path.
<link rel='stylesheet' type='text/css' href='scripts/css/style.css' />



Ich!

That's why I was NEVER EVER able to get an include to work. It works now, thanks!

:smitten:
Title: Re: php error in articles
Post by: IchBin on April 03, 2010, 08:52:45 PM
haha, yeah those little details will get ya. I noticed this problem with Firebug while trying to get my script to work once. It showed I was getting a 404 on the scripts and stuff my include was trying to access. Glad it helped you too. :)
Title: Re: php error in articles
Post by: delvec on April 03, 2010, 09:04:48 PM
I figured it was html but just went with what the author had used under index.
(so im just a semi idiot and not a complete one-  O0 )

Anyway- tried your suggestion Xarcell, and this is the error I now get-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stylesheet' type='text/css' href='http://www.type1parents.org/pumppage/css/style' at line 1
File: /home/type1par/public_html/Sources/TPortalAdmin.php
Line: 2564

Title: Re: php error in articles
Post by: Xarcell on April 03, 2010, 09:14:07 PM
Quote from: delvec on April 03, 2010, 09:04:48 PM
I figured it was html but just went with what the author had used under index.
(so im just a semi idiot and not a complete one-  O0 )

Anyway- tried your suggestion Xarcell, and this is the error I now get-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stylesheet' type='text/css' href='http://www.type1parents.org/pumppage/css/style' at line 1
File: /home/type1par/public_html/Sources/TPortalAdmin.php
Line: 2564



Did you change the article type from a PHP to a HTML in the settings?
Title: Re: php error in articles
Post by: delvec on April 04, 2010, 01:44:21 AM
no I already tried it in an html one and just used that one
Title: Re: php error in articles
Post by: Xarcell on April 04, 2010, 03:55:57 AM
Quote from: delvec on April 04, 2010, 01:44:21 AM
no I already tried it in an html one and just used that one

I'm getting confused...

Try php article then.

echo '
<div id="page-wrap">

<div class="info-col">

    <h2>Animas<br> Ping</h2>
   
    <a class="image ping" href="http://jprart.deviantart.com/art/Batman-and-Superman-64545242">View Image</a>
   
    <dl>
      <dt>Company  Info</dt>
      <dd>Animas Corp (www.animascorp.com) <br>
(877) 937-7867<br>
West Chester, PA
</dd>
      <dt>Physical  Size & Dimensions, etc.</dt>
      <dd>Dimensions (mm)- 51 x 77 x 18<br>
Volume- 5.525 ci / 90.54 cc<br>
Weight(oz)- 3.9<br>
Reservoir Size- 200units plastic<br>
Connection- Luer Lock<br>
Screen Size- 992 sq mm<br>
Colors- blue, silver, black, pink, green.</dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals- 12 per day<br>
Basal Profiles-  4<br>
Basal Intervals- 30 minutes<br>
Basal Delivery- varies, 0.2 units per hour every 3 minutes<br>
Temp Basal- -90% to +200% in increments of 10% for 0.5 to 24 hours (30 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.05 visual or audio, 0.1, 1.0, 5.0 audio<br>
Bolus type- units or carbs: standard, extended, combination<br>
1 unit Bolus Duration- 1 or 3 second <br>
Carb and Correction Factors - yes, carb and bg values can be entered into the pump or meter-remote
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AA lithium or alkaline x 1<br>
Battery Life - 4-6 weeks with lithium, 2-4 weeks with alkaline<br>
Motor ââ,¬â€œ DC<br>
Memory- non-volatile: 500 boluses, 270 basals, 120 daily totals, 60 alarms, 60 primes, 900 bg levels<br>
Software- ezManager Max, downloads in 3 minutes with dongle and software that are available at Animas
</dd>
      <dt>Miscellaneous Info</dt>
      <dd>Water Contact- Waterproof up to 12 feet for 24 hours<p>
Features- Meter-remote offers wireless bolus calculation and delivery within 10 ft. ezCarb software stores up to 500 food items from CalorieKing database on the meter-remote. Calculator features for carbohydrates, blood glucose corrections and insulin; reminders for time of day and when to perform blood glucose checks. Pump and meter-remote are available in Spanish. PC and Mac downloads are available with ezManager Max software<p>
Guarantee- 4 years
</dd>
    </dl>

</div>

        <div class="info-col">
       
        <h2>Accu-Check Spirit</h2>
       
        <a class="image spirit" href="www.accu-chekinsulinpumps.com">View Image</a>
       
        <dl>
          <dt>Company Info</dt>
          <dd> Roche Insulin Delivery Systems Inc. (www.accu-chekinsulinpumps.com )<br>
1-800-688-4578<br>
Fishers, IN
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions (mm)- 80 x 47 x 24<br>
Volume- <br>
Weight(oz)- 2.8, 4.8 with battery full cartridge infusion set<br>
Reservoir Size- 315 units<br>
Connection- Luer Lock<br>
Screen Size- <br>
Colors- blue, white </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals- 24 hourly per day<br>
Basal Profiles-  5<br>
Basal Intervals- ?<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- 0% to +200% in increments of 10% for  15 min to 24 hours (15 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments, 0.1, 0.2, 0.5, 1.0, 2.0 (pre programmable)<br>
Bolus type-  scroll, quick, extended, multiwave<br>
1 unit Bolus Duration- 5 second <br>
Carb and Correction Factors - ?
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AA  alkaline x 1<br>
Battery Life - 4 weeks with alkaline (average)<br>
Motor ââ,¬â€œ DC<br>
Memory- non-volatile: 90 days (4,500 events); history recall of last 30 boluses, alerts, daily insulin totals, and temporary basal rate increases<br>
Software- Pocket Compass with Bolus Calculator , insulin pump configuration software, IR Communication Port </dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- Water resistant 60 minutes at 2.5 meters<p>Features- choice of standard, advanced or custom selectable user menus, icon- and menu-driven programming, backlit display, reversible display screen, 12 languages, audible or vibrating bolus confirmation and alerts.
</dd>
        </dl>
       
        </div>

<div class="info-col">

    <h2>MiniMed Paradigm</h2>
   
            <a class="image minimed" href="http://www.minimed.com">View Image</a>
   
    <dl>
              <dt>Company Info</dt>
          <dd> Medtronic (www.minimed.com/)<br>
800-933-3322<br>
Northridge, CA
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions- Model 522: 2 x 3 x 0.8 inches. (5.08 x 7.62 x 2.03 centimeters)<br>
Model 722: 2 x 3.6 x 0.8 inches. (5.08 x 9.14 x 2.03 centimeters)<br>
Volume- 522: 4.9 ci 722: 5.6 ci <br>92 cc<br>
Weight(oz)- Model 522: 3.53 ounces (100 grams).<br>
Model 722: 3.81 ounces (108 grams).<br>
Reservoir Size- 176 or 300u pl <br>
Connection- Proprietary<br>
Screen Size- 774 sq mm<br>
Colors- clear, smoke, blue, purple & pink </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.025 units<br>
Total Basals-  48 per day per profile<br>
Basal Profiles-  3<br>
Basal Intervals- Increase or decrease by % or set the insulin
pump at any rate for 30 minutes, up to 24 hours.<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- 0% to +200% in increments of 10% for  15 min to 24 hours (15 min increments)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.1 visual, 0.5 or 1.0 visual or audio, remote extra<br>
Bolus type-units or carbs  Normal, Square Wave, Dual Wave.<br>
1 unit Bolus Duration- 30 second <br>
Carb and Correction Factors - yes, manual carb, BG direct from BD meter or manual entry
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AAA for pump, A23 for remote<br>
Battery Life - 3 weeks with alkaline (average)<br>
Motor - DC<br>
Memory- 4000 events, volatile (basal & history loss can occur): 24 boluses, 7 day totals<br>
Software- Medtronic CareLink Therapy Management System and ParadigmPAL 3.0 Software at Medtronic</dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- Protects against splashes or a temporary dunk in water.<p>Features- remote, vibration, colors, backlight, extended bolus, auto off, Blood Glucose Testing Reminders, Bolus WizardÃ,® Calculator</dd>    </dl>

</div>

<div class="info-col">

    <h2>Insulet<br> Omnipod</h2>
   
            <a class="image omni" href="www.myomnipod.com">View Image</a>
   
    <dl>
        <dt>Company Info</dt>
          <dd> Insulet (www.myomnipod.com)</br>
781-457-5000<br>
Bedford, MA
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions (mm)- pod: 41x61x18 pda: 66x110x26<br>
Volume- Pod: 2.7 ci PDA: 11.5 ci<br>
Weight (oz)- Pod: 1.2 oz (full res.) PDM: 4.0 oz (w/ batteries)<br>
Reservoir Size- 200 units <br>
Connection- Built in<br>
Screen Size- 1,848 sq mm on PDA controller<br>
Colors- white </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.05 u u/hr, up to 30 u/hr<br>
Total Basals-  48 per day<br>
Basal Profiles-  7<br>
Basal Intervals- ?<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- % or u/hr (1-12 hrs, in 30 min increments) <br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.05, 0.1, 0.5, 1.0u<br>
Bolus type-Meal, correction, meal & correction; normal, extended, combination<br>
1 unit Bolus Duration- 40 second <br>
Carb and Correction Factors - yes
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- AAA for pump x2 for PDA<br>
Battery Life - 4 weeks (average)<br>
Motor ââ,¬â€œ stepper<br>
Memory- 90 days of data (up to 5400 records)<br>
Software- none</dd>
      <dt>Miscellaneous Info</dt>          <dd> backlight, reminders & alerts, child lock, integrated Freestyle meter, 1000 common foods in PDA, Tubeless</dd>    </dl>

</div>

<div class="info-col">

    <h2>Nipro<br>Amigo</h2>
   
            <a class="image amigo" href="http://www.niprodiabetes.com">View Image</a>
   
    <dl>
    <dt>Company Info</dt>
          <dd> Nipro Diabetes Systems (www.niprodiabetes.com)</br>
888-651-7867<br>
Miramar, FL
</dd>
          <dt> Physical  Size & Dimensions, etc.</dt>
            <dd>Dimensions - 3.28 x 2.18 x 0.93 inches<br>
Volume- ?<br>
Weight (oz)- 3.4 <br>
Reservoir Size- 300 units plastic <br>
Connection- ?<br>
Screen Size-?<br>
Colors- solar, midnight, grape, pacific, flamingo, snow </dd>
      <dt>Basal  Information</dt>
      <dd>Basal Increment- 0.05 u <br>
Total Basals-  48 per profile<br>
Basal Profiles-  4<br>
Basal Intervals- 15 minutes<br>
Basal Delivery-  every 3 minutes<br>
Temp Basal- Either as a rate in U/h (15 minutes to 24 hours in 15-minute increments) or as a percent of active profile (10-200% in 10% steps)<br>

</dd>
      <dt>Bolus Information</dt>
      <dd>Bolus Increments- 0.10 to 5.00 U, in 0.10 U steps<br>
Bolus type-0.10 to 5.00 U, in 0.10 U steps<br>
1 unit Bolus Duration- ? <br>
Carb and Correction Factors - If enabled, calculates bolus based on inputted physician parameters including insulin-to-carbohydrate ratio, insulin sensitivity factor, insulin on board, and blood glucose target
</dd>
      <dt>Mechanics</dt>
      <dd>Battery- CR2<br>
Battery Life - 4 weeks (average)<br>
Motor ââ,¬â€œ DC<br>
Memory- 90 days on screen and stores 1 year of history, even in the absence of a battery<br>
Software- ?</dd>
      <dt>Miscellaneous Info</dt>          <dd> Water Contact- watertight 1 meter for 35 minutes<br> Features- backlight, If locked, prevents inadvertent button presses. If on, audible and/or vibration feedback for button presses </dd>    </dl>

</div>

</div>';
Title: Re: php error in articles
Post by: delvec on April 04, 2010, 04:40:14 AM
Sorry- what I meant was I did notice the inex part was all html so I already had an html article and originally used it there. Then I created a new php one.

But I did what you said with this last reply and poasted in both html and php.
Added the style links in the header part and got the following error message-

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stylesheet' type='text/css' href='http://www.type1parents.org/pumppage/css/style' at line 1
File: /home/type1par/public_html/Sources/TPortalAdmin.php
Line: 2564
Title: Re: php error in articles
Post by: Xarcell on April 04, 2010, 07:37:31 AM
Quote from: delvec on April 04, 2010, 04:40:14 AM
Sorry- what I meant was I did notice the inex part was all html so I already had an html article and originally used it there. Then I created a new php one.

But I did what you said with this last reply and poasted in both html and php.
Added the style links in the header part and got the following error message-

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stylesheet' type='text/css' href='http://www.type1parents.org/pumppage/css/style' at line 1
File: /home/type1par/public_html/Sources/TPortalAdmin.php
Line: 2564


If your using a php article, then use this code for your header part instead

  echo '
<link rel="stylesheet" type="text/css" href="http://www.type1parents.org/pumppage/css/style.css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src=" http://www.type1parents.org/pumppage/js/infogrid.js"></script>';
Title: Re: php error in articles
Post by: delvec on April 05, 2010, 07:47:20 AM
nope
still an error but now a different line

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rel="stylesheet" type="text/css" href="http://www.type1parents.org/pumppage/css/' at line 2
File: /home/type1par/public_html/Sources/TPortalAdmin.php
Line: 2564