But it's there, on the index page.
Not exatly where you want it to be but you can take out that part and move it, right?

352

(6 replies, posted in PunBB 1.2 troubleshooting)

For this to work you need to have guest access for your forums.
When you search extern.php for "no permission" it returns

$result = $db->query('SELECT g_read_board FROM '.$db->prefix.'groups WHERE g_id=3') or error('Unable to fetch group info', __FILE__, __LINE__, $db->error());
if ($db->result($result) == '0')
    exit('No permission');

353

(28 replies, posted in PunBB 1.2 troubleshooting)

What do you mean with "Options"?

Mods?
Admin Plugins?
Styles?

Yes, you should delete the install.php I think.

As for the admin link:
PunBB sets a cookie that identifies you as admin once you logged in. That's why.

355

(28 replies, posted in Feature requests)

OK.
STUPID, stupid me.
It's not supposed to show anything because it shows all on MouseOver.
Irritating text, I admit sad

Anyway, if you want something to happen I suggest you change line 204 (or around);

$username .= ' <a href="#" onClick="document.location.href=\'profile.php?id='.$cur_post['poster_id'].'\'" onMouseover="dropdownmenu(this, event, \'anylinkmenu'.$tpct.'\')">CLICKME</a>';

to

$username .= ' <a href="#" onClick="return clickreturnvalue()'" onMouseover="dropdownmenu(this, event, \'anylinkmenu'.$tpct.'\')">CLICKME</a>';

then you will be taken to that user's profile page.

This should also solve the "Any layer appears" problem.

swisher wrote:

I figured out how I can do it, just downloaded the config.php file inside the cache directory, edit it locally, rename the one on the server, and upload the edited one with ascii transfer..problem solved

This is only safe until you get it working one day and overwrite your settings...
Better get your host to change the mod_security rules a bit smile

357

(28 replies, posted in Feature requests)

faax wrote:

i read instructions and do all things .. but don't work

Yes, but what exactly doesn't work?
Any error messages, if not what is missing etc.
I'd really like to search for a solution but I need to find the mistake first.
Funny thing is that it works here so I have no clue what could be wrong if nobody can tell me exaclty......

358

(28 replies, posted in Feature requests)

What exactly doesn't work?

swisher wrote:

Next question, Where would I go to edit the settings manually by changing them inside the .php files? or Where does the script write to when you click save changes under admin->options

Normally everything is saved in the table "PREFIX"config.

It depends where you want it.

Probably after the closing

</h1>

in

$tpl_main = str_replace('<pun_title>', '<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);

is best.

First, this has nothing to do with phpMyAdmin nor Mysql in general.

I guess your host has made the mod_security rules a bit too strict.
I am running mod_security as well and never had this problem.

For the logo, you can add your code here f.e.

header.php, line

// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<h1><span>'.pun_htmlspecialchars($pun_config['o_board_title']).'</span></h1>', $tpl_main);
// END SUBST - <pun_title>

around line 139.

The image could go here:

footer.php

            <p class="conr">Powered by <a href="http://punbb.org/">PunBB</a><?php if ($pun_config['o_show_version'] == '1') echo ' '.$pun_config['o_cur_version']; ?><br />© Copyright 2002–2005 Rickard Andersson</p>

line 109

No,
I remember a few worse wink

Anyway, have a look at php.net, there is a documentation.
Search for opendir() and readdir(), it will give you exactly what you want.

364

(65 replies, posted in PunBB 1.2 discussion)

Rickard wrote:

Well, it started out alright, but these last few days, the amount of clicks has been very low :(

That may be because 90% of the ads shown are in swedish. :)

With my very little understanding of this beautiful language I gathered that one reappearing ad invites me to learn taxi driving in Sweden.
And while this sounds like a dream to me I think that going 3000 kms for the lessons would kill my budget. :)

Nothing you can do about the language selection?

And, b.t.w., I think it's nice that you ask everybody if they'd be annoyed by ads but then again it's you who spends 1000's of hours into this project so I wouldn't be that scrupulous ;)

I think punBB is like PHP, and PHP is like chess:

You can learn the basics in minutes and then you can go and make it endlessly complicated if you like smile

Seeing it like that punBB is a very democratic piece of code, allowing anybody who is willing to sit and read a php manual for a minute to understand.

366

(10 replies, posted in General discussion)

Although this has absolutely nothing to do with the topic wink :

print "Enter age\n";
$s = chop(fgets(STDIN,255));
echo "\nYour age is ".$s;

367

(71 replies, posted in News)

Say you are on Linux/BSD/OSX and you have images for your site under /home/mine/images
and your punBB is in /home/mine/pun/

Then you would link the images directory with

ln -s /home/mine/images /home/mine/pun/include/user/images

assumed that your web server configuration supports following symlinks


In windows you can drag/drop links. All very colourful.

368

(10 replies, posted in General discussion)

Dunno.
Most of it sounds good.
On the other hand, f.e. I've been using magic_quotes in some projects (not without additional security functions though) and thinking I'd have to *find* them all first is painful.
If you work on one or wo projects that's fine but if they go by the dozens it is a lot of work.
Plus, a lot of premade scripts out there require to have magic_quotes_something turned on. Will they all change in time?

Sure enough there has to be a break from time to time but I usually prefer to bring things up to date when I'm revising an old project for some reason anyway - not being forced to do it with all of them.

I guess while it's a good idea to clean up in general it will decrease the acceptance of the new version by larger parts of the community.
I mean, in our production environments we still use php4, and compared to what's to come in 6 the changes to 5 are minimal....

Same with safe_mode. I personally hate it, too many issues with writing/creating files but I know many web hosters stick to it as a basic means of security. They would not want to use a version that cannot do this.

Well, that's all future talk. Most of the people I know don't even use version 5 everywhere today...

369

(1,382 replies, posted in General discussion)

Nat King Cole

I don't think you have another option than (I)frame.
Plus, the space you leave for the forum is pretty narrow.
It seems to work but you have to scroll endlessly and there are not even scrollbars.
Problem with that is if you make the frame wider it will most probably destroy the rest of the site layout....

I suggest you get rid of the right column and then you will have space enough to run your forum in a frame.

PS:
It would be easier to do it the other way round and incorporate the rest of your site into punBB. There are some mods helping with this. (miniportal, frontpage f.e.) Haven't tried myself but people seem to be happy the way they work.

371

(4 replies, posted in PunBB 1.2 discussion)

If this keps happening you may try with renaming some of your files.
"hi_I_am_new_and_want_to_get_in.php" instead of "register.php" for example will annoy most of the Spam bots out there while your users would not see much of it.
You'd have to change all the links as well though. It's really only worth the trouble if it happens more often to you.

@Rickard:
Wouldn't that be a good thing anyway?
I mean, all and every board out there is using "register", "viewtopic", "post" and such in their names. Looks like everybody  just wants spambots on their sites... wink
However, it might be difficult to change now with so many installed boards already..

372

(1,382 replies, posted in General discussion)

Ohhhh Hurricane

Works for me....

Your link doesn't work.

I personally believe that besides the common rules known as "netiquette" there is one thing is well mannered:
If you do not know the answer don't answer.
Don't blah if you have nothing to say or do it in the off topic areas, that's what I think...
I've seen boards like the ones you mention but I rather have a question or two unanswered instead of having to dig through mountains of meaningless garbage.
In that respect this board is fine with me...


btw. it' up to the admins here to give a definite answer to your question wink