Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mstgokcen

Pages: 1 [2] 3
16
In English plz..

Are you able to add some fields like name,lastname,ciyt etc..

I need this too

18
http://www.4homepages.de/forum/index.php?topic=4023.0
please read the entire topic before you do any changes ;)

Thx for your help but I think I couldnt explain mysfelf...I already install that mod, it is working perfect but I want to see the user's comment with their vote in the same table..

Now I am able to see comments and I am able to see who gave vote to this photo (moreover admin can see what is the ratings of users gaved to this photo)

But I want to see ratings near my comment...Everbody should see the rating that I vote and the comment that I wrote... In the same table

19
Quote from: FreDyz
It's possible?
yes, I've posted the code about 3-4 month ago, please search the forum ;)

V@no,
is it possible to show rating with the comment in the same table?

20
Mods & Plugins (Releases & Support) / Re: [Mod] User upload limits
« on: July 27, 2006, 03:26:25 PM »
I'm lost in codes

is there anyone can send the codes which is exactly the final codes for the 24hours limit and explain exactly where I paste  the codes

21
tnx a lot it is ok

22
Mods & Plugins (Releases & Support) / Re: total images?
« on: July 27, 2006, 12:15:41 PM »
is anyone put this code to show total images...I get the code total categories but still there is no code for total images...


how can we see total images?

23
Mods & Plugins (Releases & Support) / Re: [Mod] User upload limits
« on: July 24, 2006, 02:33:57 PM »
in the 23th post you say use this code for 24hours limit...

Code: [Select]
function check_picture_limit($user_id) {
global $site_db, $site_template;

$sql = "SELECT user_limit FROM ".USERS_TABLE." WHERE user_id = $user_id";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$upload_limit = ($row['user_limit']);
$site_template->register_vars("upload_limit", $upload_limit);

$limit_cutoff = time() - 60 * 60 * 24;

$sql = "SELECT COUNT(*) AS num_rows_all
FROM ".IMAGES_TABLE."
WHERE image_active = 1 AND user_id=$user_id AND image_date > $limit_cutoff";
$row = $site_db->query_firstrow($sql);
$images_per_user = $row['num_rows_all'];

$site_template->register_vars("images_per_user", $images_per_user);

if($images_per_user >= $upload_limit) {
return false;
} else {
return true;
}
}

then in the 60th post now you say:

change it
Code: [Select]
function check_daily_picture_limit($user_id) {
global $site_db, $site_template;

$sql = "SELECT user_limit FROM ".USERS_TABLE." WHERE user_id = $user_id";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$upload_limit = ($row['user_limit']);
$site_template->register_vars("upload_limit", $upload_limit);

$limit_cutoff = time() - 60 * 60 * 24;

$sql = "SELECT image_id, image_date FROM ".IMAGES_TABLE." WHERE user_id=$user_id AND image_date > $limit_cutoff ORDER BY image_date ASC";
$result = $site_db->query($sql);
$images_per_user = $site_db->get_numrows($result);
$row = $site_db->query_firstrow($sql);
$latest_image_date = ($row['image_date']);

$sql = "SELECT image_id, image_date FROM ".IMAGES_TEMP_TABLE." WHERE user_id=$user_id ORDER BY image_date ASC";
$result = $site_db->query($sql);
$tmp_images_per_user = $site_db->get_numrows($result);
$row = $site_db->query_firstrow($sql);
$latest_tmp_image_date = ($row['image_date']);
$images_per_user = $tmp_images_per_user + $images_per_user;

$latest_image_date = $latest_tmp_image_date > $latest_image_date ? $latest_tmp_image_date : $latest_image_date;
$time_to_go = gmstrftime("%H hrs %M min %S sec", 86400 - (time() - $latest_image_date));

$site_template->register_vars("images_per_user", $images_per_user);
$site_template->register_vars("time_to_go", $time_to_go);

if($images_per_user >= $upload_limit) {
return false;
} else {
return true;
}
}


then in 63rd post someone says

 If you don't have the
Code: [Select]
function check_daily_picture_limit($user_id) {
how are you using the User limits MOD?



of course there is no such code because in the 23rd post another said change it...

Now I am completely confused finally it doesnt work bu I dont know why I lost in somewhere in codes...
At the first it was working 1 photo for 1 user and then program said there is no limit call admin etc... then I put changings and then and then and then now I 'm lost..


moreover in somewhere u say change the whole code but in orginal code there were more lines...

 will those lines will stay or remove at the end ?

Code: [Select]

if ($action == "uploadform") {
 if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
  show_error_page($lang['no_permission']);
  exit;
 }

if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_picture_limit($user_id))) {
// if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_daily_picture_limit($user_id))) {

//
// Depending on your requirements, you can either check against global or daily limit. For global check leave it as it is now.
// For daily limit comment first line and uncomment second one.
//

$site_template->print_template($site_template->parse_template("over_limit"));
include(ROOT_PATH.'includes/page_footer.php');
exit;
}

24
but now in that mod users cant see the which rating did the other user voted...only able to see the user's name

only admin can see both user's name and users rating that user voted...

25
Quote from: FreDyz
It's possible?
yes, I've posted the code about 3-4 month ago, please search the forum ;)

But it is not a combined version... I need the vote near the comment...

who wrote what comment and who rated what vote in the same table?

is it possible?

26
it is a perfect MOD but is it possible to improve ?

I want every member has the comments of his own photos in his own profile page (member.php) in list.. Morover maybe  his own comments that he wrote the others' photos..

I mean

the list of user's photos with the comments that photo took...
the list of user's comments to other users' photoso

in briefly incoming and outgoing comments of a member in his own profile page :)


Thanks for now..

27
I send another post that is OK ...At first I changed wrong SQL codes then i corrected..
thx

28
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: July 22, 2006, 11:56:48 AM »
tnx, my mistake I understood that i will change the top.php but ofcourse we are talking about minitop.php

:)

its done...

29
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: July 22, 2006, 11:49:48 AM »
Now it works perfect thnx V@no but it displays

who voted: user1
                 user2
                 user3

isnt it better to display user1,user2,user.....how can we change?

more import is (as asked before many times) I want the get vote in the comment table...

I mean
user1 ..... his comment ....and his vote ...not listing in details table

it is really important for me?

30
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: July 22, 2006, 10:48:52 AM »
tnx for your help e-trader but it didnt work

I have the same problem when I install mini top.php MOD..

and now I changed my sql too but it doesnt work

before I changed it was

Code: [Select]
// Votes
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name
       FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c, ".USERS_TABLE." u
       WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id AND i.user_id = u.user_id $cat_match_sql
       ORDER BY i.image_votes DESC, i.image_name ASC
       LIMIT 20";


then I made
Code: [Select]
// Votes
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name
       FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c, ".USERS_TABLE." u )
       WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id AND i.user_id = u.user_id $cat_match_sql
       ORDER BY i.image_votes DESC, i.image_name ASC
       LIMIT 20";


for 4 times but it didnt work?

any idea

Pages: 1 [2] 3