Smartys wrote:

Make sure your MySQL username and password are correct and that your MySQL host is correct

Yes I m sure. It worked well in the past ! :(

On free.fr

---
$db_type = 'mysql';
$db_host = 'sql.free.fr';
$db_name = 'alicia_heraz';
$db_username = 'alicia.heraz';
$db_password = 'my password';
---

I dont understand, where is the bug ?

Hello

File: /mnt/122/sdc/3/b/alicia.heraz/mus/mus_forum/include/dblayer/mysql.php
Line: 58

PunBB reported: Unable to connect to MySQL server. MySQL reported: Access denied for user 'alicia.heraz'@'172.20.244.208' (using password: YES)

Any one is on the same server (free.fr) ? My Forum

3

(11 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

And here's the problem query (from step 6)

$db->query('INSERT INTO'.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].','.$db->escape(get_remote_address()).')') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());

should be

$db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',"'.$db->escape(get_remote_address()).'")') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());

Thank you Smartys ! You saw what I could not :( ONE SPACE AND TWO QUOTES :P
:)))))

4

(11 replies, posted in PunBB 1.2 troubleshooting)

towelie wrote:

Ill install this mod today or tomorrow and let you know how it goes for me. Sorry I can't be of more help.

thanks :)))

5

(11 replies, posted in PunBB 1.2 troubleshooting)

Here is the Mod. Did you try it before ?

##
##
##        Mod title:  Userstats
##
##      Mod version:  1.0.1
##   Works on PunBB:  1.2.5
##     Release date:  2005-07-01
##           Author:  Tobi (tobi@tobi.gr)
##
##      Description:  This mod comes together with the Plugin AP_user_statistics and
##                    one does not make any sense without the other! 
##                    For your convenience the plugin file AP_user_statistics.php
##                    is included with this mod.
##                    It allows the Administrator to see statistics for: 
##                    - How many and which users visited in a certain period
##                    - Which topics they saw
##                    - The total number of visits per day for a given period
##                    - The most read topics for a given period
##
##   Affected files:  functions.php
##                    viewtopic.php
##
##       Affects DB:  Yes
##
##            Notes:  1. The install_mod routine currently works only for MySQL.
##                    2. The table YOURBOARDstatviews_all can become pretty big
##                       depending on how many registered users visit your board.
##                       It has to be cleaned up manually unless I decide to add 
##                       a routine for it (or somebody else does) ;-)
##                    3. As long as your statistics tables in the database are not filled
##                       with user entries you will of course receive some errors ;-)
##
##    Release Notes:  - Text Modifications in AP_USer_statistics.php
##                    - Nicer error messages when no matches are found to dismplay by the plugin 
##                    - Removed YOURBOARDstatviews_daily from the install_mod.php
##                      The routines behind it are not currently implemented.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

#
#---------[ 1. UPLOAD ]------------------------------------------------------
#

install_mod.php


#---------[ 2. RUN ]---------------------------------------------------
#

install_mod.php

#
#---------[ 3. DELETE ]---------------------------------------------------
#

install_mod.php

#
#---------[ 4. OPEN ]---------------------------------------------------
#
include/functions.php


#
#---------[ 5. FIND (line:76) ]---------------------------------------------------
#
            // Update the online list
            if (!$pun_user['logged'])
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                }

#
#---------[ 6. CHANGE TO ]---------------------------------------------------
#
            // Update the online list
// MOD USERSTATS CHANGE
            if (!$pun_user['logged'])  {
                $db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$now.')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
                $db->query('INSERT INTO'.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].','.$db->escape(get_remote_address()).')') or error('Unable to insert into user statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE


#
#---------[ 7. FIND (line:92) ]---------------------------------------------------
#

$idle_sql = ($pun_user['idle'] == '1') ? ', idle=0' : '';


#
#---------[ 8. BEFORE, ADD ]---------------------------------------------------
#


// MOD USERSTATS CHANGE
            if ($pun_user['idle'] == 1)  {
                $db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',"'.$db->escape(get_remote_address()).'")') or error('Could not insert into statistics', __FILE__, __LINE__, $db->error());
                }
// END MOD USERSTATS CHANGE


#
#---------[ 9. OPEN ]---------------------------------------------------
#
viewtopic.php


#
#---------[ 10. FIND (line:102) ]---------------------------------------------------
#
            if (!$db->num_rows($result))
    message($lang_common['Bad request']);
#
#---------[ 11. BEFORE, ADD ]---------------------------------------------------
#

// MOD USERSTATS
$statresult = $db->query('insert into '.$db->prefix.'statviews_all(user_id, topic_id) VALUES (' . $pun_user['id'] . ', '.$id.')') or error('Unable to update view statistics', __FILE__, __LINE__, $db->error());
// MOD USERSTATS

6

(11 replies, posted in PunBB 1.2 troubleshooting)

forum_statuser

id int(11) auto_increment       
user_id int(11)    
logind timestamp ON UPDATE CURRENT_TIMESTAMP CURRENT_TIMESTAMP
user_ip varchar(15)

7

(11 replies, posted in PunBB 1.2 troubleshooting)

elbekko wrote:

Yes, the IP is a string. Not a numeric value. So it should be in quotes.

but it is already in quotes !!! no ?

"'.$db->escape(get_remote_address()).'"

I mean these quotes

"    '    .$db->escape(get_remote_address()).    '    "

??????

8

(11 replies, posted in PunBB 1.2 troubleshooting)

Does any one know ?

9

(11 replies, posted in PunBB 1.2 troubleshooting)

Hello

I setup this mod User Stats

and I got this message

Il y aurait une erreur de syntaxe ds la requèete SQL ?

