• [Mod] Mini-Top 5 0 5 1
Currently:  

Author Topic: [Mod] Mini-Top  (Read 234992 times)

0 Members and 1 Guest are viewing this topic.

Offline nhomauhoaphuong

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [Mod] Mini-Top
« Reply #135 on: November 12, 2008, 07:29:22 PM »
how do i add this mini top outside of the 4images gallery??? i want to show new images (thumbnails) on my actual website then people click on those pics will take them directly to this 4images gallery page.

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Mini-Top
« Reply #136 on: April 14, 2009, 01:32:21 AM »
Hello I like this mod a lot , but I didnt manage to make it run

in  index.php after I add :

include(ROOT_PATH.'mini_top.php');

it shows me 4x unexpected error in red on the upper left of the screen- before header on home page,
Does this mod run with 1.7.6 ? , i see that this is very old mod , nobody speaks about new version 1.7.6 so can anybody help me?
i put it away until will know more how to make it run ,or does anybody know about some similar mod already working also in 1.7.6 ?

I see it running on http://faces.dalnet.ru/  but its 1.7.4 version , i also wanted to thank to the owner of this russian site for explanation how to use uniqe icon for every category

my website:
http://www.dancersrecruit.com/pictures/index.php
thanks a lot Daniel

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 jopainter

  • Newbie
  • *
  • Posts: 10
  • jopainter
    • View Profile
    • photo : my eyes to the world
Re: [Mod] Mini-Top
« Reply #137 on: April 20, 2009, 12:55:16 PM »
it work man

http://pho2o.net/

thank you

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Mini-Top
« Reply #138 on: April 21, 2009, 01:14:55 AM »
yes in your website it works very nice , I envy you :wink:

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 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Mini-Top
« Reply #139 on: April 21, 2009, 02:21:47 AM »
Quote
the modecode is not msql5 compatible Wink

in modcode:
search:
Code:  [Select]  [Expand]  [Hide line numbers]
1
   

FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c

change to:
Code:  [Select]  [Expand]  [Hide line numbers]
1
FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

You can find more about the msql5 Problems here:
http://www.4homepages.de/forum/index.php?topic=10184.15
Read the thread  Wink => Antwort #125
KurtW

I have found my problem with errors and empty not working Mini Top thanks to KurtW answer here on this forum 1year ago , I think that everybody use mysql5 now , so it would be maybe better to change it in original first post code
If anybody will get
red errors in left screen look above for Kurt's  answer  , Thanks KurtW you ve saved me a lot of time :D

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 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Mini-Top
« Reply #140 on: April 21, 2009, 01:55:37 PM »
Quote
the modecode is not msql5 compatible Wink

in modcode:
search:
Code:  [Select]  [Expand]  [Hide line numbers]
1
   

FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c

change to:
Code:  [Select]  [Expand]  [Hide line numbers]
1
FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

You can find more about the msql5 Problems here:
http://www.4homepages.de/forum/index.php?topic=10184.15
Read the thread  Wink => Antwort #125
KurtW

I have found my problem with errors and empty not working Mini Top thanks to KurtW answer here on this forum 1year ago , I think that everybody use mysql5 now , so it would be maybe better to change it in original first post code
If anybody will get
red errors in left screen look above for Kurt's  answer  , Thanks KurtW you ve saved me a lot of time :D

I take back my words that it works , visitors part works fine but now I realized that I can't get to admin part anymore,
it only says :

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home2/dancersr/public_html/pictures/admin/index.php on line 31

Warning: include() [function.include]: Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/dancersr/public_html/pictures/admin/index.php on line 31

Warning: require(./includes/sessions.php) [function.require]: failed to open stream: No such file or directory in /home2/dancersr/public_html/pictures/admin/index.php on line 32

Fatal error: require() [function.require]: Failed opening required './includes/sessions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/dancersr/public_html/pictures/admin/index.php on line 32

This is my index.php :

30.    define('GET_USER_ONLINE', 1);
31.    include(ROOT_PATH.'global.php');
32.    require(ROOT_PATH.'includes/sessions.php');
33.    include(ROOT_PATH.'mini_top.php');


Mini-Top is gonna kill me , can anybody help me ? visitors part works nice but I cant get to admin part anymore , I really like this very simple mod , I don't want give it up

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 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] Mini-Top
« Reply #141 on: April 21, 2009, 02:33:42 PM »
what are the lines above 30? specifically define('ROOT_PATH' ...
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 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Mini-Top
« Reply #142 on: April 21, 2009, 03:27:54 PM »
Hello V@no thanks again for your very quick respond , i think that it looks like I'm testing you , but now it concerns with my stupidity , from the start I got 4images  I cannot go to sleep without resolving the problem and finishing some MOD and yesterday late night I didnt noticed that I uploaded index.php -visitor to index.php -admin , so everything went fine in visitors part but early morning I noticed that I cant get to admin part anymore .  Im very sorry , if you want I will delete previous post which has nothing to do with Mini-top , Mini -Top works excellent , maybe somebody should change original first post which has old PHP4 query with new  Mysql5 query for the others , thanks again and sorry Daniel

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 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] Mini-Top
« Reply #143 on: April 21, 2009, 03:55:38 PM »
Glad you found the problem :)

