Jump to content

Recommended Posts

Posted

Is there some way I can tell the below php include, that I wanna use a specific font, size and color without creating an external css-file?

<?php

include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics');

?>

Posted

You might try

><div>
<style type="text/css">
<!--
font-family: Times New Roman, Times, Serif;
font-size: medium;
color: black;
-->
</style>

<?php
include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics');
?>
</div>

Posted

if you goto your /forum/ssi_examples.php

that may help

it looks like to use SSI.php in your page

add at the very top of your page before the tag on line 1:

 

<?php require("path/SSI.php"); ?>

then use the examples from that ssi_examples.php page.

Posted

Thanks Don. :)

I tried a it few times, but no luck. Might be CSB making the problems. It have happened before with these things.

I´ll make a new try tomorrow. Right now my eyes goes like this :clapping: over this.

Posted

Thomas, that URL you mentioned outputs a table, so you need to add a table selector to the CSS code that Don wrote and it should work:

 

Forget that, I must be still asleep... :clapping:

Put the CSS code inside the <div>. It should be enough, I think.

><div style font-family: 'Times New Roman', Times, Serif; font-size: medium; color: black;">
<?php
include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics');
?>
</div>

One thing to note is that since one of the font names has more than one word, it should be enclosed in single quotes. The lack of them could be enough to make the whole thing not work.

Posted

Sorry Raul. That didn´t work.

But I´ve had ssi problems before so I´m not panicing yet. :thumbup1:

 

The subfolder that this is supposed to be in, are password protected normally, but I released it for now if anyone wanna take a closer look at it, http://marveassistans.se/staff, look for Forum in the left column. What I want it to be is verdana, 8px. :)

Posted

TCH-Raul had it right the first time:

Thomas, that URL you mentioned outputs a table, so you need to add a table selector to the CSS code that Don wrote and it should work:

The code output by the include is indeed a table, and better than that, has a class of "ssi_table" assigned to that table:

><style type="text/css">
<!--
.ssi_table {
 font-family: verdana, arial, helvetica, sans-serif;
 font-size: 8px;
 }
-->
</style>

<?php
include('http://www.marveassistans.se/forum/SSI.php?ssi_function=recentTopics');
?>

Posted

Ok Raul & David, I´m not sure which one of you to give the credits to so I give it to you both. It works great now. :)

 

Thanks. :thumbup1:

 

P.S. I was wrong about the fontsize, so I changed it.

Posted
Ok Raul & David, I´m not sure which one of you to give the credits to so I give it to you both.

Great minds think alike, and don't forget about TCH-Don! (It was his idea to start with.) :thumbup1:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...