501

(9 replies, posted in PunBB 1.2 troubleshooting)

You should use the following code instead, in case the user hasn't sent an HTTP referrer.

if($_SERVER['HTTP_REFERER'] != '')
    redirect($_SERVER['HTTP_REFERER'], $lang_login['Logout redirect']);
else
    redirect('index.php', $lang_login['Logout redirect']);

AFAIK = As Far As I Know smile

503

(19 replies, posted in PunBB 1.2 show off)

B. wrote:

I have changed something, but I will have to burn a live cd first to check if it fixes the problem.

Since it might be Fx 2.0 specific (I dunno, maybe), you might want to wait 'til Ubuntu Edgy Eft stable comes out (October 26 I believe) to burn a live CD, because the current version, Dapper Drake, ships with 1.5.[something], not 2.0 (which will ship with Edgy Eft).

bojan.j: FYI, I've been working on this here and there, and I have something partially working.

505

(8 replies, posted in Programming)

Tubby: maybe use this instead - the nonstupidity of elbekko's code + the prettiness of mine. smile

$links = array
(
    array('http://...', 'label'),
    array('http://...', 'label'),
    ...
);

shuffle($links);
foreach($links as $cur_link)
{
    echo '<a href="'.$cur_link[0].'">'.$cur_link[1].'</a>'."\n";
}

elbekko: Nothing, I just didn't know how to use it because I've never looked it up. big_smile

506

(19 replies, posted in PunBB 1.2 show off)

B. wrote:
pogenwurst wrote:

Ah, it was the hotlink protection indeed. I use the RefControl extension for Firefox.

Hmm, I don't know that one. Something to check. I would really like to have hotlink protection enabled. People seem to like my avatar so they directly link to it from forums. Aprox 600-800 hits a day.  http://digitalx.org/dump/ -> hotlinking.png first avatar in the top left corner. I would really like to keep this. wink

Unfortunately, hotlink protection will be a problem for some people, possibly quite a few. Many firewalls are preconfigured to block the referrer. For partial (but courteous) hotlink protection, check out the second code here: http://tips-scripts.com/?tip=leech#tip

B. wrote:

BTW, is there supposed to be a small amount of vertical space between the top rounded border bar and the content? (Fx 2.0 RC3 Ubuntu Linux 6.06)

No. the border should be solid all around. It is solid in firefox 1.5.0.7 on windows (and ie6 and opera). I hope you aren't going to tell me I have another problematic browser on my hands are you? wink ie6 already makes me sad from time to time.

Well, I could lie to you if you want. wink

http://img293.imageshack.us/img293/8315/screenshotlc2.th.png

Very cool! It looks like it would be fun to play with sometime.

508

(8 replies, posted in Programming)

Tubby wrote:

Iam trying to shuffle these links. How would i go about doing this? Could i use the str_shuffle function?

If I were you I'd do something like this:

$links = array
(
    array('http://...', 'label'),
    array('http://...', 'label'),
    ...
);

shuffle($links);
while(count($links) > 0)
{
    $cur_link = array_shift($links);
    echo '<a href="'.$cur_link[0].'">'.$cur_link[1].'</a>'."\n";
}

Try grabbing a fresh copy of profile.php and apply the mod's changes to it again. You probably made a mistake somewhere.

510

(19 replies, posted in PunBB 1.2 show off)

Ah, it was the hotlink protection indeed. I use the RefControl extension for Firefox.

Your site looks even better now. smile

BTW, is there supposed to be a small amount of vertical space between the top rounded border bar and the content? (Fx 2.0 RC3 Ubuntu Linux 6.06)

511

(19 replies, posted in PunBB 1.2 show off)

Sure, here:

http://img322.imageshack.us/img322/1658/screenshotmz5.th.png

512

(2 replies, posted in PunBB 1.2 discussion)

Not a bug, moved.

The censor feature has to work the way Gizzmo mentioned, or else administrators wouldn't be able to properly remove censor rules. Any words changed before removal would remain changed.

513

(20 replies, posted in General discussion)

StevenBullen wrote:
pogenwurst wrote:

About the feedback form... was it the "Quality Feedback Agent"? If so, you've got the order mixed up - Firefox crashes, and then wants you to fill out a feedback form.

Yeah but this just tells me that if they have enough time before mozilla dies to get feedback, maybe they can go the extra step to either a) stop it crashing in the first place wink or b) reload back to the same place with the same tabs open (or at the very least reload).

The thing is that it's not really "Mozilla" asking for feedback, it's a separate, closed source program contributed by Netscape. More info on the Quality Feedback Agent (aka Talkback): http://www.mozilla.org/support/firefox/faq#talkback

The 2.0 Release Candidates have a session restore feature built-in, BTW.

514

(3 replies, posted in Feature requests)

When you ban a user, you may choose to assign an expiration date to the ban.

As for having different titles for the degree of ban, that would require you to rework things in get_title() in include/funtions.php. Alternatively, you can change the appropriate lang file to change "Banned" to something lighter, e.x. "Banned (may only be temporary)".

515

(19 replies, posted in PunBB 1.2 show off)

Looks nice, although there seem to be a few broken images scattered around.

516

(3 replies, posted in PunBB 1.2 troubleshooting)

Take a look at this: http://punbb.org/docs/faq.html#faq3_4

@micxuy - Two options:
1. I believe the Easy Poll thread at Punres has a fix, among others, for extern.php to make it play nicely with Easy Poll
2. Use Easy Poll +, which doesn't rely on viewpoll.php, instead.

518

(20 replies, posted in General discussion)

StevenBullen wrote:

Off topic:
Does anyone have problems with FF? On regular occasions it wants me to fill in a feedback form. But when it does... it crashes... Every single time...

Plus I was reading that FF has more holes than IE now sad could this be true...

About the feedback form... was it the "Quality Feedback Agent"? If so, you've got the order mixed up - Firefox crashes, and then wants you to fill out a feedback form.

In regards to the FF vs. IE security holes, articles of that nature pop up from time to time, but the important thing to remember is that there's a whole lot more to take into account than quantity, no matter what the app in question is.

EDIT: for some more discussion, see http://punbb.org/forums/viewtopic.php?id=8885

Are you on a free forum host? It appears that way, and if so, we can't do anything about it, only your host can. This forum is intended for people who host PunBB on their own.

ybbob4269 wrote:

well, i just installed Punbb 1.2.14 and the calendar 2.7 will not install on it, how would i be able to make it compatable, or when will a compatable version of it come out?

You can easily update mod compatibility.

521

(4 replies, posted in PunBB 1.2 troubleshooting)

We'll need your CSS files as well.

522

(10 replies, posted in Feature requests)

Vanslyde wrote:

But register.php says that some of the language definitions are also used in post.php. So once the registration is done and the language selected the users would still see some (unnecessary) translated text in post.php right?

Ah, I forgot about that. You could always make two separate copies with different names, then make register.php and post.php require different language files.

Vanslyde wrote:

(it's probably impossible... otherwise it would have been already done right? ; ) )

It's certainly possible; it's just a matter of finding someone with expertise willing to spend time on such a task.

523

(8 replies, posted in PunBB 1.2 troubleshooting)

From the manual entry:

This function tries to return a string with all HTML and PHP tags stripped

524

(10 replies, posted in Feature requests)

Having both languages in one form would be easy, just edit lang/[your forum's default language]/register.php to have a translation below / beside each entry.

525

(16 replies, posted in PunBB 1.2 show off)

I didn't remove the link, but if it did indeed contain pornographic material that would probably fall under the "nothing you wouldn't want your mother to see" rule.