forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Αndré on May 08, 2010, 09:51:47 am

Title: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 08, 2010, 09:51:47 am
This is the standalone version of the forum plugin (http://forum.coppermine-gallery.net/index.php/topic,51535.html) for Coppermine 1.5.x.

Collaborative work has stopped a long time ago, so I decided to move this plugin from foulu (http://forum.coppermine-gallery.net/index.php?action=profile;u=3924)'s svn (http://svn.amfcvn.net/cpgsf/) to the official Coppermine svn (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/forum/).

Some libraries have been removed that comes with Coppermine 1.5.x out of the box and also some other cpg1.4.x related files have been removed.

Of course the plugin has been developed further, so if you are running Coppermine 1.5.x and the forum plugin, you should upgrade to the attached version. Here (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/forum/?view=log) is the changelog since the svn moving. Older changes can be checked out here (http://svn.amfcvn.net/cpgsf/) (no web interface).

There is still something to do until this plugin becomes a stable version:

If you find some bugs, please report them here.
Title: How to make new topic in forum(v2) ???
Post by: anueva on May 17, 2010, 01:59:36 am
Hello,

I have a problem with the CPG Simple Forum plugin. as i say in the subject, i cant find out  how to make new topics????
Title: Re: How to make new topic in forum(v2) ???
Post by: Joachim Müller on May 17, 2010, 08:17:50 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: anueva on May 17, 2010, 10:59:57 am
http://zephsgallery.com/forum.php

there is NO adult content, its just pictures for family...

Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: anueva on May 17, 2010, 11:36:22 am
http://zephsgallery.com/forum.php

there is NO adult content, its just pictures for family...



here is username and password for testuser.

username: testuser
pw: testuser
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 17, 2010, 11:45:40 am
username: testuser
pw: testuser
Doesn't work.

Anyway, you have to create a category & board in the forum manager (http://zephsgallery.com/forum.php?c=admin), as you can only start new threads in boards (like in Coppermine you can only upload files to albums).
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: anueva on May 17, 2010, 11:51:41 am
Doesn't work.

Anyway, you have to create a category & board in the forum manager (http://zephsgallery.com/forum.php?c=admin), as you can only start new threads in boards (like in Coppermine you can only upload files to albums).

Thanks, i had already made a category but when you mention this i also saw the new board button.

isnt there any way for users to make boards?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 17, 2010, 11:59:06 am
isnt there any way for users to make boards?
No. That's beyond the concept of a forum imo. I don't know if that's possible in any forum application. Would be technically possible though.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: mumtaz on May 18, 2010, 10:29:02 pm
Hi

I got this error message if I enable the forum:

"Parse error: syntax error, unexpected '(', expecting '}' in **********/galeria/plugins/forum/codebase.php  on line 155"

Whats wrong? I put the forum to Coppermine Photo Gallery Plugins folder (galery root/plugins/forum/codebase.php)
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Joachim Müller on May 19, 2010, 07:12:30 am
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: taucher_0815 on June 02, 2010, 05:38:20 pm
Tried to install the plugin on version 1.5.4 on http://www.sk-foto.info (http://www.sk-foto.info).

Got the same Error as the poster before.
Quote
Parse error: syntax error, unexpected '(', expecting '}' in /var/www/*anon*/html/coppermine/plugins/forum/codebase.php  on line 155

Happens also when i try to install the "annotate"-Plugin (http://forum.coppermine-gallery.net/index.php/topic,60622.0.html (http://forum.coppermine-gallery.net/index.php/topic,60622.0.html))

Other plugins install fine.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 02, 2010, 06:35:19 pm
Will have a look tomorrow.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 03, 2010, 09:19:42 am
Error still doesn't occur for me. Can you please please post the error message for the annotation plugin in the appropriate thread? Thank you. And please post your PHP version.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: taucher_0815 on June 03, 2010, 09:38:46 am
After activating PHP5 it went fine!

Shame on me that i have not tried it before :(

Works also fine for anntoate!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 03, 2010, 09:51:05 am
Can you please test if it works with PHP4, when you change
Code: [Select]
    if ($stop) {
        echo <<< EOT
        <form action="{$superCage->server->getEscaped('REQUEST_URI')}" method="post">
            <input class="button" type="submit" name="submit" value="{$lang_common['go']}" name="submit" />
        </form>
EOT;
    }
to
Code: [Select]
    if ($stop) {
        echo '
        <form action="'.$superCage->server->getEscaped('REQUEST_URI').'" method="post">
            <input class="button" type="submit" name="submit" value="'.$lang_common['go'].'" name="submit" />
        </form>
';
    }

Thanks.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: taucher_0815 on June 03, 2010, 10:00:13 am
Quote
Parse error: syntax error, unexpected '(', expecting '}' in /var/www/web1531/html/coppermine/plugins/sample/codebase.php  on line 74

PHP Version 4.4.9-0.dotdeb.1
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 03, 2010, 10:05:23 am
Parse error: syntax error, unexpected '(', expecting '}' in /var/www/web1531/html/coppermine/plugins/sample/codebase.php  on line 74
Does that error really occur if you try to install the forum plugin?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: taucher_0815 on June 03, 2010, 10:09:09 am
grmpf... 2 things so close togeter and no coffee so far...

Quote
Parse error: syntax error, unexpected '(', expecting '}' in /var/www/web1531/html/coppermine/plugins/forum/codebase.php on line 186
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 03, 2010, 10:15:20 am
:D

The same error occurs at another place. I'll check for embedded objects in the plugins folder.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 03, 2010, 10:32:02 am
Attached updated plugin in initial post. Please try again with PHP4.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: taucher_0815 on June 03, 2010, 10:37:36 am
Download - check
Extract - check
FTP - check
Install - CHECK

works now with PHP4.

One more thing...
I have the "contact-sub menu" now 2 times...

1 within Home and 1 within Forum. (was so also on the initial version)
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 03, 2010, 10:56:54 am
I have the "contact-sub menu" now 2 times...

1 within Home and 1 within Forum
Attached updated plugin in initial post (beta5b).
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: taucher_0815 on June 03, 2010, 11:01:09 am
Works like a charm!

Many many thanks!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: batanaka on June 19, 2010, 08:29:34 pm
It looks nice thus far. Are there plans to add more functionality to it (for instance, possibility to create polls) in the future?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 22, 2010, 12:14:14 pm
Maybe in the distant future. I don't have a time schedule or a to-do list. But feel free to post feature requests. Maybe someone will contributes the code.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on August 13, 2010, 11:32:41 am
Beta 6 (attached to initial post) adds a new config option to enable/disable the use of message icons. Please replace all plugin files and update the database in the forum manager if you want to use that version.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: AdrianRMS on August 13, 2010, 03:38:48 pm
This has been a very good forum to be so far, nice work.

Something I would like to request are locked categories, basically only administrators are able to post new topics.
It's a useful feature when it comes to announcement categories found in modern boards.

Also requesting categories that are only viewable / accessable by chosen usergroups.

It would be nice to see these 2 implemented in the future if anyone finds time.

Adrian
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on August 13, 2010, 03:43:31 pm
Added to to-do list in initial post.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: twist3r on August 17, 2010, 02:32:54 pm
I have the following prolem: Seems like even if a topic is marked as locked, regular visitors can post.

http://www.dlh.ro/vedete/forum.php?c=board&id=3 (see the locked icon )

and the "locked" topic :

http://www.dlh.ro/vedete/forum.php?c=topic&id=2

If you try, you can post there even if is locked.

Now some clarifications. There is only one registered user (me) and I don't want registered users. So I gave full rights to the regular user. Is this "lock" function work only for registered users ? That would be weird ...
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on August 17, 2010, 03:14:21 pm
I'll have a look at this issue. Of course it's not intended that registered users have lover privileges than guests.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: twist3r on August 17, 2010, 06:11:21 pm
Thanks for taking care. Also, what file I have to edit for making URL's to open in a new windows ? Thanks
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on August 23, 2010, 07:48:56 pm
Fixed in svn revision 7857. New package will be released in the next days.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: a-m on October 08, 2010, 04:07:49 am
my web installed forum,but forum manager don't work! please help me! my web is http://aw8.org/cpg/ username and password:test
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on October 08, 2010, 07:05:49 am
What exactly doesn't work?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: a-m on October 09, 2010, 02:55:21 pm
"forum manager" don't work!I can't creat sub menu,I can't manager forum!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on October 11, 2010, 12:47:34 pm
Forum manager works for me as expected on my local testbed. Please describe what happens while performing which step if you really need help.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: a-m on October 14, 2010, 06:03:00 pm
Forum manager is worked,but can't manager anything,I can't Added categories and post!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: a-m on October 14, 2010, 06:25:42 pm
Fatal error: Cannot redeclare class HTMLelement in /www/www/cpg/adaptor/include/HTMLelement.class.php on line 7
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on October 14, 2010, 06:31:24 pm
Fatal error: Cannot redeclare class HTMLelement in /www/www/cpg/adaptor/include/HTMLelement.class.php on line 7
Not sure what you're doing. But please stop to clutter this thread, as you failed several times giving useful information I can work with. Your issue seems to be an individual issue as the forum manager works for many people without any problems.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: JackH on November 24, 2010, 04:03:04 pm
Hi,

I've installed the cpgforum plugin (cpg1.5.x_plugin_cpgforum_v2.0-beta6.zip) on a new coppermine 1.5.8 installation

I can create new topics/messages in the forum, however after submitting my message the enters/carriage returns
used are replaced by escape characters \r\n. (see attachments)

Is this a known bug in the plugin, or did I missed something in my configuration?

Thanks for your help.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Jokke_K on November 24, 2010, 05:58:28 pm
Hi,

I've installed the cpgforum plugin (cpg1.5.x_plugin_cpgforum_v2.0-beta6.zip) on a new coppermine 1.5.8 installation

I can create new topics/messages in the forum, however after submitting my message the enters/carriage returns
used are replaced by escape characters \r\n. (see attachments)

Is this a known bug in the plugin, or did I missed something in my configuration?

Thanks for your help.

I have same problem in our forum
http://www.fireimages.net/forum.php?c=topic&id=78&message_id=71fd0299e88b387fe750a13aedaa6365

TL
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on November 24, 2010, 07:08:38 pm
Will have a look soon.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: DigitalMind on December 07, 2010, 04:37:12 pm
I get the same error (line breaks showing escape codes)

http://demotivationalpics.com/forum.php?c=topic&id=1

Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: m4rcu5 on January 09, 2011, 01:25:20 pm
On my site i have the same problem. Instead of new lines it shows the escape characters.
I worked around this for my posts by directly entering them into the sql database.
But keep in mind that if you update the post from the forum it will use escape characters again.

I hope someone finds a solution to this, the plugin is way to nice to have it messed up by this.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 20, 2011, 01:42:40 pm
I recently confirmed the line break issue in one of my testbeds. Today I decided to do some tests but I wasn't able to reproduce that behavior. Bizarrely it doesn't happen anymore in all of my testbeds :o All I've done was to reboot my machine since I recognized the issue in my testbed. So I'm currently stuck with this issue as the issue doesn't occur to me.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: profili on January 25, 2011, 11:33:13 pm
I don't know if it is a bug or something, but it seems that the rss is not working. The rss button is there, but no results. http://www.galsh.com/forum.php?feed=atom
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 26, 2011, 09:12:23 am
http://www.galsh.com/forum.php?feed=atom
Works for me as expected. See attachment.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: profili on January 26, 2011, 11:44:28 am
Hmmm, this is strange. Maybe the browser? I'm using Firefox!

Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 26, 2011, 12:15:30 pm
Seems to be a client-side issue, as it works at least for me. Please test with another browser or with your favorite feed reader.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: profili on January 30, 2011, 03:11:16 pm
Αndré, do you have and idea how to add the canonical tag to the topics, because I have seen Google is indexing a lot of links for the same content?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sharpo on January 30, 2011, 09:04:04 pm
If it's any help, I tried this plugin today & don't have any problem with line breaks, as the following will show

http://www.sharpo.co.uk/cpg15test/forum.php?c=topic&id=1&start=0#1
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: m4rcu5 on January 30, 2011, 10:02:36 pm
If i modify Database.php to disable a escaping routine it seems to be fixed. But i guess i turn of some safety features then :-/

Code: [Select]
    /**
     * Escape String
     *
     * @access    public
     * @param    string
     * @return    string
     */
    function escape_str($str) {
        if (get_magic_quotes_gpc()) {
            return $str;
        }
//        if (function_exists('mysql_real_escape_string')) {
//            return mysql_real_escape_string($str, $this->conn_id);
//        } elseif (function_exists('mysql_escape_string')) {
//            return mysql_escape_string($str);
//        } else {
//            return addslashes($str);
//        }
        return $str;
    }
Title: Coppermine Forum Plugin (CPG Simple Forum (forum): v2.1 BETA)
Post by: jmcreis on January 31, 2011, 09:20:49 am
The installation of version 2.0/beta/5 (standalone version for cpg1.5.x) was done.
I made the almost complete translation into Portuguese of Portugal with the intention to provide here, but when I start the posts, I have no option.
Any help please?

My Gallery in english is here: http://euroweblink.com/fotopoint/
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 31, 2011, 12:27:16 pm
@jmcreis: there should be an attachment field when you post a reply. Please try again.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: jmcreis on January 31, 2011, 01:06:55 pm
Thank you André but it not something like that.
Simply, when i open the Forum it goes to the Search page and dont give any other option.
Please see the problem there.
Thanks
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 31, 2011, 01:58:14 pm
We're talking about this board and not the plugin, right?


when i open the Forum it goes to the Search page and dont give any other option.
I don't know what you're talking about. You just replied to this thread so you're able to do other things than just see the search page.


Please see the problem there.
Where?


Seems that we talk about absolutely different things. I initially thought you want to contribute the Portuguese translation for this plugin and don't know where to attach it.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: jmcreis on January 31, 2011, 02:10:53 pm
Sorry for my bad english  ;D

I was talking about my gallery and about portuguese translation.
Meantime I received an email from another user of this forum and my problem is solved.

When the translation is finished I will put the link here for download.

Thank you very much André.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 31, 2011, 02:21:19 pm
Meantime I received an email from another user of this forum and my problem is solved.
Maybe you want to share your solution with the community?
Resolve your threads
If you have found an answer to your question, resolve your thread. Don't just post "I have found the answer", but tell others what you actually did to solve your issues. Posting a link to the page where you found the answer might help. Describing what you did might help as well.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: profili on January 31, 2011, 03:59:32 pm
Αndré, do you have and idea how to add the canonical tag to the topics, because I have seen Google is indexing a lot of links for the same content?

http://www.galsh.com/forum.php
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: jmcreis on January 31, 2011, 04:26:44 pm
@ André

As administrator of the Forum, we must previously create Categories and Boards. Then the members can post LOL
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: jmcreis on January 31, 2011, 04:39:52 pm
Here is the portuguese language for the foulu's forum plugin.

http://euroweblink.com/software/portuguese.zip

Unzip and upload for the languages folder under the plugin location (not the lang folder of the gallery)
Nothing need to do in Forum administration.
As you change the language of the gallery, the Forum changes automatically.

Feedback is apreciated
Grettings
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 04, 2011, 06:08:51 pm
Any change concerning the problem of newline characters?  :-[

Is it ok/good idea to comment out the escape-function in /libraries/Database.php, as someone mentioned?

Code: [Select]
    function escape_str($str) {   
        if (get_magic_quotes_gpc()) {
            return $str;
        }
        if (function_exists('mysql_real_escape_string')) {
            return mysql_real_escape_string($str, $this->conn_id);
        } elseif (function_exists('mysql_escape_string')) {
            return mysql_escape_string($str);
        } else {
            return addslashes($str);
        }
    }

The forum works otherwise very good, (apart from this single problem).
I have also created a Swedish translation.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 05, 2011, 10:15:21 am
It's definitely no good idea to comment out the whole escape function. It would be better to add some checks to that function, so it works properly. As the error doesn't occur on my testbeds, it's hard to fix it. Ideally I'd need ftp access to someones gallery where I can create the fix. If someone is ready to do this, please let me know. I'll give you my contact details. Please don't post that data publicly!

I have also created a Swedish translation.
Please attach it as zip file to your next reply.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 05, 2011, 02:53:10 pm
I really need help with this, because I've already deleted my previous forum.
Are not sure how and what to change in the function, to get it to appear better.

Instead of:
Quote
Quote
Hi
how
are you
.. i´m getting:
Quote
Hi\r\nhow are you

(see attached picture)

P.s. I have very little left on the Swedish translation, before I can share it.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sharpo on February 05, 2011, 04:37:16 pm
I really need help with this, because I've already deleted my previous forum.
Are not sure how and what to change in the function, to get it to appear better.
I've not had the problem with new lines.

My forum is version 2, which is the latest, and has not been modified in any way.

Just set it so guests can post - if you want to try it (will reset that option in a day or two)

http://www.sharpo.co.uk/cpg15test/forum.php?c=topic&id=13
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 05, 2011, 09:13:59 pm
It's weird.
I'm also using the latest version.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 05, 2011, 09:45:09 pm
One more thing ...
How can I make the forum a bit wider?  :-[
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 07, 2011, 11:52:45 am
I really need help with this
As the error doesn't occur on my testbeds, it's hard to fix it. Ideally I'd need ftp access to someones gallery where I can create the fix.


How can I make the forum a bit wider?
Adjust Config - Image view - Width of the table for file display to your needs.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: klauswr on February 14, 2011, 04:07:52 am
As the error doesn't occur on my testbeds, it's hard to fix it. Ideally I'd need ftp access to someones gallery where I can create the fix.

Hi André,

I have the save problem with \\r\\n\\r\\n in my forum.

It is not browser specific. Well - I could give you ftp access to my forum. What are you going to do then ;-)

First of all try out http://album.klauswr.de/forum.php?c=board&id=2  (I would not like to present the username and password here - so please let me know how to get to you more privately).

Klaus
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 14, 2011, 10:51:35 am
Hello Klaus,

I already got access to a gallery where the problem occurs, but unfortunately hadn't found time yet to work on the issue. Maybe I can do that today. I'll let you know as soon as I have a solution.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: klauswr on February 14, 2011, 12:44:50 pm
Hello Klaus,

I already got access to a gallery where the problem occurs, but unfortunately hadn't found time yet to work on the issue. Maybe I can do that today. I'll let you know as soon as I have a solution.

What about:

Code: [Select]
// based on some wordpress code

$str = str_replace(array("\r\n", "\r"), "\n", $str); // cross-platform newlines

$str = preg_replace("/\n+/", "\n", $str); // take care of duplicates



// and then explode it

$arr = explode("\n", $str);
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 14, 2011, 03:34:35 pm
Problem happens when magic_quotes_gpc is disabled. In that case the input will be escaped twice thanks to the use of getEscaped and escape_str.

All having this issue please apply the changes of svn revision 8174 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?view=revision&revision=8174) and report if it works for you.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 14, 2011, 04:32:45 pm
Problem happens when magic_quotes_gpc is disabled. In that case the input will be escaped twice thanks to the use of getEscaped and escape_str.

All having this issue please apply the changes of svn revision 8174 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?view=revision&revision=8174) and report if it works for you.
That did the trick for me.  ;D
It works great. Thanks!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 14, 2011, 05:16:34 pm
I just noticed a very strange thing.
When i edit/change a rather big/large post, over half the text gets deleted when i git the change-button.

I thought that it was a wrong type (varchar) for the "body" in the database, but it was correct "text".
How can it be that half of the text gets deleted when i change a post with much text/rows?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 14, 2011, 05:59:38 pm
It just happens when editing the post, not when you initially write the post, right? Can you please do some more testing, e.g. as from how much characters the issue occurs? Thanks.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 14, 2011, 06:36:29 pm
It just happens when editing the post, not when you initially write the post, right?
Correct!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: klauswr on February 14, 2011, 08:59:54 pm
Problem happens when magic_quotes_gpc is disabled. In that case the input will be escaped twice thanks to the use of getEscaped and escape_str.

All having this issue please apply the changes of svn revision 8174 (http://coppermine.svn.sourceforge.net/viewvc/coppermine?view=revision&revision=8174) and report if it works for you.

Seems to work ... switch of global magic quotes setting works as well.

Thanks!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: klauswr on February 14, 2011, 09:37:55 pm
BTW: I cannot find how to make a topic sticky ???
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: klauswr on February 14, 2011, 09:39:12 pm
Ooops, found it at the bottom aof the thread! Sorrry!
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 15, 2011, 08:54:39 am
When i edit/change a rather big/large post, over half the text gets deleted when i git the change-button.

Please have a look at the forum setting
Quote from: forum.php?c=admin&m=setting
Maximum character allowed in message (0 to disable)
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: TheOneAndOnly on February 15, 2011, 11:26:43 am
Oops... that setting was 512 characters.
Now it works as it should.

Sorry for my stupid misstake.  :-[
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: dentsidepics on May 15, 2011, 09:39:43 am
URL - http://www.dentsidepics.com
Test user/pass - Labrat/labrat
cpg 1.5.12
cpg forum plugin 2.0 beta6
No adult content...just pictures of trucks.  :-)

When we embed youtube videos, they show correctly in "preview", but not when we actually make the post.  (It simply shows the code.)  Is it possible to embed youtube vids into cpg forums?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 15, 2011, 10:19:10 am
How do you embed YouTube videos? It doesn't work with HTML code, but just with the help of the 'BBCode Control' plugin.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: dentsidepics on May 15, 2011, 06:33:58 pm
I've now installed the BBCode Control plugin (thanks!), but it's still not working.

I've enabled YouTube Video in the config (Yes: Everyone).  I've tried using the "Link to this video" link from YouTube, the iframe link, the object link, etc.  If I use the "Link to this video", it just shows the link within the [youtube] code both in preview and live post.  If I use the iframe or object links, it shows the video inside [youtube] code in preview, but shows the entire code in live rather than a video.

You can see what I mean here. (http://www.dentsidepics.com/forum.php?c=topic&id=6) (second post down)

Thanks a ton for your help.  The forum is visible to guests, but this login information above is still active:

Test user/pass - Labrat/labrat
cpg 1.5.12
cpg forum plugin 2.0 beta6
bbcode control v1.8
Again, no adult content...just pictures of trucks.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 15, 2011, 07:06:36 pm
Quote
[youtube]http://youtu.be/HBokQ4vJAJc[/youtube]

Those short urls aren't supported (at least not yet, as I didn't know that they exist at all ;)). Instead, use the url from the address bar:
Quote
http://www.youtube.com/watch?v=HBokQ4vJAJc
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: dentsidepics on May 16, 2011, 01:14:45 am
Wow...the only thing I didn't try.  haha

Thanks a ton, Andre.  That did it.  You've been a great help.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 20, 2011, 12:36:12 pm
Those short urls aren't supported (at least not yet, as I didn't know that they exist at all ;))
FYI: it's now possible to use the short http://youtu.be urls with the BBCode Control plugin.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: kaval on July 01, 2011, 05:03:46 pm
Under the simple forum administrative menu settings options:

It would be nice to have the option under Basic Features of:
Disable visitor statistics.
Disable viewing members.

Is there a simple way for me to manually do this in the interval?

Otherwise I really like the plug-in! Keep up the good work.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on October 07, 2011, 02:22:31 pm
New version (Beta/7) attached to initial post.



It would be nice to have the option under Basic Features of:
Disable visitor statistics.
Disable viewing members.
I missed that post, that's why that options aren't in the current release, sorry.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: kaval on October 07, 2011, 03:54:58 pm
No problem.  If you get around to it on the next update that would be appreciated.  It is a nice addition to Coppermine.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: mahdi1234 on January 10, 2012, 11:26:01 pm
Great plugin Αndré.

Would you have any roadmap on "track user activities" item, is it work-in-progress or more longer term enhancement?

cheers
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 11, 2012, 08:24:36 am
There's no roadmap, sorry. I'm not sure if I'll implement it ever (lack of time).
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: altenae on January 18, 2012, 05:59:18 pm
I have already tried to install this plugin.

However I always get this error ;

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in Y:\xampp\htdocs\Aviationpix.nl\Root\plugins\forum\codebase.php on line 124


Any ideas ?

Thanks,

Edward
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 18, 2012, 07:46:23 pm
http://forum.coppermine-gallery.net/index.php/topic,73815.msg355465.html#msg355465
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: altenae on January 18, 2012, 08:15:46 pm
Yep installed now.

When installing it says all created tables are OK.
However when going to the forum it says:

Table 'aviationpix.gallery_fr_messages' doesn't exist

Indeed the table is nog present.

Maybe I do something wrong.

Thanks,

Edward
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 18, 2012, 08:38:15 pm
Afaik you have to click "OK" on the screen where it says that all tables have been created successfully.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: altenae on January 18, 2012, 08:44:58 pm
It is telling me that it is already done..
However the table is not present in de database.

Here the screenshot.

Thanks,

Edward
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 18, 2012, 09:34:07 pm
Try to uninstall and re-install the plugin again. But I guess that there's something wrong with your permission settings (i.e. you don't have the permission to create new tables).
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: mahdi1234 on February 06, 2012, 04:30:40 pm
Here's modification to add previous/next page "button" in the topic view (see attached image).

go forum_helper.php and replace function function paging($paging = array()) with below

Code: [Select]
    function paging($paging = array()) {
        $html = "";
if ($paging['total'] != 0) {
  $number_of_page = ceil($paging['total'] / $paging['limit']); //total
  $current_page   = ceil($paging['start'] / $paging['limit']) + 1; //current

  if ($current_page > 1) {
    $previous = ($current_page * $paging['limit']) - ($paging['limit'] * 2);
    $html .= "<a href=\"{$paging['pattern']}&start={$previous}\"><<</a>&nbsp;";
}

  if ($current_page == 0) $current_page = 1;
            for ($i=1;$i<=$number_of_page;$i++) {
                $current_start = ($i-1)*$paging['limit'];
                if ($current_page == $i) {
                    $html .= "[<b>{$i}</b>]" . '&nbsp;&nbsp;';
                } else {
                    $html .= "<a href=\"{$paging['pattern']}&start={$current_start}\">{$i}</a>" . NBSP . NBSP;
                }
            }

  if ($current_page < $number_of_page) {
    $next = $current_page * $paging['limit'];
    $html .= "<a href=\"{$paging['pattern']}&start={$next}\">>></a>";
  }

            return $html;
  } else return TRUE;
    }

cheers ...
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on March 08, 2012, 04:19:50 pm
Thank your for your contribution. New version attached to initial post (it also includes a fix for the installation issue).
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: KyleClarkeNZ on May 17, 2012, 03:53:26 am
Hi

Is this plugin still in active development or is it just by contribution? If it is, is there a list of work items that i can at least attempt to work on? (my skill base is very basic) I've implemented this forum on two sites and am pretty keen to have some the planned features completed. Specifically the new posts indicators and pming.

Would love to help in any way i can.

Kyle
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: KyleClarkeNZ on May 19, 2012, 01:13:38 pm
I've been playing around with using the PMS plug-in to plug the hole in the forum plug-in. However now I was wondering if someone could help me move the "forum profile" back in to the normal profile.php.

I read on the 1.4.x version's forum topic that the original author didn't want to implement this change as it edited core files. However, I'm sure that this can be done by modding the plug-in and avoiding the core profile.php all together. Can someone please help?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: mahdi1234 on May 24, 2012, 05:22:18 pm
Specifically the new posts indicators and pming.

Don't know if you've already started anything on this or not, anyway, I have implemented new posts notification on my site. Though it's very highly customized site, and I've changed lots of things, if you're interested I can share with you either high-level how I did it or even details (I've also made sort-order of posts user-defined to be asc/desc).

As for PM's - I'm using PMS plugin, don't use forum profile at all. I've linked that basically to the user profile (as does PMS on its own), so it points to the same location both from gallery/forum for the same user experience.

cheers ...
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: KyleClarkeNZ on May 25, 2012, 02:21:20 am
I'd love to see what you've done with the new posts since last login indicators. It would be good if someone who really knows what they're doing can incorporate your solution back in to the forum plugin itself.

I've also incorporated the pms plugin. I think I've got it all hacked together quite nicely (just waiting on some help in another thread to hack together a custom indicator for it)

I'd love if we could cross pollinate our ideas.

Im typing this on my phone at work, but when I get home I can pm your some screens of my solutions (non of my changes are live yet)

Cheers,

Kyle
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: mahdi1234 on May 25, 2012, 12:44:01 pm
Basically my solution is built on few prerequisites -

- I have only one board and completely dumped forum front page and linking directly to forum.php?c=board&id=1 for all forum interaction
- I have limited number of users (~70), not sure how my solution would work with thousands users and then I guess it would not be the best for sure
- I have limited number of threads, more or less, meaning user can create new topic, but I try to moderate and move related stuff to existing topics, again with thousands or maybe even hundreds of topics, db desing shall probably be different.

For DB part - I've extended cpg_fr_topics with following

- each topic has additional columns `id_x` where x = UID and it holds `last_msg_id` of topic when user last visited topic
- additional row `topic_id` = 0 which holds in `last_msg_id` time of absolute last message and each `id_x` holds time of last visit to forum.php?c=board&id=1

Now, if `id_x` < `last_msg_id` for `topic_id` = 0 then main gallery menu is highlighted so user knows new posts are present in the forums - see forum_highlight.png

Once main menu is clicked, those topics with new post are marked with red icon - see forum_unread.png ... also users is the redirected to the first unread post in the particular topic.

I can post the code as well, but as I mentioned it's quite mess and I made it for my needs, but should be able to go through git and find relevant parts in few days once I have some more time.

cheers
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on May 30, 2012, 12:26:35 pm
Version 2.1-beta9 (attached to initial post) includes now a captcha feature. It depends on the Coppermine config setting "Display Captcha (Visual Confirmation) for adding comments".
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sharpo on June 25, 2012, 11:32:33 pm
I have a test coppermine gallery with the forum installed, it was beta7.

Just updated to 1.5.20 and was making sure everything worked, then I noticed that some forum links did not work - those that included "board" in the url. Checking this topic I noticed beta9 had been released, so installed that.

Problem solved, until I tried adding a post which included an apostrophe. Kept getting an error message. Tried a simple post with the word test as subject and test as message. That worked fine, so tried another simple post which included the word "can't". It gives an error - doesn't like the apostrophe. Remove the apostrophe and type "cant" and it works.

Hope I have explained the problem well enough?

http://www.sharpo.co.uk/cpg15test/forum.php?c=topic&id=22
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sharpo on June 26, 2012, 12:01:35 am
Following on from the previous post, I have set it so that guests can post, then you can see what the error message is.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 26, 2012, 09:24:20 am
Undo that changes: http://coppermine.svn.sourceforge.net/viewvc/coppermine?view=revision&revision=8174

Apply that changes as soon as possible, as your gallery is currently vulnerable because of the unescaped strings. It seems that I need to find a better solution with the escape_str function.
Title: Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sharpo on June 26, 2012, 11:02:05 am
Undo that changes: http://coppermine.svn.sourceforge.net/viewvc/coppermine?view=revision&revision=8174

Apply that changes as soon as possible, as your gallery is currently vulnerable because of the unescaped strings. It seems that I need to find a better solution with the escape_str function.
I'll uninstall the forum plugin for now. Will that make it safe until you find a solution?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 26, 2012, 11:41:10 am
Don't expect a short fix. If you read this thread you'll see that there has been already a lot of trouble with the escape_str function. Instead of uninstalling the forum plugin, I'd suggest to use the following fix, as get_magic_quotes_gpc() seems to return a wrong value or magic_quotes_gpc doesn't work as expected at your server.

Open forum/libraries/Database.php, find
Code: [Select]
        if (get_magic_quotes_gpc()) {
            return $str;
        }
and remove it completely. Please report if that works as expected.
Title: Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sharpo on June 26, 2012, 02:12:10 pm
Don't expect a short fix. If you read this thread you'll see that there has been already a lot of trouble with the escape_str function. Instead of uninstalling the forum plugin, I'd suggest to use the following fix, as get_magic_quotes_gpc() seems to return a wrong value or magic_quotes_gpc doesn't work as expected at your server.

Open forum/libraries/Database.php, find
Code: [Select]
        if (get_magic_quotes_gpc()) {
            return $str;
        }
and remove it completely. Please report if that works as expected.
Just tried it and the apostrophe (') is now accepted, thanks.

Do I still need to do that editing as detailed in revision 8174?
Title: Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on June 26, 2012, 02:56:02 pm
Do I still need to do that editing as detailed in revision 8174?
No.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: KyleClarkeNZ on July 23, 2012, 11:33:23 am
my page: http://nzgc.co.nz

I was wondering if anyone could help me adding the users forum avatar next to their post in the "last post info" part on the main page there.

As you can see, i've gotten pretty far with figuring out different parts of this plugin and coppermine in general. But I don't really understand that whole something->somethingElse syntax. Any help would be appreciated.

I promise I'm not just here to ask support (I have contributed some code, albeit it answered my own query on a different thread, but at least I contributed my solution back to the community)

One last request, is there any indication as to when the "new posts" feature will be worked on? This one is doing my head in. I just can't even begin to think of a solution to this.

thank you for your help, and your contribution to the community.

Kyle
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on July 23, 2012, 12:17:50 pm
my page: http://nzgc.co.nz
You should upgrade your outdated gallery asap.


I was wondering if anyone could help me adding the users forum avatar next to their post in the "last post info" part on the main page there.
Where exactly (left, right, ...)?


I don't really understand that whole something->somethingElse syntax
See http://en.wikipedia.org/wiki/Object-oriented_programming


It seems that you already found the corresponding code part? If so, please post which file/line.


is there any indication as to when the "new posts" feature will be worked on?
Honestly, I haven't worked on this plugin in the last months and I don't think that I'll do in the next months (if at all).
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: KyleClarkeNZ on July 23, 2012, 12:41:06 pm
You should upgrade your outdated gallery asap.
new features, or security?

Where exactly (left, right, ...)?

on the left, ideally like this: http://www.tgforums.co.uk/forum/

as for the code, it seems to be here: plugins/forum/forum/templates/classic/home/index_view.php
Code: [Select]
foreach ($categories as $k => $category) {
    echo table::open();
    echo table::td(html::category_anchor($category['id'], $category['name']), 5);
    echo table::tds(array(
        array('class'=>'tableh2', 'width'=>'0%', 'align'=>'center', 'text'=>'&nbsp;'),
        array('class'=>'tableh2', 'width'=>'50%', 'text'=>html::bold(Lang::item('home.forum_name'))),
        array('class'=>'tableh2', 'width'=>'5%',' align'=>'center', 'text'=>html::bold(Lang::item('home.topics'))),
        array('class'=>'tableh2', 'width'=>'5%',' align'=>'center', 'text'=>html::bold(Lang::item('home.replies'))),
        array('class'=>'tableh2', 'width'=>'40%', 'text'=>html::bold(Lang::item('home.l_post_info'))),
    ));
    foreach ($category['boards'] as $board) {
        echo table::tds(array(
            array('class'=>'tableb', 'align'=>'center', 'text'=>html::img($board['icon'])),
            array('class'=>'tableb', 'valign'=>'top', 'text'=>html::board_anchor($board['id'], $board['name']).'<br />'.($board['description'] ? html::span($board['description']) : '')),
            array('class'=>'tableb', 'align'=>'center', 'text'=>$board['topics']),
            array('class'=>'tableb', 'align'=>'center', 'text'=>$board['replies']),
            array('class'=>'tableb', 'text'=>($board['last_post_title'] ? html::span(sprintf(Lang::item('home.last_post_title'), html::message_anchor($board['last_post_id'], $board['last_post_title']), time::decode($board['last_post_time']), html::profile_anchor($board['last_post_author_id'], $board['last_post_author_name']))) : '')),
        ));
        if ($board['childs']) {
            echo table::td(html::span(html::bold(Lang::item('home.child_boards')).forum::child_board_list($board['childs'])), 5, 'tablef');
        }
    }
    if (count($category['boards']) == 0) {
        echo table::td(Lang::item('home.no_board'), 5, 'tableb');
    }
    echo table::close();
    echo html::spacer();
}

Honestly, I haven't worked on this plugin in the last months and I don't think that I'll do in the next months (if at all).

real shame, it's quite a good plugin, sans the missing features. Well thank you for the work you have done. I have faith someone will pick it up. I'll check out that link, and experiment with my own installation. Maybe I can contribute something back.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on July 23, 2012, 12:53:31 pm
new features, or security?
First of all for security reasons. See the announcements threads for more detailed information, or just install the currently latest stable release, cpg1.5.20.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: KyleClarkeNZ on July 24, 2012, 08:54:04 am
if anyone is able to work on the unread posts feature. I've found this post about popular methods of handling this kind of query. There's also some examples.

http://stackoverflow.com/questions/2288814/php-forums-how-to-cope-with-unread-discussions-topics-posts
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: allvip on August 22, 2012, 08:08:16 pm
I am the admin of the forum,but in forum manager I can not delete topics.I can delete only category and bords.

1.How can I delete a topic?
2.Why I can not Insert ',? and other like this in the topic name?
3.How can I remove confirmation lettters.I want users to post topics and reply without confirmation letters.

my forum:


http://allvip.us/gallery/forum.php (http://allvip.us/gallery/forum.php)

Thanks
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: ninouee on March 17, 2013, 04:53:50 pm
Hello,

Excuse me for the mistake i can do in english, il dont speack or write withe your langage for 10 years.  ;)

I instal the forum plugin in my gallery in 1.5.20 version and the file of the forum was the file in the first message.

Withe the forum plugin i can't create message, subjecte, i juste see the last message.

You can find the adress of the forum => http://ddstvavatarland.free.fr/forum.php

And a picture of my screen:

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fi75.servimg.com%2Fu%2Ff75%2F10%2F06%2F29%2F69%2Fforum_10.png&hash=82759906c4c0075a2af2873f723a0ddb4232e791)

Thank you for reading my message

Good by and thank you for the plugin.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on March 19, 2013, 11:33:12 am
You need to create at least one forum category before you can start threads.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: ninouee on March 30, 2013, 10:55:40 am
Hello

Thank you for your answer.

But, how can i creat a category? I search on the first message of this topik and i dont understant how the can do that.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: ninouee on March 30, 2013, 01:44:51 pm
Hello, i'm Sorry for the 2 posts but i find my problem: I find where was the forum administrator.

Thank You for your work and the reply!  :)
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: computel on January 18, 2014, 06:51:35 pm
I'm getting this error when I installed the login and looked at the forum or forum manager

