1
wacheek
Photo Uploads NOT count as Forum Posts.
  • 2006/7/20 3:32

  • wacheek

  • Just popping in

  • Posts: 7

  • Since: 2004/6/7 7


This isn't a huge issue (keyword issue - not problem, yet)

The issue is with xcgal the coppermine mod.. I have a personal friends and family site and allow everyone personal albums and such as well as a ipb (old free version) mod forum. When members upload pics, it counts as a "User Post" site wide including in the forums.. this is starting to irritate some of the "forum freaks" who want to post and post and post to get their forum rank up, because theres a few younger members who love to pop every darn picture they have in their site photo albums.

I've dug around in google and XOOPS forums and searches but I've come up with no method of having XOOPS disregard "Pic Uploads" as "Site Posts".

Anyone have a clue how I can do this?

Thanks in advance.

2
mcleines
Re: Photo Uploads NOT count as Forum Posts.
  • 2006/7/20 11:57

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


This is only possible by editing the script xcgal/include/picmgmt.inc.php . At about row 146 you will find:

if (($approved == 'YES') && is_object($xoopsUser)) $xoopsUser->incrementPost();

Delete this and the upload won't be counted.

3
wacheek
Re: Photo Uploads NOT count as Forum Posts.
  • 2006/7/20 20:46

  • wacheek

  • Just popping in

  • Posts: 7

  • Since: 2004/6/7 7


Quote:

mcleines wrote:
This is only possible by editing the script xcgal/include/picmgmt.inc.php . At about row 146 you will find:

if (($approved == 'YES') && is_object($xoopsUser)) $xoopsUser->incrementPost();

Delete this and the upload won't be counted.


I apreciate it mcleines, a whole lot.
Gonna go try it out now.



If you'd like, visit the site when you have time to see whats up and offer any suggestions.
(sent in pm)
Thanks again

4
wacheek
Re: Photo Uploads NOT count as Forum Posts.
  • 2006/7/20 22:09

  • wacheek

  • Just popping in

  • Posts: 7

  • Since: 2004/6/7 7


Thought I'd post a follow up for anyone else who might find this a problem with their site.
What mcleines suggested worked like a charm even without updating the module.

Heres the methodology I used to get it done.

1. Renamed "xcgal/include/picmgmt.inc.php" to "picmgmt.inc.php.OLD" on the server for a backup.

2. Opened picmgmt.inc.php LOCALLY and edited with "Context" *lovely program, check it out here*
::: found the code I needed on line 98 >>
if ($approved == 'YES') $xoopsUser->incrementPost();
::: this is the ONLY line I edited simply by commenting it out >>
//EDITED BY ME JULY 20 06
if ($approved == 'YES') $xoopsUser->incrementPost();
::: I dont know how this is going to show up in the post so make sure thats ALL ONE LINE of code INCLUDING the "//EDITED BY..."

3. Uploaded the newly edited picmgmt.inc.php to the server "dont forget where it belongs, either "{root}/modules/xcgal/includes/" or
"{root}/html/modules/xcgal/includes/" depending on how you set XOOPS up.

3. And then uploaded a photo via xcgal in "User" mode to check if it counted as a site wide post. It did not.

So, try to follow along those lines and you should get it done.


Thanks again mcleines, REALLY apreciate the prompt reply.

Login

Who's Online

140 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits