Results 1 to 5 of 5

Thread: PHP File Module Display Problem

  1. #1
    Join Date
    Feb 2005

    Default PHP File Module Display Problem


    I successfully create a PHP file module through the add module selection in CMPS admin. The problem is the content generated by the PHP file displays above the top of the block being displayed on the CMPS index page. The title of the module is on the bottom. How can this be fixed. I am using the module shell template.

    Last edited by AstroDude; 03-07-2006 at 04:14 PM.

  2. #2

    Default Re: PHP File Module Display Problem

    Is the generated output from the php file wrapped like this?


  3. #3
    Join Date
    Feb 2005

    Default Re: PHP File Module Display Problem

    Here is the relevant code thats generated in my CMPS home page. There might be a little extra added thats not part of this script. I grabbed what I thought would help. The part near the beginning here that says Carp Test is displayed in the solid block header on the home page at the bottom of the generated output, not like it is listed here.

     <div><img src="/forum/clear.gif" height="15" alt="" /></div>
    <table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%">
       <td class="tcat" colspan="0">
       <span class="smallfont"><strong>&raquo; Carp Test</strong></span></td>
     <tbody id="collapseobj_module_25" style="">
       <a href="<A href="">Gecko">">Gecko Tribe, LLC Press Releases</a><br />
    Press releases from Gecko Tribe, LLC<br />
    <br /><a href="<A href="">">"> Promotes Ethical Internet Marketing</a><br /> is a new internet marketing website that emphasizes ethics in an area where many others cross the line.<br />
    <a href="<A href="">Grouper">">Grouper Evolution Brings RSS Newsfeeds to Affiliate Marketing</a><br />
    A new version of Grouper Evolution generates RSS newsfeeds with affiliate links for participants in the affiliate programs of,, and<br />
    <a href="<A href="">RSS">">RSS and Atom feed directory service available for websites</a><br />
    Webmasters whose site users need a directory of RSS and Atom newsfeeds, but who do not wish to maintain their own directory, can use Chordata's Linkback Service to conveniently connect the Chordata directory to their sites.<br />
    <a href="<A href="">Grouper">">Grouper Evolution adds support for Atom 1.0 feeds</a><br />
    Grouper Evolution, an RSS generator, adds conversion of the just-completed Atom 1.0 feed format to RSS to its existing capabilities for generating RSS feeds other XML formats, news searches, and web pages.<br />
    <a href="<A href="">Tetra">">Tetra: a new JavaScript scroller with RSS newsfeed integration</a><br />
    Tetra is a new JavaScript scroller that features integration with RSS newsfeeds, and AJAX for background updating--two technologies to ensure that the scroller content is always fresh and up-to-date.<br />
    <a href="<A href="">CaRP">">CaRP RSS Parser updated with new features, improved installer</a><br />
    A new release of CaRP gives webmasters more control of the processing and appearance of RSS feeds on their sites, and simplifies the installation process.<br />
    <a href="<A href="">Improved">">Improved installers ease setup of RSS generation and display tools for websites</a><br />
    New installers for CaRP and Grouper make it easy to get up and running with RSS feeds on your website.<br />
    <a href="<A href="">Jawfish">">Jawfish newsfeed conversion service adds Atom support</a><br />
    The Jawfish service, which converts RSS newsfeeds to JavaScripts, enabling them to be displayed on any website, now supports newsfeeds in Atom format.<br />
    <a href="<A href="">Convert">">Convert Atom feeds and other XML to RSS with Grouper Evolution</a><br />
    Grouper Evolution version 1.4 features a new XML plugin, enabling it to convert Atom newsfeeds to RSS format.<br />
    <a href="<A href="">CaRP">">CaRP Evolution 3.5 (RSS parser) enables complex filtering, mySQL storage</a><br />
    CaRP Evolution 3.5, released today, adds features enabling websites to perform complex filtering of RSS newsfeeds, and to store RSS newsfeeds in a mySQL database.<br />
    <a href="<A href="">CaRP">">CaRP Evolution adds plugin support to RSS newsfeed parser</a><br />
    A new version of CaRP (Caching RSS Parser), CaRP Evolution, adds support for third-party plugins to this popular tool for importing RSS newsfeeds into websites.<br />
    <a href="<A href="">Jawfish">">Jawfish adds support for frames &amp; iframes</a><br />
    The Jawfish service, which enables any website to display RSS newsfeeds, has added support for displaying newsfeeds in a frame or iframe, in addition to its ability to display them using JavaScript.<br />
    <a href="<A href="">Grouper">">Grouper 1.2 adds support for Feedster, Daypop</a><br />
    Grouper is a PHP script which converts news searches to RSS newsfeeds. In addition to supporting various news sources which do not offer RSS newsfeeds, it can now be used to query and cache results from Feedster&trade; and Daypop.<br />
    <a href="<A href="">Grouper">">Grouper converts Google News searches to RSS feeds</a><br />
    Grouper is a PHP script which converts Google News search results to RSS newsfeeds. It is the perfect companion to CaRP, which displays RSS newsfeeds in web pages, for people needing news on specific topics not addressed in RSS newsfeeds currently available.<br />
    <a href="<A href="">CaRP">">CaRP 3.1 adds images to newsfeed display</a><br />
    CaRP (Caching RSS parser) version 3.1 enables webmasters to dress up newsfeed display by showing news-related images along with their headlines, summaries and other data.<br />
    <br /><i><a href="" target="_blank">Newsfeed display by CaRP</a></i>
    <div><img src="/forum/clear.gif" height="15" alt="" /></div>
    Thanks for your help.

  4. #4

    Default Re: PHP File Module Display Problem

    Well, my prior answer still stands. If you are using the module shell template then looking at the relevant section reveals that it's necessary to have the content wrapped in <tr><td></td></tr> tags.

    Here's the section from the module shell template
    	<tbody id="collapseobj_module_$mods[collapse]" style="$modcollapse">
    		<if condition="$show['tablerow']">
    				<td class="$bgclass">
    		<else />
    The value of $show['tablerow'] will be false in your case thus your generated output will appear in the bit that's red. That's why there's a need to add the tags mentioned above.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  5. #5
    Join Date
    Feb 2005

    Default Re: PHP File Module Display Problem

    Hello Tom,

    Got it. The lack of those tags, as you know already, were the problem.

    Thanks again for your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. .module file not working with CMPS 2.1
    By trana in forum Module & Modification Discussion & Requests
    Replies: 2
    Last Post: 03-28-2006, 12:27 PM
  2. Problem when copying a template into module file
    By tomshawk in forum "How Do I..." Questions
    Replies: 4
    Last Post: 06-07-2005, 06:07 PM
  3. How to make a module file? Brian
    By tomshawk in forum Bugs From 2.0 RC1
    Replies: 14
    Last Post: 06-07-2005, 03:09 AM
  4. How to create Module that have more than 1 php file ?
    By Lizard King in forum Troubleshooting / "How do I..." Questions
    Replies: 1
    Last Post: 03-14-2005, 02:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts