Sam Rusch wrote:

How would you like it done? Something like this:

(new) Topic Title
(answer expected) Topic Title
(discussion in progress) Topic Title
(resolved) Topic Title

So, that when you open up a forum, there will be text next to the title of a topic with the current status (which is set by the author of the topic) can be shown. Tell me if I'm in the ball park.

That would be good "first version" :-)

As any topic must have a status, the best for us would be to have a table dedicated column in viewforum.php.

The most important would be to be able to search topics having a specific status. For example, I think I will often search topics "new" and "answer expected".

The MOD would be very generic if the admin can create his own status (need a "status" table in the database).

OK, great. You can count on me for help and tests.

Up. I'm surprised nobody has ever had this need.

Hi everybody,

I've been searching punres.org and this forum but I couldn't find any answer :-/ The only related topic is [topic 59355] Topic status (configurable by forum).

I would like to have topic status such as "new", "answer expected", "discussion in progress", "resolved".

Is there any way to do this?

5

(12 replies, posted in Feature requests)

Dr.Jeckyl wrote:

@z0rglub: have you submitted your gallery to opensourcecms.com? if not you should.

I've send a message to the opensourcescms.com team.

PhpWebGallery is already registered on freshmeat and hotscripts (and has been for years).

6

(12 replies, posted in Feature requests)

I'm a PhpWebGallery project member as initial creator and developer :-) This gallery application has many features but only gallery features. PhpWebGallery can already be connected to a phpBB forum and I really hope that soon it will be possible for punBB (which is the forum I use for support).

Features you won't find in all others gallery application :

- multiple (virtual) usage of images (one image multiple categories)
- multi storage server management (ie remote storage server)
- (1.4 only) manage any kind of file types, not only pictures
- (1.4 only) advanced search tool : between two dates, on specific categories...
- (1.4 only) EXIF and IPTC metadata support

1.4 branch demo, 1.3 branch demo

Release 1.4.0 is very near the availability status, I'm preparing 1.4.0RC3 :-)

7

(31 replies, posted in Archive)

J'utilise punBB depuis environ 1 an. Ce forum dédié à l'application PhpWebGallery a commencé sous phpBB, puis migration sous Invision Power Board (que j'ai vraiment peu apprécié en fin de compte) et enfin punBB.

Seul la section Forum français est exclusivement en français, mais c'est la section la plus active :-) (peut-être parce que tous les membres de l'équipe sont francophones...)

translation is perfect :-)

Rickard wrote:

Is it possible that he just missed the line with the password? Could we perhaps see the e-mail he received?

It's in french, sorry

Bonjour marion,

Vous avez fait la demande d'avoir un nouveau mot de passe assign  votre compte sur le forum de http://forum.phpwebgallery.net/. Si vous n'en avez pas fait la demande ou ne voulez pas en changer, veuillez ignorer ce message. Votre mot de passe ne sera chang qui si vous visitez la page d'activation ci-dessous.

Pour changer votre mot de passe, merci de visiter la page suivante:
http://forum.phpwebgallery.net/profile. … y=NyX9Lio2

--
PhpWebGallery Forum Mailer
(Ne pas rpondre a ce message)

Hi,

A user (who had lost his password) from my forum told me that he couldn't get a new password using the punBB function provided on connexion page. He simply gave his mail address, received a mail asking him to go the given URL tolding him that his password was updated. But at no moment a new password was clearly given by the user and I don't know what password was set to this user.

I simply asked him a md5sum of his clear password and updated the database directly, but I'm sure it's not the good solution ;-)

Is it corrected in release 1.1.4 ?

Thanks

11

(6 replies, posted in PunBB 1.2 show off)

Rickard wrote:

If I were you, I would tinker with the template file in PunBB so that you get the header from the rest of you pages in the forums as well. Also, why not make a custom style that has the same colors as the rest of the site?

I've tried but I quickly realised that all tag classes were not really separated and it became a bit more complicated than what I thought. I may modify all this in a while :-)

Rickard wrote:

BTW, nice gallery script :)

thanks :-D

12

(6 replies, posted in PunBB 1.2 show off)

Chacmool wrote:

And I see that the converter works fine too :)

As debated in the "Mod Release" forum, you know that I used a converter from IPB to phpBB (modified by myself) and then your converter from phpBB to punBB (also a bit modified). I've retrieved all what I needed.

13

(6 replies, posted in PunBB 1.2 show off)

Hi,

My forum has been running :

- PhpBB 2 : April 2002 ==> March 2003
- IPB : March 2003 to ==> April 2004
- punBB since April 2004

This is a support forum for a web application called PhpWebGallery "PhpWebGallery is a web application that enables you to create images gallery online easily."

Official website phpwebgallery.net
Official forum forum.phpwebgallery.net

Users do not completely agree with my choice. They find punBB quite poor :-/ But I really prefer it than the preceding ones ! I told them I would maybe convert to phpBB 2.2 when it's available but I really hope they will learn to appreciate punBB as I do.

Yes I used it ! Guest posts were not converted properly, I did modify the converter this way :

diff -ru ../phpbb_to_pubb/_posts.php /home/z0rglub/work/www/phpbb_to_pubb/_posts.php
--- ../phpbb_to_pubb/_posts.php Mon Jan  5 19:36:42 2004
+++ /home/z0rglub/work/www/phpbb_to_pubb/_posts.php     Sat Apr 17 12:19:20 2004
@@ -1,7 +1,7 @@
 <?^M
        $start = (int)$_GET['posts'];^M
        echo "\n<br>Converting posts: $start...<br>"; flush();^M
-       $result = mysql_query('SELECT post.post_id, post.post_time, post.poster_id, post.poster_ip, post.topic_id, text.post_subject, text.post_text, users.username FROM '.$_SESSION['php'].'posts AS post, '.$_SESSION['php'].'posts_text AS text, '.$_SESSION['php'].'users AS users WHERE post.post_id>'.$start.' AND post.post_id=text.post_id AND users.user_id=post.poster_id ORDER BY post.post_id LIMIT '.$_SESSION['limit']) or die(error("Unable to get posts", __FILE__, __LINE__, mysql_error(), "true"));^M
+       $result = mysql_query('SELECT post.post_id, post.post_time, post.poster_id, post.poster_ip, post.topic_id, text.post_subject, text.post_text, post.post_username, users.username FROM '.$_SESSION['php'].'posts AS post, '.$_SESSION['php'].'posts_text AS text, '.$_SESSION['php'].'users AS users WHERE post.post_id>'.$start.' AND post.post_id=text.post_id AND users.user_id=post.poster_id ORDER BY post.post_id LIMIT '.$_SESSION['limit']) or die(error("Unable to get posts", __FILE__, __LINE__, mysql_error(), "true"));^M
        $last_id;^M
        while($ob = mysql_fetch_assoc($result)){^M
                //printr($ob);          ^M
@@ -9,16 +9,25 @@
                echo $ob['post_id'].' ('.$ob['username'].")<br>\n"; flush();^M
 ^M
                // Save to database^M
-               mysql_query('INSERT INTO '.$_SESSION['pun'].'posts^M
-                       (id, poster, poster_id, posted, poster_ip, message, topic_id) VALUES(^M
-                       \''.$ob['post_id'].'\',^M
-                       \''.html_stuff($ob['username']).'\',^M
-                       \''.$ob['poster_id'].'\',^M
-                       \''.$ob['post_time'].'\',^M
-                       \''.decode_ip($ob['poster_ip']).'\',^M
-                       \''.convert_posts($ob['post_text']).'\',^M
-                       \''.$ob['topic_id'].'\'^M
-                       )') or die(error("PunBB: Unable to save post<br>", __FILE__, __LINE__, mysql_error(), "true"));^M
+               $query = 'INSERT INTO '.$_SESSION['pun'].'posts';^M
+               $query.= '(id, poster, poster_id, posted, poster_ip, message, topic_id) VALUES(';^M
+               $query.= "'".$ob['post_id']."',";^M
+               if ( $ob['poster_id'] != -1 )^M
+               {^M
+                 $query.= "'".html_stuff($ob['username'])."',";^M
+                 $query.= "'".$ob['poster_id']."',";^M
+               }^M
+               else^M
+               {^M
+                 $query.= "'".addslashes( $ob['post_username'] )."',";^M
+                 $query.= '1,';^M
+               }^M
+               $query.= "'".$ob['post_time']."',";^M
+               $query.= "'".decode_ip($ob['poster_ip'])."',";^M
+               $query.= "'".convert_posts($ob['post_text'])."',";^M
+               $query.= "'".$ob['topic_id']."'";^M
+               $query.= ');';^M
+                mysql_query( $query ) or die(error("PunBB: Unable to save post<br>", __FILE__, __LINE__, mysql_error(), "true"));^M
        }^M
 ^M
        // More topics?^M
@@ -27,4 +36,4 @@
                $location = '<script type="text/javascript">window.location="index.php?page='.$_GET['page'].'&posts='.$last_id.'"</script>';^M
        else^M
                $location = '<script type="text/javascript">window.location="index.php?page='.++$_GET['page'].'"</script>';^M
-?>
\ No newline at end of file
+?>^M
diff -ru ../phpbb_to_pubb/_topics.php /home/z0rglub/work/www/phpbb_to_pubb/_topics.php
--- ../phpbb_to_pubb/_topics.php        Mon Jan  5 21:03:18 2004
+++ /home/z0rglub/work/www/phpbb_to_pubb/_topics.php    Sat Apr 17 00:29:11 2004
@@ -17,6 +17,17 @@
                        $last['poster'] = $ob['username'];^M
                }^M
 ^M
+                if ( $ob['topic_poster'] == -1 )^M
+               {^M
+                 $query = 'SELECT post_username';^M
+                 $query.= ' FROM '.$_SESSION['php'].'posts';^M
+                 $query.= ' WHERE post_id = '.$ob['topic_first_post_id'];^M
+                 $query.= ';';^M
+                 $result = mysql_query( $query ) or die( error( 'Unable to retrieve first anonymous username to this topic', __FILE__, __LINE__, mysql_error(), "true" ) );^M
+                 $row = mysql_fetch_array( $result );^M
+                 $ob['username'] = $row['post_username'];^M
+               }^M
+^M
                // Save to database^M
                mysql_query('INSERT INTO '.$_SESSION['pun'].'topics^M
                        (id, poster, subject, posted, num_views, num_replies, last_post, last_post_id, last_poster, sticky, closed, forum_id) VALUES(^M
@@ -55,4 +66,4 @@
                $location = '<script type="text/javascript">window.location="index.php?page='.$_GET['page'].'&topics='.$last_id.'"</script>';^M
        else^M
                $location = '<script type="text/javascript">window.location="index.php?page='.++$_GET['page'].'"</script>';^M
-?>
\ No newline at end of file
+?>^M

PS : if you don't find this clear, copy past this text to a file named diff_converter_z0rglub.diff and open it with vim (:syntax on)

Chacmool wrote:

z0rglub: Would be great if you could try this one. The guest-id-problem should be solved... hopefully :P

Too late, I converted my IPB 1.1 forum to punBB 1.1.3. See PhpWebGallery forum :-)

Chacmool wrote:
z0rglub wrote:

I think I'll simply debug phpBB to punBB converter...

phpBB?

Yes... the converter from IPB 1.1 to phpBB 2.0.x exists and is easy to use. Once I have phpBB 2.0 database, I use phpBB to punBB converter (see problems I encountered in Converter: PhpBB2 -> PunBB1.1 topic)

:-/ Even after searching, I don't know how to migrate from my IPB 1.1 to 2.0 !

I think I'll simply debug phpBB to punBB converter...

OK, let's do the test now :-)

It seems I have to first migrate from IPB 1.1.2 to IPB 2 :-(

InvPB2-PunBB1_beta1.rar

Could you propose the same archive but compressed with a free compression format, or at least with zip ? (I can't use it by now, I don't have WinRAR)

Chacmool wrote:

I'm working on an Invision Power Board converter at the moment, so you could wait for it to be done instead if you want :) Or even better, you could beta-test the converter for me, beqause I don't have any large database to test with... (people tend not to be so happy about giving me their database backup-files to play around with :P)

Any idea about the date of the first beta test release of your IPB to PunBB converter ?

21

(5 replies, posted in Feature requests)

Well... an INNER JOIN doesn't take much time, but you're right, this feature may be used for less than 1% of topics but the queries will stay the same 100% of times :-/

22

(5 replies, posted in Feature requests)

I've been having the same kind of self wondering with my gallery application : how to have a picture in different categories without duplication ?

In the database, instead of having images.category_id, I created a table image_category with 2 fields : image_id and category_id. Thus an image can be owned by more than one category. When doing the selection of images to show, instead of only requesting images table, I request images table joined to image_category table :-)

(Rickard, I'm not sure this is this basic way you can't think about, and so not sure I answer your questions...)

Chacmool wrote:

z0rglub:
I'm working on an Invision Power Board converter at the moment, so you could wait for it to be done instead if you want :) Or even better, you could beta-test the converter for me, beqause I don't have any large database to test with... (people tend not to be so happy about giving me their database backup-files to play around with :P)

No problem for me if you want my database SQL dump. Nothing confidential (passwords are encrypted, of course) But I can also make some test, as you wish.

About the problem: [...] Are you sure the posts/topics are converted to the new database at all?

I've made some tests, here are the results...

IPB database :
- for topics started by unregistered users, ipb_topics.starter_id = 0 and ipb_topics.starter_name = "any guest"
- for posts written by unregistered users, ipb_posts.author_id = 0 and ipb_posts.author_name = "any guest"

phpBB database (by conversion) :
- for topics started by unregistered users, phpbb_topics.topic_poster = 0
- for posts written by unregistered users, phpbb_posts.poster_id = 0 and phpbb_posts.post_username IS NULL

This was a problem even in the phpBB forum so I made updates :

UPDATE phpbb_topics
SET topic_poster = -1
WHERE topic_poster = 0;

and

UPDATE phpbb_posts
SET poster_id = -1, post_username = 'z0rglub_guest'
WHERE poster_id = 0;

... now it's better, I can see topics and posts from guests (but they are all called "z0rglub_guest", I've lost this info during conversion from IPB to phpBB)

