Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 10:17:56 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149693 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Contact form not appearing  (Read 462 times)
dfhectik

Offline Offline

Posts: 29



WWW
« on: February 09, 2010, 05:04:13 AM »

i have done some pretty serious edits to my templates/allcss/index.php and now my contact form is not appearing (not visible + no source code).

I did not think that there was any code in the index.php that would affect contact forms.
(As all the form code in index.php seemed to deal with login and logout.)

Here is my code,  Please have a look and tell me if this is missing contact form code. Thanks!

Code:

<body>

<div id="container">
                    <div id="opt-heading"><h1>Perth Musical Chior - <?php echo PAGE_TITLE?></h1></div>
                            <div id="panel-header">
                                <div class="wrapper">
                                    <a href="/the-rejoyce-choir-perth-australia/"<img src="/the-rejoyce-choir-perth-australia/templates/allcss/header-image.jpg" height="185px" width="950px" border="0" alt="the rejoyce choir perth australia">
                                </div>
                            </div>
    <?php
    
// Only show menu items if we are supposed to
    
if(SHOW_MENU) {
    
?>

                    <div id="panel-one">
                        <div class="wrapper">
                        <?php show_menu2(1,0,1,true,'<li class="menu[page_id]"><a href="[url]" class="menu[page_id]"></a></li>');
                        if(
FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
                        
?>

                            <?php ?>
                        </div>
                    </div>

    <div class="clear-float"><span></span></div>

    <div id="free-panel-one">
                    <div class="top"><span></span></div>
        <div id="free-panel-one" class=wrapper>
                    <?php page_content(4); ?>

                    <div id="panel-three">
                       
                        <?php show_menu2(2); ?>
                       
                        <div id ="point-of-call">
                            <a href="#" id="mostrar"><span></span></a>
                            <div id="caja">
                                <form name="login" action="<?php echo LOGIN_URL?>" method="post" class="login_table" >
                                    <?php echo $TEXT['USERNAME']; ?>:
                                    <input type="text" name="username" style="text-transform: lowercase;" />
                                    <?php echo $TEXT['PASSWORD']; ?>:
                                    <input type="password" name="password" />
                                    <input type="submit" name="submit" action="/the-rejoyce-choir-perth-australia/pages/downloads.php" value="<?php echo $TEXT['LOGIN']; ?>" />
                                </form>
                                <?php
                                
} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
                                
?>

                               
                                <?php ?>
                               
                               

                            </div>
                        </div>
                        <div class="top"><span></span></div>
                            <div class="wrapper">

                                <?php 
                                
global $wb;
                                
$wb->page_id 11;
                                
page_content(3);
                                
$wb->page_id 11;
                                
?>


                            </div>
                                <div class="clear-float"><span></span></div>
                                <div class="bottom"><span></span></div>
                    </div>
                       
                        <div id="panel-four">
                            <div class="top"><span></span></div>
                            <h2><?php echo PAGE_TITLE?></h2>
                            <div class="wrapper">
                            <?php page_content(1); ?>
                            </div>
                        </div>    
        </div>
   
                        <div class="clear-float"><span></span></div>
                        <div class="bottom"><span></span></div>
    </div>
                        <div id="panel-footer">
                            <div class="wrapper">
                            <?php page_footer(); ?>
                            <div class="menu">
                            <?php show_menu2(); ?>
                            </div>
<div class="powered_by">
    Powered by <a href="http://www.websitebaker.org" target="_blank">websitebaker</a>
</div>
                            <a class="cred" href="http://www.pixelstorm.com.au" target="_blank">Website Design and Hosting by Pixelstorm Melbourne Australia</a>
                            <p id="copyright">Copyright The Rejoyce Choir PTY LTD 2010</p>
                           
                            </div>
                        </div>
       
</div>

</body>
</html>

« Last Edit: February 09, 2010, 05:19:21 AM by dfhectik » Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: February 09, 2010, 06:55:16 AM »

Mmmh.

the only thing come in mind after a quick look:
yo deal with different page_content()
is your contact-form set to the right page_content() ?

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
dfhectik

Offline Offline

Posts: 29



WWW
« Reply #2 on: February 09, 2010, 07:55:33 AM »

The problem i believe is that my global blocks are working with code such as
Code:
   <?php 
    
global $wb;
    
$wb->page_id 11;
    
page_content(3);
    
$wb->page_id 11;
    
?>


but when i try to show a block such as news or contact on its own page
Code:
<?php page_content(2); ?>

nothing happens.

here my info

Code:
$page_content[1]   = 'Main content';
$page_content[2]   = 'News';
$page_content[3]   = 'Concert Calendar';
$page_content[4]   = 'featureBlocks';
$page_content[5]   = 'ChoirLogin';




« Last Edit: February 09, 2010, 07:58:24 AM by dfhectik » Logged
dfhectik

Offline Offline

Posts: 29



WWW
« Reply #3 on: February 09, 2010, 11:28:02 PM »

Section Picker solved this issue. Check it out if you are experiencing similar issue
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!