Topic: got bored completely redid my site..

I got bored and completely redid my site.


http://bunpai.com

so what ya think?
it is about 85% done!

Q

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: got bored completely redid my site..

i like that template.

~James
FluxBB - Less is more

Re: got bored completely redid my site..

Quite nice, but not valid.

4

Re: got bored completely redid my site..

hehe I see you went with my idea wink ... or not ?

Re: got bored completely redid my site..

i started playing with the main.tpl and then i started looking at how punbb is put together. and decided to mix it up either way i get it to work ..
a little css and punbb magic working together.
the register.php is completely out of the normal reg file. i added the php stuff to a html file.
and so is the index.php
if you want to see the normal mod for main.tpl
http://bunpai.com/index1.php
compaired to
http://bunpai.com/index.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 !!!

6

Re: got bored completely redid my site..

You spelt modded wrong on the footer, i like it... but i don't like the link hover colour on the top nav.
I've just used that portal mod, but i'm currently havving problems with fitting it in the layout.
Nice, thumbs up

7 (edited by quaker 2006-09-05 21:15)

Re: got bored completely redid my site..

the version that i use is a different one that on punres.
i had did all the upgrades from 10 to 12 and added a few other mods to it.
it is not hard to mod to a css template it is all in the main.tpl.
and u might have to change the width of a few txt blocks.
i can post my index.php or index1.php or even the main tpl if will help you.
ill fix the spelling error
ops i even did the firefox and IE fix. so it looks half way good in both..lol..

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 !!!

8

Re: got bored completely redid my site..

I don't think Knology is even a word.

Re: got bored completely redid my site..

Hi,

I can se you have some kind off mod on you forum, so you can view the different forum instead off showing them all via forum.php, do you have a link to that mod ??

10

Re: got bored completely redid my site..

Yeh i modded the .tpl fine, thats ok, its just on a few pages where theres an extra nav (e.g your profile) the nav displays with the content and not in the nav bar. Not got round to really attempting to fix it though... but if you know the soloution it would be rather appreciated big_smile
Is knology a play on technology or knowlege... or both? just curious.

11

Re: got bored completely redid my site..

here my index.php
this goes for the header.

<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / New page 1';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
$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 goes where you want the news topic to display at.
remember to set the news id by the forum id that you want to pull from.
and also the number amount of the to pull
here the code..

<h2>Site News</h2>
<p><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 !!!