considering you've set up a forum where you allow all, I take it as you have done all the neccessary settings in Admin-Forums. (using the checkboxes etc to allow users to upload)

but it sounds like you have something wrong in the mod, did you use the zip file linked from the first post aswell, and added all fixes written in the first post?  (it sounds like either attach.php is faulty, or there are more than one line missing), considering only admins can post/see files, it implies that it's something with the if statements and/or calls to functions in attach.php to check if user is allowed or not...


I'm quite occupied tomorrow, but in the evening I should probably find some time to do some hunting smile
If you like, you can compress the php files, and I can take a peak on them ... (in that case, mail me an url to the archive, to frank_n05pam@hotmale.com, and replace hotmale with msn's mail service big_smile)

Edit: Saw that you had mailed that the mail didn't work, but it did work, only that the hotmail spam filter had put the mail in junk mail, but I saw it and replied ... (then I saw the mail from this email-form on PunBB that you couldn't mail, but it did work ... must have been because it was delivered into the junk mail box or something, further emails should go to my inbox)

Edit: I have recieved the files, and when I unpacked the zip PunBB weren't installed correctly, at leat what it seems, so the problems is most probably there. I'm actually amazed stuff worked at all, to be honest. Hopefully moving all files to correct position will make it all work (and there was some files missing aswell, or at least "include/attach.php")

Edit: got another file, everything looks ok to me, no idea what might be wrong...

Edit: and so does the database ... I'm now fresh out of ideas ...

Edit: We have to give up, there's something that I cannot find, and a fully working version on apache fail on IIS, if it's apache vs IIS I'm not sure, as admins can upload, so it might be a combination of IIS+PHP, but I'm not sure.... either way, the user having these problem could let people be administrators.

827

(36 replies, posted in General discussion)

well, when you upgrade, just let things stack up on a shelf somewhere, sooner or later there are enough parts to build a new computer, that's the case for both my servers ... or ... 'my' servers is more correct, most of the parts in the windows server is my brothers, and most parts in 'my' linux server is mine ... I upgraded a year ago, and as I needed to upgrade so much, I almost had everything I needed... except an atx case, so my bro carved and glued a paper box instead, no problems so far big_smile

828

(36 replies, posted in General discussion)

I have two servers in my closet (both remotely controlled, so I never go in there big_smile)
Win machine
Intel P2 Celeron 540MHz
256MB RAM
1 40GB splitted in 2 partitions, first with NTFS, and some 10GB FAT32(a game that refused to run on NTFS)
Win 2k
OpenSA (a bundled package of Apache, mysql, php, ssl etc.   Unfortunately seems to be dead nowadays)

Primary use: Dedicated Multiplayer server for carsims. Web part going down when I find time to move those last few things over to my webserver big_smile


Linux Machine
Dual P2 Celeron 300a @ 450MHz (50% overclocked, stable, no extra cooling needed, lol)
256MB RAM
~40GB in hdds (2 drives IIRC big_smile)
Debian, Woody (the stable version)
Apache/1.3.26
PHP/4.1.2
Mysql/3.23.49

Primary use: Web and local fileserver.


I used Redhat on my linux server at the beginning, but the computer started to lock up (or be very occupied with something), so I got tired of it eventually, and de-installed Redhat, and installed the Stable Debain package instead, and I have never ever had the same problems.

829

(14 replies, posted in General discussion)

Powered by PunBB
Version: 1.1.4

Ower hasn't the latest version (it's 1.1.5 here)

830

(7 replies, posted in General discussion)

dyndns.org has some documentation about their service, I guess that's the best way to get correct info wink

(I use it, but have a static IP, so I don't need any programs that update my IP, people that have different IP's need a little util that will tell the dns server what ip you have)

a tip, you can supply the max size to the form as an hidden input, and the browser should automatically tell the use that the file is too large smile

(from the top of my head, something similar to this, might be worth etiher to check my mod or html documentaiton, there are obv some browsers ignoring this, but it should help users with correct browsers)

<input type="hidden" name="MAX_FILE_SIZE" value="123456">

true ... like shell access to mysqldump big_smile

hehe, I won't complain... but I doubt that many hosts allow one to fiddle in php settings big_smile

834

(8 replies, posted in PunBB 1.2 show off)

Rickard wrote:

Frank H: That is another solution, but I can't see what advantages it has. It requires two separate actions (add variables to the global array and call the function) instead of one.

well ... it's possible to include get tags for mods in the small code snippets the mods use, instead of needing to modify a line in the original code(and therefore making muliple mods to clash) ... but, hmm... I just figured out that you don't always want to send the same get tags on every url tongue ... hmm... actually then your way is probably the best way to go ... or ... I'll probably extend the function alittle for me (also allowing an array in the function call)

835

(8 replies, posted in PunBB 1.2 show off)

there is a '<a name="'.$postid.'"></a>' at every post, and the # is a html indicator to jump to that named position ... so a #3 at the end means it will jump to the nametag that has the value 3 ....

<div><a name="23183"></a></div>

from the source of this page ... so if you put #23183 at the end of the current url, you will jump to that post

836

(8 replies, posted in PunBB 1.2 show off)

oh, and that rewrite you've made seems to work fine ... nice work smile

837

(8 replies, posted in PunBB 1.2 show off)

perhaps just a variable that the function fetch with a global ... so people just write like this in the code

}
if($super_duper_mod)
{
  //set a get variable to be used
  $url_var['myid']=generate_random_user();

  //lots of other code
}

//lots of code

$url_var['id']=$fid;
echo '<form action="'.pun_url('post.php').'">'; //etc...



and the pun_url function


