251

(18 replies, posted in General discussion)

Are you from Sweden? Google may provide Swedish adverts when they cannot find any english ones, based on the fact that you specified you are Swedish when you registered - I noticed my friend who is Finnish sometimes gets Finnish adverts, yet his webpage is all English.

Sorry i lost the file lol, feel free to delete this post, unless anyone else can find it lying around.

No, you can't.

254

(11 replies, posted in General discussion)

i put mine below the announcement box, and make a healthy amount off them.

who the hell has 2 gig of emails anyway? :S im only at about 21mb used, with 2279 emails.

snoogly wrote:

Currently it has a <br / > above and below the content <p>. How can I remove these line-breaks?

In step 9 find

echo '<div class="center"><b>'.pun_htmlspecialchars($announcement['subject']).'</b> - Posted By '.$announcement['poster'].' ('.format_time($announcement['posted']).') '.$announcement['closed'].'</div><br/>'."\n".$announcement['message'].'<br/>'."\n";

and replace it with

echo '<div class="center"><b>'.pun_htmlspecialchars($announcement['subject']).'</b> - Posted By '.$announcement['poster'].' ('.format_time($announcement['posted']).') '.$announcement['closed'].'</div>'."\n".$announcement['message']."\n";

PS. nice skin on your site smile

Thanks.

This mod removes the existing announcement system and replaces it with a system which will read threads out of a certain board as announcements.

##        Mod title:  Announcements
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.5
##     Release date:  2005-05-02
##           Author:  Jamie (reines@gmail.com)
##
##      Description:  This mod removed the existing announcement system and
##                    replaces it with a system which will read posts out of
##                    a board as announcements.
##
##   Affected files:  include/common.php
##                    header.php
##                    admin_options.php
##                    viewtopic.php
##                    delete.php
##                    edit.php
##                    help.php
##                    moderate.php
##                    post.php
##                    profile.php
##                    style/imports/base.css
##
##       Affects DB:  Yes
##
##            Notes:  This mod involves removing all calls to the parser and
##                    adding it into common.php, this is maybe not as efficient
##                    as it could be, though it saves alot of work.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.

Download

Edit: Added in what Connorhd suggested to delete the cache.

259

(4 replies, posted in PunBB 1.2 discussion)

Thanks alot wink

260

(4 replies, posted in PunBB 1.2 discussion)

Ty smile So i can empty all 3 of them?

261

(4 replies, posted in PunBB 1.2 discussion)

Currently my MySql backup of my forums is ~200mb, and i am moving host. Im not sure what exactly the 3 seach tables (search_matches, search_cache and search_words) are used for, but they appear to be by far the biggest ones. Can i get away with emptying these 3 tables to make moving much easier? What would be the result of emptying them?

Thanks tongue

nice touch, i'll give a try later tongue

263

(2 replies, posted in Programming)

bump

264

(4 replies, posted in PunBB 1.2 discussion)

cows wrote:

would i want to select use frames with ads by google?

no, punbb doesn't use frames.

chmod your cache directory to 777.

266

(2 replies, posted in Programming)

fixed tongue

267

(9 replies, posted in Feature requests)

xevz wrote:

it isn't supported in XHTML Strict

ah maybe that was it, i think i tested as loose.

268

(9 replies, posted in Feature requests)

bug in the validator in that case, i tested it when Smarty's posted that.

269

(9 replies, posted in Feature requests)

http://validator.w3.org doesn't have any problems with it

270

(6 replies, posted in PunBB 1.2 bug reports)

Ataxy wrote:

no the time zone is set right

if the server is hosted in england the admin timezone you want is england, just incase you set the admin timezone to your own

271

(9 replies, posted in Feature requests)

open include/parser.php

line 275:

return '<a href="'.$full_url.'">'.$link.'</a>';

change to

return '<a href="'.$full_url.'" target="_blank">'.$link.'</a>';

line 286:

$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';

change to

$img_tag = '<a href="'.$url.'" target="_blank"><'.$lang_common['Image link'].'></a>';

272

(10 replies, posted in PunBB 1.2 troubleshooting)

I used to have that problem whenever i hit 50 connections, i switched to a new host and now i never get it smile

273

(3 replies, posted in General discussion)

Hits per Day: 340576
Bandwidth per Day: 1.8GB
Both are averages.

274

(2 replies, posted in PunBB 1.2 bug reports)

Looking at moderate.php now, yea it does look like it should be ok... Always gave me a bad request doing it that way though :\

275

(2 replies, posted in PunBB 1.2 bug reports)

The Ip link in viewtopic.php is wrong, currently it is

moderate.php?get_host='.$cur_post['id'].'

but should be

moderate.php?get_host='.$cur_post['poster_ip'].'

tongue