1

(0 replies, posted in PunBB 1.2 troubleshooting)

Wondering if anyone could tell me an easy way to get my Advertisment Box, from Extra Boxes mod, to go to the right side of page instead of bottom-middle.

Thnx!

I have installed the mod, and it shows up in "options" under administration.
But when I enabled it, nothing shows up.

Any ideas?

3

(13 replies, posted in PunBB 1.2 troubleshooting)

hmmm, i guess that would be the reason it's not working!
HA

anything special I have to do to make it generate news on index.php then?, cuz I don't think it's working

4

(13 replies, posted in PunBB 1.2 troubleshooting)

put it in, nothing
I'm using miniportal if that matters

5

(13 replies, posted in PunBB 1.2 troubleshooting)

should i create that folder? because it's not there


edit: created and it said news generated!. Thanks!

What code do I put in index.php to make the new generate there?

6

(13 replies, posted in PunBB 1.2 troubleshooting)

in plugins folder, I have Ap New Generator.php, and an Ap News Generator folder, with news.html and news.tpl in it.

7

(13 replies, posted in PunBB 1.2 troubleshooting)

plugins folder is "777"

Anyone ran across this error?

Error: Unable to write news archive to ./plugins/AP_News_Generator/archive/2005-07.htmlPlease make sure PHP has write access to the directory ./plugins/AP_News_Generator/archive/.

thanks

9

(14 replies, posted in PunBB 1.2 troubleshooting)

first I want to say I am retarded. Second I want to say that while punbb is a great forum solution, what makes it really stand out is these particular forums, and how quickly everyone trys to help people. I thank you all for that.

Now, for the solution to my problem, I am ashamed to admit, it was a permissions problem on index.php

sad

10

(14 replies, posted in PunBB 1.2 troubleshooting)

I appreciate you trying. I'm new to php, but this just doesnt seem right...

I made index.php just with that small amount of code like you suggested. It still does the same thing as before, just a blank page.

