1

(0 replies, posted in PunBB 1.2 troubleshooting)

Solved, thank god for index rebuilding. smile

Could you post a link to your forum?

3

(8 replies, posted in PunBB 1.2 troubleshooting)

winger wrote:

The coloring works now, but not on the 'Online Today' List, is that possible? To make it colored in the online today list?

I'm sure it is, I just haven't figured out how.

Edit viewtopic.php with a simple if statement, along the lines of:

if ($cur_post['g_id'] == '<group's id>)
$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a><img src="img's location" />';

else
$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a>';

Ofcourse you could go a bit more complex with it, but it's a quick fix.

5

(8 replies, posted in PunBB 1.2 troubleshooting)

#
#---------[ 36. FIND (line:78) ]---------------------------------------------------
#

$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());

#
#---------[ 37. REPLACE WITH ]---------------------------------------------------
#

$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged, color) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.', \''.$db->escape($pun_user['g_color']).'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());

#
#---------[ 38. FIND (line:118) ]---------------------------------------------------
#

$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES(1, \''.$db->escape($remote_addr).'\', '.time().')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());

#
#---------[ 39. REPLACE WITH ]---------------------------------------------------
#

$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged, color) VALUES(1, \''.$db->escape($remote_addr).'\', '.time().', \''.$pun_user['g_color'].'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());

For that, you need to replace both the DB things under

            case 'mysql':
            case 'mysqli':

and

            default:

6

(8 replies, posted in PunBB 1.2 troubleshooting)

Find:

                // With MySQL/MySQLi, REPLACE INTO avoids a user having two rows in the online table
                switch ($db_type)
                {
                    case 'mysql':
                    case 'mysqli':
                        $db->query('REPLACE INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                        break;

                    default:
                        $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                        break;
                }

Replace with:

                // With MySQL/MySQLi, REPLACE INTO avoids a user having two rows in the online table
                switch ($db_type)
                {
                    case 'mysql':
                    case 'mysqli':
                        $db->query('REPLACE INTO '.$db->prefix.'online (user_id, ident, logged, color) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.', \''.$db->escape($pun_user['g_color']).'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                        break;

                    default:
                        $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged, color) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.', \''.$db->escape($pun_user['g_color']).'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                        break;
                }

7

(8 replies, posted in PunBB 1.2 troubleshooting)

I don't know if this is the way slashTHREE did theirs, but we did it like this.

Open main.tpl, find:

<pun_main>

Add after:

        <div class="box">
          <h2 class="box2"><span>Group Legend</span></h2>
            <div class="inbox">
               <tr>
                     <ul>
                    <pun_include "group_legend.php">
                </ul>
               </tr>
            </div>
        </div>
<br />

Open a new file, name it group_legend.php, and paste this in to it:

<center><strong><font color="group'scolor>Group Name</center></strong>

Now save that and upload it to your /include/user/ folder.

And for the coloring the online, make sure you did the mod correctly, especially the part dealing with your functions.php

8

(4 replies, posted in Feature requests)

http://www.punres.org/viewtopic.php?pid=16462#p16462

9

(2 replies, posted in PunBB 1.2 troubleshooting)

Don't know for the actual news part, but I can help with the frontpage boxes.

Replace your main.tpl with the default.

Open Header.php, Find:

else if (defined('PUN_HELP'))
$tpl_main = file_get_contents(PUN_ROOT.'include/template/help.tpl');

Add after:

else if (defined('PUN_PORTAL'))
$tpl_main = file_get_contents(PUN_ROOT.'include/template/portal.tpl');

Now, open your portal's .php file.

Find:

define('PUN_QUIET_VISIT', 1);

Add after:

define('PUN_PORTAL', 1);

And place the frontpage's .tpl file into a file called portal.tpl in your /include/template/ folder. smile

themtkid wrote:

When u say 0$ r u joking or can i make a site like that for no money - thanx

You can make one like it for free, if you have the skill/knowledge.

Yep.

Open viewforum.php

Find [around line 30]:

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

Add above it:

if ($pun_user['g_id'] == '3')
    message($lang_common['No view']);

Save and upload viewforum.php

Open viewtopic.php

Find [around line 30]:

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

Add above it:

if ($pun_user['g_id'] == '3')
    message($lang_common['No view']);

And you can edit what it says through going to lang/[yourlanguage]/common.php and edit what it says to the right of 'No view'. 

Have fun and hope it helps. smile

themtkid wrote:

How much would it cost to have a template designed and coded + all the mods and everything u see on the site.
http://depth-flux.com/forum/forum.php

Lol, thanks, major compliment. tongue

13

(2 replies, posted in PunBB 1.2 show off)

Reines wrote:

Looks nice.

Btw you should send a image/png mime type from your banner rotator script, just now it's being served as text/plain.

Thanks.

14

(2 replies, posted in PunBB 1.2 show off)

www.depth-flux.com

My modded out PunBB design forum. Turned off to guests, but to log on, use Test for the username and test for the password.

15

(1 replies, posted in PunBB 1.2 show off)

Pretty creative idea.  Really helpful to guitar players. smile