1

(9 replies, posted in PunBB 1.2 troubleshooting)

i want ths on my pages how do i add it?

2

(2 replies, posted in PunBB 1.2 discussion)

im done u can dl it here of on punres

3

(121 replies, posted in PunBB 1.2 discussion)

like w/ the css the way it is now

4

(121 replies, posted in PunBB 1.2 discussion)

is the style feature going to stay the same?

i got something like that in a style but it puts the pic in the post topic line 2 they share the same class i thnkx

6

(2 replies, posted in PunBB 1.2 discussion)

its on my forum, but you hav to register to see it big_smile its called quicktime and should be done in a little bit.

I got it now works like a charm big_smile

this worked nice for me. i used

//
// Use this to display 'news' - the recent topics from a specific forum
// expanded to include the first post text, posters, comments, etc.
//

else if ($_GET['action'] == 'news')
{
    $order_by = ($_GET['action'] == 'active') ? 't.last_post' : 't.posted';
    $forum_sql = '';

    // Get the forum id(s) you'd like to post news from
    if (isset($_GET['fid']) && $_GET['fid'] != '')
    {
        $fids = explode(',', trim($_GET['fid']));
        $fids = array_map('intval', $fids);

        if (!empty($fids))
            $forum_sql = ' AND f.id IN('.implode(',', $fids).')';
    }

    // RSS support not implemented, if anyone wants to do it, feel free..
    if (isset($_GET['type']) && strtoupper($_GET['type']) == 'RSS')
    {    
    }
    // Regular HTML output
    else
    {
        $show = isset($_GET['show']) ? intval($_GET['show']) : $show_default_topics;
        if ($show < 1 || $show > $show_max_topics)
            $show = $show_default_topics;        

        $result = $db->query('SELECT t.id, t.poster, t.subject, t.posted, t.last_post, t.num_replies, t.num_views, 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 t.moved_to IS NULL '.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT '.$show.' ') or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
        $show_count = 0;

        if(!$db->num_rows($result))
        {
            echo "No news to display";
        }
        else
        {

            while ( ($show_count < $show) && ($cur_topic = $db->fetch_assoc($result)) ) 
            {
                echo "<div class=newsblock>";
                $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'];
                    
                // Call Avatars Code
                    if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif'))
                    $user_avatar = '<img src="$forums/'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.gif" '.$img_size[3].' alt="" />';
                    else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg'))
                    $user_avatar = '<img src="$forums/'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.jpg" '.$img_size[3].' alt="" />';
                    else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png'))
                    $user_avatar = '<img src="$forums/'.$pun_config['o_avatars_dir'].'/'.$cur_post['poster_id'].'.png" '.$img_size[3].' alt="" />';

                // Simplify frequently required display information
                $thisdate = date('l, d F Y', $cur_topic['posted']);
                $poster = $cur_topic['poster'];
                $comments = $cur_topic['num_replies'];
                $views = $cur_topic['num_views'];

                // If using headlines, then after first item only show headlines...
                if(isset($_GET['headlines']) && $show_count > 0)
                {
                    echo "<p class=\"newsheadline\"><a href=".$pun_config['o_base_url']."/viewtopic.php?id=".$cur_topic['id'].">$subject_truncated</a> ($comments)</p> \n";
                }
                else
                {
                    // 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";

                    $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_id'];    

                    // DISPLAY FOR "Posted on DATE by POSTER"
                    echo "<p class=\"newsdetails\">Posted on $thisdate by <a href=".$pun_config['o_base_url']."/profile.php?id=$posterid>$poster</a> $user_avatar</p> \n";

                    $truncate = isset($_GET['summary']) ? 1 : 0;
                    if ($truncate == 1)
                    {
                        $paragraph = preg_split("/\s*\n+/", $cur_post['message']);
                        if (isset($paragraph[1])) 
                        {
                            $cur_post['message'] = $paragraph[0] . "...";
                        }
                    }

                    // parse BBCode, smilies and HTML
                    $cur_post['message'] = parse_message($cur_post['message'], 0);
                    if ($pun_config['o_smilies'] == '1')
                    $message = do_smilies($cur_post['message']);        
     
                    echo str_replace("img/smilies", "$forums/img/smilies", "<p class=\"newstext\">$message");
                    if ($truncate == 1) { echo "<p><a href=".$pun_config['o_base_url']."/viewtopic.php?id=".$cur_topic['id'].">Read More...</a></p>"; }
                    echo "</p> \n";

                    echo "<p class=\"newsextra\">Comments(<a href=".$pun_config['o_base_url']."/viewtopic.php?id=".$cur_topic['id'].">$comments</a>) | Views (<a href=".$pun_config['o_base_url']."/viewtopic.php?id=".$cur_topic['id'].">$views</a>) </p> \n";                
                }
                echo "</div>"; // end newsblock div
                $show_count++;
            }
        }
    }
}

and did the other two things at the top

like do you have to change it with each date? when you generate?

when i post it says i have dollars but then what am i supposed to do with them? i cant see the lottery or bank thingy? am i supposed 2

Theres kind off some conflict with attachment mod... idk if i installed it correctly

how do you get rid of that whole box?

13

(1 replies, posted in PunBB 1.2 troubleshooting)

nvmind got it

14

(1 replies, posted in PunBB 1.2 troubleshooting)

My forum looks the way I want it to in firefox but in IE the forum is too small?
http://www.cellfuse.com/forum/

15

(1 replies, posted in PunBB 1.2 discussion)

is there anyway not to have one?

that keeps track of the mods ive installed with like a notepad?

how can i put it somewhere else other than the forum like my sites homepage?

how do i integrate announcments? into my site; what variable?

got it workin jus needs / after
define('PUN_ROOT', './forum');
define('PUN_ROOT', './forum/');

jus have to make it look good now

GOOD HOW_TO big_smile

i get this error
The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first.


test.php

<?php
define('PUN_ROOT', './forum');
include 'forum/include/common.php';
include './login_function.inc.php';
login_menu();
?>

the function

<?php

function login_menu() {
global $pun_user;

if ($pun_user['is_guest']) {
  echo "<form id=\"login\" method=\"post\" action=\"/forum/login.php?action=in\" onsubmit=\"return process_form(this)\">
<input type=\"hidden\" name=\"form_sent\" value=\"1\" />
<input type=\"hidden\" name=\"redirect_url\" value=\"".$_SERVER['SCRIPT_NAME']."\" />
<input type=\"text\" name=\"req_username\" size=\"25\" maxlength=\"25\" />
<input type=\"password\" name=\"req_password\" size=\"16\" maxlength=\"16\" />
<input type=\"submit\" name=\"login\" value=\"Login\" />
</form>";
    }
else {
echo "Logged in as: ".pun_htmlspecialchars($pun_user['username'])."<br> Last visit: ". format_time($pun_user['last_visit'])."
<br>Click <a href=\"/forum/login.php?action=out&id=".$pun_user['id']."\">Log out</a>";
}
}
?>

i don think it worked sad
typo i found were here

include './login_function.inc.php'

login_menu();
>?

shud be

include './login_function.inc.php';

login_menu();
?>

ok I read throught the integration forum and want my forum to load where my other pages load. I'm thinking i have to use the mini portal mod, and if so do I have to have all the files in the root directory? b/c ther currently in root/forum.
ex: http://www.cellfuse.com/index.php
Heres the code im useing now

<?php
$page = isset($_GET['content']) && preg_match('/^[a-z]+$/', $_GET['content']) ? $_GET['content'] : 'i';

include('content/' . $page . '.php');

?>

then have my links in the nav bar pointing here

<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?content=a" title='Info about me' class="menu">About</a>

can i have it open here or not.

23

(20 replies, posted in PunBB 1.2 show off)

how did u integrate the forum I wanna do the same thing but am really confused do i use mini portal?

24

(20 replies, posted in PunBB 1.2 show off)

in firefox the long urls overlap the chat box mabey do something bout that no wrap idk

so after i install the mod for 1.2.7 what do i need to change to get it to work?