dude... work with in the main.tpl
u can remove objects tags form the main.tpl so pun doesnt display it.

this is my main.tpl for http://bunpai.com
something that im hacking out... in my own style

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
    <meta http-equiv="Content-Language" content="English" />
    <meta name="Author" content="Luka Cvrk (luka@solucija.com)" />
    <meta name="Robots" content="index,follow" />
    <meta name="Description" content="Bunpai Internet Sharing!" />
    <meta name="Keywords" content="Bunpai Internet Sharing!" />
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title>Bunpai Internet Sharing!</title>
</head>
<body>
    <div id="main">
        <div id="logo">
            <h1>Bunpai <span class="blue">Internet Sharing!</span></h1>
        </div>
        <ul id="menu">
            <li class="active"><a href="index.php" accesskey="h"><span class="key">H</span>ome</a></li>
            <li class="active"><a href="gallery.php" accesskey="f"><span class="key">G</span>allery</a></li>
            <li class="active"><a href="forum.php" accesskey="r"><span class="key">F</span>orum</a></li>
            <li class="active"><a href="contact.php" accesskey="p"><span class="key">C</span>ontact</a></li>
            <li class="active"><a href="Links.php" accesskey="o"><span class="key">L</span>inks</a></li>
            
        </ul>
        
        <div id="intro_left">
            <p>The leading textbook in <a href="http://aima.cs.berkeley.edu/">Artificial Intelligence</a>. Used in over 1000 universities in 91 countries (over 90% market share) and the 85th most cited publication on Citeseer.</p>
        
        </div>
        
        <div id="intro_right">
            <p class="white">Artificial Intelligence</p>
            <h1>Term by definition</h1>
            <p>A branch of computer science that studies how to endow computers with capabilities of human intelligence. For example, speech recognition is a problem being worked on by AI scientists.</p>
        </div>
<ul id="menu_left">
</ul>
        
        
        <div id="left">
            <div class="box">
                <p><pun_sidelinks></p>
                <p><pun_include "login.php"></p>
                <p><pun_include "ads.php"></p>
                <pun_userbox>
                <p><pun_include "affiliates.php"></p>
                <p><pun_include "Link.php"></p>
            </div>
            <div class="note">
                <p><a href="register.php" title="Register Now!">Register now</a> to get a one yr access for free!</p>
            </div>
        </div>
        <div id="right">
            <div class="leftcol">
                <p><pun_include "portalnews.php"></p>
                <p></p>
            </div>
            <div class="rightcol">
                <p><pun_include "rss1.php"></p><br />
                
            </div>

            <div class="special">
                <p><pun_main></p>    
            </div>
        </div>
    
        <div id="footer">
            <p>© Copyright <a href="http://modelcrowd.com">MC</a> 2006 · Design: <a href="http://www.solucija.com/" title="Information Architecture and Web Design">Luka Cvrk</a> : Powered by<a href="http://punbb.org" title="Rickard"> Punbb</a> </p>
        </div>
    </div>
</body>
</html>

Q

best thing to do is go to show off!
look thur there....

1,028

(15 replies, posted in PunBB 1.2 troubleshooting)

this is a mini new system that i used on one of my sites...
http://bunpai.com
take this code and place it anywhere you want the news item to showup...

what i did was create a folder called user under include
include/user
i named this portalnews.php
so it is like this include/user/portalnews.php

then i placed this code in the main.tpl where i want the item to show up

<div id="right">
            <div class="leftcol">
                <p><pun_include "portalnews.php"></p>
                <p></p>
            </div>
<?php
$newsid = '1'; // Forum id to fetch the news from ( only supports 1 forum id )
$newsdisplay = '5'; // Number of news to display.

?>

<?php
require_once PUN_ROOT.'include/parser.php';

?>




<?
$result = $db->query('SELECT t.id, t.subject, t.num_replies, t.last_post, t.last_post_id, t.last_poster, t.num_views, 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".' <h2><span>'.pun_htmlspecialchars($cur_post['subject']).'</span></h2>'."\n";
?>


<ul>

<?php echo $cur_post['message']."\n" ?><br />


<?
echo "\t\t\t\t\t\t\t".'<a style="text-decoration: none" href="viewtopic.php?id='.$cur_post['id'].'" class="username">'.pun_htmlspecialchars($lang_portal['Visit_Topic']).'</a>'."\n";
?>

<div style="text-align: right">

<?
echo "\t\t\t\t\t\t\t".'<p class="date">Posted by: <a style="text-decoration: none" href="profile.php?id='.$cur_post['poster_id'].'" class="username">'.pun_htmlspecialchars($cur_post['poster']).'</a> <a href="about.php"> | Read more</a> <img src="images/comment.gif" alt="" />  '.pun_htmlspecialchars($lang_portal['Comments']).': '.pun_htmlspecialchars($cur_post['num_replies']).' <a href="#">Comments (3)</a> <img src="images/timeicon.gif" alt="" /> '.pun_htmlspecialchars($lang_portal['Views']).': '.pun_htmlspecialchars($cur_post['num_views']).'</span></p><br />'."\n";
?>

</div>
</ul>


<?
}
 }
else
{

 }    
?>

1,029

(11 replies, posted in PunBB 1.2 show off)

wow.. that site is killer.. i showed the g/f she was like humm.... book mark that.....

rating 10...


can i add you to my links?


Q