punBB database (still by conversion) :
I can see Anonymous topics, but Anonymous posts are not shown :-/

- for topics started by unregistered users, punbb_topics. poster = "Anonymous"
- for posts written by unregistered users, punbb_posts.poster = "Anonymous" and punbb_posts.poster_id = 0

after trying to post as guest directly in punBB forum, I see that anonymous users have poster_id = 1, so

UPDATE punbb_posts
SET poster_id = 1
WHERE poster_id = 0;

and now, I can see anonymous posts :-) (still having lost username informations, but this is due to IPB to phpBB conversion)

Conclusion : problems for phpBB to punBB converter concerning guests on posts. If the phpbb_posts.poster_id = -1, the converter has to create a post with punbb_posts.poster_id = 1 and punbb_posts.poster = phpbb_posts.post_username.

Hope it helps

Hi :-)

I use an IPB forum for the support forum of a web application PhpWebGallery. No converter from IPB to punBB, only from phpBB to punBB ? no problem ! I'll first convert from IPB to phpBB and after from phpBB to punBB. Lets go !

IPB ==> phpBB ==> punBB

Conversion from IPB to phpBB works good, apparently. I can't see posts and topics from unregistered users, but they are in the database (same number of posts and topics in IPB and phpBB databases).

Once conversion from phpBB to punBB done, I see following problems :

1. HTML code, coming from [ url ] BBCode are translated in only text, no links any more :-/
2. No posts or topics from unregistered users (thus dividing the number of topics by 2)

I'm going to search where the problem can be (as a PHP developper, it would be a shame not to try !). If I find anything, you'll be informed.

BTW, I now realize why using another language than english for coding (comments) can be very confusing (I'm French and on the first releases of PhpWebGallery, a big part of the code was in french, it's not the cas anymore)