Solved, thank god for index rebuilding.
2 2007-10-05 18:00
Re: [SOLVED]admin_options Board desription doesn't work in 1.2. (10 replies, posted in PunBB 1.2 troubleshooting)
Could you post a link to your forum?
3 2007-10-01 00:34
Re: How do you... (8 replies, posted in PunBB 1.2 troubleshooting)
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.
4 2007-09-30 03:56
Re: Star next to username (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2007-09-29 14:30
Re: How do you... (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 2007-09-28 20:19
Re: How do you... (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 2007-09-22 20:31
Re: How do you... (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 2007-09-16 20:53
Re: Sub-forums (4 replies, posted in Feature requests)
9 2007-09-14 20:39
Re: frontpage, miniportal (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.
10 2007-09-13 01:37
Re: How much would it cost to make punbb to look like this? (4 replies, posted in PunBB 1.2 discussion)
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.
11 2007-09-13 00:50
Re: Greetings from a recent convert. (2 replies, posted in PunBB 1.2 troubleshooting)
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.
12 2007-09-13 00:42
Re: How much would it cost to make punbb to look like this? (4 replies, posted in PunBB 1.2 discussion)
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.
13 2007-09-09 20:18
Re: Depth-Flux (2 replies, posted in PunBB 1.2 show off)
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 2007-09-09 18:42
Topic: Depth-Flux (2 replies, posted in PunBB 1.2 show off)
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 2007-09-09 18:38
Re: showing off guitar video tabs (1 replies, posted in PunBB 1.2 show off)
Pretty creative idea. Really helpful to guitar players.