26

(12 replies, posted in PunBB 1.3 extensions)

wandy wrote:

I don't understand exactly what does extension does?

Does anyone have an example forum with this extension?

What stats are being referred here?

Hello,
Simply put, this extension will completly "remove" statistics block (number of member, posts, topics etc) and replace it with a link..
If you click on this link javascript will load the block statistics.
To see what we get, go to bottom of this page: http://nonante.eu/forum/ and click on "Click me to load stats." to see the stats appear.

Regards.

27

(5 replies, posted in PunBB 1.3 extensions)

wandy wrote:

I like to install this extension but the download does not work

Hello,
I just re upload.
You can test the link Megaupload reup.
I'm sorry but I added a small picture if there were no new link (Megaupload uses MD5 to check files)

There was little I spoke on this topic : http://punbb.informer.com/forums/post/138625/#p138625

At this time, I did not even make an extension,
so now I'm doing "not too bad" I made this change by using hooks.
This extension is very small (1 line).

This extension removes the unsightly "(Page 1)" in title of page,
but retains others (Search Engine Optimization).


Extension : Str_pageone_title v1
Available on :
Megaupload
Megaupload reup
PunBB


This extension is installed on my PunBB Playground (in my signature)

.

Here the language pack Francais / French.
I did what I could, but it's better than nothing ^

<?php
/**
 * Language definitions used in who_does
 * 
 *
 * @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org
 * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
 * @package who_does
 */

$lang_who_does = array(
    'Who_Does'                     => 'Qui fais quoi ?',
    'Disabled'                     => 'Activité des utilisateurs désactivée',
    'User'                         => 'Utilisateur',
    'Who Does'                     => 'Que font-ils',
    'Date'                         => 'Date',
    'No data'                     => 'Aucune informations',
    'Who_Does enable'             => 'Afficher l\'activité des utilisateurs (Administrateurs uniquement)',
    'Who_Does enable legend'     => 'Surveiller l\'activité ',
    
    'register'                     => 'S\'inscrit',
    'misc'                         => 'Fais quelque chose',
    'index'                     => 'Accueil du forum',
    'help'                         => 'Lire l\'aide',
    'login'                     => 'Se connecte',
    'post'                         => 'Réponds à un sujet ',
    'edit'                         => 'Change le message %1$s dans le sujet %2$s',
    'delete'                     => 'Supprime le message %1$s dans le sujet %2$s',
    'profile'                     => 'Consulte un profil',
    'search'                     => 'Effectue une recherche à propos de ',
    'userlist'                     => 'Consulte la liste des membres',
    'viewtopic'                 => 'Consulte un sujet ',
    'viewforum'                 => 'Consulte le forum ',

);

30

(12 replies, posted in PunBB 1.3 extensions)

Ok, thank you smile , I searched "who_does" not this ^^ .
I'll see what I can do wink

Edit:
Link reupdated tongue

kiejr, I just made changes so that you can use all your favorite extensions.
I allowed myself to add the color group for birthday
Here's a look with extensions that you mentioned:
http://prezup.eu/images/punbb/onclickshow_stats_v1.2.png
____________________________________

I do not know why, but with Who_does on a fresh PunBB install I have no problem, with my forum cons of testing,
I have this error:

Notice: Undefined offset: 1 in functions line 80

To solve the problem I change the line 80 as follows:

    //$current_p = $url_parts[1];
    $current_p = (!empty($url_parts[1])) ? $url_parts[1] : '';

and everything works fine ...
I do not understand why, since it is the same server / configuration.
Have you any idea ?

Re-edit: thanks tongue

31

(12 replies, posted in PunBB 1.3 extensions)

Ok, I Downloaded The Birthday extension, i will look to make it compatible if possible.
I'll take a look also for "who_does" to promise anything I do, I do not know yet what it is ^^.
Well on portal by Daris , I've never installed, but I think it is possible to make this change.

Edit:
I've update the link, is also now compatible with the extension birthdays.
I also add the color groups for the extension birthdays in new file ext_birthday_compat.

Keep me informed wink

kiejr wrote:

Yeah, as well as the lang_who_does extension (that tbh could do with some fixing anyway)..

Sorry but i did a search after the extension ... but I have not found.
You do not have a link?

32

(12 replies, posted in PunBB 1.3 extensions)

Hello,
What are the extensions that are installed ?
As "lang_birthdays" is not part of my extension, or pun_colored_usergroups nor online_plus.

Edit: Is this extension ? http://punbb.informer.com/forums/topic/ … ays-today/

