qie wrote:

Why not using admin panel, the user management plugin?  That's delete the user with 0 posts.

what if users want to just read topics instead of posting a reply.. u will kill your membership that way..

Q

302

(10 replies, posted in Programming)

this is the site that got me started playing around with css templates and main.tpl
then i started learning about the portal.tpl and what i could do with it.
a site that sorta slow that i did but is completely controlled by punbb is
http://modelcrowd.com  i took a (wordpress template) searched and fount the css template and started creating a punbb style.
i had coppermine and wp and punbb all in one integration but i didnt like all the admin panels to do everything.
so i killed wp and cpg.. ended up doing my own simple gallery

http://almosteffortless.com/2005/09/25/ … and-punbb/


Q

303

(4 replies, posted in Programming)

lmao>>

304

(4 replies, posted in Programming)

i  know i was posting apart of the code  for mark..lol..
but i will post the complete code so that people can correct there portal...lol


Q

mark here is the right code for who online?

//
// Generate the whos online block
//
function generate_whosonline()
{
    global $pun_config, $lang_common, $pun_user, $db;
    
    if ($pun_user['is_guest'])
    {
    if (basename($_SERVER['PHP_SELF']) == 'login.php')
    {
        $loginid = 'login0';
    }
    else
    {
        $loginid = 'login';
    }

        require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
        return 'Welcome Guest!<br />
            Please login.<br />
            <form id="'.$loginid.'" method="post" action="login.php?action=in"
onsubmit="return process_form(this)">
<div>
                <input type="hidden" name="form_sent" value="1" />
                <input type="hidden" name="redirect_url" value="index.php" />
                <label><strong>Username</strong><br /><input type="text" name="req_username" size="13" maxlength="25" tabindex="1" /><br /></label>
                <label><strong>Password</strong><br /><input type="password" name="req_password" size="13" maxlength="16" tabindex="2" /><br /></label>
                <p><a href="register.php" tabindex="4">'.$lang_login['Not registered'].'</a><br />
                <a href="login.php?action=forget" tabindex="5">'.$lang_login['Forgotten pass'].'</a></p>
                <p><input type="submit" name="login" value="Login" tabindex="3" /></p>
            </div></form>';

I just release a sidebar nav control mod!

this is for the portal system and megapun version only !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Description:  This gives you the control to add links to your sidebar nav. and keep your menu bar clean and un-junky with tons of links

http://www.punres.org/viewtopic.php?pid=22496#p22496


ps. here you go guys its on the wiki aswell, don't say i never do anything for you!!
http://wiki.punres.org/Miniportal#Side_bar_nav

307

(1 replies, posted in Programming)

thanks to ben and mark.. i got it..


Q

308

(1 replies, posted in Programming)

i need help with a sql query


can some one give me the query for



o_additional_navlinks



i want to be able to incert a new table into the config
called

o_additional_sidenav
i need the save structure as o_additional_navlinks


thanks

Q

309

(10 replies, posted in Programming)

i mostly take the wordpress to punbb tpl
and wrap my html inside it and use the puntags to place my stuff...

so i can have a normal css template as a punbb style.

Q

310

(10 replies, posted in Programming)

oh ok.. i thought that you needed the defien statement.. my bad..

im trying to understand what u mean ... u need the code that pulls the tpl from the header?



Q

311

(10 replies, posted in Programming)

i always try to put all my css stuff in the css files so i took the css part out of the portal.tpl and added it to the base.css so no matter what style i use it will give me the portal layout for the sidebar.

1.open base.css up
you can find this in the style/imports folder

at the top or bottom place this css

please make sure you remove this from the portal.tpl!!

 #left {
        width: 174px;
        float: left;
        margin-left:3px;
    }
    #main {
        margin-left: 186px;
        margin-right:6px;
    }
    #container {
        width: 100%;
        float: right;
        margin-left: -181px;
    }

Q

312

(10 replies, posted in Programming)

Matt, did u add the

define('PUN_PORTAL', 1);
to the top of each page that you wanted it to pull the portal.tpl?

line 1. <?php
line 2. define('PUN_PORTAL', 1);

example code of the index to pull the portal.tpl

<?php
define('PUN_PORTAL', 1);//special note! add this line to any page to pull the menu on left side!! 
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';

Q

313

(4 replies, posted in Programming)

i downloaded a toolbar studio that will make anytype of toolbar sorta looks like the googlebar.

if u are interested in helping hit me up on msn
scot405583 @ passport . com

it might take about a few hrs to configure the settings..
i have a demo ready with google search and some hyper links
but for now it is for ie6 or 7 only

Q

314

(4 replies, posted in Programming)

yes, but i wanted to design one...haha..

Q

315

(1 replies, posted in General discussion)

http://punres.org release it as a mod?

u got a demo site?

316

(4 replies, posted in Programming)

I'm working on a puntool bar for ie6,7, and FF

im looking for 1 or 2 people to help out.
i have the program and i will send it to you.

functions of toolbar

punres rss feed
punbb rss feed
google serach
ad block
popup blocker

anyone interested please email me scott @ bunpai . com

i do have a working demo(for IE only!) but i want to limit access to it right now for feedback!
Q

I agree there too.
Even when dating I find that each person has there own beliefs and you have to mix the two belief's is sometimes hard.
But that is the right to believe what you want and how you want without anyone else saying something different.


So, for the people who are against the freedom of religious right! Don't stand on the platform!  Because there is always someone or something greater that will  knock you off.

Q

go to your profile  then go to display..
drop the style down submit.
then if it works
go to administration option select ur style.

can u give link to ur site?
Q

style.css goes in the /style folder
style_css goes in the /styles/imports folder

look at the oxygen.css and the oxygen_cs.css
for location.

or simply copy ur code to the oxygen from the style.css
same for the _cs.css


Q

320

(4 replies, posted in PunBB 1.2 discussion)

Looks good I hope it will work for you..


Q

then go find base.css
and add it there.
it will affect all the styles..

Q

322

(5 replies, posted in PunBB 1.2 show off)

Site looks good..


Q

zentropy why put that in the main.tpl
add that to the style_css.css

add
#punwrap{
margin-top:20px;}

Q

Intedinmamma, I completely agree with you on the your outlook of religion. just that sometimes that is the hardest thing to talk about with people.

I was not trying to debate to start a fight or argument. I was basically asking your's or anyone outlook..


Thank you for sharing your option.

Anyone else care to comment?


Q

325

(1 replies, posted in PunBB 1.2 troubleshooting)

search punres for  keyword spamhaus
spambot there are a few things that will stop that..

Q