pogenwurst wrote:

Also, I believe that a user here, deadram, also developed a "true" read/unread post system which he might be willing to share.

Well if there's a demand, I ~think~ I can get something going. I have a few mods on my board, so I could always write that script I asked about, to convert a diff into the "PunBB install directions". install_mod isn't to hard to write either... Hummm I'm perty busy these next few weeks, maybe sometime near the end of october I can start sending off all my mods to punres.

just grep (or search each file, in windows) for parse_message() calls, and remove them. Skip the parsing and you get html... I'm not sure where the stripping of html "<" ">" and "&" and such happends but I think it's inside the parse_message call.

Or, for a safer site, change the parse_message() function into a single preg_replace, to remove anything with onclick/onload, etc... "<script .*>" so on.

$result = $db->query('SELECT trade_ref FROM '.$db->prefix.'traderfeedback WHERE id='.$cur_post['poster_id']) or error('Unable to fetch feedback', __FILE__, __LINE__, $db->error());

to

  $resultThatIsntTheSameNameAsThatOtherVarAFewLinesAbove = $db->query('SELECT trade_ref FROM '.$db->prefix.'traderfeedback WHERE id='.$cur_post['poster_id']) or error('Unable to fetch feedback', __FILE__, __LINE__, $db->error());

Your missing libs on your webserver, as far as I know.

I got the "session" errors too when I was missing a lib. Forget which one but I ~think~ it's either gd.so or http.so in /usr/lib/php?/(date)/
Use pear to install them if you have admin and ssh access on your webserver. e-mail your admin if not.

205

(1,382 replies, posted in General discussion)

meat popsicle

206

(10 replies, posted in PunBB 1.2 show off)

Umm it's the PunBB News Mod v1.0 I think... I changed around every mod I installed though tongue

Yah, join the club Life Spirit... If you use sqlite, you have to code your own mods tongue
You can base them off other peoples work... but you really have to gt down and dirty with the scripts tongue

Just install your board with mysql or pgsql to get most mods working

208

(7 replies, posted in PunBB 1.2 show off)

ogg is also a publicly owned file format. Meening to add in ogg support to your program, you only need to code the support.

mp3 is the exact same thing as an ogg (subject to the same types of vulnerabilities, ruffly the same compression rate, etc..), but it's a proprietary format. mp3 support requires both the code to support the format, and requires one to pay royalty fees for use of the format.

ogg > mp3 because it's free, as in PunBB free (or apachee web server free, or linux free).
mp3 < ogg because it's costly, as in buying Windows XP costly (or Office XP costly).

MP3 information (pay special attention to "Design limitations of MP3" and "Licensing and patent issues")
Vorbis information This is the encoding format for most .ogg files, but .ogg files acctually support a variety of encoding formats
Ogg information Ogg is only a container format. The actual music or video encoded by a codec will be stored inside an Ogg container.

Ahh, the joy of being part of a GPL project, where everyone other then you uses windows on thier desktop... roll

209

(10 replies, posted in PunBB 1.2 troubleshooting)

this isn't coding, it's regex matching, or regular expression substiitution. tongue big_smile

210

(5 replies, posted in PunBB 1.2 troubleshooting)

Got it:
upload_max_filesize < post_max_size < memory_limit

I just did 1M extra at each increase

Thanks Frank, and others big_smile

(PS: this isn't ment to be attachment mod, but it's perty close... It's supposed to be "music posts" in such a way that only new topics can have attachments, and replies are about the uploaded songs)

211

(1,382 replies, posted in General discussion)

dinner

212

(10 replies, posted in PunBB 1.2 troubleshooting)

Gimme a minute, I might as well add size to my bbcode too, lol tongue

EDIT --

add for $a
    '#\[size=("|\'|)([0-9]+?)\\1\](.*?)\[/size\]#is'

add for $b
    '[size=$1$2]$3[/size]'

Then this for $pattern
     '#\[size=([0-9]+?)\](.*?)\[/size\]#is');

And for $replace
      '<span style="font-size: $1%">$2</span>');

The only downside is if someone says [size=1000000]Really uber to big to view text[/size]
some reading on preg_match might find you a way to limit the number of [0-9] matches in $a

213

(10 replies, posted in PunBB 1.2 troubleshooting)

Also... to tweak it a bit... look at function "preparse_bbcode"

You can add this to the $a array:
'#\[size=\s*([0-9]*?)\s*\]\s*(.*?)\s*\[/size\]#',

