No it's not about the game wink It was a swedish community first, now it's just a place to host my work and stuff. smile

On my server, thegathering.se, there is two forums. A personal one for another project, and the main forum at the root adress. When I'm logging in on one of the forums, I'm automatically logged out on the other one. I think it's a cookie problem, because it's an issue on both Mozilla Firefox, Internet Explorer and Camino.

I think this can be a security issue too. What do you think?

Great job Chacmool! Very handy smile

4

(11 replies, posted in PunBB 1.2 show off)

Thank you smile

5

(2 replies, posted in PunBB 1.2 discussion)

When posting images in 1.2dev with the IMG-tag, they get stretched over the whole post. It seems that the class "postimg" (wich is'nt needed at all, or, it is'nt defined anywhere in the stylesheets) stretches the images. How to fix this problem:

Open parser.php

Replace lines:
286: // return '</p><div class="postimg"><a href="'.$url.'"><img src="'.$url.'" border="0" align="top" alt="" /></a></div><class="puntext">';
287: return '</p><div class="postimg"><img src="'.$url.'" border="0" align="top" alt="" /></div><class="puntext">';

With:
286: // return '</p><a href="'.$url.'"><img src="'.$url.'" border="0" align="top" alt="" /></a><class="puntext">';
287: return '</p><img src="'.$url.'" border="0" align="top" alt="" /><class="puntext">';

I don't know if this is a bug? Anyway, changing these two lines in parser.php fixes the problem.

Out.

6

(4 replies, posted in Feature requests)

Rickard wrote:

But why?

For some years ago, in the megadomain.net forum, they used vBulletin and it had this function back then. I found it very handy. Test it! I'ts a lot more comfort when you browse the forum, believe me.

7

(4 replies, posted in Feature requests)

I would like to have a function that redirects the user to the forum when a post is quickposted. For example there is two buttons; "Post", and "Post (and redirect back to forum)". When you push the second one, you are being redirected back to the mother forum of the thread instead of the thread itself.

Get my point? It would be very handy smile

www.thegathering.se
Well, what do you think? smile

9

(2 replies, posted in Archive)

Okej, tack, månadsbiten funkar finfint. Nu ska jag bara få PUN att lyda. Hur lägger jag till goldmember_expires i $pun_user?

Då kör man enkelt i filen där main.tpl laddas:

if( $pun_user['goldmember_expires'] > time() )
 # load template main_noads.tpl
else
 # load template main.tpl

10

(2 replies, posted in Archive)

Hejsan.
Jag har reklam på mitt punbb och jag hade tänkt att användarna skulle kunna köpa bort det med SMS. SMS-parten är avklarad det är bara det kodmässiga klart. Användarna ska kunna köpa bort reklamen i en månad, om de skickar två SMS blir det två månader och så vidare. Jag har två nya fält i databasen, is_goldmeber och goldmember_expires. Goldmember_expires har då formatet åååå-mm-dd.

Men, problemet är att öka på månaderna. Finns det ingen funktion för det i PHP? Sen undrar jag hur jag måste skriva på index.php i pun.

Jag har tänkt mig main_ad.tpl och main.tpl, en utan reklam och en med. Är användaren guldmedlem (dvs, goldmember_expires har inte inträffat än), så visas ingen reklam.

Men HUR gör jag detta? Hur gör jag så att en annan .tpl-fil laddas om ett visst värde i databasen är sant, hur plussar jag på en månad på ett datum och hur får jag allt att funka?

Tack på förhand,
W

Edit: att tillägga är att jag använder pun 1.2dev

11

(2 replies, posted in Programming)

How do I prevent the naughty users from stealing the avatar links. I'm running Apache so the easiest way doing this would be using .htaccess.

But, I'm not a genius so I could use some help smile
Thanks smile

12

(11 replies, posted in PunBB 1.2 show off)

With 1.2...
http://www.thegathering.se

13

(1 replies, posted in Feature requests)

It would be great with an announcement function to 1.2. You know, the announcement function i vBulletin where you create a thread wich appear in the selected forums?

14

(14 replies, posted in Feature requests)

Smartys: thanks! The code worked fine smile

15

(5 replies, posted in PunBB 1.2 bug reports)

I think that some firewalls causes problem with the PUN-headers. Norton Internet Security caused theese errors at the absolute top of Pun 1.2:

PUN1.2dev wrote:

Notice: Undefined index: HTTP_ACCEPT_ENCODING
in /home/virtual/site19/fst/var/www/html/forum/include/common.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site19/fst/var/www/html/forum/include/common.php:103)
in /home/virtual/site19/fst/var/www/html/forum/header.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site19/fst/var/www/html/forum/include/common.php:103)
in /home/virtual/site19/fst/var/www/html/forum/header.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site19/fst/var/www/html/forum/include/common.php:103)
in /home/virtual/site19/fst/var/www/html/forum/header.php on line 34

Turning of Norton solves the problem, or just turning error_reporting to error_reporting(0) instead of error_reporting(E_ALL) in common.php.

BUT, there must be another solution?

16

(14 replies, posted in Feature requests)

Frank H wrote:

have you noticed the setting where you can choose "Show users of status" and be able to select Admins, Moderators, Members or all?

or do you mean they should have different colors and stuff?


Yeah, bold and italic would work fine for me.

17

(14 replies, posted in Feature requests)

It would be nice if the names in the onlinelist was styled on a way or another depending on the user status (Administrator, Moderator, User). Something to add to the 1.2?

In the 1.2 dev version, PUN does'nt seem to like it when ranks is disabled. Disable ranks and

Notice: Undefined variable: user_title in /home/virtual/site19/fst/var/www/html/forum/include/functions.php on line 455

Appears at the top of every post (i think).