But (i'm using gedit) when I edit the code it s all color coded. But this part is all green, just doesnt seem right. I think it may be as simple as some typo in the code?? the following is all thats the same color.

?>
        <div class="block">
            <h2><span>Welcome</span></h2>
            <div class="box">
                <div class="inbox">
                    <p>
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent augue. Nulla facilisi. Fusce bibendum accumsan erat. Quisque sollicitudin mattis neque. Sed dapibus. Integer a lectus eu sem consequat pellentesque. Morbi rhoncus nulla. Duis adipiscing interdum velit. Fusce ante. Ut vitae enim sit amet magna sodales hendrerit. In sed tortor at sapien convallis eleifend. Proin mauris. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut metus. Cras ac arcu et arcu porttitor blandit. Nam vitae lectus eget mauris sollicitudin placerat. Suspendisse vestibulum. Donec varius libero. Duis velit tellus, euismod vitae, consequat sed, consectetuer ut, purus.
                    </p>
                    <p>
                    Praesent viverra venenatis magna. Etiam in dolor. Ut in justo ac nibh malesuada cursus. Duis urna arcu, aliquam vitae, consequat nec, tincidunt non, mi. Nunc lobortis. Nunc pharetra. Sed porttitor. Maecenas turpis tortor, blandit nec, dignissim in, porttitor eu, odio. In hac habitasse platea dictumst. Suspendisse augue odio, ornare a, elementum ac, tincidunt varius, orci. Nulla libero ante, hendrerit ac, consectetuer eu, sollicitudin et, eros. Duis sapien. Suspendisse ornare enim sit amet dui. Donec ullamcorper diam.
                    </p>
                </div>
            </div>
        </div>
<?php

11

(14 replies, posted in PunBB 1.2 troubleshooting)

If anyone has any idea why the text isn't showing up, I'd appreciate any help

12

(14 replies, posted in PunBB 1.2 troubleshooting)

done.

i don't see any difference.

13

(14 replies, posted in PunBB 1.2 troubleshooting)

Thanks for the idea, but it didn't help. I'm probably making a stupid rookie mistake.
If anyone else has nay ideas, all help is appreciated.

Here's my index.php file:
<?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>
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent augue. Nulla facilisi. Fusce bibendum accumsan erat. Quisque sollicitudin mattis neque. Sed dapibus. Integer a lectus eu sem consequat pellentesque. Morbi rhoncus nulla. Duis adipiscing interdum velit. Fusce ante. Ut vitae enim sit amet magna sodales hendrerit. In sed tortor at sapien convallis eleifend. Proin mauris. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut metus. Cras ac arcu et arcu porttitor blandit. Nam vitae lectus eget mauris sollicitudin placerat. Suspendisse vestibulum. Donec varius libero. Duis velit tellus, euismod vitae, consequat sed, consectetuer ut, purus.
                    </p>
                    <p>
                    Praesent viverra venenatis magna. Etiam in dolor. Ut in justo ac nibh malesuada cursus. Duis urna arcu, aliquam vitae, consequat nec, tincidunt non, mi. Nunc lobortis. Nunc pharetra. Sed porttitor. Maecenas turpis tortor, blandit nec, dignissim in, porttitor eu, odio. In hac habitasse platea dictumst. Suspendisse augue odio, ornare a, elementum ac, tincidunt varius, orci. Nulla libero ante, hendrerit ac, consectetuer eu, sollicitudin et, eros. Duis sapien. Suspendisse ornare enim sit amet dui. Donec ullamcorper diam.
                    </p>
                </div>
            </div>
        </div>
<?php
echo pun_news(2, 2, 0);

require PUN_ROOT.'footer.php';


And when you view source on the browser all you get are the html and body tags


www.officequarterback.com/index.php
www.officequarterback.com/forum.php

14

(14 replies, posted in PunBB 1.2 troubleshooting)

Yes, i did that. I have the index file there.
I was expecting it to show "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent augue. Nulla facilisi. Fusce bibendum accumsan erat. Quisque sollicitudin mattis neque. Sed dapibus. Integer a lectus eu sem"....etc

But it's just a blank page. Anything I possible could have done wrong?

Or is it supposed to be blank?

15

(14 replies, posted in PunBB 1.2 troubleshooting)

so it is supposed to be blank?

isn't it supposed to show the Welcome text thats in the code? or am I really stupid?

16

(14 replies, posted in PunBB 1.2 troubleshooting)

I tried installing the miniportal. My index page is blank. Any ideas?

www.officequarterback.com/oqb/index.php
www.officequarterback.com/oqb/forum.php

one last question for you, your site: pluriservices.net
What did you use for the main page? Hand coded or a mod/plugin?
By the way, it looks great

thanks for the reply.
all you guys really make this forum awesome.

my forum: www.officequarterback.com/oqb

id love to have the main page (thats the mini-portal ?)

Where it asks for forum id 21, is that the same as the position?

I've searched the forums and didn't really find an answer. I installed News Generator, and it shows up fine in the admin options. Whenever I click on "generate News", I get: "There are no topics to generate news based on in forum with ID = 21." thoughts?

I also would like a frontpage that is controlled by punbb, does the news generator do that?

All help is appreciated.

I like your main page alot. Is there a particular Mod or plugin that gives you that page?
Sorry if it's a dumb question....

Got it fixed, but thanks Smartys

No change.

And thanks for replying so soon.

All other possibly significant info:

Running it direct from server, folder called "oqb" in html folder (linux)
everything is in "oqb" folder

Little more info:

Running fedora core 4, a little new to linux sad
PunBB 1.2.5

Here's my config.php file:

<?php

$db_type = 'mysqli';
$db_host = 'localhost';
$db_name = 'officeqb';
$db_username = 'root';
$db_password = 'password';
$db_prefix = 'oqb_';
$p_connect = false;

$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '292c5af9';

define('PUN', 1);

I'm am attempting to install PunBB for the first time. I think I have done everything specified but now when I go to http://localhost/mydirectory/ I get this:

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

When I click on the link for install.php I get :

The file 'config.php' already exists which would mean that PunBB is already installed. You should go here instead.

It's just a loop. It says it's installed, but says it isn't working and needs installed. Please help.