Grez wrote:

Seems like you have posts with more than 700 000 chars in your db. I didn't count with that possibility big_smile But I might fix it in future versions.

It's possible, I do not remember ^^

Grez wrote:

What were those changes please? I could implement it in the tool...

I remember that I can add a lot of things in the parser, because we had added bbcode in addition to basic.
I think for this it is best to see that the "case".

34

(12 replies, posted in PunBB 1.3 extensions)

This extension allows you to load the statistics only on click,
to reduce the number of queries on the index page using Jquery.

Eg:
When you do a fresh install of PunBB, on the "Forum",

if you are guest => 9 queries, if you are connected => 11 queries

If you install plus pun_colored_usergroups,

if you are guest => 10 queries, if you are connected => 12 queries

By cons, if you plus install onclickshow_stats,

if you are guest => 5 queries, if you are connected => 7 queries

So we reduced to a maximum of 5 queries, which is not negligible.
"These" queries will be generated only when it is intentional.

Note :

  • After installation go to Settings > Features > General PunBB features which are optional.

  • Extension compatible with pun_colored_usergroups, online_plus, birthdays, who_does

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

Cette extension permet de ne charger les statistiques que lors d'un click,
afin de réduire le nombre de requêtes sur la page index, en utilisant Jquery.

Exemple:
Lorsque vous faites une nouvelle installation de PunBB, sur la page d'index du forum,

si vous êtes guest => 9 requêtes, si vous êtes connecté => 11 requêtes

Si vous installez en plus pun_colored_usergroups,

si vous êtes guest => 10 requêtes, si vous êtes connecté => 12 requêtes

Par contre, si vous installez en plus onclickshow_stats,

si vous êtes guest => 5 requêtes, si vous êtes connecté => 7 requêtes

On réduit donc au maximum jusqu'à 5 requêtes, ce qui n'est pas négligeable.
"Ces" requêtes ne seront générées que lorsque cela est intentionnel.

Note :

  • Après installation, rendez-vous dans Paramètres > Fonctions > Fonctions générales de PunBB.

  • Extension compatible avec pun_colored_usergroups, online_plus, birthdays, who_does

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

http://prezup.eu/images/punbb/onclickshow_stats_features.png
Edit: When Jquery is loaded, is loaded in the bottom of page

Updates :

Extension : onclickshow_stats.zip v1.1 for PunBB 1.3.4
Languages include : English, Francais, French, Italian, Polish, Russian and Spanish.

Available at : Megaupload



This extension is visible on forum page of my test forum (in my signature).

We hope this is helpful wink

35

(7 replies, posted in PunBB 1.3 discussion)

Why do not you try to test ? We would therefore be set.

36

(0 replies, posted in PunBB 1.3 extensions)

This extension allows administrators to force SSL for each group individually.

Note :

  • You must have SSL enabled on your server !

  • This extension is only tested with symbolic links (public_html/private_html).

  • Administrators can only use SSL and is not editable.

  • After installation, go to ADMIN > USERS > GROUPS then click on EDIT THIS GROUP > User permissions.

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

Cette extension permet aux administrateurs de forcer le protocole SSL pour chaque groupe.

Note :

  • Vous devez avoir SSL activé sur votre serveur !

  • Extension testée uniquement avec un lien symbolique (public_html/private_html).

  • Le groupe Administrateur ne peut utiliser que le protocole SSL et ce n'est pas éditable.

  • Après installation, rendez-vous dans ADMIN > UTILISATEURS > GROUPES , ensuite cliquez sur Modifier ce groupe > permissions des utilisateurs.

----------------------------------------------------------------------------------------
http://prezup.eu/images/punbb/toggle_ssl_newfield.png

Extension : toggle_ssl.zip v1 for PunBB 1.3.4
Languages include : English, Francais, French, Italian, Polish, Russian and Spanish.

Available at : Megaupload



This extension is used on my test forum (in my signature).
Edit: Certificat is not valid, because is just a test forum ^

Updated, thanks to TheAssassin185.

38

(7 replies, posted in PunBB 1.3 discussion)

rrts wrote:

What is the difference between PunBB and FluxBB?
I checked both demos. Features are same?

Hello,
For more informations, just read this : http://punbb.informer.com/about.php and this : http://fluxbb.org/about/

rrts wrote:

Which has SMF converter?

PunBB Migration Tool

Edit: Sorry, i wrote ...

