26

(109 replies, posted in General discussion)

God I hate to be such a total pest, and I probably know the answer already, but is there any work being done outside the SVN? The timeline shows nothing for a while... or is it just the infamous society-paralyzing swedish vacation which has set in?

Kind and not very nagging regards,
Limber

If you don't own a hat, one will be supplied for you.

http://www.costumeshopper.com/Merchant2/graphics/00000001/fm55264.jpg

Edit: wink

28

(1 replies, posted in PunBB 1.2 discussion)

It's called the search function baby, and it's the only way to fly.

This topic in particular: http://punbb.org/forums/viewtopic.php?pid=65290
And this post: http://punbb.org/forums/viewtopic.php?pid=65290#p65290

Look at what Paul has to say.

Exklusivt på Aftonfabler.se:

Film från polisräden mot PRQ och The PirateBay - http://www.aftonfabler.se/viewarticle.php?pid=40

Håll till godo, hoppas filmen är intressant! smile

30

(5 replies, posted in Archive)

text-decoration: underline;
är raden du söker efter.

Ändra till "none" eller "bold" istället, allt efter smak.

A javascript would do the trick, yes. But that script you just qouted is not going to do it. What that one does is that it inverts all checkboxes named like the ones in the form. And I'm not sure whether the while loop can be used like that.

32

(3 replies, posted in Archive)

Nu har jag börjat pilla på siten igen. Ett system för att hantera pengar, och mer hantering av de nyckelord som i framtiden ska bli aktier.

Cash-modden som finns till punbb är helt oduglig och buggig. Så det blev ett hemmahack, precis som resten av sidan. Det enda jag oroar mig över är att det kommer bli drygt att porta allt till 1.3.

Tänkte passa på att "annonsera" efter intresserade betatestare/moderatorer. Alltså folk som tycker om konceptet och vill vara med och diskutera hur projektet ska fortskrida. Utvecklardelen av sidans forum är redan den största, men bara betatestare och liknande har tillträde. smile

Vi finns i #aftonborsen på Quakenet, och självklart på Aftonbörsens forum.

Ser fram emot att höra av intresserade!

EDIT: Obs, servern är nere just nu på grund av gårdagens tillslag av polisen / APB. sad
Borde vara uppe igen om 12-24 h.

33

(69 replies, posted in News)

No problems updating.

34

(18 replies, posted in PunBB 1.2 discussion)

Seriously you guys... chill smile

35

(8 replies, posted in PunBB 1.2 troubleshooting)

Usually you can edit the install file and add the latest version number to it, should work.

36

(6 replies, posted in PunBB 1.2 discussion)

Quaker, it's a mod for bf42 yes. A BF2 version is in the works...

37

(6 replies, posted in PunBB 1.2 discussion)

Although I have set up four punbb forums in total, I have never seen this happen. Just a side note.

38

(1,382 replies, posted in General discussion)

c++

39

(15 replies, posted in General discussion)

Excellent concept, not as tacky as "revolution" and marketing-wise very flexible and adaptable to different focus and target groups.

I think I'm gonna get me one. wink

40

(1 replies, posted in Archive)

Frågan är till Rickard; finns det ett kontonummer som vi svenska grabbar kan skicka en slant till?

Jag tycker inte om PayPal.

41

(65 replies, posted in PunBB 1.2 discussion)

Connorhd wrote:

google will shoot you tongue

OT: Reminds me so much of this
http://www.limber.se/arla_haren.jpg
big_smile

(For you non-swedish guys, it's a spoof of the back side of Arla (dairy producers in Sweden) milk cartons (with often informative texts about milk farmers or whatever)).

It says:

Milk
Amount of fat 3%

1. The Arla hare

Did you know that if you don't drink your milk every day, the Arla hare will come and shoot you in the head or sometimes in the stomach.

Edit: missed a paranthesis. omg it's like LISP up there

42

(3 replies, posted in Feature requests)

Yes.

The file parser.php contains this:

//
// Make hyperlinks clickable
//
function do_clickable($text)
{
    global $pun_user;

    $text = ' '.$text;

    $text = preg_replace('#([\s\(\)])(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^"\s\(\)<\[]*)?)#ie', '\'$1\'.handle_url_tag(\'$2://$3\')', $text);
    $text = preg_replace('#([\s\(\)])(www|ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^"\s\(\)<\[]*)?)#ie', '\'$1\'.handle_url_tag(\'$2.$3\', \'$2.$3\')', $text);

    return substr($text, 1);
}

Copy, rename and modify the function to handle IRC links. Then call it at the appropriate places (i.e. where do_clickable is called usually).

Try moving php_mysql.dll and any other dll's you need to the php root dir. This doesn't make sense, but it worked for me once.

There's a lot of help and examples on this page

45

(3 replies, posted in Archive)

Jag tar gärna emot feedback på min site, alltså angående hela konceptet.

http://www.aftonborsen.se

Sen vilar systemet förstås på punbb, så alla förslag och all kritik ni kan komma på välkomnas varmt! smile

Hur länge tror ni det tar innan AB knackar på och klagar på loggan...? Owell, får väl göra en ny då det händer wink

So, thought I would share with you guys my solution to the problem...

I put require PUN_ROOT.'include/parser.php'; on top in header.php, thus allowing functions used in template replacements to access parsing. Then I removed the same require from viewtopic.php, delete.php and forum.php (the old index.php, remember that this is a punbb miniportal, not an original installation).

Ta-da! smile

Thanks elbekko, but as I explained I've tried removing, which leads me to not being able to call parse_message().

And I'm perfectly aware of what a fatal error means, I just don't get how I should include the parsing functions so that they are not declared twice.

Oh, and to clarify, I'm doing this from a miniportal (or whatever ConnorHD called it). That is of course the issue here...

www.aftonborsen.se

It's the shoutbox that needs parsin'... smile

Tried that, and removing it won't do me any good since I need to do

$cur_post['content'] = parse_message($cur_post['content'], 0);

Strange thing is that parse_message() isn't defined, but other functions in parser.php collide when including the file.

WTF? Hmm...

Edit: Ok so I moved some functions to a new file, uglyparser.php, like parse_message, do_smilies and whatever it was missing. Then, after adding do_clickable, I got this:

Fatal error: Cannot redeclare do_clickable() (previously declared in /var/www/ab/include/uglyparser.php:109) in /var/www/ab/include/parser.php on line 352

So basically I will be able to figure this out, but it will take a while, so if anyone knows exactly why this happens, please let me know big_smile

Hi everybody,

I have a problem. I've coded my own shoutbox and I want to parse smileys, bb, etc.

But when I try

require_once PUN_ROOT.'include/parser.php';

it gives me the "Fatal error: Cannot redeclare preparse_bbcode() (previously declared in /var/www/ab/include/parser.php:41) in /var/www/ab/include/parser.php on line 104"

Seems like require_once isn't doing what it's supposed to do!

So... what to do? Google found this thread
http://www.phpfreaks.com/forums/lofiver … 84050.html
but it did me no good.

Actually I was rooting more for the kind of reply pogenwurst gave. You're such a cynic, Elzar. smile

Btw, pogenwurst... I'm doing the same silly thing too.