cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Want a cform Inside admin panel!

Add a New Topic Reply to Post
Post

Cybel - Guest

2:29 am - October 24, 2007

  • Using iexplorer 7
  • URL http://www.bengala.com.mx/blog
  • cforms version v5.51
  • Hello all! I have a question for you. I'm developing a website for a rock band and one thing we want to do is that only the Registered blog users can access an special seccion to upload to the server the memorabilia they get in concerts or such.

    I've made this before with an avatar plugin that was made only for the "outside" part of the blog (public one), and it worked.

    I know that I have to declare some functions for this plugin to work inside the admin panel, as I did with the another one.... I've allready tried calling "wp-blog-header.php", "cforms.css" and "cforms.js" but the form doesn't show up. I don't get any error or anythig that could tell me what I need to do...

    Any ideas?? Laughing

    Thank you!

    Oliver - Admin

    7:17 am - October 24, 2007

    posts 3656

    Since cforms builds on the_content filter to insert the forms at the requried places, you need to insert it manually when using it inside the admin panel. See the help page for how to insert a form using PHP.

    Cybel - Guest

    11:30 pm - October 24, 2007

    Hi thanks for the reply!

    I've allready got the form and is working "almost" fine. I just can't get the style to show up. I've just placed the php tag, and called the functions that cforms need, but style doesn't work. Ill keep working on it

    See you!

    Cybel - Guest

    11:44 pm - October 24, 2007

    Ok! I got it! I called the stylesheet I want to use and Idon't know if there's another way, but this worked for me Wink

    I leave you the code of the new admin page I made for a reference. Bye!

    <?php
    require_once('admin.php');
    $title = __('Contribuye');
    include_once('admin-header.php');
    require('../wp-blog-header.php');
    ?>
    <link href="../wp-content/plugins/contactforms/styling/minimal.css" rel="stylesheet" type="text/css" />

    <div class="wrap" style="height: 1%;">

    <h3>My header</h3>
    <p>My explanation on the page</p>

    <?php insert_cform('2'); ?>

    </div>
    <?php include('admin-footer.php'); ?>

    Oliver - Admin

    7:10 am - October 25, 2007

    posts 3656

    Thanks for sharing your code - 'glad you got it working!

    Add a New Topic Reply to Post


    Reply to Topic: Want a cform Inside admin panel!
    PLEASE READ THE FAQs FIRST! THANK YOU.

    NOTE: New Posts are subject to administrator approval before being displayed

    Guest Name (Required):

    Guest EMail (Required):

    Guest URL (required)

    Math Required!
    What is the sum of: 5 + 6        (Required)

    Topic Reply:


     
    © Simple:Press Forum - Version 3.1.3 (Build 356)