• [MOD] Last comments v1.2.0 4 0 5 1
Currently:  

Author Topic: [MOD] Last comments v1.2.0  (Read 250699 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] Last comments v1
« Reply #60 on: November 03, 2005, 02:43:50 AM »
i dont have the code from vano, i use this only on my beta gallery
People keep me wonder with such statements...
Then what does your question has to do with this mod???? 8O
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 dosensteck

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: [MOD] Last comments v1
« Reply #61 on: November 03, 2005, 01:34:25 PM »
i dont have the code from vano, i use this only on my beta gallery
People keep me wonder with such statements...
Then what does your question has to do with this mod???? 8O

you dont understand me (ok, my english is not god :D)

its your mod - but the people want paging. with the code that i have posted is paging included....

i only wrote thats is not from you, because iam a php noob - and the soloution is not so god... (but it works :D) - i dont want that people think thats your code (you are better)

and sorry for my english  :oops:


Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD] Last comments v1
« Reply #62 on: November 08, 2005, 01:40:18 AM »
is there is a way to modify the output of this MOD so the commneted page listed once a time not each time it commented in the same list ?
means .. when an image commented .. and after 2 days some one else commented the same image .. both comments are listed with the same image twice ..
can you change this please .. so it can be listed onec only in the same list

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] Last comments v1
« Reply #63 on: November 08, 2005, 01:47:44 AM »
This mod is for listing comments not for listing images with last comments...see the difference? ;)

[EDIT]
Ok, here is what you can do:
in index.php (in the code you've added) find:
Code: [Select]
        ORDER BY c.comment_date DESCInsert above:
Code: [Select]
        GROUP BY c.image_id
It will filter our comments that followed after "first" last comment...meaning if there are two comments on the same image one was 2 days ago and second was 1 day ago, it will show only the one that was 2 days ago.
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 Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD] Last comments v1
« Reply #64 on: November 08, 2005, 05:05:52 PM »
thanks for the help man :D its working now .. yeah I noticed the difference .

Offline WoD

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [MOD] Last comments v1
« Reply #65 on: December 01, 2005, 12:09:58 PM »
Is Part 2 out yet?
Pretty interessted in it :)

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Last comments v1
« Reply #66 on: December 01, 2005, 06:00:33 PM »
it easy to make a site wiht the last 25 or 30 or 35 Comments without paging...

When you are interest, i will tell you how to make it... (o:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Last comments v1
« Reply #67 on: December 01, 2005, 11:42:57 PM »
@ WoD  and all who are interested ...

it is not the Part 2 of V@no's MOD Last Comments V.1 ... but I think it is similar ...  :wink:

[MOD] All Comments (Alle Kommentare) V.1.0   to finde here :
http://www.4homepages.de/forum/index.php?topic=10632.0

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 impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD] Last comments v1
« Reply #68 on: December 09, 2005, 04:22:45 AM »
@ WoD  and all who are interested ...

it is not the Part 2 of V@no's MOD Last Comments V.1 ... but I think it is similar ...  :wink:

[MOD] All Comments (Alle Kommentare) V.1.0   to finde here :
http://www.4homepages.de/forum/index.php?topic=10632.0

mawenzi

Great work mawenzi !!!

This Is what I'm sure most of us have been waiting for

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: [MOD] Last comments v1
« Reply #69 on: December 11, 2005, 07:44:04 AM »
Hi V@no ..
Great mod .. just as usual ..

I have an idea to enhance the display of the mod ..

It's a small JavaScript that let you Show/Hide the displayed comments .. just like how Gmail displays the replies inside each email :) ..
Imagine if these are the comments :) ..
It works ..
But there is a little problem ..
The script shows/Hides tables or <td> with static IDs ..
However, we have only one table in last_comment_bit.htm ..
So there has to be a small php modification that can handle this ..


Got my point?

here is the JavaScript and HTML .. try it please so you will understand ..

Code: [Select]
<html>
<head>

<!-- START show hide -->
<SCRIPT LANGUAGE="JavaScript">
function open_close_item(num) {
x='c'+num+'_sub'

if(document.getElementById(x).style.display=='none'){

document['c'+num+'_folder'].src='templates/lqta/images/minus.gif'
document.getElementById(x).style.display=''

}
else{
document.getElementById(x).style.display='none'
document['c'+num+'_folder'].src='templates/lqta/images/plus.gif'
}
}
</SCRIPT>
<!-- END show hide -->

</head>
<body>

<p align="right"><font size="2" face="Tahoma">&nbsp;<img name="c0_folder" border="0" src="http://www.lqta.com/gallery/templates/lqta/templates/default-arabic/images/minus.gif" style="cursor:hand" onclick="javascript:open_close_item(0)" width="9" height="9"> </font> 



<table id="c8_sub" border="1" width="100%" id="table1">
<tr>
<td>Cpntent</td>
</tr>
</table>



</body>
</html>

Offline pht3k

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Last comments v1
« Reply #70 on: December 24, 2005, 07:52:50 AM »
hi,

this MOD is exactly what i was looking for.  Thanks a lot for the code.
but there is one little thing that doesn't work :
the {image_user_name} tag simply output nothing.

some1 know how to fix this bug ?

thanks,
pht3k

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] Last comments v1
« Reply #71 on: December 24, 2005, 01:25:03 PM »
Did you do any integrations?
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 pht3k

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Last comments v1
« Reply #72 on: December 24, 2005, 04:09:34 PM »
hi V@no,

yes i have phpbb integration.
does it gives you any clue?

thanks,
pht3k

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] Last comments v1
« Reply #73 on: December 24, 2005, 06:34:43 PM »
well, yes, this mod was not built to support integrations...
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 pht3k

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Last comments v1
« Reply #74 on: December 24, 2005, 07:05:27 PM »
argh  :|