Author Topic: Mod Limit of comment by photos  (Read 4359 times)

0 Members and 1 Guest are viewing this topic.

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Mod Limit of comment by photos
« on: September 15, 2008, 07:04:52 PM »
Hello boys!
I am stating put a limit on comments by photos.
This would be possible?

EX: for each photo posted in the gallery it would have a limit of 25 comments, after 25 comments would not be possible to make more comments on the picture.

I am grateful if they can help.
 :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Mod Limit of comment by photos
« Reply #1 on: September 16, 2008, 02:03:46 AM »
Its simple.
In details.php find
//-----------------------------------------------------
//--- Show Comments -----------------------------------
//-----------------------------------------------------


Insert ABOVE:
if (($image_row['image_comments'] + (isset($commentid) ? 0)) > 24$cat_cache[$cat_id]['auth_postcomment'] = AUTH_ADMIN;


P.S. admins have no restrictions ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: Mod Limit of comment by photos
« Reply #2 on: September 16, 2008, 07:12:35 PM »
Vano!

Thank you for help.

You are a great staff, his heart is very good.

I will take this same topic and asks you if it is possible the following configuration.

I like that after making the user log into the site, they were directed to the page of member_edite_profile.

Is it possible?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Mod Limit of comment by photos
« Reply #3 on: September 16, 2008, 08:07:14 PM »
I like that after making the user log into the site, they were directed to the page of member_edite_profile.

Assuming you are using 4images v1.7.2 or newer.
In login.php find:
  if ($site_sess->login($user_name$user_password$auto_login)) {

Insert BELOW:
    redirect($site_sess->url(ROOT_PATH."member.php?action=editprofile"));


P.S.
Next time please start a new topic if you have further UNRELATED questions ;)

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: Mod Limit of comment by photos
« Reply #4 on: September 16, 2008, 09:16:40 PM »
Vano once again thanks for your excellent help.  :D

I apologise for using the same topic to two questions.  :oops:

 :idea:
I will create a new topic for this question, this module will be very good
to the laws of my country.