Welcome Guest, Not a member yet? Register   Sign In
Variable problems + more
#1

[eluser]Moddi[/eluser]
Hi.

I already posted about this earlier but didnt really get the problem solved so im going to try again.

What u can do on my site is to buy tires, so i got a cart already but its not working correctly.

I forgot to add the cargo price so when i try to do that now im getting "Undefined variable"

2 files. 1 controller cart.php and 1 View cart.php

The cart can be found here: www.dack4.se/cart

You see the "Varukorg" thingy to ur upper right? what i want is to change so "totalt:" includes the correct values. And i succeded on doing that but here is where the real problem is. Now when i enter another url except www.dack4.se/cart i get the "undefined variable" error. But on the /cart site its working correctly without any further problem. If u go to www.dack4.se/cart you can actually see that its working by reading the red coloured text saying "Totalsumma:", thats the price i want to be placed in "varukorg" field

Now i dont really know what to do. I got the same problem when im trying to add a picture on the footer file, where it says "Skapad av Levan Media", when i add something there its just showing as white empty box on most pages.

Please any replies would be appreciated.
#2

[eluser]Sean Gates[/eluser]
I'm getting a "can't connect to database" error when I visit the site.
#3

[eluser]Moddi[/eluser]
ye sorry forgot to change something last night. Working now
#4

[eluser]Sean Gates[/eluser]
Can you post some of what is in those controllers and views? My hunch is that it is a scope issue, but I'm not sure.
#5

[eluser]Moddi[/eluser]
Give me ur email and i can send u the files
#6

[eluser]Moddi[/eluser]
I just changed the footer so that u can get a live preview of the situation.

1. Go to: dack4.se
2. Scroll to bottom of the page and look at the footer, the flash object at bottom.
3. It's working perfectly eh? well ye on that page it is.
4. Go to: http://www.dack4.se/main/page/2
5. Its not working now? why? notice how the footer changed place aswell, went more to right.
6. Now go to: http://www.dack4.se/search/size/13_19_23_24_28_29_43
7. See? still not working and it moved up.

The flash code:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="532" height="96" hspace="0" vspace="0" id="FlashID" style="visibility: visible;" title="Dack 4 You">
            <param name="movie" value="Dack4flash.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            &lt;!--[if !IE]>--&gt;
            &lt;object data="Dack4flash.swf" type="application/x-shockwave-flash" width="532" height="96" hspace="0" vspace="0"&gt;
              &lt;!--<![endif]--&gt;
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <param name="SCALE" value="exactfit" />
              <param name="BGCOLOR" value="#1d2e48" />
              <p></p>
              &lt;!--[if !IE]>--&gt;
            &lt;/object&gt;
            &lt;!--<![endif]--&gt;
          &lt;/object&gt;
#7

[eluser]Sean Gates[/eluser]
Quote:i get the “undefined variable” error

I can't replicate the undefined variable.

On your next question: you need to add a clear: both; to the CSS for your #centerfoot.

Code:
#centerfoot{
    ...
    clear: both;
}

Hope that helps.
#8

[eluser]Moddi[/eluser]
how exactly?

Code:
#centerfoot{float:left;width:590px;margin-right:9px;}
#centerfoot{
    ...
    clear: both;
}

or

Code:
#centerfoot{float:left;width:590px;margin-right:9px;clear:both;}

tried both of those 2, none worked.

Also im getting error report with mozilla saying this:

Varning: Fel vid tolkningen av värdet för ”cursor”. Ignorerad deklaration.
Källkodsfil: http://www.dack4.se/css/style.css
Rad: 3

rad=row/line

Row 3 in style.css :
Code:
a {color:black;font-weight:normal;text-decoration:none;cursor:hand;cursor:pointer;}

and

Varning: Fel vid tolkningen av värdet för ”filter”. Ignorerad deklaration.
Källkodsfil: http://www.dack4.se/css/style.css
Rad: 10

this is code for line 10
Code:
filter: alpha ( opacity = 80);

but dont mind those 2, i just need to get the biggest problem solved Wink
#9

[eluser]Sean Gates[/eluser]
[quote author="Moddi" date="1263094670"]how exactly?[/quote]

Yes, I've confirmed it should be as follows.

Code:
#centerfoot{
    float:left;
    width:590px;
    margin-right:9px;
    clear:both;
}
#10

[eluser]Moddi[/eluser]
Ye it worked but still the flash isnt showing correctly




Theme © iAndrew 2016 - Forum software by © MyBB