PunBB reported: Unable to insert into user statistics
Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.220.86)' at line 1 (Errno: 1064)

This is the code of the fonction within the pb

// MOD USERSTATS CHANGE
if ($pun_user['idle'] == 1)  {
$db->query('INSERT INTO '.$db->prefix.'statuser (user_id, user_ip) VALUES('.$pun_user['id'].',"'.$db->escape(get_remote_address()).'")') or error('Could not insert into statistics', __FILE__, __LINE__, $db->error());
}
// END MOD USERSTATS CHANGE

10

(0 replies, posted in PunBB 1.2 troubleshooting)

Hi

Using punbb styles (*.css) change my line-height when I include my own header an footer. I disabled all LINE-HEIGHT by writing LINE-HEIGHT_X in all *.css files (bas.css, Oxygen_css.css and Oxygen.css).

Even after that Line height is bigger than usual. So what s wrong ?

11

(14 replies, posted in PunBB 1.2 troubleshooting)

then ?

12

(14 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

However, you can just use symbolic links to have the files in the right location without duplicating them

Do you mean I can write something like

<pun_include "my_header.php.lnk"> ???????

13

(14 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

I'm a little confused: pun_include has existed for all of 1.2 and the include/user directory rule has been in place since 1.2.6 (which was released in July 2005).
Plus, it's documented in the FAQ:
http://punbb.org/docs/faq.html#faq3_4

Il the version 1.1.x it worked differently. We could include any other path (It was better for me). Right now I'm DUPLICATING several many commun files. It is not practical. I suggest to let user include any php file from any path ...

14

(5 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

That sounds like a problem with your server: I'd ask your host.

Actually It works without smtp host. I did not specified any one. I use the php function to send emails ... But do you know what are the limits of this choice ? (for How many emails suscribed in the newsletter can I send a message ?)

15

(14 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Once again, calm down. You misunderstood the way pun_include works.
Here are the steps to follow, given that you have a file called my_header.php
1. Put a copy of my_header.php in the include/user folder of the forum
2. In your template, use <pun_include "my_header.php">

pun_include ONLY includes scripts within the include/user directory, therefore there's no need to add path information

aaaahhhh 8)))) OK I understand now. Butthis only available for the new version ! I think it is important to specify this in th doc ...

thanks

16

(14 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

A. Relax
B. Is your pun_include now
<pun_include "my_header.php">

I moved my_header to directory user and put

..
</head>
<body>
<pun_include "include/user/my_header.php">
...

But it seems that my_header.php IS NOT CALLED ! Even if I put evry noun, it does not matter, the state is the same !

17

(14 replies, posted in PunBB 1.2 troubleshooting)

??? Any help ?

18

(14 replies, posted in PunBB 1.2 troubleshooting)

Dr.Jeckyl wrote:

put my_header.php in include/user/

It seems that it does not take into account the include instruction !I tryed to put the name xxxxx.php (does not exist) and the head does not appear (and there is no error !!!)

19

(14 replies, posted in PunBB 1.2 troubleshooting)

Dr.Jeckyl wrote:

put my_header.php in include/user/

DONE ... It does not appear too :((( (there is no error, it is just non-visible)

20

(14 replies, posted in PunBB 1.2 troubleshooting)

Hi

In the old version. I could insert my header by modifying mail.tpl. But it does not work int the last version ! The is NO ERROR but the header is not visible !

Here is the cod


in mail.tpl :
----------------------------------------------------
...
</head>
<body>
<pun_include "include/my_header.php">
...
----------------------------------------------------

What is wrong ?

21

(5 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Have you modified email.php?

Yes, I modified email.php according to instructions int the 'Newsletter Readme.txt' file ...

#-------[ 1. OPEN ]---------------
#
    include/email.php
#
#-------[ 2. FIND ]---------------
#
    function pun_mail($to, $subject, $message, $from = '')
#
#-------[ 3. REPLACE WITH ]-------
#
    function pun_mail($to, $subject, $message, $from = '', $html = false)
#
#-------[ 4. FIND ]---------------
#
    $headers = 'From: '.$from."\r\n".'Date: '.date('r')."\r\n".'MIME-Version: 1.0'."\r\n".'Content-transfer-encoding: 8bit'."\r\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\r\n".'X-Mailer: PunBB Mailer';
#
#-------[ 5. REPLACE WITH ]-------
#
    if($html)
    {
        // HTML headers (thank you php.net documentation)
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
        $headers .= 'From: '.$from."\r\n".'Date: '.date('r')."\r\n".'X-Mailer: PunBB Mailer';
    }
    else
    {
        $headers = 'From: '.$from."\r\n".'Date: '.date('r')."\r\n".'MIME-Version: 1.0'."\r\n".'Content-transfer-encoding: 8bit'."\r\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\r\n".'X-Mailer: PunBB Mailer';
    }

-------------------------------------------------------------------------------

The name of the free.fr smtp is smtp.free.fr ...

22

(5 replies, posted in PunBB 1.2 troubleshooting)

An error was encountered
File: ***********/include/email.php
Line: 136
PunBB reported: Could not connect to smtp host "smtp.free.fr" (0) (Success)

23

(9 replies, posted in PunBB 1.2 troubleshooting)

How to use Broadcast Email ? I download the ZIP file and the only one file I found is a php file ? Is there any readMe File ? Any other explanation to use Broadcast Email ???

24

(2 replies, posted in PunBB 1.2 troubleshooting)

I found the french package :)) Sorry  ...

25

(2 replies, posted in PunBB 1.2 troubleshooting)

elbekko wrote:

Standard PunBB works fine in FF. You must've screwed up.

Sorry I just forgot to chck USE CSS !!!