Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: drossman on November 17, 2009, 06:17:49 PM

Title: Weird CSS problem
Post by: drossman on November 17, 2009, 06:17:49 PM
When I included ssi_in.php in index.php, some fonts on the page are enlarged.  Is there a way to change the css in TP?

dross
Title: Re: Weird CSS problem
Post by: Ric on November 17, 2009, 07:19:30 PM
some fonts on your index.php page became enlarged?

TP's css wouldn't be read by that.

are you getting something printed out on your index page from ssi_in.php?

Title: Re: Weird CSS problem
Post by: drossman on November 17, 2009, 07:28:47 PM
When I add the include, some of the text on the page is bigger than normal.  It goes back to normal when I remove the include.

Code: [Select]
virtual("/tp/ssi_in.php");

I just noticed a few minutes ago that the text that is enlarged is not using CSS, while the rest of the text on the page is inside of div tags with defined attributes. 

I can probably fix it on my end by putting the text in question inside of divs....still weird.

Title: Re: Weird CSS problem
Post by: Ric on November 17, 2009, 07:59:49 PM
are you enclosing that line with php?

Like this

<?php
virtual("/tp/ssi_in.php");

?>

sounds like it's printing out to your index.php

Got a link?
Title: Re: Weird CSS problem
Post by: drossman on November 17, 2009, 08:15:56 PM
The whole script is enclosed in the php tags.

I fixed it by adding a div and #div table definition in my css file and wrapping the text in a div.  Every occurence of the problem was text inside of a table which was not inside of a div.  Weird.

link is http://xxxureview.com (http://xxxureview.com), but its working now.  The part in the middle listing "Niches | Reviews | Top Lists | Sponsors" was hosed and the footer and the search form at the top.
Title: Re: Weird CSS problem
Post by: Ric on November 17, 2009, 08:43:34 PM
Right on... just glad you got that working
Title: Re: Weird CSS problem
Post by: ip0li on November 18, 2009, 04:42:19 AM
It's because you include TP before head parts of your code, include it within <head></head> area and problem solved. cheers
Title: Re: Weird CSS problem
Post by: drossman on November 18, 2009, 05:15:50 AM
Ah, hence the various threads about smarty templates.  Hmm, I wonder if my templates parse php?  I guess I'll find out.  TYVM
Title: Re: Weird CSS problem
Post by: ip0li on November 18, 2009, 08:43:53 AM
if it's smarty it must parse php ;)

try to use php include with full path instead php virtual include, virtual include isn't 100% friendly with smarty