8,126

(3 replies, posted in Archive)

Inte utan att göra lite search and replace i koden. Det du måste göra är att söka efter

<input type="submit" name="submit"

och ersätta med

<input type="image" src="URL till bilden" name="submit"

Bemärk dock att forumet kommer använda samma bild oavsett style om du väljer denna metod.

Ett alternativ är att skapa en ny class i css-filerna och sen ersätta ovanstående med något sånt här istället:

<input type="submit" class="din_fina_klass" name="submit"

Ok, good. You and a few people on IRC gave their thumbs up, so that'll do :-)

8,128

(6 replies, posted in PunBB 1.2 show off)

:P

I have more or less decided on using the names of the elements (from the periodic table). This is what I have come up with so far:

Light and Blue = Oxygen
Dark and Green = Radium
Dark and Yellow = Mercury
Dark and Blue = Cobalt
New "Light and Green" = Lithium
New "Light and Red" = Sulfur

How does that sound?

Edit: Switched two of them and added a second new style.

I'm not very fond of the current naming of the styles (Light and Blue, Dark and Green ...). What should they be called instead? I was thinking of using some form of "uniform naming scheme". They could i.e. be named after cities or planets. Does that sound like a good idea?

Examples:
- Chicago, Kairo, Vancouver, Berlin ...
- Neptune, Mars, Saturn, Mercury ...
- Delta, Lambda, Omega, Gamma ...

What do you think?

Note: This is the last change I am planning before the release of 1.0 RC 2.

8,131

(1 replies, posted in Archive)

Det är pga att din Base URL är satt till twan.mine.nu och inte www.twan.mine.nu. Det fungerar fint för alla "vanliga" medlemmar dock. Det är bara admins och moderatorer som påverkas av detta.

8,132

(7 replies, posted in Archive)

Jo, det blir snart.

8,133

(3 replies, posted in PunBB 1.2 bug reports)

Updated.

8,134

(7 replies, posted in Archive)

Vänta på RC2 :-)

Nej, öppna misc.php, gå till rad 98. Byt ut:

pun_mail($mailing_list, $mail_subject, $mail_message, $mail_extra);

mot

pun_mail($options['mailing_list'], $mail_subject, $mail_message, $mail_extra);

8,135

(7 replies, posted in Archive)

Det har du rätt i. Det var en liten bugg i misc.php. Man tackar :)

8,136

(180 replies, posted in PunBB 1.2 troubleshooting)

If you get an error stating that you were referred to a page from an unauthorized source the problem is most certainly one of the following:

1. 'Base URL' in Admin/Options is not correctly set.
2. You are not visiting the forum by navigating to the URL entered in 'Base URL'. You must visit the forum by entering the 'Base URL' in the address bar of your browser. If 'Base URL' is http://a.b.c, you must enter that in the address bar (not http://localhost or http://192.168.0.15).
3. You are browsing the forum through a proxy or firewall of some sort that is stripping HTTP_REFERER from all requests. Norton Personal Firewall and Kerio Personal Firewall 4 are the only ones I know of so far that strip HTTP_REFERER by default. Popup/ad stoppers are also known to do this in some cases (most of them don't though). See this post for info on how to setup Norton to circumvent the problem with Norton.

The error should only occur for moderators and administrators. The reason for the error is that PunBB, upon receiving form data, checks from where the data was submitted and if that page doesn't match 'Base URL' + the name of the correct script, it won't allow it. The check is there for a very good reason, trust me :-)

8,137

(2 replies, posted in PunBB 1.2 troubleshooting)

Eight topics down in this forum you would have found this: http://punbb.org/viewtopic.php?id=2255

8,138

(2 replies, posted in General discussion)

Den har flyttat till http://punbb.org/articles/mp3.html

You could place the meta tags in the head tag in include/main.tpl. Another possible solution is to remove or comment out the header()-calls in header.php. One user has reported success with that method.

8,140

(1 replies, posted in Archive)

Det är ingen dum idé. Det är dock en idé som kommer realiseras först när/om jag implementerar forumspecifika rättigheter.

8,141

(2 replies, posted in Archive)

Ärligt talat så har jag aldrig tänkt på att någon skulle vilja göra det på detta viset. Därför kan jag inte rekommendera någon snygg lösning. En "osnygg" lösning på problemet är ju att, som du gjort, ta bort länken till index.php i "här är du" och sen att bara redirecta användaren till ett visst forum om han/hon mot förmodar besöker index.php. Alltså en

header('Location: /blaha/viewforum.php?id=8');

överst i index.php. Kan detta duga måntro?

8,142

(2 replies, posted in Archive)

Ärligt talat? Jag har ingen aning. Speciellt med tanke på att jag inte vet hur ditt nuvarande "inloggninssystem" ser ut. Det ska nog inte vara omöjligt. Titta inte på mig om det involverar några större kodmodifikationer bara :-)

Preview post has been requested before and it is on the todo-list. Don't expect it for 1.0 though.

8,144

(6 replies, posted in Archive)

Tja, jag vet faktiskt inte. Uppstår det bara helt plötsligt eller är det i anslutning till någon annan händelse? T.ex. MySQL-krasch eller oväntad reboot av systemet etc. etc.

Aha, Apache2 :)

I did add a small workaround for the cache expiry problem with Apache2 (top of header.php). I doesn't appear to have worked though :(. Honestly I'm not too keen on adding more Apache2 specific stuff to the source code. At least not until PHP has "official" support for Apache2. I hear they are currently rewriting the whole damn module.

You could try adding some more "agressive" no-cache headers. Replace the headers sent in header.php with these:

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">

Perhaps that will help.

8,146

(3 replies, posted in PunBB 1.2 show off)

WTF! :-)

8,147

(4 replies, posted in Archive)

Jo, men då blir det tre sök-och-ersätt till per inlägg. Inte något jag är så sugen på.

8,148

(5 replies, posted in Archive)

Sorry för att det tog sån tid. Måste missat den här tråden (också :-).

Att generera en texfil är ett sätt att lösa det på. Problemet med denna metod är att man antingen måste sätta upp en "scheduled task" som kör ett PHP-skript som genererar textfilen alternativt generera textfilen varje gång ett nytt inlägg postas. Ett alternativ är att göra ett litet PHP-skript som man inkluderar på sin "förstasida". Vilken metod som är bäst vågar jag inte spekulera i.

Jag har funderat på detta och det kommer troligtvis att inkluderas i någon form någon gång. Jag har dock inga planer att fixa det till 1.0 :-)

Mod anyone?

[tråd flyttad]

Hmm. I must have missed this post before. Anyway, is this a problem with PunBB RC 1? I though I had sorted out all the caching issues that have been discovered so far.

8,150

(1 replies, posted in PunBB 1.2 bug reports)

Nice. Everyone should read this. It's not like I get a huge amount of reports, but still :-)