Hello,
I am often confronted with install / uninstall PunBB for various reasons.
I was not sure, but i think there is a minor bug during installation of PunBB.

Despite the fact that I gave the folders permissions 777 (cache & avatars)
inevitably get the message :
- "The cache directory is currently not writable! ..." and
- "The avatars directory is currently not writable! ...".

Besides, when I then went on board index, the error message about the rights of writing, no longer appears.

This bug is not problematic in itself but as it is resolved.
I just watched, just edit the file FORUM_ROOT.'admin/install.php' at line 1749 and 1752.

Change

// Check if the cache directory is writable
    if (!is_writable('./cache/'))

to

// Check if the cache directory is writable
    //if (!is_writable('./cache/'))

    if (!is_writable(FORUM_ROOT.'cache/'))

and the same at line 1752, change

// Check if default avatar directory is writable
    if (!is_writable('./img/avatars/'))

to

// Check if default avatar directory is writable
    //if (!is_writable('./img/avatars/'))

    if (!is_writable(FORUM_ROOT.'img/avatars/'))

Nobody have never reported this error ?

Personally, I have had no problems, but other people I know have been pirated,
and their database was released, so with the IP of their members displayed in clear.

It is above all in order to "protect" sensitive information
as well as members only "protection", this is not a truly effective solution.

Personally I would not want my IP to appear in a release of a database to a porn site.
For example tongue

B_A_D wrote:

I have a problem. Where should I put the file with BD so PunBB 1.3.4 converter to find it?

Hello,
You can upload your database in phpmyadmin.
I tested, but the sub forums do not work.

If you ever have to worry about, I found a converter phpbb3 to FluxBB, which converts the sub forums as well.
Then just make a db_update of PunBB to FluxBB.

Finally, this converter is that I used.
Here is the link, everything is provided wink http://fluxbb.org/forums/viewtopic.php?id=4579

Ps: free for you to choose the one you want;)
Ps2: Excuse me for my poor english.

Following this topic, I'm leaning a little on PunBB 1.3.4 to establish the same system,
even if some find it useless as the only "protection".

Since I have found nothing for PunBB ips, I'll file the amendments to do if you're interested.
I warn, I have not used the Hooks, the changes are in direct files.

From what I saw, a feature not available anymore, "@gethostbyaddr($ip)" in file moderate.php line 55.
For the rest, everything is functional.

[---][---][---]

Note 1: It is advisable to make a backup before making changes.
Furthermore, this operation is at your own risk, I can not be held responsible blahblahblah in case of bug .

Note2: Put the same key if you change $encrypted_key = "put_your_key_here";.

Note3: If I spent my time doing this topic is that it works, I'm not crazy http://www.wareziens.info/forums/img/smilies/siffle.gif

In Phpmyadmin :
1) In the structure of the table "posts", colonne "poster_id", change "type" to "varchar(40)"
2) In the structure of the table "users", colonne "registration_ip"
    a) change "type" to "varchar(40)"
    b) change "Défaut2"  as defined: "ab3a723bf153e72986de993c39f2eaabc9a122b7"

On your server,:
1) add this function:

function hash_ip($ip)
{
    // change with your own key
    $encrypted_key = "put_your_key_here";

    return sha1($ip.$encrypted_key.sha1($ip.sha1($encrypted_key)));
   
}

1) Update ips of the table posts with query :

$query = array(
                'SELECT'    => 'id, poster_ip',
                'FROM'        => 'posts'
            );


    $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
   
    while($row = $forum_db->fetch_assoc($result))
    {
        $query2 = array(
                'UPDATE'    => 'posts',
                'SET'        => 'poster_ip=\''.hash_ip($row['poster_ip']).'\'',
                'WHERE'        => 'id='.$row['id'].' LIMIT 1'
            );
        $forum_db->query_build($query2) or error(__FILE__, __LINE__);
    }

2) Update ips of the table users with query :

$query = array(
                'SELECT'    => 'id, registration_ip',
                'FROM'        => 'users'
            );


    $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
   
    while($row = $forum_db->fetch_assoc($result))
    {
        $query2 = array(
                'UPDATE'    => 'users',
                'SET'        => 'registration_ip=\''.hash_ip($row['registration_ip']).'\'',
                'WHERE'        => 'id='.$row['id'].' LIMIT 1'
            );
        $forum_db->query_build($query2) or error(__FILE__, __LINE__);
    }

Possibly, if you have any banned users, do this also:
3) Update ips of the table bans with query :