function pun_url($url='error.php')
{
  global $url_var;
  $first=true;

  foreach $url_var as $key=>$value
  {
    if($first)
    {
      $url .= '?' . $key . '=' . $value;
      $first=false;
    }else
      $url .= '&' . $key . '=' . $value;
  }
  return url;
}

or something similar ... (heh I wrote it as I anyway needed to write one, have thought about it for a while, but never got to rewriting my  little thing for it big_smile)

838

(3 replies, posted in PunBB 1.2 troubleshooting)

it's answered in the FAQ document that came with the zip file, you need to upload and run a file

839

(5 replies, posted in PunBB 1.2 troubleshooting)

There is a poll mod, but not so sure about those other.

840

(5 replies, posted in PunBB 1.2 troubleshooting)

hack = mod

webservers usually defaults to something if no content-type is sent, but you might be right, perhaps it doesn't send anything?


I would suggest the usual thing when things fail, redownload the zip, and unpack it again, and then resend the files up onto the server ... sometimes downloads and uploads on the internet can fail, and some files goes missing, or are corrupt.

forums with large databases may timeout during the dump procedure ... (I think I'll do it with my 300+MB of data in the database)

You have the info of how the readmes are made in the Mod Development Kit found on the download page

Mod Development Kit

The MDK is a small package aimed at those who want to develop modifications for PunBB. It contains a textfile with instructions, a template for the readme file (all mods have a readme.txt) and a template for a mod installation script.

    * MDK for PunBB 1.1.*

For more information about PunBB modding, visit the PunBB Resource.

The mod generator only helps to put together the readme.txt smile

844

(13 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

That won't work though. It will display the index page just fine, but no links will have the "?forum=blah".

ah, yes ... there will be alot of editing needed then tongue

845

(13 replies, posted in PunBB 1.2 troubleshooting)

$db_prefix = $_GET['forum'] . '_';

will add the _

Rickard wrote:

My only question is: Can it decompress the new rar format? It's used quite a lot on the Internet these days big_smile

no idea, have never tried that, I usually try to decompress things with the formats own decompressor, as things like dissapearing files etc. can occur (like when a winrar'1' unpacking a winrar'2' file, files can be 'lost' ... without any warnings or anything)

847

(3 replies, posted in PunBB 1.2 troubleshooting)

have you read through the topic that is sticky in the top of this forum?

rar seems to handle multiple files (of different format) very well, and the 'new' rar format that's not that old is better than the old one ... no idea what rar format used in that review you linked to.  (I used the lastest in my test)

I doubt it's possible to have a format that is 'the best', they're just good at different areas, a clear looser in one comparation can be a clear winner in another. So It's up do each and everyone of us to find what's best for the things one do mostly.

There was nobody using Firefox in the beginning either ... look at it now wink

my point is ... at the beginning noone except the developers use it, by spread of word (or advertising for those that can afford it) the number of people that know of it and start use it increase ...

I will make everything I do with an alternative download with 7zip ... for those that use it ... and want to download it than much larger zips ... and dont want to pay for archieving software.

I just stumbled upon this tool a few months ago, and it's incredible, so far it has beaten rar and ace many of the times I have used it, sometimes I can even make it as sfx and it still is smaller ... and I won't even compare it to a zip big_smile

http://www.7-zip.org/

Released under the GNU LGPL, and windows versions is released at 7-zip.org, and there is linux/unix versions released by independent developers, at sourceforge...

Did some testing, and might aswell show you guys aswell ...

A .bmp file (5 409 656 bytes): (ineffective binary data smile)
7zip: 138 717 byte
ace: 176 664 byte
rar: 178 250 byte

A Nascar Racing 2003 replay file .rpy (2 061 808 bytes): (timebased binary position data, lots and lots of it)
7zip: 776 710 byte
ace: 913 870 byte
rar: 977 288 byte

A 14 327 592 byte WMV ...
rar: 14 276 427 byte
ace: 14 303 899 byte
7zip: 14 327 513 byte

Folder with 7 .mov files (24 985 235 bytes):
7zip: 24 387 159 byte
rar: 24 650 986 byte
ace: 24 697 607 byte

Mixed assortion of files (819 513 bytes): (My AC Cobra 289 for racer, wav and tgas mostly, and some other small files + an encrypted compressed archive)
rar: 277 481 byte
ace: 281 678 byte
7zip: 304 955 byte

The MySQL table files, 231 files in 7 folders  (6 519 878 byte):
7zip: 3 820 380 byte
rar: 3 833 965 byte
ace: 3 888 601 byte

A folder with 237 wav files (9 218 612 bytes):
ace: 5 404 720 byte
7zip: 5 585 183 byte
rar: 5 730 793 byte

A single large wav file (13 335 380 bytes):
ace: 11 061 374 byte
rar: 11 172 279 byte
7zip: 12 214 562 byte

A 3d object, in Lightwave format (1 246 606 bytes): (~ iff format)
ace: 322 384 byte
7zip: 337 751 byte
rar: 338 874 byte

PunBB 1.1.5 full pack (636 308 bytes):
rar: 90 055 byte
7zip: 92 310 byte
ace: 130 640 byte
zip: 201 007 byte (the downloaded file)

All these tests were made with maximum compression, and solid archive. (except Rickards zip, that may well use those settings aswell)

By the look of it 7zip is most effective when dealing with non-dense files, and when data comes in regular bursts, and doesn't like that much directory handling ... and rar seem to like things that's already packed together alot, ace seem to like audio files. ... it's not like it's done very scientific or something ... but I will make the switch, mainly due to the free application.

There's more to test that I really didn't feel like putting down more time on, and that's dictionary sizes, word sizes and things like that ... I used some basic values and when testing some on 7zip, it was mostly a few bytes here and there ...

All I know is that I will make the switch ...