[offtopic]
From my personal experience I've learned that if there is a problem needs to be fixed, don't push yourself over sleepless night, most of the time you wont fix it, in fact sleepless nights creates more problems then solves anything... but in the morning after good sleep, 9 times out of 10 the solution being found in 10 minutes...talking about wasting time, eh? :D
In russia we have a saying (proverb) "Утро вечера мудреннее" ;)
« Last Edit: April 22, 2009, 01:23:42 AM by V@no »
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 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Mini-Top
« Reply #144 on: April 21, 2009, 04:28:22 PM »
 :D I' m from Czech Rep., I had a russian language for 9 ys. in the school obligatory but now after velvet revolution I forgot totaly everything , by the way , you and other people here know best how it works when you are trying to get new Mod working , I feel like a childboy building his LEGO , never stop until I finish it , yesterday 5 in the morning , 4images is a drug to me , instead of playing games , I build 4images site until somebody will say stop man , its too much !! and I will slowly one by one start to delete them -:) . It doesn't concern to the topic so feel free to delete it or I will make it myself , I'm very happy that this forum exists and compliments for your work because I see that you are succesfully helping to anybody here and I feel when seeing all these threads that when somebody has the last word here , its a V@no

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 cookie

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] Mini-Top
« Reply #145 on: September 25, 2009, 02:45:19 AM »
For anyone who installs mini-top on a fresh install and can only see 3 images, instead of 5....

In other words, you only see Most Rated, Most Voted, and Most Viewed
You do NOT see Most Commented, and Most Downloaded


Go into your ACP to General/Settings/Image Setting -> Image table cells

Set this field to 5 instead of 3 which is the default.

This took me quite a long time to figure out.

I also tried V@no's suggestion of updating the following array:
Code: [Select]
$selection = array('rating', 'votes', 'hits', 'comments', 'downloads');
 $selection_alt = array('votes DESC', 'rating DESC', 'hits DESC', 'comments DESC', 'downloads DESC');

However, I still did not see all 5 columns until I changed the setting in the ACP.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Mini-Top
« Reply #146 on: September 29, 2009, 08:36:55 PM »
Hallo,

hat das jemand schon bei sich eingebaut?
Die Thread hier sind wiedermal so zerstückelt, dass man nicht weis was man wo kopieren und ersetzen soll. In jedem Thread steht was anderes und auch in jedem Thread ist auf einmal ein anderer Code.

Ich blicke da nicht durch. Ich finde, dass wir mal hier ein Team zusammensuchen sollten, die solche Threads mal aufräumen und zu einem zusammenfassen.

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Re: [Mod] Mini-Top
« Reply #147 on: December 24, 2009, 12:32:28 PM »
Hi guys, here is the new idea -

to avoid duplications and to draw more attention to different photos i suggest we make a variation of this MOD to show different photos. Now there is a possibility that one photo could be a leader in some areas like most commented and most viewed and most rated...  

What I suggest is to make the following system:

photo a = leader max votes
photo b = leader max comments
if a=b then in place of photo show next one down (i.e photo with max comments - 1)

etc...

the idea is to have this block with different pictures and avoid the possibility to have duplications... The TRUE ratings would still be shown in TOP images section...



I would also love to have different MINI TOPs...

MINI TOP of the DAY
MINI TOP of the WEEK
MINI TOP of the MONTH

I guess that would involve duplicating the MOD three times??

EDIT
Nevermind.. solved...
« Last Edit: December 29, 2009, 02:22:20 PM by alekseyn1 »

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
DB error: bad SQL querry
« Reply #148 on: December 26, 2009, 02:41:02 PM »
Hi, all

When i install mod photo of the day or mini_top i have a error:

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 5images_images i, 5images_categories c LEFT JOIN 5images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY i.image_votes DESC LIMIT 1
Unknown column 'i.user_id' in 'on clause'

I have done all according with this topic: http://www.4homepages.de/forum/index.php?topic=22668.0

But error was not fixed...

Please help me...

4Images Version 1.7.7
MySQL 5....

Rembrandt

  • Guest
Re: DB error: bad SQL querry
« Reply #149 on: December 26, 2009, 02:45:28 PM »
Hi!

Code: [Select]
FROM 5images_images i, 5images_categories c LEFT JOIN 5images_users5images ... is not yet properly? b.t.w. post the sql query that produced the errors.

mfg Andi