$query = array(
                'SELECT'    => 'id, ip',
                'FROM'        => 'bans'
            );


    $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
   
    while($row = $forum_db->fetch_assoc($result))
    {
        $query2 = array(
                'UPDATE'    => 'bans',
                'SET'        => 'ip=\''.hash_ip($row['ip']).'\'',
                'WHERE'        => 'id='.$row['id'].' LIMIT 1'
            );
        $forum_db->query_build($query2) or error(__FILE__, __LINE__);
    }

[---][---][---]

In your files :

[---]

In FORUM_ROOT.'moderate.php', line 30 change:

// Is get_host an IP address or a post ID?
    if (preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $_GET['get_host']) || preg_match('/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/', $_GET['get_host']))

to

// Is get_host an IP address or a post ID?
    if (preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $_GET['get_host']) || preg_match('/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/', $_GET['get_host']) || preg_match('/^[0-9A-Fa-f]{40}$/', $_GET['get_host']))

Yet in FORUM_ROOT.'moderate.php', line 55 change:

message(sprintf($lang_misc['Hostname lookup'], $ip, @gethostbyaddr($ip), '<a href="'.forum_link($forum_url['admin_users']).'?show_users='.$ip.'">'.$lang_misc['Show more users'].'</a>'));

to :

message(sprintf($lang_misc['Hostname lookup'], $ip, '<ins><em>Information encrypted, impossible to determine.</em></ins>', '<a href="'.forum_link($forum_url['admin_users']).'?show_users='.$ip.'">'.$lang_misc['Show more users'].'</a>'));

Note: This is gethostbyaddr($ip) is no longer usable, so I substituted a sentence, if you want to change anything.
[---]

In FORUM_ROOT.'admin/users.php', line 180 change:

if (empty($ip) || (!preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $ip) && !preg_match('/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/', $ip))))

to

if (empty($ip) || (!preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $ip) && !preg_match('/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/', $ip)) && (!preg_match('/[0-9A-Fa-f]{40}/', $ip)))

[---]

In FORUM_ROOT.'include/functions.php', line 1003 change:

// Try to determine the correct remote IP-address
function get_remote_address()
{
    $return = ($hook = get_hook('fn_get_remote_address_start')) ? eval($hook) : null;
    if ($return != null)
        return $return;

    return $_SERVER['REMOTE_ADDR'];
}

to

// Try to determine the correct remote IP-address
function get_remote_address()
{
    // change with your own key
    $encrypted_key = "put_your_key_here";
   
    $return = ($hook = get_hook('fn_get_remote_address_start')) ? eval($hook) : null;
    if ($return != null)
        return sha1($return.$encrypted_key.sha1($return.sha1($encrypted_key)));

    return sha1($_SERVER['REMOTE_ADDR'].$encrypted_key.sha1($_SERVER['REMOTE_ADDR'].sha1($encrypted_key)));
   
}

[---]

In FORUM_ROOT.'include/url/' + your url scheme + '/rewrite_rules.php, line 58 change:

'/^get_host[\/_-]?([0-9]+|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})(\.html?|\/)?$/i'    =>    'moderate.php?get_host=$1',

to :

'/^get_host[\/_-]?([0-9]+|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|[0-9A-Fa-f]{40})(\.html?|\/)?$/i'    =>    'moderate.php?get_host=$1',

[---][---][---]

That is, if it can be useful http://www.wareziens.info/forums/img/smilies/wink.png


EDIT: I add an encryption key because it is too easy to compare IP with this script:

for ($i=0;$i<255;$i++) {
    for ($j=0;$j<255;$j++) {
        for ($k=0;$k<255;$k++) {
            for ($l=0;$l<255;$l++) {
                $ip = $i.".". $j .".". $k .".".$l;
                    mysql_query("INSERT INTO `ips` (`ip`, `sha`) VALUES ('". $ip ."', '". sha1($ip) ."')");
            }
        }
    }
}

Thanks to TheAssassin185.

Now if only access to the database is compromised, it is not possible to retrieve the IP.

Result :
http://prezup.eu/images/punbb/sha1ip.png

Hello,
Just to say thank you, 2-3 small changes, and it works with the latest version of phpbb (3.0.8).
Operates as a forum to forum only.
I had change the dblayer of PunBB line 68 to works because:

