Author Topic: [MOD] Favorites Counter // How many user added this picture to their lightbox  (Read 65065 times)

0 Members and 1 Guest are viewing this topic.

Offline alekinna

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Gallery of cross-stitching
Quote
Is it posible that the names  with the link to the userdetails, of the users who have the picture in they Lightbox are printed in details.htm ?

in the file details.php find
Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(

replace with
Code: [Select]
$sql = "SELECT l.lightbox_image_ids, u.user_id, l.user_id".get_user_table_field(", u.", "user_name")."
FROM (".LIGHTBOXES_TABLE." l, ".USERS_TABLE." u)
WHERE l.lightbox_image_ids LIKE '%$image_id%' AND u.user_id=l.user_id";

$result = $site_db->query($sql);
  $lightbox_row = array();
  while ($row = $site_db->fetch_array($result)) {
    $lightbox_row[] = $row;
  }
  $site_db->free_result($result);
  $num_rows = sizeof($lightbox_row);
if ($num_rows) {
    for ($i = 0; $i < $num_rows; $i++) {
$lightbox_list .= "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$lightbox_row[$i]['user_id'])."\">".$lightbox_row[$i]['user_name']."</a>";
if ($i+1 != $num_rows) {
$lightbox_list .= ", ";
}
}
}

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
"lightbox_list" => $lightbox_list,

in your details.html file use {lightbox_list} to insert the list of names.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
... thanks alekinna for this little, nice and usefull addon ...
... works perfect ...

PS.
... but I use it only as admin links ...
... with ...
Code: [Select]
if ($user_info['user_level'] == ADMIN) {

... your lightbox_list code ...

}
« Last Edit: November 19, 2008, 10:33:38 AM 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 bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Quote
in your details.html file use {lightbox_list} to insert the list of names.


hi, very cool MOD!

one question - I have also installed the member personal photo MOD - how is it possible to show not only the text names but also the photos of the user... what do I have to use in details.html in order to show user-profile photos

greetings,
bergblume

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
thank you

beautiful function.
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

Offline lailash

  • Newbie
  • *
  • Posts: 15
    • View Profile
Hallo,

wie bekomme ich diese Informationen in der Bildervorschau angezeigt?

thumbnail_bit.html

<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lang_image_lightbox_count} {lightbox_count}<br />
{lightbox_button}</td>

Version: 1.7.4

lg lailash

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
der mod ist einfach nur genial! klein aber fein...
wie kann ich {lightbox_count} in meiner thumbnail_bit.html angezeigt bekommen... wenn ich {lightbox_count} dort einfüge wird mir leider kein wert angezeigt...
gruss, bergblume

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Anyone has a download link for this mod? :)

Offline daymos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Hi! Great mod, but i don't see file to download. How to create user rank = count_favorites / all_images_by_user *100% ?

rinaldos

  • Guest
The Download Link is in first Post :-) And it is working .-)

Gruß


Offline oasis123

  • Pre-Newbie
  • Posts: 3
    • View Profile
Hi,

I'd added this mod, and found lot of users adding to my favourites (light box), the more number of users added it the better quality it had, so for me this metric seems to be the best measure for measuring quality of picture uploaded, I want to print statistics on top 5 uploaders based on my favorites counter, and top 5 pictures based on my favorite counter, could you please suggest me code for this, statistics mod had all metrics except this.

also, if I install V@no's multiple lightboxes, does this my faorites counter mod works?

Thanks.

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Who have this MOD? Please send me... Download link not work. Site got an error

Offline Marion

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • Tubes'n Art 4you
Ich hätte auch Interesse an der MOD. Der Downloadlink wird auf der Seite auch nach dem Registrieren/Einloggen nicht mehr angezeigt.

Offline wallward

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
download link not work, please upload in from upload center

Offline pjotrek

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [MOD] Favorites Counter // How many user added this picture to their lightbox
« Reply #43 on: September 26, 2012, 03:22:12 PM »
Can anyone send me the code of modification becouse download link is not working.....

Rembrandt

  • Guest
Re: [MOD] Favorites Counter // How many user added this picture to their lightbox
« Reply #44 on: September 27, 2012, 07:07:13 AM »
Hi
Can anyone send me the code of modification becouse download link is not working.....
http://www.4homepages.de/forum/index.php?topic=12182.msg127963#msg127963

mfg Andi