[SOLVED] {content} appears inline or block depending on server

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

[SOLVED] {content} appears inline or block depending on server

Post by jmcgin51 »

Running CMSMS 1.5.3 on both my dev server (XAMPP on WinXP) and my live host (Windows2003), I get different behavior from this section of my template:

Code: Select all

        <div id="content">		
          	<div class="indent_main">
<!--
        		<img alt="" src="uploads/images/page1_pic1.jpg" class="pic_left" />
-->
{multiple_random_image folder="uploads/images/bigpics" class="multiple_random_image"}
<!--
                <img alt="" src="uploads/images/page1_title1.gif" class="title" /><br />
-->
                {content}
                <br class="clear" />
On my development server, the random image appears with the content then inline, like this:
[IMAGE] [CONTENT]

This is what I want.

On my production server, the content appears below the image, which is not what I want, like this:
[IMAGE]
[CONTENT]

Both sites are using identical stylesheets, templates, CMSMS & module versions, etc.

Any ideas what would cause this, or a way to force it to always be inline?

Thanks!
Last edited by jmcgin51 on Sat May 09, 2009 5:54 am, edited 1 time in total.
viebig

Re: {content} appears inline or block depending on server

Post by viebig »

I dont see how this can be possible. does the generated source code exactly the same on both versions? could you post it here?

Regards
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: {content} appears inline or block depending on server

Post by jmcgin51 »

Thanks for the response, Viebig!

The source looks identical to me, with the exception of the specific image name, since it randomly loads a different image.  But I have refreshed the page many times to see how it renders with different images, and both servers are consistent in how they render the page - the DEV server always does it "inline", and the LIVE server always does it "block".

Here is the source from the DEVELOPMENT server (the one that does render correctly):

Code: Select all

        <div id="content">		
          	<div class="indent_main">
<!--
        		<img alt="" src="uploads/images/page1_pic1.jpg" class="pic_left" />
-->
<img src="uploads/images/bigpics/page1_pic1.jpg"  alt="page1_pic1.jpg" title="page1_pic1.jpg" class="multiple_random_image" />
<!--
                <img alt="" src="uploads/images/page1_title1.gif" class="title" /><br />
-->

                <p>all my page text here</p>
                <br class="clear" />

and here is the source from the LIVE server (the one that does not render correctly):

Code: Select all

        <div id="content">		
          	<div class="indent_main">
<!--
        		<img alt="" src="uploads/images/page1_pic1.jpg" class="pic_left" />
-->
<img src="uploads/images/bigpics/page3_pic1.jpg"  alt="page3_pic1.jpg" title="page3_pic1.jpg" class="multiple_random_image" />
<!--
                <img alt="" src="uploads/images/page1_title1.gif" class="title" /><br />
-->

                <p>all my page text here</p>
                <br class="clear" />
I don't see anything that should be causing a problem.
viebig

Re: {content} appears inline or block depending on server

Post by viebig »

can you post a link?

Regards

G
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: {content} appears inline or block depending on server

Post by jmcgin51 »

viebig - check your PMs.

Thanks a lot!!
viebig

Re: {content} appears inline or block depending on server

Post by viebig »

I tested in 3 browsers, it was just like the image you sent me.

Can you send a screenshot of the rror, and tell me the browsers and versions that you're running.

Regards
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: {content} appears inline or block depending on server

Post by jmcgin51 »

so when you pull up the live URL I sent, it looks just like the screenshot I provided for you?

I get the same behavior when viewing in FF3 or IE6, both on a WinXP laptop.  I've taken some more screenshots; check your PMs.

The DEV server is a XAMPP install:
----------------------------------------------