if(strlen($sql)>140000)
    exit ('Insane query. Aborting. ");

tongue

Note: for a good conversion, it makes sense to update the $str wink

Otherwise, rapid conversion => Generated in 10,762 seconds, 536 queries executed for 58 forums and 57000 posts.

Thank's a lot !

44

(9 replies, posted in PunBB 1.3 additions)

Audiofeeline wrote:

I kept other pagination cause i think that's useful and avoid duplicate titles. smile

+1

Personally, I just add && ($forum_page['page'] > 1) in file FORUM_ROOT.'include/functions.php' at line 519

=>

$crumbs .= (is_array($forum_page['crumbs'][$i]) ? forum_htmlencode($forum_page['crumbs'][$i][0]) : forum_htmlencode($forum_page['crumbs'][$i])).((isset($forum_page['page']) && $i == ($num_crumbs - 1)) ? ' ('.$lang_common['Page'].' '.forum_number_format($forum_page['page']).')' : '').($i > 0 ? $lang_common['Title separator'] : '');

to

$crumbs .= (is_array($forum_page['crumbs'][$i]) ? forum_htmlencode($forum_page['crumbs'][$i][0]) : forum_htmlencode($forum_page['crumbs'][$i])).((isset($forum_page['page']) && $i == ($num_crumbs - 1) && ($forum_page['page'] > 1)) ? ' ('.$lang_common['Page'].' '.forum_number_format($forum_page['page']).')' : '').($i > 0 ? $lang_common['Title separator'] : '');

45

(76 replies, posted in PunBB 1.3 extensions)

fantasma wrote:

mmmm have you shered server or VPS?

I have a dedicated server.
Despite the necessary rights, and empty the cache, I can finally remove the extension directly through mysql.

ps: I do not need this extension.

46

(76 replies, posted in PunBB 1.3 extensions)

I tried to delete extensions but i have a bug: "Could not delete sitemap.xml on forum root."

sitemap.xml is on FORUM_ROOT with chmods 777.

It's just a bug report.

Ok thank you.
To report any problems, let me know wink

iTommy wrote:

I don't seem to get this one to work
When i edit bar.php, and refresh the all the format icons and smileys disappear.
It does not matter if i edit parser.php or not.

This is my bar.php edit:
// List of tags, which may have attribute
    $tags_without_attr = array('b', 'i', 'u', 'email', 'list', 'youtube', 'li' => '*', 'quote', 'code', 'url');

I only want YouTube.

I have tried to disable and enable the extension but it does not make any difference!

pun_bbcode extension works by itself (unedited), no problem.

Any ideas?

Change in parser to :

line 83

        // Remove empty tags
        while ($new_text = preg_replace('/\[(b|u|i|h|colou?r|quote|code|youtube|img|url|email|list)(?:\=[^\]]*)?\]\[\/\1\]/', '', $text))

line 112

    $tags = array('quote', 'code', 'youtube', 'b', 'i', 'u', 'color', 'colour', 'url', 'email', 'img', 'list', '*', 'h');

line 124

    $tags_inline = array('b', 'i', 'u', 'color', 'colour', 'h', 'youtube');

line 137

    // Tags we can automatically fix bad nesting
    $tags_fix = array('quote', 'youtube', 'b', 'i', 'u', 'color', 'colour', 'url', 'email', 'h');

then after line 739 add this

    $pattern[] = '#\[youtube\](.*?)\[/youtube\]#s';
    $replace[] = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';

I just tried it works.
Sorry for my poor english tongue

Updated to v1.1 / Mise à jour v1.1

Hello,

I needed an extension to manage the cache,
Unfortunately I have not found, so I took a bit of my time to do it.
I share with you, because I'm sure others will need it.

This extension allows administrators to update, either the file "cache" or the files individually.

Do not hesitate if you have problems.

Regards.
---------------------------------------------------------------------------------------------------------
Bonjour,

J'avais besoin d'une extension pour gérer le cache,
malheureusement je n'en ai pas trouvée, donc j'ai pris un peu de mon temps pour la faire.
Je la partage avec vous, car je suis sûr que d'autres en auront besoin.

Cette extension permet aux administrateurs de mettre à jour, soit le dossier "cache", soit les fichiers individuellement.

N'hésitez pas en cas de problèmes.

Cordialement.

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

Update / Mise à jour v1.1:

- Fixed a bug with the constant "FORUM_PAGE" when redirecting.
- Added Francais language pack in addition to the French pack.

- Correction d'un bug avec la constante "FORUM_PAGE" lors de la redirection.
- Ajout du pack langue Francais en plus du pack French. (au cas ou ^^)


Manage_cache.zip v1.1 for PunBB 1.3.4 available at : Megaupload.com or Punbb.informer.com