And this to the $b array:
'[size=$1]$2[/size]',

It will remove any extra spaces, including new lines, and tabs. and you might want to watch out for people doing this:

[size=1"><my html code that does bad stuffies :/>]Muhahahahaha[/size]

I would recommend doing your '#\[size=(.*?)\](.*?)\[/size\]#', this way:
'#\[size=([0-9]*?)\](.*?)\[/size\]#',

It's much safer to be exact tongue

214

(5 replies, posted in PunBB 1.2 troubleshooting)

I've working on making file uploads integrated into the topics, and have the big parts done (database stuff). I've managed to write some php to let people download the files (since thier stored in /data/music and the www is in /www/pages) and it flushes every 8MB, so even a 100MB file can be downloaded (in 8MB chunks, into the web server buffers). The problem I'm having is with uploading files that are over 8MB. The uploading is done almost the same way avatar uploading is done (I've changed some checks to reflect different vars, and move locations, but effectivly the same way). I've set the hidden max file tag to 20MB and I've set the php.ini to reflect this:

file_uploads = On
;upload_tmp_dir =
upload_max_filesize = 25M

Anyways, when the browser submits a 10MB file or so, it returns to the form, as if nothing was submitted (not even "submit" is set). But anything under 7MB or so works fine.

Here's the error log entry for this problem:

Allowed memory size of 8388608 bytes exhausted (tried to allocate 2201600 bytes)

In the upload code I don't try to "read the file to a variable" or anything... other then the variables of $_FILES['file'] I don't touch the file till a call to move_uploaded_file.

I was hoping, since we have a few upload experts hanging around, one of them could help me out some big_smile

I'm sure it's something I've forgotten to configure, or a missing lib or php add-on.

215

(10 replies, posted in PunBB 1.2 troubleshooting)

'#\[size=(.*?)](.*?)\[/size\]#',

to
'#\[size=(.*?)\](.*?)\[/size\]#',

You forgot that slash around the middle tongue

My website does what your asking, ~I think~ tongue

I used a slightly modified Login Box Below Header mod.

217

(10 replies, posted in PunBB 1.2 show off)

Still having trouble with my ISP, but should clear up soon... (By Sept. 23rd, last I hurd from them... ~.~)

As a side note, I've added music uploads and downloads, integrated right into the forum. This allows people to comment on songs that have been uploaded. Your also able to upload your own music (Please no copyright infringments tongue).

Along with that, there's a "true unread" status for every post, edit, or reply.

Even youtube or google video BBcode (with the option to disable them in signatures, or in posts; when disabled a link will show up instead of the embeded video).

I was just worried about being crazy... and We're not... really... we just like this body o.0

http://webexhibits.org/daylightsaving/b.html wrote:

On August 8, 2005, President George W. Bush signed the Energy Policy Act of 2005. This Act changed the time change dates for Daylight Saving Time in the U.S. Beginning in 2007, DST will begin on the second Sunday of March and end the first Sunday of November. The Secretary of Energy will report the impact of this change to Congress. Congress retains the right to revert the Daylight Saving Time back to the 2005 time schedule once the Department of Energy study is complete.

http://en.wikipedia.org/wiki/Daylight_s … ted_States

There, two sources says I'm not going crazy!

220

(6 replies, posted in PunBB 1.2 discussion)

Or spend 30 minutes and write an admin plug-in with lists or names and dates and post counts and such big_smile

221

(7 replies, posted in PunBB 1.2 troubleshooting)

Ummm, has nothing to do with firefox tongue if php isn't be executed then it's a problem with the server before the data is sent to firefox(/lynx anyone? big_smile /safari/opera/ie) ;p

If your host has an error log, check it and look for stuff like missing libs and/or missing php add-ons. I had the same issue when my http server was inproperly configured, or was missing libs/add-ons.

222

(7 replies, posted in PunBB 1.2 show off)

~.~ people use .ogg format too, you know...

Depends... 777 if the file is own by say "ftp-user" and accessed as "www-user"
755 if the file is owned by the www-user group...

In most cases 777 is the "I don't really know" solution, but ~only~ if you need write permissions in that directory or on that file.

Either way I think it's only by a week that the (North east?) of north america changes ahead of time... so if I'm right, it's less of a problem then being off for 6 months of the year ;p

Maybe it was just NY or something then, but I remeber the last one was all messed up... tongue