1 (edited by Tony 2006-09-03 03:52)

Topic: SRI - Opened 08/31/06

Opened a new site, SRI.
URL:
http://www.stealingrandom.info

We are a powerful website for anyone, whatever your in the mood for, whether it be; humor, serious discussion, entertainment, general life, etc. We have it

Benefits?
Here at SRI we are about having a good time. Some benefits would be, a great site with comedy, we're laid back, great community on the forums, and with your help we can grow larger and have a larger network of users.

Who can use SRI?
ANYONE! can use and enjoy SRI. Help us to grow by promoting us to your friends, family, over the internet, anything will help us grow larger and more enjoyable.

We are a great forum and definently have major potential!
The only thing we lack, are members, and with your help this can be a great community!

So what are you waiting for?
http://www.stealingrandom.info/punBB2/register.php

[img]http://www.stealingrandom.info/gallery/sri3.png[/img]

2

Re: SRI - Opened 08/31/06

i guess your forum is nice, i couldnt see it. rest of site looks good.

Re: SRI - Opened 08/31/06

mode the main.tpl to make the forum fit inside the css template.
here some starter code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>

<!-- Wordpress Template CSS -->
<link rel="stylesheet" type="text/css" href="grass_stains.css" media="screen" />

<style type="text/css">
#brdtitle { display: none; }
#brdmenu  { padding-top: 0; }
#punwrap {
    width: 680px;
    text-align: left;
    margin-top: 6px;
    margin-right: 0px;
    margin-bottom: 6px;
    margin-left: 0px;
    padding-right: 2px;
}
DIV.box {BORDER-COLOR: #CFD9BE; }
.pun H2, #brdmenu {BACKGROUND-COLOR: #fff; COLOR: #E39243; }
DIV.blockpost H2 {BACKGROUND-COLOR: #fff; }
#punwrap * { font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; }
DIV.blockpost DIV.box {BORDER-COLOR: #CFD9BE; }
.pun { font-size: 11px !important; }
/*.box {
    width: 500px;
    margin-top: 12px;
    margin-right: -5px;
    margin-bottom: 12px;
    margin-left: 10px;
    border: solid 1px #999;
    color: #000;
    
}    
.inbox {
    width: 530px;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;
    border: solid 1px #999;
    color: #000;
*/    
}
</style>
<!-- Wordpress Template CSS -->

<!-- Mint 
<script src='/mint/mint.js.php' type='text/javascript' language='javascript'></script> 
 Mint -->

</head>
<body>

<!-- Wordpress Template Header -->
<div class="wrap clearfix">
    
  <div class="header"><strong>Bunpai:</strong> Punbb CMS</div>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<!-- Navigational Menu -->
<div class="topnav" id="nav">
  <ul>
  <li><a href="index.php">home</a></li>
    <li><a href="#">about</a></li>
    <li><a href="forum.php">forum</a></li>
    <li><a href="calendar.php">calendar</a></li>
    <li><a href="gallery.php">gallery</a></li>
    <li><a href="#">contact</a></li>
    <li><a href="classified.php">classified</a></li>
    <li><a href="chatbox.php">chatbox</a></li>
  </ul>
  </div>

    <!-- Wordpress Template Header -->
    <div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="clearer">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>
</div></div>
<!-- Wordpress Template Footer -->
<div class="footer" id="footer">
    <a href="index.php">home</a>  :  
    <a href="#">about</a>  :  
    <a href="forum.php">forum</a>  :  
    <a href="calendar.php">calendar</a>  :  
    <a href="gallery.php">gallery</a>  :  
    <a href="#">contact</a>  :  
    <a href="classified.php">classified</a>  :  
    <a href="chatbox.php">chatbox</a>
    </div>
</td></tr></table>
</div>
</body>
</html>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

4

Re: SRI - Opened 08/31/06

I'm not the greatest with CSS, I just recently started and gained intersting in Web Design.

How would I edit that to make it fit in the CSS template?

[img]http://www.stealingrandom.info/gallery/sri3.png[/img]

Re: SRI - Opened 08/31/06

first open ya main.tpl make copy of it.
replace all the code in side with the html from ya stuff
minus the php file.
then start adding the main tpl stuff to your main.tpl.
i use dreamweaver to edit live.

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

6 (edited by Tony 2006-09-04 15:23)

Re: SRI - Opened 08/31/06

Well I got it done for the mostpart but some of my skins are funky, mostly the dark ones.

This is what happens:
http://www.stealingrandom.info/gallery/problems.JPG

[img]http://www.stealingrandom.info/gallery/sri3.png[/img]

Re: SRI - Opened 08/31/06

example of this working is http://bunpai.com
it is about 85% done!

dude kewl.. rename the index.html to index.php
get the this code and put it at the top

what this does is cookies and session the punbb with the index.php file.
so that member can jump around with out losing there login.
also the extra code is for posting news topics on the front page.

<?php

define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
require PUN_ROOT.'include/parser.php'; 

$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);


$newsid = '4'; //This is the forum the news is retrieved from
$newsdisplay = '5'; //This is how many news articles are displayed.

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)
            $users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
        else
            ++$num_guests;
    }

    $num_users = count($users);
}

