Comic Sans? Really?
2 2009-08-10 14:45
Re: Unable to delete from online list (5 replies, posted in PunBB 1.2 troubleshooting)
I'd try truncating the online table.
3 2009-08-04 15:27
Re: limit posts (5 replies, posted in PunBB 1.2 troubleshooting)
$max_posts = 2000;
$postnumber = array_pop($db->fetch_assoc($db->query('SELECT num_replies FROM '.$db->prefix.'topics')));
if($postnumber >= 2000 && intval($cur_topic['closed'])==0)
{
$db->query('UPDATE '.$db->prefix.'topics SET closed=1 WHERE id=\''.$id.'\'');
header('Location: '.$pun_config['o_base_url'].'/viewtopic.php?id='.$id);
}
Works now.
4 2009-08-03 13:49
Re: limit posts (5 replies, posted in PunBB 1.2 troubleshooting)
After line 105 on 'viewtopic.php':
$max_posts = 2000;
$postnumber = array_pop($db->fetch_assoc($db->query('SELECT num_replies FROM '.$db->prefix.'topics')));
if($number >= 2000 && intval($cur_topic['closed'])==0)
$db->query('UPDATE '.$db->prefix.'topics SET closed=1 WHERE id=\''.$cur_topic['forum_id'].'\'');
Note: Code not tested.
5 2009-08-02 22:51
Re: limit posts (5 replies, posted in PunBB 1.2 troubleshooting)
Limit posts in what way?
6 2009-08-01 03:28
Re: Limiting size of signature images (2 replies, posted in Discussions)
Hypothetical code:
CSS:
.signature img{
max-height: 300px;
}
JavaScript: (e.target part might not work, idk if that's how the onload event works)
var sigs = document.getElementsByClassName('signature');
for(i=0; i<sigs.length; i++)
{
var tmp = sigs[i].getElementsByTagName('img');
for(a=0; a<tmp.length; a++)
tmp[a].onload = function(e){
if(e.target.width > 300)
e.target.style.height = '300px';
}
}
PHP: (regex might not work)
function punbb_parse_signatures( ... )
{
...
$signature = preg_replace('/<img([^\/]+)\/>/i', '<img onload="if(this.height>300)this.style.height=\'300px\';" $i/>', $signature);
...
}
Note: code not tested.
7 2009-07-29 20:12
Re: Question about Navlinks section (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
It's the CSS margin.
8 2009-07-29 16:58
Re: Going into admin panel makes the banner disappear (2 replies, posted in PunBB 1.3 troubleshooting)
If you put the banner in 'main.tpl', you'll have to do it again on 'admin.tpl'.
9 2009-07-29 16:54
Re: Problem with post textarea (5 replies, posted in PunBB 1.3 troubleshooting)
Link to site? I'd like to check the HTML/CSS.
10 2009-07-29 16:52
Re: [REQUEST] Forum Encryption (4 replies, posted in PunBB 1.3 extensions)
What he said.
11 2009-07-28 13:37
Re: Punbb using ANSI-coded special characters in links (5 replies, posted in PunBB 1.3 bug reports)
Well, ߪ doesn't really display an ellipsis in my browser.
12 2009-07-28 03:51
Re: Punbb using ANSI-coded special characters in links (5 replies, posted in PunBB 1.3 bug reports)
But it does display an ellipsis?
13 2009-07-27 19:27
Re: Question about Navlinks section (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
That function is not returning anything.
Use this?
return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>';
That should add the " | ", if it's set in $lang_common (lang/English/common.php).
14 2009-07-27 18:18
Re: Question about Navlinks section (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Show me your entire function. I'll fix whatever you're talking about.
15 2009-07-27 15:55
Re: Batch Group Assign Plugins [Bug] (3 replies, posted in PunBB 1.2 bug reports)
Contact the developer.
16 2009-07-27 15:35
Re: My amature PunBB forum (Revised) (3 replies, posted in PunBB show off)
Looks (almost) completely white on my LCD screen.
17 2009-07-27 15:33
Re: Batch Group Assign Plugins [Bug] (3 replies, posted in PunBB 1.2 bug reports)
Is this a mod?
18 2009-07-27 14:09
Re: Question about Navlinks section (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
19 2009-07-27 14:01
Re: SetTimeout() invalid argument in INTERNET EXPLOER (1 replies, posted in General discussion)
setTimeout(function(){callGA(url)}, 1000);
20 2009-07-27 13:59
Re: Javascript dropdowns and Flash (2 replies, posted in General discussion)
Flash sucks. If it's a video, use the <video> tag and tell everyone to fuck off or get a new browser.
/rant
21 2009-07-27 01:58
Re: Question about Navlinks section (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
It's $lang_common, not $lang_topic.
22 2009-07-25 15:54
Re: database gone !!! (4 replies, posted in PunBB 1.2 troubleshooting)
Open your database admin page (PHPMyAdmin or whatever you use) and see if the tables are still there.
Btw, that error shows that you deleted the Guest account.
These queries should fix that:
DELETE FROM `users` WHERE id=1;
INSERT INTO `users` (`id`, `group_id`, `username`, `password`, `email`, `use_avatar`, `email_setting`, `save_pass`, `notify_with_post`, `show_smilies`, `show_img`, `show_img_sig`, `show_avatars`, `show_sig`, `timezone`, `language`, `style`, `num_posts`, `registered`, `registration_ip`, `last_visit`) VALUES
(1, 3, 'Guest', 'Guest', 'Guest', 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 'English', 'Oxygen', 0, 0, '0.0.0.0', 0);
23 2009-07-25 15:45
Re: How to make a backup from a whole webforum? (5 replies, posted in Discussions)
Why do you want to do a such thing?
Yeah. It's not practical at all.
24 2009-07-25 15:44
Re: Powered by PunBB (2 replies, posted in PunBB 1.3 troubleshooting)
On line 85 of 'header.php':
$forum_head['title'] = '<title>'.generate_crumbs(true).' (Powered by PunBB)</title>';
25 2009-07-24 22:47
Re: Admin Panel (2 replies, posted in PunBB 1.3 extensions)
As long as it has the right HREF, it should work.