Array (

Thanks
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 19, 2014, 05:54:14 pm
It seems that you haven't properly installed the plugin. Please try to re-install again and make sure you hit the install button at the installer.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: computel on January 21, 2014, 03:20:10 am
it's not installing the database from what I can see, As I looked in the database and nothing is added. I downloaded the file again and uploaded still the same problem

Code: [Select]
Performing database updates
CREATE TABLE IF NOT EXISTS `cpg15x_fr_boards` ( `board_id` smallint(5) NOT NULL auto_increment, `cat_id` tinyint(4) NOT NULL default '0', `child_level` tinyint(4) NOT NULL default '0', `parent_id` smallint(5) NOT NULL default '0', `board_order` smallint(5) NOT NULL default '0', `last_msg_id` int(10) NOT NULL default '0', `updated_msg_id` int(10) NOT NULL default '0', `name` tinytext NOT NULL, `description` text NOT NULL, `topics` mediumint(8) NOT NULL default '0', `posts` mediumint(8) NOT NULL default '0', PRIMARY KEY (`board_id`) ) TYPE=MyISAM Already Done
CREATE TABLE IF NOT EXISTS `cpg15x_fr_categories` ( `cat_id` tinyint(4) NOT NULL auto_increment, `cat_order` tinyint(4) NOT NULL default '0', `name` tinytext NOT NULL, PRIMARY KEY (`cat_id`) ) TYPE=MyISAM Already Done
CREATE TABLE IF NOT EXISTS `cpg15x_fr_message_icons` ( `icon_id` smallint(5) NOT NULL auto_increment, `title` varchar(80) NOT NULL default '', `filename` varchar(80) NOT NULL default '', `icon_order` smallint(5) NOT NULL default '0', PRIMARY KEY (`icon_id`) ) TYPE=MyISAM AUTO_INCREMENT=14 Already Done
INSERT INTO `cpg15x_fr_message_icons` (`icon_id`, `title`, `filename`, `icon_order`) VALUES (1, 'Post', 'icon1', 0), (2, 'Smile', 'icon2', 1), (3, 'Big smile', 'icon3', 2), (4, 'Angry', 'icon4', 3), (5, 'Cool', 'icon5', 4), (6, 'Sad', 'icon6', 5), (7, 'Wink', 'icon7', 6), (8, 'Comment', 'icon8', 7), (9, 'Magnify', 'icon9', 8), (10, 'Icon', 'icon10', 9), (11, 'Lamp', 'icon11', 10), (12, 'Bug', 'icon12', 11), (13, 'Wheel', 'icon13', 12) Already Done
CREATE TABLE IF NOT EXISTS `cpg15x_fr_messages` ( `msg_id` int(10) NOT NULL auto_increment, `topic_id` mediumint(8) NOT NULL default '0', `board_id` smallint(5) NOT NULL default '0', `poster_time` int(10) NOT NULL default '0', `poster_id` mediumint(8) NOT NULL default '0', `modified_id` int(10) NOT NULL default '0', `subject` tinytext NOT NULL, `poster_name` tinytext NOT NULL, `poster_email` tinytext NOT NULL, `poster_ip` tinytext NOT NULL, `smileys_enabled` tinyint(4) NOT NULL default '1', `modified_time` int(10) NOT NULL default '0', `modified_name` tinytext NOT NULL, `body` text NOT NULL, `icon` varchar(16) NOT NULL default '1', PRIMARY KEY (`msg_id`) ) TYPE=MyISAM Already Done
CREATE TABLE IF NOT EXISTS `cpg15x_fr_topics` ( `topic_id` mediumint(8) NOT NULL auto_increment, `is_sticky` tinyint(4) NOT NULL default '0', `board_id` smallint(5) NOT NULL default '0', `first_msg_id` int(10) NOT NULL default '0', `last_msg_id` int(10) NOT NULL default '0', `started_member_id` int(8) NOT NULL default '0', `updated_member_id` int(8) NOT NULL default '0', `poll_id` mediumint(8) NOT NULL default '0', `replies` int(10) NOT NULL default '0', `views` int(10) NOT NULL default '0', `locked` tinyint(4) NOT NULL default '0', PRIMARY KEY (`topic_id`) ) TYPE=MyISAM Already Done
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_version', '2.0 Beta') OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_title', 'Coppermine Simple Forum') OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_guest_browse', 1) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_guest_post', 1) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_hot_topic_msg', 20) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_topic_per_page', 20) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_msg_max_size', 512) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_msg_per_page', 15) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_max_word_length', 30) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_gap_time', 30) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_avatar_size', 100) OK
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_signature_max_size', 512) OK
ALTER TABLE `cpg15x_users` ADD `fr_avatar` varchar(255) NOT NULL DEFAULT '' OK
ALTER TABLE `cpg15x_users` ADD `fr_signature` text NOT NULL DEFAULT '' OK
Performing database updates
UPDATE `cpg15x_config` SET value='2.1/Beta/9' where name='fr_version' OK
CREATE TABLE IF NOT EXISTS `cpg15x_fr_notify` ( `user_id` int(10) NOT NULL default '0', `topic_id` mediumint(8) NOT NULL default '0', `board_id` smallint(5) NOT NULL default '0', `send` tinyint(1) NOT NULL default '0' ) TYPE=MyISAM Already Done
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_time_online_checking', 5) OK
CREATE TABLE IF NOT EXISTS `cpg15x_fr_badwords` ( `word_id` int(10) NOT NULL auto_increment, `word` varchar(45) NOT NULL default '', `replace` varchar(45) NOT NULL default '', PRIMARY KEY (`word_id`) ) TYPE=MyISAM Already Done
INSERT INTO `cpg15x_config` (name, value) VALUES ('fr_msg_icons', 1) OK
ALTER TABLE `cpg15x_fr_messages` ALTER `icon` SET DEFAULT '1' Already Done
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: gmc on January 21, 2014, 04:15:05 am
The message log indicates 'already done' for the create table statements... I would have expected 'OK' since the statement is coded 'IF NOT EXISTS'. If the tables don't exist, make sure the user specified in includes/config.inc.php has 'CREATE TABLE' privileges in MySQL..
It should if you used the same user when you installed CPG??
In shared hosting, it is typically specified in cPanel or equivalent.