kewl downliner do u got a IM service?
email me it and we can start talking.... working on a game plan .


Q

dr. j IM me for that email you sent me..

Q

what i thought of doing is having bunpai.. a site for people that likes to integrate punbb with css templates.
but have them post there main.tpl or how they did the integration to bunpai. so that people will be able to see how they did it.

as you can see i needs some help ..lol. to set the site up for this.


lol
Q

man you had to bust my bubble?
lol..

Q

that what im trying to do.. with punbb... and a few mods.. so far i got it working right and just need to tweak the style and css....

luka makes designs in the same spirit as sNews, light and fast.

punbb light and fast... does that not make a good combo?



hahaha

Q

hcgtv.. i like luka design work...
i took one of his design and made a puncms from it.. just got to work on the style sheet some more...
example

http://bunpai.com
integrated:
punbb as the engine for the site controlling membership and other funtions.
rss feeder

http://coding.phpground.net/download58- … itleA.html

free instant messenger 
Description: This is an easy configurable free ICQ style instant messenger using PHP and MySQL. All variables are easily configured (even colors and text in different languages) The installation notes are available in header.php.
Version: 1.2 Filesize: 0 bytes
Added on: 23-Jul-2004 Downloads: 1064

i know that you want to use your own login script... but the funtions of punbb and the ability to modify it and other functions that can be added is so much easier to just use the login from punbb with the extern.php functions all the way to new mods.. and all the punportals....
and with the release of 1.3 in the future ...

i would just simply use punbb as the core and backbone for anysite....
hcgtv... what up man..hahaha..


Q

1,039

(14 replies, posted in General discussion)

i really dont think that he would care so long as you kept the copyright and credits intack....


Q

i took it one step father.. in the include/template folder
main.tpl
i took my css template and copied it there  and put the pun tags where i wanted the punbb stuff to show.. i had to create my own style system

http://lh4.google.com/image/whatyourname/ReIzu3IuY3I/AAAAAAAAAQI/w1yYr8t4R3g/s288/bf2site.jpg

dude.. go to punres.org go to wiki look at the mini-portal sections....
u need to add some lines to the header.php
and other useful stuff....
like creating a include/user folder for php inside the main.tpl

http://modelcrowd.com
punportal maxed out. with a few of my own mods...


Q

peter.. to do a simple login script ..
you will need to add a few lines of code to your index.php
then simple seach the forum for the login.php scripts.

go to punres.org click on wiki
go to mini-portal there you will find some useful info on how to integrate stuff.

try this code..this goes at the very top.......

<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'include/parser.php';
 
?>
        your html coding..... that should allow you to put punbb tags inside your html...

this is the login.php block.
here is the code for login...

<?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
    require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
    require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
 
    // 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']);
 
?>
                  <div class="block">
 
<h2><span>Login</span></h2>
<div id="login" class="box">
<div class="inbox">             
        <div class="logintop">
            <form id="login" name="login" name="qpost" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
<div style="text-align: center" class="inform">
 
 
 
 
 
 
 
                <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'] ?><br />
                    <input type="text" name="req_username" size="16" maxlength="25" /><br /><br />
                     <?php echo $lang_common['Password'] ?><br />
 
 <input type="password" name="req_password" size="16" maxlength="16" wrap="virtual" onkeypress="if(event.keyCode==13) document.login.submit()" /><br /><br />
<input type="submit" name="login" value="<?php echo $lang_common['Login'] ?>" tabindex="3" /><br /><br />
                    <a href="register.php"><?php echo 'Register Now!'; ?></a>
                </p>
 
</div>
            </form>
        </div>
</div>
</div>
</div>
<?php
    }
}
?>

good luck..!


Q

1,043

(2 replies, posted in Programming)

http://dafont.com tons of free fonts.

true.. i use those templates to play with..
i like http://oswd.org they have alot of good templates.
i took some and modded them with punbb...
http://justswinger.com is a template that i modded.. it was orange links and a:links and i cleaned it up..

i got a rss mod that i did and it is on http://bunpai.com over on the right side.
it was simple but no ap mod.
what would you think it would cost to design this mod a paid mod.....?

hcgtv, that seem interesting.. but you have to download other programs and then db info from that program.
seem ok.. but what i want is a punbb mod designed for punbb....

im looking at the code for that mod see how to create a mod for punbb and a ap mod to run the back system.


Q

does someone got a working demo?????  and can u paste the code?
how does this create the seperate forum threads for the different catagories?

Q
example:
news
1.tech
2.worldly
3.local
4.govt

hcgtv. i got a mod that i need designed.... rss to thread.
and a ap to control the durations of the thread

to pull rss from cnn and post it to a thread called news. and be able to have catagories
world local tech.. etc.

so what ya think?

smarty, thanks... i can get some of the code and modify it alittle to produce the same effect on my site. with out doing anything to punres.

Largest Tracked Boards

    * 1. BF2S Forums
    * 2. Forums.oleoo.com
    * 3. tourney.ru ??????
    * 4. StealingYour.Info
    * 5. Forum Placebo City
    * 6. Us Kids Know Forums
    * 7. barrowfc.com
    * 8. Saab92x.com
    * 9. ????? ??????????? ??
    * 10. Forum Photo & Retouche Numérique

k, that kewl
im trying to work on a site for integrating punbb in to (web templates) sites.
so it would be neat for some of the articles to be posted there.