76

(21 replies, posted in PunBB 1.2 discussion)

I'm doing something wrong cause I get a blank index.

77

(21 replies, posted in PunBB 1.2 discussion)

so I would do for example:
define PUN_ROOT.'include/template/portal.tpl';

Then I would put that in

#left {
    width: 200px;
    overflow: hidden;
    float: left;
}
#right {
    width: 200px;
    overflow: hidden;
    float: right;
}
#main {
    margin-left: 212px;
    margin-right: 212px;
}

But how would I write in the tpl?

78

(21 replies, posted in PunBB 1.2 discussion)

Now to put sidelinks tongue

79

(4 replies, posted in PunBB 1.2 show off)

Link:
http://openwings.gigacities.net

Style:
I've just finished working on the light theme.

Mods:
PBB ChatBox 2.0 [Disabled]
PunArcade [Enabled]
Colored Usergroups 1.0.2 [Enabled]
Affiliates Mod 1.0 [Enabled]
Reputation Mod [Not Working Properly]
Cash Mod with Shop Mod [Disabled]
Private Messaging Mod [Enabled]

Plugins Installed:
Forum cleanup
Broadcast Email
Global topic
User management
Languages and styles
DB management
Clear Cache

Registration Page:
http://www.openwings.gigacities/register.php

That's about it. Tell me things I should change, things I should do and things I shouldn't do. Registering wouldn't hurt wink Oh  and BIG shout to Tubby for the portal.

80

(21 replies, posted in PunBB 1.2 discussion)

I put it in base.css, seems to work fine.

81

(21 replies, posted in PunBB 1.2 discussion)

Thanks a lot but where do I put the css? in base?

82

(21 replies, posted in PunBB 1.2 discussion)

I'd like to be the way he organize it:

http://img404.imageshack.us/img404/8363/picture1bg5.png
Thats how I want my news to look like, like his.

83

(21 replies, posted in PunBB 1.2 discussion)

I have this for my portal news:

<?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(1, 5, 0);
 
require PUN_ROOT.'footer.php';

I'm really bad at coding so can anyone help me make it the news look like: http://punbb.ofingo.com

84

(3 replies, posted in PunBB 1.2 troubleshooting)

Or move the files and then update the base URL wink

85

(1 replies, posted in PunBB 1.2 show off)

Where did you get the forum icons?

86

(1 replies, posted in PunBB 1.2 troubleshooting)

Fatal error: require_once() [function.require]: Failed opening required 'PUN_ROOTlang//reputation.php' (include_path='.:/usr/share/php') in /www/gigacities.net/o/p/e/openwings/htdocs/include/reputation/rep_profile.php on line 26

Very nice mod Tubby, modified it a little but can't remember what I did tongue Wasn't important.

88

(2 replies, posted in PunBB 1.2 troubleshooting)

Oh okay, thanks.

89

(2 replies, posted in PunBB 1.2 troubleshooting)

Fatal error: Call to undefined function restore() in /www/gigacities.net/o/p/e/openwings/htdocs/install_mod.php on line 126

Does this mean that the "functions/queries" are already gone?

Fixed the validation. tongue

90

(71 replies, posted in News)

Thanks, but I still don't understand how to upgrade 1.2.15 to 1.2.16 lol.

Seems nice going to try it later on.

92

(11 replies, posted in PunBB 1.2 troubleshooting)

Ah fuck it to complicated for me.

93

(11 replies, posted in PunBB 1.2 troubleshooting)

How do I fix thst is what I'm asking.

94

(11 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Don't delete the guest user. The error you got indicated that you deleted the guest user.

Okay I'm so lost, can you give me an example?

95

(11 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Not in the actual database, maybe in your dump. Otherwise that error messages wouldn't happen.

I've deleted the new guest database for the old one thats all I did. In the actual database, I didn't touch anything but I'll go check. What do I have to find and what do I have to do. I really suck with manging database. I'm here cause I want to learn.

96

(11 replies, posted in PunBB 1.2 troubleshooting)

Nope the guest is still there:

INSERT INTO users (id, group_id, username, password, email, title, realname, url, jabber, icq, msn, aim, yahoo, location, use_avatar, signature, disp_topics, disp_posts, email_setting, save_pass, notify_with_post, show_smilies, show_img, show_img_sig, show_avatars, show_sig, timezone, language, style, num_posts, last_post, registered, registration_ip, last_visit, admin_note, activate_string, activate_key, num_posts_chatbox, last_post_chatbox, rep_minus, rep_plus, reputation_enable, reputation_enable_adm) VALUES('1', '3', 'Guest', 'Guest', 'Guest', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', NULL, NULL, NULL, '1', '1', '0', '1', '1', '1', '1', '1', '0', 'English', 'Oxygen', '0', NULL, '0', '0.0.0.0', '0', NULL, NULL, NULL, '0', NULL, '0', '0', '1194272699', '1', '1');

97

(11 replies, posted in PunBB 1.2 troubleshooting)

Is it possible to user a clean data base from the db management and add users and post to that database from wordpad. If so how could I do it because I tried and I got an error saying; Unable to fetch guest information. The table 'users' must contain an entry with id = 1 that represents anonymous users.

98

(8 replies, posted in PunBB 1.2 troubleshooting)

How did you install Punbb?

99

(7 replies, posted in PunBB 1.2 troubleshooting)

Okay thanks a lot for the help, both of you.

100

(7 replies, posted in PunBB 1.2 troubleshooting)

Scripter wrote:
pogenwurst wrote:

@Smartys: it sounds like he's saying that they actually do all have the same IP address (e.g. they're all connecting from the same school, office, etc.), not that PunBB is mistakenly showing users with different IP addresses as having identical ones.

If that's the case, then simply comment out or delete the following few lines of code in register.php:

82         // Check that someone from this IP didn't register a user within the last hour (DoS prevention)
83         $result = $db->query('SELECT 1 FROM '.$db->prefix.'users WHERE registration_ip=\''.get_remote_address().'\' AND registered>'.(time() - 3600)) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
84     
85         if ($db->num_rows($result))
86             message('A new user was registered with the same IP address as you within the last hour. To prevent registration flooding, at least an hour has to pass between registrations from the same IP. Sorry for the inconvenience.');

Okay thanks, hopefully that will work. BTW it registers from the servers ip. layeredpaneltest1.gigacities.net

Does that mean that my ban function won't work correctly?