4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2018, 10:30:46 PM

Login with username, password and session length
Search:     Advanced search
4images is now on facebook. Click here and become a fan!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [Mod] Mini-Top
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 ... 8 9 10 11 [12] 13 » »» Print
Current Topic Rating: *****
Author Topic: [Mod] Mini-Top  (Read 179303 times)
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 58


View Profile
« Reply #165 on: December 26, 2009, 07:35:37 PM »

V@no thank you for fix..

i merged that one and this one here.
Logged

cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi
tennis-ecards
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 2
-Receive: 0


View Profile
« Reply #166 on: January 23, 2010, 12:33:08 AM »

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...

Das würde mich auch sehr interessieren. Hat jemand eine Idee und kann helfen?
Logged
alekseyn1
Full Member
***
Offline Offline

Posts: 102

Thank You
-Given: 13
-Receive: 9


View Profile WWW
« Reply #167 on: January 23, 2010, 12:38:22 PM »

Das würde mich auch sehr interessieren. Hat jemand eine Idee und kann helfen?

hi there! no problem. I am willing to share my solution with the world!

I have reworked the entire mini-top mod...

attached is my version (place the files in the root of your 4images)

in your template home.html include the following code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_day}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_day}</td>
</tr>

</table><br/>
</td>

</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_week}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_week}</td>
</tr>

</table><br/>
</td>
</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_month}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_month}</td>
</tr>

</table><br/>
</td>
</tr>

<!--<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_title}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_images}</td>
</tr>
</table><br/>
</td>
</tr>-->
</table>

of course the language variables have to be set as well....

maybe this is not the most elegant solution, but it works for me.... please note, the system removes duplications in each rating, so that for example in the mini-top of the day, no identical images will be shown...

now, if somebody will make a separate module to use this code but so that user can select a date and the code would show ratings for this date, that would be great )))

* mini_tops.zip (5.59 KB - downloaded 40 times.)
Logged

tennis-ecards
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 2
-Receive: 0


View Profile
« Reply #168 on: January 23, 2010, 05:17:30 PM »

Quote  [Expand]
hi there! no problem. I am willing to share my solution with the world!

I have reworked the entire mini-top mod...

attached is my version (place the files in the root of your 4images)

in your template home.html include the following code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_day}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_day}</td>
</tr>

</table><br/>
</td>

</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_week}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_week}</td>
</tr>

</table><br/>
</td>
</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_month}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_month}</td>
</tr>

</table><br/>
</td>
</tr>

<!--<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_title}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_images}</td>
</tr>
</table><br/>
</td>
</tr>-->
</table>

of course the language variables have to be set as well....

maybe this is not the most elegant solution, but it works for me.... please note, the system removes duplications in each rating, so that for example in the mini-top of the day, no identical images will be shown...

now, if somebody will make a separate module to use this code but so that user can select a date and the code would show ratings for this date, that would be great )))

Danke, das geht absolut in die richtige Richtung. Ich bräuchte für meine Seite jedoch eine kleine Änderung, da ich den ursprünglichen Code geändert hatte.
Ich möchte gerne die Motive mit den meisten Hits, den meisten verschickten Postkarten, den meisten Downloads und der besten Bewertung einbauen. Für den "alten Code" hatte ich das so geändert, aber hier bekomme ich das nicht hin. Was muss ich tun?
Logged
Sumale.my
Addicted member
******
Offline Offline

Posts: 1773

Thank You
-Given: 169
-Receive: 86

Neverdie


View Profile
« Reply #169 on: August 22, 2010, 07:42:07 PM »

4images 1.7.8
Quote  [Expand]
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 4images_images i,  4images_categories c
        LEFT JOIN 4images_users u ON (u.user_id = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1)
        ORDER BY i.image_rating DESC, i.image_votes DESC
Unknown column 'i.user_id' in 'on clause'
Wo liegt das Problem?

In der Datei sieht das so aus:
1
2
3
4
5
$sql "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".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
        FROM "
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN ("
.get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."
        ORDER BY i.image_"
.$selection[$cnt]." DESC, i.image_".$selection_alt[$cnt];
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 900

Vienna


View Profile WWW
« Reply #170 on: August 23, 2010, 05:05:30 AM »


http://www.4homepages.de/forum/index.php?topic=5874.msg144136#msg144136

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
zakaria666
Full Member
***
Offline Offline

Posts: 211

Thank You
-Given: 55
-Receive: 2


View Profile
« Reply #171 on: August 25, 2010, 04:51:48 PM »

@VANO,

HEllo ur link is dead. Can u please re-update, so i can see you demo site please sir. Thank u VANO,
Logged
Foxhound
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 1
-Receive: 0


View Profile
« Reply #172 on: November 28, 2010, 02:14:30 PM »

how can i change the settings how many entries are displayed?

thanks!
Logged
Sumale.my
Addicted member
******
Offline Offline

Posts: 1773

Thank You
-Given: 169
-Receive: 86

Neverdie


View Profile
« Reply #173 on: November 28, 2010, 02:16:53 PM »

Here
Logged
Foxhound
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 1
-Receive: 0


View Profile
« Reply #174 on: November 28, 2010, 06:49:45 PM »

danke dir benny,
aber: man kann nur max. 5 aneziegn lassen obwohl ich 10 eingestellt habe werden auch nur 5 angezeigt?

lg!
Logged
Sumale.my
Addicted member
******
Offline Offline

Posts: 1773

Thank You
-Given: 169
-Receive: 86

Neverdie


View Profile
« Reply #175 on: November 29, 2010, 08:41:12 PM »

Es sollte auch gehen wenn du da 10 hinschreibst!
Du hast auch mehr als 5 Files gerade online!?
Wenn das so ist, dann wüsste ich pers. jetzt nicht warum das so ist!
Logged
ilaslan
Newbie
*
Offline Offline

Posts: 44

Thank You
-Given: 15
-Receive: 0


View Profile
« Reply #176 on: January 19, 2011, 03:33:45 AM »

hello mans
i need your helps.
in this mod have this code
1
WHERE i.image_active AND c.cat_id i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."

but

i want to exclude some categories numbers.
1
$cat_ext_adsense = array(84,85,86,87,88,89,95,96);

.......
i  had use this code some files. like this


1
WHERE i.image_active AND c.cat_id i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN")."," . implode(",", $cat_ext_adsense) .")




i try some many possible  code . but db error  Embarassed





Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 900

Vienna


View Profile WWW
« Reply #177 on: January 19, 2011, 05:50:28 AM »


1
WHERE i.image_active AND c.cat_id i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]." AND i.cat_id NOT IN (".implode("", $cat_ext_adsense)."

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
MrAndrew
Sr. Member
****
Offline Offline

Posts: 302

Thank You
-Given: 9
-Receive: 13


View Profile WWW
« Reply #178 on: September 05, 2011, 08:10:53 AM »

I`ve this error:

Fatal error: Call to undefined function get_permission() in ***\Server\root\mini_top.php on line 5

Line 5:

1
$user_access = get_permission();

Strange!
Logged

SweD
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 0
-Receive: 1


View Profile
« Reply #179 on: November 02, 2011, 01:29:43 PM »

Why one is shown and too the image: rating and votes?

But in top.php images The different (see image - top)

* why.jpg (82.83 KB - downloaded 36 times.)
* top.jpg (53.22 KB - downloaded 49 times.)
Logged
Pages: «« « 1 ... 8 9 10 11 [12] 13 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 20 queries.
Post your comments here