thanks steve everything is fixed....

I have parts of the mini-portal mod installed from the wiki at punres.

it seem that the login form for who online will not validate for me.

HELP!
this is the code that u add to the functions.php

//
// Generate the whos online block
//
function generate_whosonline()
{
    global $pun_config, $lang_common, $pun_user, $db;
    
    if ($pun_user['is_guest'])
    {
        require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
        return 'Welcome Guest!<br />
            Please login.<br />
            <form id="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
                <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>
            </form>';
    }
    else
    {
        require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
        $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);
        
        if ($pun_config['o_users_online'] == '1')
        {
            // Fetch users online info and generate strings for output
            $num_guests = 0;
            $users = array();
            $online = 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".'<a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a><br />';
                else
                    ++$num_guests;
            }
        
            $num_users = count($users);
            $online[] = "\t\t\t\t".$lang_index['Users online'].': <strong>'.$num_users.'</strong><br />'."\n\t\t\t\t".$lang_index['Guests online'].': <strong>'.$num_guests.'</strong>'."\n\t\t\t"."\n";
        
        
            if ($num_users > 0 && $num_users < 10)
                $online[] = "\t\t\t"."\n\t\t\t\t".'<br /><strong>'.$lang_index['Online'].': </strong>'."\t\t\t\t".implode($users)."\n";
            else
                $online[] = "\t\t\t".'<div class="clearer"></div>'."\n";
        
        }
        
        return 'Welcome <strong>'.$pun_user['username'].'</strong><br /><br />
            '.implode($online,'').'<br />
            Users: <strong>'. $stats['total_users'].'</strong><br />
            Topics: <strong>'.$stats['total_topics'].'</strong><br />
            Posts: <strong>'.$stats['total_posts'].'</strong><br />';
    }
}

http://wiki.punres.org/Miniportal#Step_ … ctions.php


Q

i really do need to release a new version of this..hahaha


Q

404

(8 replies, posted in PunBB 1.2 show off)

Steven, the site looks good. i like how u did the mootools. template sorta plan tho.. but over all
8/10.

alot better than most gaming sites.... i seen so far...


keep it up.

405

(6 replies, posted in PunBB 1.2 troubleshooting)

you could try this..
copy the imagee to a folder in the img directory

/img/images

#brdtitle {

/* your logo and position */
background-image: url(../../img/images/montesquieu.png);
background-color: #4C4D4F;
background-repeat: no-repeat;
background-position: right; /* you set your logo position here */
display: block;
height: 200px; /* logo height in here add width: size px if u need*/
margin: -6px -6px -3px -6px;
}

406

(5 replies, posted in PunBB 1.2 troubleshooting)

in the style.css search for #punwrap ( add width:900 px

or here the link...

http://wiki.punres.org/Change_forum_width

Q

407

(21 replies, posted in PunBB 1.2 discussion)

is that not justify? in the td or tr of the script for that topic line?

err ill have to look at the css guide and the script.


looking at ur code u have striped alot of the css from it.
ummm....

ill look at my frontpage mod and see.

Q

408

(21 replies, posted in PunBB 1.2 discussion)

looks like he just centered the topic
so what do ya need help with?


Q

looks good the sidebar is missing the H2 not unless u designed it that way..


looks good over all.
Q

410

(7 replies, posted in PunBB 1.2 show off)

looks good. not use to seeing a sorta plan style.. but it does look good.

Q

hear my code for my site...

http://punlancer.com

and here the actually codes for everything portal and my index...

http://punlancer.com/viewtopic.php?id=39

just remember to take out the welcome.php from my portal.tpl


Q

link to ur site?
so i can tell what mod will work for you?

413

(10 replies, posted in PunBB 1.2 troubleshooting)

or u can go to http://punlancer.com and lookin the forum i explain how i did the portal.tpl and a index page with a side navbar and i give my index.php in there as well!

Q

replace this with your custom image links.

this is in the cs_css

