• Welcome to Simple Machines Community Forum. Please login or sign up.
October 20, 2021, 10:57:49 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Modify the SSI.php output

Started by Alex4108, July 23, 2010, 04:12:37 AM

Previous topic - Next topic

Alex4108

Hi,

I'm pretty good with HTML, and I'm currently building my site custom.  I'm going to be using an SMF 2.0 RC3 forum with it.  Im a n00b when it comes to advanced PHP scripting, like SMF :P

I need the boardnews output to reflect something along the lines of this.  If ANYBODY could point me in the right direction, it would be greatly appreciated!

Quote
<div class="post">
            <h2 class="title"><a href="#">Title Of Post Here.</a></h2>
            <p class="meta"><span class="date">Date Of Post Here</span><span class="posted">Posted by Username</span></p>
            <div style="clear: both;">&nbsp;</div>
            <div class="entry">
               <p>Contents of post here..</p>
               <p class="links"><a href="#">Read More</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">Comments</a></p>
            </div>
         </div>
         

If anybody could point out what I need to do to modify the output, it would be greatly appreciated!

chilly

the function SSI provides to get those information has a parameter that makes the function return the information and you can save it to an array.
so you can use that array to modify the output the way you want it.

Language Coordinator

Alex4108

Where would this array be located?

chilly

you have to "create" it. it's a new array you have to chose.

learning about php:
This site helped me a lot at the start.

Language Coordinator

Alex4108

I just did a search, and someone managed to do it for calendar.  Can you give me something to work off or a list of arrays?

CapadY

I absolutely don't understand what you want. A list of arrays ? what arrays ?

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Alex4108

July 23, 2010, 07:08:36 PM #6 Last Edit: July 23, 2010, 07:30:46 PM by Alex4108
Quote from: chilly on July 23, 2010, 04:40:09 AM
you have to "create" it. it's a new array you have to chose.

learning about php:
This site helped me a lot at the start.

This is what i was referring to.  "Array" "arrays"

I guess I'll make myself a bit more clear, sorry for the foggyness.

What i'm looking for is the variable list or the script that I need to make a custom output for ssi_boardnews

Alex4108

bump with intention to receive help regarding this issue

Alex4108

Update:

After digging through the SSI.php I finally found the echo for it.  Edited as needed. 


foreach ($return as $news)
{
echo '


This  is what I found, just took out the PHP coding and put it into my own html.

*Solved*

Advertisement: