Author Topic: in the comments  (Read 5512 times)

0 Members and 1 Guest are viewing this topic.

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
in the comments
« on: January 05, 2009, 06:36:07 PM »
Hi evry one

Can any one help me

i want to make evry user add and edit and del comments in his image only not other users images


i try to make the Post Comment from Edit categories is private and it make evry user edit and del comments in his image only not other users images but they can't add comments

hope

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: in the comments
« Reply #1 on: January 05, 2009, 11:09:11 PM »
... allow user to edit their own comments ...
... it is a old thread, but try this ... http://www.4homepages.de/forum/index.php?topic=5577.msg23910#msg23910 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: in the comments
« Reply #2 on: January 11, 2009, 09:33:38 AM »
Thank You for your replay

this mod is not what i need

I make evry user del and edit any comments in his own images only but he cant add new comment in his own images
i want this use can add comment in his one images

i hope you can understand me and forgave my english

in my site evry register user have one images only
1- i want this user add and del and edit the comments in his own images only that mean this user can't add or del or edit comments in any other images

thanks for help
2-

Offline alekinna

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Gallery of cross-stitching
Re: in the comments
« Reply #3 on: January 11, 2009, 10:42:02 AM »
nameless

in the file details.php

find
Code: [Select]
if ($action == "postcomment" && isset($HTTP_POST_VARS[URL_ID])) {
add below
Code: [Select]
if ($is_image_owner || $user_info['user_level'] == ADMIN) {

find
Code: [Select]
unset($row);
  unset($spam_row);

add below
Code: [Select]
  }
  else{
    $msg .= $lang['comments_deactivated'];
  }

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: in the comments
« Reply #4 on: January 11, 2009, 02:25:57 PM »
thanks for all ur help

i make what u say
now user can add comment in his own images but the problem he can add comments in other users image

can we mak the user add , del , edit comments in his own images only

i hope u can

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: in the comments
« Reply #5 on: January 11, 2009, 02:35:41 PM »
i'm sorry i'm very sorry alekinna

it's work

when i see that the commend form still there i think it do't work

but when i try to make the user make comment in other user iimage ho did't make it

thank u thank u