What happens?

That mod is not for 1.2.x

3

(4 replies, posted in PunBB 1.2 bug reports)

If I replace the original action statement in the plugin itself (action="<?php echo $_SERVER['REQUEST_URI'] ?>&foo=bar")
with action="?<?php echo $_SERVER['QUERY_STRING'] ?>&foo=bar" it works ok.

Could it have something to do with how the server I run parses the script?
I mean since no one else has mentioned this..

4

(4 replies, posted in PunBB 1.2 bug reports)

dump($_GET); spits out:

Array
(
    [plugin] => AMP_Example.php?plugin=AMP_Example.php
    [foo] => bar
)

5

(4 replies, posted in PunBB 1.2 bug reports)

After "installing" the news plugin i get the error

"There is no plugin called 'AP_News_Generator.php?plugin=AP_News_Generator.php' in the plugin directory."

I placed the AP_News_Generator.php-sctipt in the /plugins directory together with the folder /plugins/AP_News_Generator and the contents of it.

I tried to run the Example-plugin and got the same error.

I got it working by inserting

if (strpos($plugin,'=')) 
    list(,$plugin) = split('=', $plugin);

on line 41 in admin_loader.php.

This cured the symptom, not the cause, so I imagine that there is a correct way to sort this out.

6

(137 replies, posted in News)

Rickard,
It seems that you and your friends have done it again!
I am amazed by the look and feel of this new version of the PunBB forums and news.

Great!

7

(3 replies, posted in General discussion)

http://www.mysql.com is a good start ..

8

(10 replies, posted in PunBB 1.2 troubleshooting)

Hi sitri,
What do you mean "blank"? Blank as in all white or blank as in all fields empty?

If it is all white, take a look in the php error.log
(If you are using "http;//localhost/test/forum", try replacing the ";" with a ":" in "http;//localh...")

9

(101 replies, posted in General discussion)

IE 6

The Stats page doesn't seem right to me..
Depending on the width of the browser, I see 2, 3.5 or 5 tables with stats..

It doesn't look ok.
(I am using IE.6)

Doesn't that have to do with how the server API is configured to run?
ISAPI or CGI/FastCGI...

12

(1,382 replies, posted in General discussion)

beach

13

(1,382 replies, posted in General discussion)

Gabriel

Then you are trying to install a mod created for version 1.0.1 of PunBB, not 1.1.4..

They are not compatible.

Great!

Yes, that's another thing, Rickard: the url beginns with ftp:// but is linked as http://ftp://.... That doesn't work...

Oooops!
I imagine that if you open install_mod.php and replace line 44

if(!in_array($pun_config['o_cur_version'], $punbb_versions))

with

if(!in_array($options['cur_version'], $punbb_versions))

it will work like a dream..

*blush*

Sorry, Eran!

As it says in the install_mod.php-file "$author         = 'Chrippa (changed to suit punBB v1.0.1 by ConnyT)';"

This is what differs Chrippas original from the 'updated' version..
en_online.php =  identical
install_mod.php

difference: 
    $punbb_versions        = array('1.1'); 
-to-> 
    $punbb_versions        = array('1.0.1');

online.php

added line: 
    require $pun_root.'config.php';

difference: 
    if ($cookie['is_guest'] && $pun_config['p_guests_read'] == '0') 
-to-> 
    if ($cookie['is_guest'] && $permissions['guests_read'] == '0')

difference: 
    $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_online['Online list']; 
-to-> 
    $page_title = pun_htmlspecialchars($options['board_title']).' / '.$lang_online['Online list'];

difference: 
    if ($cur_user['status'] > PUN_USER) 
-to-> 
    if ($cur_user['status'] > 0)

difference: 
    if ($cur_user['status'] > PUN_USER) { 
-to-> 
    if ($cur_user['status'] > 0) {

readme.txt =  identical
update_online.php =  identical

Make the user moderator again.

Open the file [lang]_index.php.
Edit line 28:

'Most users'            =>    'Most users ever online was ',

What other versions of PunBB exists prior to 1.1?
Are there perhaps "1.0.Beta1" versions out there?

I have updated the files in "Most Users" to suit version 1.1.4 as well.
But, as Chacmool says, it can be done in the existing file you have.

Ok, open install_mod.php and replace line 12 with

$punbb_versions        = array('1.0','1.0.1');

Can't help you on that one...
What happens if you try to install it on 1.0?

Aren't you running 1.0.1?