326

(7 replies, posted in General discussion)

simply go to the tpl and remove the block that all..

include/templates folder edit the tpl ..


Q

intedinmamma wrote:

I think that sums up religion quite nicely. smile

you mean "you think that this sums up religion quite nicely?"

Do explain your reason or thoughts on your remark?

I have not seen a great debate on punbb in a while..


Q

God's Busy



A United States Marine was attending some college courses between assignments. He had completed missions in Iraq and Afghanistan. One of the courses had a professor who was an avowed atheist and a member of the ACLU.  One day the professor shocked the class when he came in. He looked  to the ceiling and flatly stated, "God, if you are real, then I want you to knock me off this platform. I'll give you exactly 15 minutes."

The lecture room fell silent. You could hear a pin drop. Ten minutes went by and the professor proclaimed, "Here I am God. I'm still  waiting."

It got down to the last couple of minutes when the Marine got out of his chair, went up to the professor, and cold-cocked him; knocking him off the platform. The professor was out cold. The Marine went back to his seat and sat there, silently. The other students were shocked and stunned and sat there looking on in silence.

The professor eventually came to, noticeably shaken, looked at the Marine and asked, "What the heck is the matter with you? Why did you do that?"

The Marine calmly replied, "God was too busy today protecting America's soldiers who are protecting your right to say stupid stuff and act like an idiot.   So, He sent me." 

If you don't know GOD, don't make stupid remarks!!!!!!!

lmao>>> I had to share this with you!
Q

329

(11 replies, posted in PunBB 1.2 discussion)

some one say paid style? humm.....


more info please?


Q

i would like to see sometype of admin control for the mod.
for creating channels( a channel called shoutbox) and such.
and how to integrate this in to punbb more?
not talking about iframes.
creating a punbb page and droppin the code to pull the chat.

so sometype of example on how to create styles for it so that it like the main site with links and such.


Q

331

(5 replies, posted in General discussion)

GOOGLE >>> what is my ip? from work!!
they have a vpn setup from one building to another.
easiest thing would be setup localhost and have everyone inside hit the portal.
for remote functions i would look at the router to forward the port to that machine
a link off the main site. maybe mask the ip so that it would look like cnn.com/portal etc.


do they host there own website? then it would be a simple task..

Q

post ur code if you dont mind... maybe someone else could use it?
or maybe we could make it better..haha


Q

this is my lightbox gallery..


http://www.punres.org/viewtopic.php?pid=8387#p8387

Q

334

(13 replies, posted in General discussion)

any one got picture of the eating of the hat?


Q

335

(11 replies, posted in PunBB 1.2 show off)

the site looks kewl...

*bookmarked....
Q

336

(4 replies, posted in PunBB 1.2 show off)

Puntalk.org id for punbb and punres user to talk about anything they want!
anything goes! just respect other users if you are going to talk bad about them.

read rules!!!!


http://puntalk.org

MODS:
image verification with captcha! with spamhaus *thanks to Matt"
my portal mod!
ajax live chat mod!
my index mod "thanks to the guys who help design it with me"




Q

337

(26 replies, posted in PunBB 1.2 discussion)

why not do a whole style that way instead of the front page only?

Q

338

(26 replies, posted in PunBB 1.2 discussion)

ummm sorta ugly....


Q

339

(24 replies, posted in PunBB 1.2 troubleshooting)

here a question for ur admin_options..

how many times will it take you to get it right the first time?
(hint 100000000000000000000000000000000000000000000)
lmao...
kewl marky-poo!!

Q

340

(7 replies, posted in PunBB 1.2 discussion)

hummm that looks like wordpress(lmao>>>)
would be nice to see punbb blog system in there..

hahaha!
Q

341

(7 replies, posted in PunBB 1.2 show off)

matt, humm.... hahaha. that kewl. but i have notice a bug in ie7 sometimes the txt and img are super big with that mod. but once i refresh it fine..

Q

342

(7 replies, posted in PunBB 1.2 show off)

dr J fixed that now..

matt, im looking in to that..
seem sometimes IE7 does load the right images and txt right the first load. can u try to refresh it and see it goes a way?
that a site bug not a style issue.

Q

343

(24 replies, posted in PunBB 1.2 troubleshooting)

post the code fool...
so other can have it as well

Q

344

(7 replies, posted in PunBB 1.2 show off)

can u screen print it?
because in ff ie7 and safari it look fine...

i stopped doing anything for ie6 version..haha..


p.s. first complaint.. lmao>>>
Q

345

(7 replies, posted in PunBB 1.2 show off)

I have created another style for bunpai.com

http://bunpai.com


here is the style for download!

http://www.punres.org/viewtopic.php?pid=22002#p22002



if ur going to complain about my style please keep it down to a few...LMAO>>


Q

346

(24 replies, posted in PunBB 1.2 troubleshooting)

can someone take this a bit farther and create a admin panel where the admin creates the Question and answer?


Q

ok create a whole new group and give them certain rights to each thread.


simple way of doing it Pog.

Q

