Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #254297

    n2outlaw
    Participant

    I built a website and switched to X-Theme. Awesome theme 🙂

    Old website, I put my File Manager into the body still having the looking and feel like not leaving it. This was using .html and renaming it to .php in Dreamweaver. I’m not a expert but I know enough to get by on .css but I just don’t know where to place code.

    My “2” questions are:
    I have x-child-theme installed and I’m using Integrity

    1. Where would I put this code that would normally go on the top of my .php file and where would I find it? I made a page called File Manager. The File Manager is fully working but “outside” of WordPress/X-Theme.
    I have to fully put in the address for it to work http://mywebsite.com/file-manager/filemanager.php

    <?php
    include_once(‘/home4/n2outlaw/public_html/taurusoutlaw.com/to-fm/class/FileManager.php’);
    ?>

    ———————————

    2. And where would I put this code that would normally go into the same file but in the <body> of my .php

    <?php
    
    $FileManager = new FileManager();
    print $FileManager->create();
    
    ?>
    #254545

    Paul R
    Moderator

    Hi,

    Thanks for writing in!

    You can copy the file wp-content/themes/x/framework/views/global/_header.php
    into your child theme -> wp-content/themes/x-child/framework/views/global/_header.php

    Then add your code on that file (x-child/framework/views/global/_header.php)

    Hope that helps.

    #255002

    n2outlaw
    Participant

    That didn’t work. I’m getting a white screen on all pages with just the following text. Keep in mind that I only want this for one page called File Manager.

    This image is Photoshopped for demonstration and I’m using Integrity (image is of Renew)
    Demo.

    Error Text:
    Parse error: syntax error, unexpected ‘class’ (T_CLASS) in /home12345/12345/public_html/mywebsite.com/wp-content/themes/x-child/framework/views/global/_header.php on line 2

    If this helps on what I’m trying to accomplish. Here is my old website .php code:

    <?php
    include_once('/hsphere/local/home/c163420/mywebsite.com/fm/class/FileManager.php');
    ?>
    
    <!doctype html>
    <html><!-- InstanceBegin template="/Templates/pages.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta charset="UTF-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <link rel="shortcut icon" href="/images/logo/favicon.ico" type="image/x-icon">
    <link rel="icon" href="/images/logo/favicon.ico" type="image/x-icon">
    <title>Files and Brochures</title>
    <!-- InstanceEndEditable -->
    <link href="styles/main.css" rel="stylesheet" type="text/css">
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body>
    <div id="wrapper">
      <div id="header"></div>
    <div id="nav_photo">
    <div class="nav_float" id="home_nav"><a href="index.html">Home</a></div>
    <div class="nav_float" id="our-tech_nav"><a href="our_technology.html">Our Technology</a></div>
    <div class="nav_float" id="management_nav"><a href="management.html">Management</a></div>
    <div class="nav_float" id="about_nav"><a href="files_brochures.php">Files and Brochures</a></div>
    <div class="nav_float" id="contact-us_nav"><a href="contact_us.html">Contact Us</a></div>
      </div>
    <!-- InstanceBeginEditable name="ed_article" -->
    <div id="article">
    <?php
    
    $FileManager = new FileManager();
    print $FileManager->create();
    
    ?>
      <div class="rounded" id="border_fill_1000"></div>
    </div>
    <!-- InstanceEndEditable -->
    <div class="clearfloat rounded" id="footer"> 
        <h6>Copyright © 2012 by Verdant, llc</h6>
      </div>
    </div>
    </body>
    <!-- InstanceEnd --></html>
    #255165

    Zeshan
    Member

    Hi there,

    Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    However, if you can provide us with your current code in files wp-content/themes/x-child/framework/views/global/_header.php and your FileManager.php file, we can take a closer look.

    Please wrap your code inside code tag (see: http://prntscr.com/6wkzzj).

    Thanks!

    #255240

    n2outlaw
    Participant
    This reply has been marked as private.
    #255490

    Paul R
    Moderator

    Hi,

    You can try creating a new page template.

    To do this create file template-file-manager.php in wp-content/themes/x-child
    Then copy the code below into that file.

    
    <?php
    /* 
    Template Name: File Manager
    */
    include_once('/home4/n2outlaw/public_html/taurusoutlaw.com/to-fm/class/FileManager.php');
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-main full" role="main">
    
    <?php
    
    $FileManager = new FileManager();
    print $FileManager->create();
    
    ?>
      </div>
    
    <?php get_footer(); ?>
    

    After that create a page in wordpress and set the template to File Manager

    http://screencast.com/t/NJwexsM7B7Y

    Then you can access that page with your file manager on it.

    Hope that helps.

    #255921

    n2outlaw
    Participant

    Awesome it’s working within the theme but I think I still need a little more code because I have a lip hanging over as you can see below.

    demo

    and when resizing it to the full wdith of 1200px:

    demo

    I think I need to wrap this part of the code in a div and style it with css and make the container width to 1200px. but I’m not the expert. Thanks for the help! Awesome theme 🙂

    <?php
    
    $FileManager = new FileManager();
    print $FileManager->create();
    
    ?>
    #256104

    Friech
    Moderator

    Hi There,

    Glad it worked! Try to wrap it with a container.

    <?php
    /* 
    Template Name: File Manager
    */
    include_once('/home4/n2outlaw/public_html/taurusoutlaw.com/to-fm/class/FileManager.php');
    ?>
    
    <?php get_header(); ?>
    
     <div class="x-container max width offset">
      <div class="x-main full" role="main">
    
    <?php
    
    $FileManager = new FileManager();
    print $FileManager->create();
    
    ?>
      </div>
      </div>
    
    <?php get_footer(); ?>

    Hope it helps, Cheers!