If that is ok, try executing one of the CREATE statements from a tool like phpMyAdmin... And see if you get an error.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 21, 2014, 09:29:42 am
I just tried to install the forum and it also doesn't create the tables. It works as expected if I remove
Code: [Select]
TYPE=MyISAMfrom the files in the sql/ folder.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on January 21, 2014, 09:55:57 am
cpg1.5.x_plugin_cpgforum_v2.1-beta10.zip attached to initial post. It fixes the latest issue and also contain some other improvements.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: computel on January 22, 2014, 08:37:18 am
Thanks it worked.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sphoto on February 13, 2014, 03:16:39 am
I downloaded the forum from the top link on 2/12/14. According to the plugin manager it is version 2.1 Beta. My coppermine version is 1.5.24. PHP version is 5.3.24 and MYSQL version is 5.6.

When trying to make a post in a board on my site I am getting the following error. Wondering if anyone has any ideas.

Array (
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: gmc on February 13, 2014, 03:24:39 am
Bridged with phpBB3 by chance?
Try this link if so:  https://www.phpbb.com/kb/article/doesnt-have-a-default-value-errors/ (https://www.phpbb.com/kb/article/doesnt-have-a-default-value-errors/).
I recently had to use this technique with a phpBB3 installation at 3.0.7. Worked very well.
Or is this a plugin table?
Problem seems same (and maybe same cause) - but may need a different solution...
Title: Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sphoto on February 13, 2014, 03:30:48 am
Bridged with phpBB3 by chance?

No bridge... completely standalone.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 13, 2014, 10:59:35 am
Have you tried to post as guest or registered user?
Title: Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 13, 2014, 11:08:12 am
Have you tried to post as guest or registered user?

It seems that this doesn't matter. Please set a default value for the database field poster_email (with a tool like phpMyAdmin). If don't know how or haven't any posts in your forum yet, we also could re-install the forum plugin with an updated SQL file.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: sphoto on February 13, 2014, 04:46:56 pm
Thanks André. I'll try that later today and get back to you. Could it be happening due to me not having email set up on my server in PHP? I tried posting as a registered user. Tried selecting notification on and off. This is a brand new install of Coppermine and the Forum.

If I can't get this to work, is there a private message plugin that works well? I don't need the functionallity of a forum, I just need a messenger.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: Αndré on February 13, 2014, 05:02:50 pm
There's a private messaging plugin, but your forum issue is very easy to fix.
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: 406man on June 14, 2020, 09:55:11 am
Are there any plans to make this plugin available for CPG 1.6 ?
Title: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
Post by: ron4mac on June 14, 2020, 11:57:09 am
The 'plan' is to upgrade plugins by frequency of request for it. You can contact the plugin author to see if they will upgrade it by PM'ing them. If the author has abandoned the plugin, then, if there is still some demand, someone else may be willing to step in and upgrade it.