1,376

(11 replies, posted in PunBB 1.2 troubleshooting)

In the function do_bbcode() in parser.php, add this code:

$text = preg_replace('/\[ariegenews\]([^\[]+)\[\/ariegenews\]/gi', '<script type="text/javascript" src="http://www.ariegenews.com/data/rss/video-$1.html"></script>', $text);

before this line

return $text;

Should work smile

1,377

(11 replies, posted in PunBB 1.2 discussion)

I've seen a problem with the navigation bar just now... it only appeared when I hovered over it with the mouse >=/

The replying and all would be alot harder than you'd think...

Including the post in the message would be doable tho.. I'd need to take a look at the code for that wink

1,379

(3 replies, posted in General discussion)

Your PHP Info says it's enabled... are you sure the service is started (and starting at startup)

1,380

(9 replies, posted in Programming)

Myeah, well, it works now ^^ This way should be faster anyway...

WS2003 should expain the problem tongue Make sure Apache is allowed to write to the folder (sharing permissions or something, only worked a little bit with it)

1,382

(9 replies, posted in Programming)

Smartys wrote:

insert into...on duplicate key update should work (well, I guess it depends on how you have your unique keys set up) tongue

No it won't tongue I can't make ship_id or unit_type unique, as each user will have more than one unit type wink

1,383

(9 replies, posted in Programming)

Well... I took the easy way out and just insert rows with the amount set to 0 at ship creation.
When building units, the row just gets updated. Far easier.

1,384

(7 replies, posted in Feature requests)

Might be interesting... but I suppose your host would need to allow you remotely connecting to the DB.

1,385

(9 replies, posted in Programming)

MadHatter wrote:

you really should not store the units in your ship table.  create a table or two to link units to type (if thats needed) to ship.

That's what I did. Read better wink

CodeXP wrote:

Wouldn't it be possible to use REPLACE INTO? It's a bit slower, but if I understand you correctly it should do what you're thinking of...

Hrmm... I'll check. Thanks.

EDIT: Nope, won't work. I need it to try updating an existing row, and if that fails insert a new one.
Maybe it can be done with an IF in the query?

1,386

(9 replies, posted in Programming)

OK... so I have a small problem tongue
As some of you know, I'm working on a game, Cosmic Command.
I'm working on building units, but the problem is, they're supposed to be dynamic. So I don't have a column in my ships table for each unit, but I have a table that holds all units a ship has.
Here for my problem:
On unit creation, I want to attempt updating an existing value, and if that fails, insert a new row. A bit like the insert into ... on duplicate key update query, but in reverse.

Or should I just add a row at ship creation with the amount at 0?

Help would be appreciated!

-- Bekko

1,387

(6 replies, posted in General discussion)

OpenOffice is nice, but I have to use MS Office for school (Excel, Access, ...) sad

But on Linux it'll always be my first choice =P

Oh, and another office software I like is Ashampoo's. It has about the same features as MS Office, but is only like 30$.

You server needs to support PHP ofcourse.

1,389

(18 replies, posted in PunBB 1.2 troubleshooting)

http://www.punres.org/download.php?id=115

1,390

(18 replies, posted in PunBB 1.2 troubleshooting)

Sure, just install the Easy BBCode plugin. It (and many others) can be found over at PunRes.

1,391

(18 replies, posted in PunBB 1.2 troubleshooting)

Papillon wrote:
elbekko wrote:

Well, that would be because this forum has confirmation turned on. This implies that all users signing up need to click a confirmation link and use the sent password the first time they sign up.

And how would that be set?
Wouldn't it be better if users choose their own passwords but then just can't post till they receive an activation link? Is that possible with PunBB?

I doubt you can do that. It's not too hard to copy your given password once and then change it wink

elbekko wrote:

It's the process of removing posts older than a set time.

I don't want that! It's not done automatically, right? I didn't set any number of days.
But there is a "yes" for this "When enabled sticky topics will also be pruned.". Should I change it?

It isn't done automatically wink So no worries about any settings.

1,392

(18 replies, posted in PunBB 1.2 troubleshooting)

Papillon wrote:

1- Why does my registration form differ from the one you have in here? Mine makes the user registered right away, no mail sent, nor many pages to submit. You can choose the password, it's not imposed!

Well, that would be because this forum has confirmation turned on. This implies that all users signing up need to click a confirmation link and use the sent password the first time they sign up.

2- How can I make a member be an admin or mod?

As an admin, go to their profile and click Administration

3- What's pruning? o_O

It's the process of removing posts older than a set time.

Frontpage? All your pages are plain HTML. PunBB needs PHP. You'd have to convert those. And don't use Frontpage for that tongue

The link you posted is for some sort of portal wink

1,394

(18 replies, posted in PunBB 1.2 troubleshooting)

Sure, ask away smile

1,395

(7 replies, posted in PunBB 1.2 troubleshooting)

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /forums/style_rtl/imports/df_cs.css was not found on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
<HR>
<ADDRESS>Apache/1.3.37 Server at dohafootball.com Port 80</ADDRESS>
</BODY></HTML>

Your problem tongue

1,396

(7 replies, posted in PunBB 1.2 troubleshooting)

Make sure you're importing the right file in yourstyle.css

1,397

(2 replies, posted in General discussion)

Announcement wrote:

It seems like the "posts" table has crashed. I will restore a backup in a little while.

Says enough, no?

1,398

(8 replies, posted in General discussion)

BigBoobiesBB?

ROFL, that was a nice read ^^

1,400

(14 replies, posted in PunBB 1.2 troubleshooting)

Elbekko plugin? ô.Ô?

Anyway, found out it's actually called COlorZilla nowadays.

Linkeh: https://addons.mozilla.org/firefox/271/