DIV.icon {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2}
TR.iredirect DIV.icon {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1}
DIV.inew {BORDER-COLOR: #0080D7 #0065C0 #0058B3 #0072CA}

with this.

DIV.icon {/*BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2*/BACKGROUND: url(../../img/Samuibley/nonew.gif);} <--your img location
/*TR.iredirect DIV.icon {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1}*/
DIV.inew {/*BORDER-COLOR: #0080D7 #0065C0 #0058B3 #0072CA*/BACKGROUND: url(../../img/Samuibley/new.gif)}  <--your img location

now in the cs.css u must set the size of the image.
find this Div.icon set the width and height of image.


DIV.icon {
    FLOAT: left;
    MARGIN-TOP: 0.1em;
    MARGIN-LEFT: 0.2em;
    DISPLAY: block;
/*    BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em;
    BORDER-STYLE: solid*/
    HEIGHT: 15px;
    WIDTH: 15px;
}

happy modding!
Q

415

(10 replies, posted in PunBB 1.2 troubleshooting)

here you go..

place this in a php file in the include/user folder
mine called test5.php
now go to the main.tpl and add the pun_tag.

<div class="block">
        <h2 class="block2">Recent Post</h2>
        <div class="box">
            <div class="inbox">
             <pun_include "test5.php">       
            </div>
        </div>
    </div>
<?php

showRecent(10); // Set amount of posts to be displayed here

function showRecent($show=5) {
    global $lang_common, $db, $pun_config, $db_prefix;

    $order_by = 't.last_post';
    $forum_sql = '';

//$show = isset($_GET['show']) ? intval($_GET['show']) : 5;
        //if ($show < 1 || $show > 50) $show = 5;

$trunc_len = 30; // Set amount of text to be displayed in subject.

// Fetch $show topics
    $result = $db->query('SELECT t.id, t.poster, t.subject, t.posted, t.last_post 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=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL'.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT '.$show) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());


    
    
            while ($cur_topic = $db->fetch_assoc($result)) {
        if ($pun_config['o_censoring'] == '1')
     $cur_topic['subject'] = censor_words($cur_topic['subject']);
    $subject_truncated = pun_htmlspecialchars($cur_topic['subject']);
 



    echo '<li>  »<a href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.substr($cur_topic['subject'], 0, $trunc_len).'</a>...'."\n";
    }
    echo '</li>';
    return;
}
?>

416

(10 replies, posted in PunBB 1.2 troubleshooting)

do u want that code for recent topics? but it does not use extern.php!



Q

417

(4 replies, posted in Programming)

PM is out there at punres.org it is a mod.

u might want to look at megapun for some of the needs 
http://shedrockonline.com/

what kind of application do u need and what functions does it need to do?
good place to get stuff designed is
http://punlancer.com


Q

that kewl. fsx got it working and smarty fixed some issue.
so now user have to pick a group..

Q

Atest, u can set the time allowed between the post in the admin - options area.

allowing guest to post, is asking for spam... or being hacked. rather have membership over gust post any day.

Liquidator.. when bf2s going to be up again?

Q

420

(11 replies, posted in PunBB 1.2 troubleshooting)

place this in your style.css or put it in base.css inside the style/ folder.


this is the code that i put in a style that will not display the brdtitle or the sub txt (p)
/* brdtitle location*/

 #brdtitle h1 {     position: relative; 
display:none }


 #brdtitle p {     position: relative; 
display:none }

421

(11 replies, posted in PunBB 1.2 troubleshooting)

phaxenor look at the style i made for you?

u will see brdtitle display none....


P.S. i really need to redo that who style.... those big side BG img... errrr
hjahahahaha..


Q

thanks.. you did a great job...
have you seen my member selection in my register.php?

Q

423

(5 replies, posted in PunBB 1.2 show off)

No64 again looks good... someone always got something neg. to say about any one other sites...

lol..

Q

424

(2 replies, posted in Feature requests)

search punres for  Email Digests that is the best way to get update info on thread that on ur site. also lets the member pick there own threads and fav topics.


Q

demo of what mattf did is here http://punlancer.com/contact.php

and now it is in the register.php with some tweaks from the team...