• [MOD] All Comments (Alle Kommentare) V.1.6 5 0 5 1
Currently:  

Author Topic: [MOD] All Comments (Alle Kommentare) V.1.6  (Read 337127 times)

0 Members and 1 Guest are viewing this topic.

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] All Comments (Alle Kommentare) V.1.4
« Reply #210 on: March 10, 2009, 07:10:55 AM »
Then in details.php replace:
Code: (MySQL) [Select]
          ORDER BY c.comment_date ASC";
with:
Code: (MySQL) [Select]
          ORDER BY c.comment_date DESC";
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 darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #211 on: March 10, 2009, 07:58:51 AM »
Perfect. Thanks Vano!  :D

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #212 on: March 10, 2009, 08:06:16 AM »
@darkcurves

... your request has nothing to do with [MOD] All Comments ... right ? ...
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 darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #213 on: March 10, 2009, 08:11:40 AM »
I have no idea. After installing this mod on both my galleries, the first comment goes down.

Oh wait, maybe because of the other paging mod, didn't realise at all.  :oops:

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #214 on: May 28, 2009, 01:43:49 PM »
It worked immediately and fantastic , thanks for very nice tutorial Mawenzi.

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #215 on: May 28, 2009, 02:55:41 PM »
@4ella

... thanks for your statement ... ;)
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: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #216 on: June 08, 2009, 04:18:20 AM »
Nice Mod
Thanks mawenzi for this mod it works fine

i need something and sorry for my bad English

my gallery have 15 main cat
so your mod dispaly all comments for all 15 cat

i need not to display all comments for all 15 cat but i want to chose which cat to display all comments for it

i hope you understand me

and thanks againe for this mod

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #217 on: June 11, 2009, 09:16:09 AM »
@ nameless

1. thanks for your statement ..

2. in comments_all.php find  ...
Code: [Select]
".get_auth_cat_sql("auth_viewimage", "NOTIN");

and replace with ...
Code: [Select]
".get_auth_cat_sql("auth_viewimage", "NOTIN").", 1, 2, 3";

where the numbers 1, 2, 3 are your cat_id's you won't show ...
« Last Edit: June 11, 2009, 12:26:59 PM by mawenzi »
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 Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #218 on: July 11, 2009, 06:39:26 PM »
Thx for this great mod  :!:

One Point:

If an user doesn't exist with a profile, BUT has written a comment, the mod will show the user's name with a link. How to avoid this? (cause there is actually no profile)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #219 on: July 12, 2009, 07:29:46 PM »
@Schnick und Schnack

... zunächst : Danke für dein Statement zu dieser Modifikation ... ;)
...
... und weiter :  ich kann deine Problemstellung nicht ganz nachvollziehen ...
... wenn ein User einen Kommentar geschrieben hat, so muss für ihn auch eine Profil vorhanden sein ... der Link ist also gerechtfertigt ...
... es kann natürlich sein, dass der User in seinem Profil keinerlei zusätzliche Infos hinterlegt hat ...
... doch das zu prüfen ist nicht Inhalt und Zielsetzung dieser Modifikation ...
...
... oder habe ich dich da total falsch verstanden ... ?
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 Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #220 on: July 12, 2009, 09:52:21 PM »
@Schnick und Schnack

... zunächst : Danke für dein Statement zu dieser Modifikation ... ;)
...
... und weiter :  ich kann deine Problemstellung nicht ganz nachvollziehen ...
... wenn ein User einen Kommentar geschrieben hat, so muss für ihn auch eine Profil vorhanden sein ... der Link ist also gerechtfertigt ...
... es kann natürlich sein, dass der User in seinem Profil keinerlei zusätzliche Infos hinterlegt hat ...
... doch das zu prüfen ist nicht Inhalt und Zielsetzung dieser Modifikation ...
...
... oder habe ich dich da total falsch verstanden ... ?

Nabend,
ja, haste falsch verstanden  :wink:

wenn Du eine Kategorie erstellst oder bearbeitest, gibt es folgenden Einstellung:



Also jemand, der einen Kommentar geschrieben hat, muss nicht zwangsläufig ein Profil besitzen  8O

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #221 on: August 05, 2009, 02:17:52 PM »
Thank you for this mod :)

I found one error: i can see negative number (for example -8, -7 etc.) in the number of comment.
For examle, you can see it in MOD-Demo:
1. choose 1 comment per page
2. choose last page with comments
3. choose 3 comment per page
after this steps you will be on the first(!) page and number of comment will be "-1223"
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #222 on: August 05, 2009, 02:58:08 PM »
Hello Sun ...

... thanks for your statement to this mod ... ;)
... and you are right ... this is a bug ... I've never seen before, these negativ numbers ...
... I will try to find the reason of this bug ...
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 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] All Comments (Alle Kommentare) V.1.4
« Reply #223 on: August 06, 2009, 04:41:11 AM »
this line is extra and not needed  $num_comments sizeof($comment_row);

also   if (!$num_comments) {
    
$comments_all "<tr><td class=\"commentrow1\" colspan=\"2\">".$lang['no_comments']."</td></tr>";
  }
  else {


should be move up, above
  $sql "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_date".get_user_table_field(", u.""user_level")."
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] All Comments (Alle Kommentare) V.1.4
« Reply #224 on: August 06, 2009, 03:22:15 PM »
... so, bin dabei einige kleine Bugs zu beseitigen ... ;)

@Sebas Bonito bzw. Schnick und Schnack  :roll:

... mit dem Profillink für Gäste hast du natürlich Recht ...
... mit folgender Änderung werden bei Kommentareinträgen von Gästen deren Namen nicht mehr als Link zum Profil angezeigt ...
... finde in comments_all.php ...

      
if ( $user_info['user_level'] == GUEST ) {
         
$comment_user_profile_link "";
      } else {
         
$comment_user_profile_link $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;user_id=".$comment_user_id);
      }
      
$comment_user_profile_link = ($comment_user_profile_link) ? "<a href=\"".$comment_user_profile_link."\">".$comment_user_name."</a>" $comment_user_name;


... und ersetzte es durch ...

     
if ( $user_info['user_level'] == GUEST ) {
         
$comment_user_profile_link "";
      } else {
             if ( 
$comment_user_id == -) {
                  
$comment_user_profile_link "";
             } else {
                  
$comment_user_profile_link $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;user_id=".$comment_user_id);
             }
      }
      
$comment_user_link = ($comment_user_profile_link) ? "<a href=\"".$comment_user_profile_link."\">".$comment_user_name."</a>" $comment_user_name;


... im MOD-Post auf der ersten Seite erfolgte ein Update ...


@Sun

... I can't find any solution ...  :?
... maybe there is a bug in my paging class ... in includes/paging.php ...

@V@no

... I think, $num_comments is very needed ...
... and your $sql - hint ... I can't understand it ...
... will your hints resolved the paging bug ... ?
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) ...