1

(7 replies, posted in General discussion)

Garciat wrote:

Could you explain yourself better?

I'm not really sure, but you want to change the TR's class to "imoved", right?

Anyways, the moved icon IS showing up. I just visited your site.

I added php code for the display of the icon.
In fact, I added $item_status='imoved' for a class in the TR

2

(7 replies, posted in General discussion)

I asked my question because i have added code in the css and that i have no image to a post moved.
Look te css of my test site.

You need to modify the code of php to create the TR.imoved class.

3

(7 replies, posted in General discussion)

Ok I was misled then.

4

(7 replies, posted in General discussion)

hello,

where is the imoved class for the moved icon ?

I made a ubuntu theme and i declare the TE.imoved DIV.icon class for picture but have no icon.
I look in source code of the page and have no imoved class for a moved topic.

for the moment, i made modification in the wiewtopic.php

before

if ($cur_topic['moved_to'] != 0)
            $subject = $lang_forum['Moved'].': <a href="viewtopic.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';

after

if ($cur_topic['moved_to'] != 0){
            $subject = $lang_forum['Moved'].': <a href="viewtopic.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
               $item_status = 'imoved'; }

How do without changing the code php with using the css ?

TR.imoved Div.icon {
background-image : url(icon); 
}

my punbb for test: http://babi.homelinux.net/~xarkam/upload

All right, the patch work fine smile

Hi.
do not use this patch. After several tests, it makes results false according to search criteria's given.

for the moment we carry out investigations to solve this problem.

Xarkam.

Hi.
I modified 2 functions in the file parser.php so that the external links open in a new window and not the internal links of your DNS .

Open /include/parser.php and modify the 2 fonctions:

//
// Truncate URL if longer than 55 characters (add http:// or ftp:// if missing)
//
function handle_url_tag($url, $link = '')
{
    global $pun_user;

    $full_url = str_replace(array(' ', '\'', '`'), array('%20', '', ''), $url);
    if (strpos($url, 'www.') === 0)            // If it starts with www, we add http://
        $full_url = 'http://'.$full_url;
    else if (strpos($url, 'ftp.') === 0)    // Else if it starts with ftp, we add ftp://
        $full_url = 'ftp://'.$full_url;
    else if (!preg_match('#^([a-z0-9]{3,6})://#', $url, $bah))     // Else if it doesn't start with abcdef://, we add http://
        $full_url = 'http://'.$full_url;

    // Ok, not very pretty :-)
    $link = ($link == '' || $link == $url) ? ((strlen($url) > 55) ? substr($url, 0 , 39).' … '.substr($url, -10) : $url) : stripslashes($link);

    //return '<a href="'.$full_url.'">'.$link.'</a>';
    if (stristr($url, $_SERVER["SERVER_NAME"]) === false)
    {
        return '<a href="'.$full_url.'" onclick="window.open(this.href); return false;">'.$link.'</a>';
    }
    else
    {
        return '<a href="'.$full_url.'">'.$link.'</a>';
    }
}

and

//
// Turns an URL from the [img] tag into an <img> tag or a <a href...> tag
//
function handle_img_tag($url, $is_signature = false)
{
    global $lang_common, $pun_config, $pun_user;

    //$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
    if (stristr($url, $_SERVER["SERVER_NAME"]) === false)
    {
        $img_tag = '<a href="'.$url.'" onclick="window.open(this.href); return false;"><'.$lang_common['Image link'].'></a>';
    }
    else
    {
        $img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
    }

    if ($is_signature && $pun_user['show_img_sig'] != '0')
        $img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
    else if (!$is_signature && $pun_user['show_img'] != '0')
        $img_tag = '<img class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';

    return $img_tag;
}

test here: http://www.anges-dechus.info/punbb/viewtopic.php?id=964

8

(3 replies, posted in PunBB 1.2 discussion)

Dr.Jeckyl wrote:

i like it. you plan on sharing?

Yes.

Hi, there is a preview on my style forum punbb.
http://www.anges-dechus.info/punbb/index.php

Hi.
It is possible to have a flow rss for the calendar
It's to share data on other site.

MathsIsFun wrote:

(Xarkam - I recall there were options for limiting file size, maybe you are running into that.)

The maximum size defined in options of gallery is 1280x1024.
Despite everything the upload of picture running only with picture as size of 800x600 hmm

Don't work on my forum. Is not possible to upload picture over 800x600 size hmm
Look at http://anges.gocity.fr/punbb/gallery.php et test with sending one picture upper 800x600.

13

(12 replies, posted in PunBB 1.2 discussion)

This is the traduction of french readme. (created with google translate)

##
##
##          Mod Title :  Puntal
##
##               Mod version :  1.2
##         Works on PunBB :  1.2.1
##              Release date :  20/08/2005
##                       Author :  Vincent Garnier (vin100@forx.fr)
##
##        Description :  This mod add one mini portal on your forum
##                       
##
##    Affected files :  none
##
##      Affects DB :  yes
##
##
##         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. OPEN ]-------------------------------------------------------
#
upload/sources/puntal.inc.php

#
#---------[ 2. CONFIGURE (line: 46) ]-------------------------------------------
#

define('PUN_ROOT', './your_punbb_folder/');

#
#---------[ 3. UPLOAD ]---------------------------------------
#

upload/forums/install_mod.php in /your_punbb_folder/


upload/forums/plugins/AP_Puntal.php in /your_punbb_folder/plugins/

upload/forums/style/imports/Puntal.css in /your_punbb_folder/style/imports/

upload/forums/lang/English/puntal.php in /your_punbb_folder/lang/English/

upload/forums/lang/French/puntal.php in /your_punbb_folder/lang/French/


upload/index.php in /your_puntal_folder/

upload/sources/ and its contents in /your_puntal_folder/

#
#---------[ 4. RUN ]-------------------------------------------------------
#

install_mod.php

#
#---------[ 5. DELETE ]----------------------------------------------------
#

install_mod.php

#
#---------[ 6. CONFIGURE ]-------------------------------------------------
#

Login as admonistrator. Go on the panel of administration.  In small "the Plugins" click on Puntal.

In the part "Configuration of Puntal" configure "Puntal path"
without what your portal will not function and you will obtain error messages

Also configure (just below) "Forums Path" with same information that you put at stage 2.

Here is your Puntal gate is not correctly installed it
but does not remain you any more to configure it according to your needs.

14

(12 replies, posted in PunBB 1.2 discussion)

Puntal currently has 2 languages, French and English.

15

(12 replies, posted in PunBB 1.2 discussion)

Look at http://www.forx.fr/puntal/

punres is victim of new user spam.  It is surely done to prevent the anonymous user register to clean the database.

Faut surement ajouter le bbcode dans le parser

Not, it is not legal.  Punbb is distributed under the GPL. One thus has the right to remove the link in source code of punbb

The secondary work fine.

ok, on my local dev server: http://xarkam.homelinux.org/web/guilde/chat.php it's your mod and http://xarkam.homelinux.org/web/guilde/chat2/ it's the original pjirc (run correctly on my local server)

Look that error message:

charger : classe IRCApplet.class introuvable.
java.lang.ClassNotFoundException: IRCApplet.class
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:712)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1719)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:641)
    at sun.applet.AppletPanel.run(AppletPanel.java:320)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
    at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
    at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
    ... 9 more

The first line indicate the class IRCApplet.class not found.
I'm under Ubuntu Hoary

On my computer the applet not run because, the browser not find it

For windows have found one solution, it's add a key on registry, bud on linux ave the same problem, the applet not start. I have testing pjirc on other site on same domain and the applet running under linux.

24

(3 replies, posted in Feature requests)

It is not really that.  but i'm looking for create the bbcode [hide][/hide].

25

(3 replies, posted in Feature requests)

The creation of a new bbcode for hidding informations for guest is not on good idea ?