Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 3 4 5 [6] 7   Go Down

Author Topic: Coppermine forum plugin (cpgforum) for cpg1.5.x  (Read 116815 times)

0 Members and 1 Guest are viewing this topic.

KyleClarkeNZ

  • Coppermine newbie
  • Country: nz
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • NZ Game Collectors
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #100 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
Logged

KyleClarkeNZ

  • Coppermine newbie
  • Country: nz
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • NZ Game Collectors
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #101 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?
Logged

mahdi1234

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #102 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 ...
Logged

KyleClarkeNZ

  • Coppermine newbie
  • Country: nz
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • NZ Game Collectors
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #103 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
Logged

mahdi1234

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #104 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #105 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".
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #106 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
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #107 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.
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #108 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.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #109 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?
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #110 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.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #111 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?
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #112 on: June 26, 2012, 02:56:02 pm »

Do I still need to do that editing as detailed in revision 8174?
No.
Logged

KyleClarkeNZ

  • Coppermine newbie
  • Country: nz
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • NZ Game Collectors
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #113 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #114 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).
Logged

KyleClarkeNZ

  • Coppermine newbie
  • Country: nz
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • NZ Game Collectors
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #115 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #116 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.
Logged

KyleClarkeNZ

  • Coppermine newbie
  • Country: nz
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • NZ Game Collectors
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #117 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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #118 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

Thanks
Logged

ninouee

  • Coppermine novice
  • *
  • Country: fr
  • Offline Offline
  • Gender: Female
  • Posts: 44
Re: Coppermine forum plugin (cpgforum) for cpg1.5.x
« Reply #119 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:

(http://i75.servimg.com/u/f75/10/06/29/69/forum_10.png)

Thank you for reading my message

Good by and thank you for the plugin.
Logged
Pages: 1 2 3 4 5 [6] 7   Go Up
 

Page created in 0.035 seconds with 20 queries.