News:

Wondering if this will always be free?  See why free is better.

Main Menu

CSS on <?php ssi_recentPosts(); ?>

Started by lyngenielsen, February 08, 2007, 07:20:35 PM

Previous topic - Next topic

lyngenielsen

SMF Version: SMF 1.1.1
Dear Forum

I try to explain my problem in English.

I want to use this function:
http://docs.simplemachines.org/index.php?topic=465

And the output on my index.php page looks like this:
http://www.simplemachines.org/community/ssi_examples.php

Now ... how can i get my own CSS on this output/<?php ssi_recentPosts(); ?>  ???



I would like to get at print/output/echo in this:

<table width="200" class="tekstfont">
<tr>
<td align="center"><?php
include('http://www.example.com/SSI.php?ssi_function=recentTopics');
?>
</td>
</tr>
<tr>
<td align="center">
<?php
include('http://www.isore.dk/forum/SSI.php?ssi_function=whosOnline');
?>
</td>
</tr>
</table>



The words/signs and so on from the database may/must not go OVER the 200 pixel on the table.

Is that possible and where do i do this?

Or better questions:
Where do i chance the <?php ssi_recentPosts(); ?> so i don't get the forumdate and forum category, but only the topic and how pasted the last one?

Hope you can help.

Oldiesmann

Call it with "array" as the output method, and you can customize it to your liking. See http://support.simplemachines.org/function_db/index.php?action=view_function;function=589 for more information on the appropriate parameters and what's returned in the array.
Michael Eshom
Christian Metal Fans

lyngenielsen

Oldiesmann >>

That i need at detailed explainetion for :-)

Do you mean something like this:

<?php
include('http://www.example.com/SSI.php?ssi_function=recentTopics');
?>

<?php
include('http://www.example.com/SSI.php?array ssi_recentPosts ([int $numRecent[, array $boards_to_exclude[, string $output_method]]])
?>

SleePy

lyngenielsen,

Where you able to resolve this?

You might get this to work by using your actual file path on your system instead of a url.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

lyngenielsen

Quote from: SleePy on March 10, 2007, 01:21:12 AM
lyngenielsen,

Where you able to resolve this?

You might get this to work by using your actual file path on your system instead of a url.


Hi Support
I found out how to do it and it wasnt simple!!!

First I had to find the tabel for the output on the ssi.php file and there you can chance the class="ssi_table" to your own class + inset <br> in th same table.

Strance that the Simplemashine folks didnt think of that. That the output should and his own CSS.

I the <?php ssi_recentXXXXX(); ?> goes into at table with a style="table-layout:fixed;" and eks. the table is 200px and so it stays!

Aint it cool ? :-)

But I still have to compromise on the output, with css in small font and grey or invisible.
Not optimal - but it works fine i IEX 7.0 but not in FF 2.0.
I havent got the CSS style correkt yet.

See www.isore.dk for details (to the left)

Sarge

Hi, I'm browsing through older topics to see if they are resolved.

Do you still need assistance regarding this?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Advertisement: