excellent, ive gotten rid of most of the junk i dont want and some <p> codes that are wrecking my template...
ive gotten rid of all my <p> tags except the on hidden in the php thing $message
i would finish it if i knew where the coding for the $message thing was?

can anyone help (btw, probably my last thing...)

yes, i have tried that but i get this?

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/www/--------------.com/data/forums/extern.php on line 401

the code i put in is:

echo "<p class=\"newstitle\"><a href=".$pun_config['o_base_url']."/viewtopic.php?id=".$cur_topic['id'].">$subject_truncated</a></p> \n";
echo "<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">";

i need help, i need to add this line under the title:

<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">

and i know its in this area of coding but whenever i try it says error?

                    // DISPLAY FOR TITLE OF NEWS
                    echo "<p class=\"newstitle\"><a href=".$pun_config['o_base_url']."/viewtopic.php?id=".$cur_topic['id'].">$subject_truncated</a></p> \n";
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!I NEED THE CODE HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                    $id = $cur_topic['id'];
                    $msg = $db->query('SELECT id, poster, poster_id, poster_ip, poster_email, message, posted, edited, edited_by FROM '.$db_prefix.'posts WHERE topic_id='.$id.' LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
                    if ( !$db->num_rows($msg) ) continue;

                    $cur_post = $db->fetch_assoc($msg);
                    $posterid = $cur_post['poster_.................. ect, you get the picture

can anyone help?

im having trouble with getting a news feed code for my site?
I need a different design for these pages and all the important codes are scatered in other files.
which means i can't really use the mini portal :S
i just need something saying in one file the things it needs (templates and needed codes).


(i guess i should be specific)
Important Info:

data
-----forums < where the forums are tongue
-----pages
------------home.php
------------downloads.php
------------ect...

\/ Subject: No Downloads \/ Message: The rest tongue \/
http://i141.photobucket.com/albums/r59/boom_howza/needs.gif


the important codes are in these files?
header.php
include/common.php
include/parser.php

i thought it might be simple like typing...

<?php
punforum("1, 2, 3");
?>

(and this would do)
---------------------------------
Subject 2
---------------------------------
Message 2

---------------------------------
Subject 1
---------------------------------
Message 1


the mini portal code:

<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
 
function pun_news($fid='', $show=15, $truncate=1)
{
    global $lang_common, $db, $pun_config, $db_prefix;
    $max_subject_length = 30;
    $show_max_topics = 50;
    $fid = intval($fid);
    $order_by = 't.posted';
    $forum_sql = '';
    // Was a forum ID supplied?
    if ( $fid ) $forum_sql = 'f.id='.$fid.' AND ';
    $show = intval($show);
    if ($show < 1 || $show > $show_max_topics)
    $show = 15;
    $saveddate="";
    // Fetch $show topics
    $result = $db->query('SELECT t.id, t.poster, t.subject, t.posted, t.last_post, f.id AS fid, f.forum_name FROM '.$db_prefix.'topics AS t INNER JOIN '.$db_prefix.'forums AS f ON t.forum_id=f.id WHERE f.id='.$fid.' AND t.moved_to IS NULL ORDER BY '.$order_by.' DESC') or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
    $show_count = 0;
    if ( !$db->num_rows($result) ) return $output;
    while ( ($show_count < $show) && ($cur_topic = $db->fetch_assoc($result)) ) {
        $temp = '';
        if ($pun_config['o_censoring'] == '1')
            $cur_topic['subject'] = censor_words($cur_topic['subject']);
        if (pun_strlen($cur_topic['subject']) > $max_subject_length)
            $subject_truncated = trim(substr($cur_topic['subject'], 0, ($max_subject_length-5))).' ...';
        else
            $subject_truncated = $cur_topic['subject'];
        $newsheading = '<a href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.pun_htmlspecialchars($subject_truncated).'</a> - <em>Posted by '.$cur_topic['poster'].' at '.date('h:i A', $cur_topic['posted']).'</em><br>';
        // Group posts by date    
        $thisdate = date('l, d F Y', $cur_topic['posted']);
        if ($thisdate != $saveddate) 
 
        {
            if ($saveddate)
            {
                $temp .= "</div></div>";
            }
            $temp .= '<div class="block"><h2><span>'.$thisdate.'</span></h2><div class="box"><div class="inbox"><p>';
            $saveddate = $thisdate;
        }
        else {
            $temp .= '<div class="inbox"><p>';
        }
        $temp .= $newsheading.'</p><p>';
        $id = $cur_topic['id'];
        $msg = $db->query('SELECT id, poster, poster_id, poster_ip, poster_email, message, posted, edited, edited_by FROM '.$db_prefix.'posts WHERE topic_id='.$id.' LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
            if ( !$db->num_rows($msg) ) continue;
        $cur_post = $db->fetch_assoc($msg);
        // Display first paragraph only (comment out next four lines to turn off)
        if ($truncate == 1)
        {
        $paragraph = preg_split("/s*n+/", $cur_post['message']);
            if (isset($paragraph[1])) {
                $cur_post['message'] = $paragraph[0] . "...";
            }
        }
        $cur_post['message'] = parse_message($cur_post['message'], 0);
        $temp .= $cur_post['message'];
        $temp .= "</p></div>";
        if (isset($output)) {
            $output .= $temp;
        }
        else {
            $output = $temp;
        }
        ++$show_count;
    } // end of while
    $output .= "</div></div>";
    return $output;
}
?>
 
        <div class="block">
            <h2><span>Welcome</span></h2>
            <div class="box">
                <div class="inbox">
                    <p>
                    Some Message...
                    </p>
                    <p>
                    Some Other Message...
                    </p>
                </div>
            </div>
        </div>
<?php
echo pun_news(1, 5, 0);
 
require PUN_ROOT.'footer.php';

i have moved this thread here > http://punbb.org/forums/viewtopic.php?id=17381

lol, i mean to the thing, are you talking about the portal cuz thats not really what i want

can i have a link tongue

i have moved this thread here > http://punbb.org/forums/viewtopic.php?id=17381

Im wondering if it is possible to get some php code to copy posted messages in a forum for other pages on my website?
for example a news page?

9

(5 replies, posted in PunBB 1.2 troubleshooting)

lol, nvrmind, i figured it out, it was one of my sucurity codes stuffin it up
thanks for the help anyway...

10

(5 replies, posted in PunBB 1.2 troubleshooting)

i put the punbb forum link into the iframe on my website, clicked the forum link, and it went on the whole screen?
i even checked my coding, nothing wrong with it? could it be something in the minmax.js, thats the only suspicion i have now?

my link code:    
<area shape="rect" coords="475,148,538,166" href="data/forum/" alt="Forums" target="iframe"/>

11

(5 replies, posted in PunBB 1.2 troubleshooting)

why can't i view punbb in an iframe?
I looked in the header for something similar to <base target="_top"> that may be causing it but no luck...
I need it in an iframe for my site, so has anyone had this problem and/or knows how to fix?

!!!thankyou!!! !!!very!!! !!!much!!!
!!!YAY!!!
owe you one

???
what do you mean by chmod
???

I can get it all set up i can put in the config file then it gos to the next page but it has a error saying

An error was encountered
Error: Unable to write configuration cache file to cache directory. Please make sure PHP has write access to the directory 'cache'.


help!!! i dont know what to do

Can some one make a Instant messenger for punbb in java, and it can read from the user/password list in the database so you dont have to register again for the chat???