http://yousite.com/admin_forums.php and edit all the topics

admin -> forum -> change the permission on members to read only promote all the user that can write to Moderators

click on thumbnail!
http://256studio.com/uploads/thumbs/2_untitled.jpg


Q

ok i understand now. thanks for everyones input on this topic...



Q

im looking at your code and i dont see the part with the icon_type in there. I even upload the script to my site and it is not there.

this is my index.php u will find the references to the $icon_type for the db query and the rest of the code.

i hope this will help you !


Q

<?php
define('PUN_PORTAL', 1); 
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>';
        $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 .= "</div>";
        if (isset($output)) {
            $output .= $temp;
        }
        else {
            $output = $temp;
        }
        ++$show_count;
    } // end of while
    $output .= "</div></div>";
    return $output;
}
?>
  
        <?php
/*

PunBB Active Topics

Copyright 2004-2005 Alex King, http://www.alexking.org/

This is a mod for PunBB, http://www.punbb.org/
PunBB is Copyright (C) 2002, 2003, 2004  Rickard Andersson (rickard@punbb.org)

This file is based on the viewtopic.php file in PunBB.

-------------------------------

You can see this in action at the Use Tasks forums:

  http://www.usetasks.com/forums/


To install, include this file below the forums list in your index.php file:



  include('mod_active_topics_1.2.php');

*/

$ak_limit = 10; // change this to the number of active topics you want to display.

$result = $db->query('
    SELECT t.* 
    FROM '.$db->prefix.'topics AS t 
    INNER JOIN '.$db->prefix.'forums AS f 
    ON f.id=t.forum_id 
    LEFT JOIN '.$db->prefix.'forum_perms AS fp 
    ON (
        fp.forum_id=f.id 
        AND fp.group_id='.$pun_user['g_id'].'
    ) 
    WHERE (
        fp.read_forum IS NULL 
        OR fp.read_forum=1
    ) 
    ORDER BY t.last_post DESC
    LIMIT '.$ak_limit
) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php';

?>

<div id="vf" class="blocktable">
    <h2><span>Recent Posts</span></h2>
    <div class="box">
        <div class="inbox">
            <table cellspacing="0">
            <thead>
                <tr>
                    <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th>
                    <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th>
                    <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>
                    <th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
                </tr>
            </thead>
            <tbody>
<?php
// If there are topics in this forum.
if ($db->num_rows($result))
{
    while ($cur_topic = $db->fetch_assoc($result))
    {
        $icon_text = $lang_common['Normal icon'];
        $item_status = '';
        $icon_type = 'icon';

        if ($cur_topic['moved_to'] == null)
            $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
        else
            $last_post = ' ';

        if ($pun_config['o_censoring'] == '1')
            $cur_topic['subject'] = censor_words($cur_topic['subject']);

        if ($cur_topic['moved_to'] != 0)
            $subject = $lang_forum['Moved'].': <a href="viewtopic.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
        else if ($cur_topic['closed'] == '0')
            $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
        else
        {
            $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
            $icon_text = $lang_common['Closed icon'];
            $item_status = 'iclosed';
        }

        if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)
        {
            $icon_text .= ' '.$lang_common['New icon'];
            $item_status .= ' inew';
            $icon_type = 'icon inew';
            $subject = '<strong>'.$subject.'</strong>';
            $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
        }
        else
            $subject_new_posts = null;

        // Should we display the dot or not? :)
        if (1 == 0 && !$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1')
        {
            if ($cur_topic['has_posted'] == $pun_user['id'])
                $subject = '<strong>·</strong> '.$subject;
            else
                $subject = '  '.$subject;
        }

        if ($cur_topic['sticky'] == '1')
        {
            $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
            $item_status .= ' isticky';
            $icon_text .= ' '.$lang_forum['Sticky'];
        }

        $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']);

        if ($num_pages_topic > 1)
            $subject_multipage = '[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]';
        else
            $subject_multipage = null;

        // Should we show the "New posts" and/or the multipage links?
        if (!empty($subject_new_posts) || !empty($subject_multipage))
        {
            $subject .= '  '.(!empty($subject_new_posts) ? $subject_new_posts : '');
            $subject .= !empty($subject_multipage) ? ' '.$subject_multipage : '';
        }

?>
                <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>>
                    <td class="tcl">
                        <div class="intd">
                            <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo trim($icon_text) ?></div></div>
                            <div class="tclcon">
                                <?php echo $subject."\n" ?>
                            </div>
                        </div>
                    </td>
                    <td class="tc2"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_replies'] : ' ' ?></td>
                    <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : ' ' ?></td>
                    <td class="tcr"><?php echo $last_post ?></td>
                </tr>
<?php

    }
}
else
{

?>
                <tr>
                    <td class="tcl" colspan="4"><?php echo $lang_forum['Empty forum'] ?></td>
                </tr>
<?php

}

?>
            </tbody>
            </table>
        </div>
    </div>
</div>

       <?php
echo pun_news(1, 5, 0);
 
require PUN_ROOT.'footer.php';