$result = $db->query('SELECT COUNT(id)-1 FROM '.$db->prefix.'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
$stats['total_users'] = $db->result($result);

$result = $db->query('SELECT id, username FROM '.$db->prefix.'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
$stats['last_user'] = $db->fetch_assoc($result);

$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
?>

this code is for the area where you want to display the news topics at on the index.php

<table>
                    <tr>
                        <td>
                            <?
                                $result = $db->query('SELECT t.id, t.subject, t.forum_id, p.poster, p.poster_id, p.message, p.hide_smilies, p.posted, g.g_title, f.forum_name FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'posts AS p ON p.topic_id=t.id AND p.posted=t.posted INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id WHERE t.forum_id='.$newsid.' AND t.moved_to IS NULL AND f.redirect_url IS NULL ORDER BY t.posted DESC LIMIT '.$newsdisplay) or error('Unable to fetch announcements', __FILE__, __LINE__, $db->error());
                    
                    if ($db->num_rows($result))
                    {
                            while($cur_post = $db->fetch_assoc($result))
                            {
                                    $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
                                echo "\t\t\t\t\t\t\t".'<p><strong><a href="forum.php">Forum</a> » <a href="viewforum.php?id='.$cur_post['forum_id'].'">'.pun_htmlspecialchars($cur_post['forum_name']).'</a> » <a href="viewtopic.php?id='.$cur_post['id'].'">'.pun_htmlspecialchars($cur_post['subject']).'</a></strong> - Posted '.format_time($cur_post['posted']).' <span class="byuser'.(isset($cur_post['g_title']) ? ' '.strtolower(str_replace(' ', '', $cur_post['g_title'])) : '').'"><strong> » </strong><a href="profile.php?id='.$cur_post['poster_id'].'" class="username">'.pun_htmlspecialchars($cur_post['poster']).'</a></span></p>'."\n";
?>
                                <div class="clearer">
                                    <?php echo $cur_post['message']."\n" ?>
                                </div>
                                <br />
                                <?php
                                if ($cur_post['poster_id'] == $pun_user['id'] || $pun_user['g_id'] < PUN_GUEST)
                                {
                                    echo '<span style="float:right"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a> | <a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a></span>';
                                }
                                ?>
                            <br />
                            <?
                            }
                        }
                        else
                        {
                            echo 'No news';
                        }    
                            ?>                    
                        </td>
                    </tr>
                </table>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: SRI - Opened 08/31/06

this is the login script. once a member sign in it will disappear.

<?php

// Show login if not logged in
if($pun_user['is_guest'])
{
    if(!isset($focus_element) || (isset($focus_element) && !in_array('login', $focus_element)))
    {

    // Load the language files
    // Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
    $redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';

    $required_fields = array('req_username' => $lang_common['Username'], 'req_password' => $lang_common['Password']);

?>
<h2>Login</h2>
        <div class="logintop">
            <form id="login" name="login" name="qpost" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
                <p>
                    <input type="hidden" name="form_sent" value="1" />
                    <input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>" />
                    <?php echo $lang_common['Username'] ?>:
                    <input type="text" name="req_username" size="10" maxlength="25" />
                     <?php echo $lang_common['Password'] ?>:

                    <input type="password" name="req_password" size="10" maxlength="16" wrap="virtual" onkeypress="if(event.keyCode==13) document.login.submit()" />
                     <a href="#" onclick="document.login.submit(); return true"><?php echo $lang_common['Login'] ?></a>  |  <a href="register.php"><?php echo $lang_common['Register'] ?></a>
                </p>
            </form>
        </div>
<?php
    }
}
?>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

9 (edited by Tony 2006-09-04 22:39)

Re: SRI - Opened 08/31/06

Nice, thanks very much!

I'm still having the skin problem though hmm
Only one that really comes in right is the CrystalBlue (Default) skin, I can't figure out what's wrong.

[img]http://www.stealingrandom.info/gallery/sri3.png[/img]