Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 131,697 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,499 people online right now. Registration is fast and FREE... Join Now!




FBC CMS left.php

 
Reply to this topicStart new topic

FBC CMS left.php, FBC CMS's left.php script is not working properly

rikki_max
post 10 Oct, 2008 - 02:21 AM
Post #1


New D.I.C Head

Group Icon
Joined: 18 Apr, 2007
Posts: 42



Dream Kudos: 100
My Contributions


I am the one and only developer / programmer for FBC CMS and for those who never heard of it well its not officially a project yet. now I am having on the job training really seen i am a vb.net programmer not php

BUT this script which is only showing one block at a time either top or bottom. now this is the key to the blocks being displayed so this is required. I know for a fact it is only showing only two blocks max on the left.php script but the right.php script which is almost identical does the exact same thing.

heres the code:
CODE

    
        <td width="5">
        <?php
        //adds an extra space between the collums
        //keep this section for space.
        //wanna delete, go on, it will be the same for idiots
        ?>
</td>
        <td valign="top" width="200">
            <?php
            $place = ReadTb("blocks", "place");
            $top = ReadTb("blocks", "top");
            $enabled = ReadTb("blocks", "enabled");
            $location =  ReadTb("blocks", "location");
            $icount = 0;
            
            foreach ($place as $value) {
                if ($place[$icount] == "left" and $top[$icount] == "1" and $enabled[$icount] == "1") {
                    include $blocksfolder .$location[$icount] .".php";
                    echo '<img src="' .$themefolder .'divider.gif" title="" width="100%" height="7">';
                }
                $icount = $icount + 1;
            }
            ?>
            
<p></p>
            <?php
            $place = ReadTb("blocks", "place");
            $top = ReadTb("blocks", "top");
            $enabled = ReadTb("blocks", "enabled");
            $location =  ReadTb("blocks", "location");
            $icount = 0;
            
            foreach ($place as $value) {
                if ($place[$icount] == "left" and $top[$icount] == "0" and $enabled[$icount] == "1") {
                    include $blocksfolder .$location[$icount] .".php";
                    echo '<img src="' .$themefolder .'divider.gif" title="" width="100%" height="7">';
                }
                $icount = $icount + 1;
            }
            ?>

</td>
        <td width="5">
        <?php
        //adds an extra space between the collums
        //keep this section for space.
        //wanna delete, go on, it will be the same for idiots
        ?>
</td>

this needs to be working asap becouse there is no way this cms will be released otherwise.
link to the cms link to the cms working so you can see the problem.

between the user info and "Home" there should be another module
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 08:43AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month