Cms Version: 1.5.3

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.3
    * MenuManager: 1.5.3
    * ModuleManager: 1.2.1
    * News: 2.9.2
    * nuSOAP: 1.0.1
    * Printing: 0.2.6
    * Search: 1.5.3
    * TinyMCE: 2.4.13
    * Calendar: 0.8.2
    * FormBuilder: 0.5.11
    * Calendar: 0.8.2
    * FormBuilder: 0.5.11
    * FormBrowser: 0.2.3
    * FrontEndUsers: 1.6.4
    * CustomContent: 1.5.2
    * CGExtensions: 1.15.2
    * CGFeedMaker: 1.0.4
    * CGGoogleMaps: 1.1
    * CGSimpleSmarty: 1.4
    * Statistics: 0.9.1
    * SelfRegistration: 1.2.2
    * CGUserDirectory: 1.0
    * dboptimizer: 1.11
    * LightBox: 1.0.1
    * Blogs: 0.3.3.1
    * Album: 0.9.3
    * CTLModuleMaker: 1.8.2
    * Availability: 1.6
    * Uploads: 1.4.1
    * MinistryDirectory: 1.1.7
    * RSS2HTML: 1.2.2
    * CGBlog: 1.0.1


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 100000000
    * default_upload_permission: 664
    * assume_mod_rewrite: false
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.8
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 32M
    * max_execution_time: 60
    * safe_mode: Off (False)
    * session_save_path: C:\xampp\tmp (0777)


Server Information:

    * Server Api: apache2handler
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.1.30
----------------------------------------------


The LIVE server is on a Windows2003 shared hosting account:
----------------------------------------------

Cms Version: 1.5.3

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.3
    * MenuManager: 1.5.3
    * ModuleManager: 1.2.1
    * News: 2.9.2
    * nuSOAP: 1.0.1
    * Printing: 0.2.6
    * Search: 1.5.3
    * TinyMCE: 2.4.13
    * Calendar: 0.8.2
    * FormBuilder: 0.5.11
    * Calendar: 0.8.2
    * FormBuilder: 0.5.11
    * FormBrowser: 0.2.3
    * FrontEndUsers: 1.6.4
    * CustomContent: 1.5.2
    * CGExtensions: 1.15.2
    * CGFeedMaker: 1.0.4
    * CGGoogleMaps: 1.1
    * CGSimpleSmarty: 1.4
    * Statistics: 0.9.1
    * SelfRegistration: 1.2.2
    * CGUserDirectory: 1.0
    * dboptimizer: 1.11
    * LightBox: 1.0.1
    * Blogs: 0.3.3.1
    * Album: 0.9.3
    * CTLModuleMaker: 1.8.2
    * Availability: 1.6
    * Uploads: 1.4.1
    * MinistryDirectory: 1.1.7
    * RSS2HTML: 1.2.2
    * CGBlog: 1.0.1


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 100000000
    * default_upload_permission: 664
    * assume_mod_rewrite: false
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.9-1
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 128M
    * max_execution_time: 600
    * safe_mode: Off (False)
    * session_save_path: D:\PHP\temp\PHP5\sessiondata (0777)


Server Information:

    * Server Api: isapi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.1.30


----------------------------------------------


Thanks!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: {content} appears inline or block depending on server

Post by jmcgin51 »

the multiple_random_image style is:
.multiple_random_image {float: left; margin-right: 10px; margin-bottom: 10px; }

and the content div styles are:
#content {font-size:0.75em; width:100%; text-align:left; }
#content .indent_main {padding:0px 34px 0px 36px; }
viebig

Re: {content} appears inline or block depending on server

Post by viebig »

I still dont get the error. For me it's ok in various browsers.
Attachments
Screenshot.jpg
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: {content} appears inline or block depending on server

Post by jmcgin51 »

it's working now for me too, all browsers, all environments...  I don't understand why it was different earlier, but I'll consider this solved for now.

Thanks for taking the time to help, viebig!
viebig

Re: [SOLVED] {content} appears inline or block depending on server

Post by viebig »

never trust in computers!

Great!

You're welcome
Post Reply

Return to “Layout and Design (CSS & HTML)”