Looked nice
(and fun to see that the attachment mod is used, kind of a reward that since one put down 'a few' hours creating it )
You are not logged in. Please login or register.
PunBB Forums → Posts by Frank H
Looked nice
(and fun to see that the attachment mod is used, kind of a reward that since one put down 'a few' hours creating it )
sure, I have the forum still up when I tested the mod when I upgraded it to punBB 1.1.1
and that doesn't have the polls mod ... so I can check that 'check' aswell
considering the wheel is still in developement, the BB's should have a bright future aswell
Attachment info?
number of files, max/averages size, most 'popular' filetype, user with most files, etc perhaps?
(it's easy to know if there are any attachment info ... jsut check if the table is there or not )
just contact me if you want info how the stuff is stored in the database
For discussions, I can understand that -- but what about a Help forum, where you want users to have a clear idea of how to solve any specific problem, yet one problem transforms to another problem, mid-thread. How would anyone else find out about the second problem? The easiest way would be to split the thread and link the two together: then if someone has a problem and needs to look up the second thread they can do so. It just keeps things clean and organized.
and to further complicate it you can have a bunch of messages, that belong to the first thread nestled into the later part of the thread ...
Closed, sticky FAQ threads usually does the trick for help forums ... where one just cut and paste some and edit the first post all the time ...
Have you seen this thread?
Looks nice
(now I can scrap one of my projects on todo list, thanks )
hmm... it's a tricky issue, sure everyone wants to have a bugfree BB, but also, if there are too many updates, people will get tired of that.
When looking at the things in the changelogs, I guess that there are only one problem that an be critical for using the forum ... and that's the 2004-01-24 thing, where people have trouble installing (IIRC)...
Actually, I don't know... I'd probably wait alittle while longer, as it was only yesterday the IMHO most critical bug was found...
If you have an empty annoncement box (i.e. remove the text and not fill in your own), the announcement is automatically set to no (as there was no message to show)
I have tested on both a clean 1.1.1, and the 1.1.1 with my attachment Mod installed, and I have no problem at all with showing the announcements.
Your redirect page that's different shouldn't affect this, as the alteration is made before that template should be contacted...
And now the install_mod.php has the fix ... and the zip is replaced (not like there's a need for a version update, as it's just something if ppl doesn't look at my bold text )
oh ... totally missed this, thanks!
(actually if you're updating, you don't need to do anything in the database, ie ... you don't need to run install_mod.php)
this thread has some screenshots (at the bottom of the first post), screenshots of all the things in the mod IIRC
updated version working with PunBB 1.1.1 is now released, check this thread for info...
##
##
## Mod title: Attachment Mod
##
## Mod version: 1.0.1
## Works on PunBB: 1.1.1
## Release date: 2004-01-21
## Author: Frank Hagstrom (frank_n05pam@hotmail.com)
##
## Description: This mod will add the ability for attachments beeing
## posted in PunBB 1.1.1
##
## Affected files: admin_forums.php
## delete.php
## edit.php
## post.php
## viewtopic.php
## commonadmin.php
##
## Affects DB: Yes
##
## Notes: This mod stores the files in the database, thus you must
## configure it to accept large querys. You must set this
## alittle larger than the files you accept. Settings for
## mysql can be found in my.cnf (or in windows my.ini).
## Furthermore you also need to let php accept large posts,
## and files attached. Set this in php.ini.
##
## The attachment mod can be configured by altering the
## /include/attach.php file, in there you will find the
## following variables:
##
## $attach_use_icon - Set this to false if you don't
## want icons next to your
## attachments. Users that don't want
## to view images, don't see icons.
## $attach_max_size - Set this to the max allowed
## filesize you want to be uploaded.
## Will be dependent on what you have
## set in the configuration of PHP
## and SQL. This is for the whole mod
## and each forum is then configured
## with it's own max size, that cannot
## be larger than this.
## $attach_always_deny - These are the files the attachment
## mod will deny from everyone but
## the Administrators. So if you
## allow all files on a forum, these
## will still be rejected, and it's
## impossible to override by setting
## the forum to allow them. Good for
## the forum owner that he has the
## control, and not the admins.
## $attach_mime_types - This holds different mime types if
## the browser fail to supply them.
## $attach_icon_mime - This array links each mime to an
## icon. Option to link to extentions
## might be added at a later version.
##
## Generated with ModGenerator (http://modgen.cactuz.nu/)
## on: 2003-09-06 20:26:03
## Modified manually to comply with PunBB update
## on: 2004-01-21 15:12:15
##
## 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.
##
##
If you use another language you need to copy en_attachments.php into that language directory and rename the two first letters to match. And then you can edit the language file and if you'd like, e-mail it to me and I will post in on the download page.
On that same link, you will also find a zip containing more colors for the icons, and it also has a template for your own board if you want something other.
Have fun, and remember to make backups
IF YOU UPDATE:
Then you should skip step "2. RUN" when you run the install_mod.php, this is only needed for fresh installs!, sorry all for not making a test if it was already there. Thanks to JohnS for noticing this.
BUG! IMPORTANT!!!!
Guests are recognized as registered users, and can thus post and download attachments that normal registered users are allowed to!!! This is a security risk, and you should update some files according to this post I did a little bit down this thread. I will replace the code and make a version update, as this is an important bug to be ironed out... but if you have installed it, do this fix ASAP!
Sorry all, but the fix is quite simple to perform. And thanks JohnS for bringing this to my attention!
More tweaks to do for later versions
* To get filenames with spaces work better on some browsers (not all), this script change renames some characters to url format.
* For 1.1.5 you need to do a modification in attachment.php. Read this post by me, for information about how you get it to run.
* Furthermore, you need to modify install_mod.php and set 1.1.5 as version number, or whatever the version you're installing it on is. (seems to work with these fixes up to 1.1.5)
When will the new version be released?
I'm not going to rewrite the mod before PunBB1.2 is released. I have come to this conclusion after starting to rewrite it for 1.1.5, but there would just be too much work for nothing, as 1.2 seems to have modifications more or less everywhere, a group system, other output to browser etc.
So, the big rewrite will happen after 1.2 is released, and will take a little while aswell (lots of code to do)
(The rewrite has begun, not much will be the same between the two mods, as rights handling has changed, and I will no longer store files in the database, so pretty much everything is changed...therefore next release will be 2.0)
IIS users!
Important! If you're installing this on an IIS machine, there has once been a problem where the admins are the only ones allowed to post files. So you therefore may ge tthis problem aswell. I have no idea what's wrong, and why it does this. So I haven't come up with a fix for this.
The files that work fully on an apache machine fail on an IIS machine. I'm sorry to say this, but I haven't a clue what's wrong. When I write the new version I'll try to figure out what may have caused it and how to bypass it.
Either way, uploads and downloads still work for administrators.
hmm ... personally I'd use a mailing list for such items ... as it's really what PunBB becomes more or less...
w?|c0m3 to da real world
I think it is how the subscription worked before ... when you got one mail sent for each and every reply in a thread. (not one per visit, but kind of like a mailinglist I guess)
I can say that it quickly added up to alot of mails on a quite small forum
Well I like this way with spaces alot better, as it's impossible to mix what should be smilies, and what not...
YaBB does also parse smilies in text ... a friend of mine wrote that he would update something , and that he started at a certain time, this time was in the end of a thing he had written within parenthesis ... so it said that he
(I'm currently updating it, at 15:48)
what in PunBB would never be parsed wrong ... but in his board, there's a smilie with glasses using the 8) ... so you can probably figure out how ugly it looks ... when that last part of the time is parsed as a smilie
So I'm very glad this board doesn't use that kind of parsing
Edit: hehehe chacmool, but only with 1:06
I hope you're using 1.0.1, as the mod was made for that version, and there are a few things that is altered to the 1.1.1 version of PunBB.
Anyhow, I think I know the reason for that error, and I think I know why I get it aswell ... but I'm currently rewriting it for PunBB 1.1.1
So if you've got time to wait a few days I think I will have done a proper version for PunBB 1.1.1, hopefully a functional
(I will need to rewrite some if statements etc. to get rid of that ... but I hope you've got time to wait )
Edit: I just noticed I got this on the 1.0.1 version of PunBB aswell, strange, didn't happen to me when I betatested it ... hmm.. might be a windows/*nix difference ... or a difference in php versions or something ... anyhow, I'll release a version for PunBB 1.1.1 soon, so then you should use that instead
(if you doesn't have any text in the field for file extentions ... you get this error ... so specifying files to be allowed should still work)
Is there an advantage to use inner join instead of SQL92?
(as I'm used to use the latter method)
mystery solved (well at least one ... how I noticed it ... well, it's still mystery )
well ... I don't know why ... but this doesn't look right
http://punbb.org/forums/viewforum.php?id=40
PunBB without <table>'s [ New posts ] [ 1 2 3 ] Kennel
and when one look in the thread on the first message, it says CSpotkill
http://punbb.org/forums/viewtopic.php?id=3114&p=1
so, a bug, or just something that has happened when you have worked on punbb?
patience is a virtue ....
Name: Frank Hagström
Age: 24 (crap, time flies)
Location: Luleå, Sweden (Lat 65.34 N)
Interests: Where will I start ... all sort of racing (F1, Rally, NASCAR, IRL, Speedway, etc.), carphysics, racingsims(NR2003, GPL, F1C...), 3d graphics, programming just for my projects(quite abit of that)
Other: Studying for a masters degree in Mechanical Engineering...
Hey Kennel you forgot to add your specs
PunBB Forums → Posts by Frank H
Powered by PunBB, supported by Informer Technologies, Inc.