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

Pages: 1 2 [3]
31
now..
i have a small detail problem..
in fact (1,4,6,13,78,98) this categories doesnt have adsense code. and the others have adsense...

i dont want this categories (1,4,6,13,78,98) pictures ( even thumnail ) with adsense code.

category page is ok.
details page is ok.

ok . but this images is coming new images.
or i think it comes search page.

at now most of this categories auth_viewimage is only registered users.
if i do auth_viewcat is only registered users will problem is solve?

but 

i prefer (1,4,6,13,78,98)  this categories hold external from new images and searchs...

 is there easy coding solve?

(my english isn't very good . sory if you don't understand any sentences)

Edit : i examine a bit
and in index.php have this code


$num_new_images = $config['image_cells']*3;
$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 NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";
$result = $site_db->query($sql);



maybe this section must edit..

i dont know :S
 
can anybody help me?



32
Turkish / Türkçe / Re: kategori üstlerine ikon resmi
« on: September 23, 2010, 03:32:01 PM »
hayır tablo indexleme sorunu cıkarmıyor. bunun yanında. ücretsiz frontpage ile de basit tablolar ve html kodları yapabilir entegre edebilirz

33
Turkish / Türkçe / Re: Arkadaşlar Yokmu Yardımcı Olacak Kimse :S
« on: September 23, 2010, 03:26:04 PM »
Arkadaşım. veritabanı yedeğin varsa . bildiğim kadarıyla yeniden kategori falan yuklemeye gerek yok. sadece ftp yedeğin varsa. bilemiyorum. yeniden açıklama kategori anahtar kelimeleri falan girmen gerekebilir

34
Feedback & Suggestions / Save As picture is working in Chrome?
« on: September 23, 2010, 11:06:12 AM »
actually it is not very important now. Chorome users only %5

normally only registered users can download my pics.

but Chrome users right click and save as picture....

i wanted to specify. ( Chrome users may increase )

35
Feedback & Suggestions / Re: Top 10 images by rating true?
« on: September 22, 2010, 10:48:31 PM »
thnx a lot
it is ok.
code is work.

36
Feedback & Suggestions / Top 10 images by rating true?
« on: September 22, 2010, 10:06:10 PM »
hello

i installed. 1.7.8 i am new for 4images.
i have a lot of pics in my gallery. and user sometimes rate pics. this is ok.

but. a lot of 10 points. 4 images listing alphebetic  i think.
but. if have a lot of pic 10 points ( example 45 pic 10 rated )
4images list a b c d....
but firstly must examine how many votes this 45 pic.

so this 4images codes. zzzzz.gif 14 votes and fully 10 but not listed.

aaaa.gif  1 vote it is also  10 but first pic in top images...

maybe a bit cpu is need. i dont know php exactly. but i am usiing cache :P

( my english is not very good sory if a problem I wrote )
 

38
yes. code is working.

thnx.
some new categories can come every time.  so i did categories array in constant.php.

thnx alot for help

39
thanx . i will try.
but i wonder

will this code working details.html ?
this is also important for us.


40
hello.

i am using 4images 1.7.8. and using adsense.

but i have a problem. in some categories musn't have adsense codes ( due to the rules ) .

is it possible?
i know possible but easy?

but i think a bit hard. maybe for every categories choies the thema.

but i don't need complex change or code.

maybe easier. only one input  like   ("1,4,6,13,78,98") ( for category number other thema) . it is OK for me.

can anybody help us?

42
Mods & Plugins (Releases & Support) / Re: [MOD] Photo Preview Hack
« on: August 18, 2010, 09:51:19 PM »
hello . iam new 4images.
 i love this mod hacks. i am using 1.7.8 .
But when i use this mod hack  next_image_url is always null = and next , previeus link is not working ( and click main image go to next images ).  Some friends has said this problem but i dont see any solve. only surferboy said that
Quote


[edit] - issue resolved.  see note here: an update for 1.7.7?

able to resolve issue; on a hunch, decided to try V@NO's advice in this post:
http://www.4homepages.de/forum/index.php?topic=7294.msg133435#msg133435

on http://www.4homepages.de/forum/index.php?topic=7294.msg145881#msg145881

but i didnt understand solve

vano says :

Quote
In your particular case you'll need insert that code below
   
Code: [Select]
unset($next_prev_cache);
edit : this hack codes must insert below unset($next_prev_cache);  No problem

Regards

43
Feedback & Suggestions / Re: i wanna use next_image_url someone help???
« on: August 18, 2010, 08:49:49 PM »
thanx but still same problem.

i also tried this

http://www.4homepages.de/forum/index.php?topic=11401.0

 picture middle is working because goes to category page. but  right and left is not working. ( left = previous , right = next image)

because
next_image_url is always null
prev_image_url is always null 

i changed details.php to original and next_image_url not null
so problem is this preiew hack mod  http://www.4homepages.de/forum/index.php?topic=7294.msg124362#msg124362
but iwant to use this preiew hack mod because this has 5 pic not only next and previeus...

do you know same preiew hack?

or what is the problem this hack details.php? this hack is good for us but always return $next_image_file = REPLACE_EMPTY

1:
- open details.php
- search:
- öffne details.php
- suche:
Quote
$image_id_cache = array();


- before add:
- davor einfügen:

Quote
/*--- Start MOD: Photo Preview Hack, reworked by KW ------------------------- */
// Start Settings for Thumbs

$thumbsize =  0.5; // Thumb Size in %

// End Settings

$result = $site_db->query($sql);
while($row = $site_db->fetch_array($result)){
    $image_preview[] = $row['image_id'];
    $preview_row[$row['image_id']] = $row;
}
$lastPage = count($image_preview);
$t_template = "";
if($lastPage < 6){
    $start = 0;
    $end = $lastPage -1;
} elseif ($act_key == 0 || $act_key == 1){
    $start = 0;
    $end   = 4;
} elseif ($act_key == $lastPage-1 || $act_key == $lastPage -2){
    $start = $lastPage - 5;
    $end = $lastPage - 1;
} else {
    $start = $act_key -2;
    $end   = $act_key +2;
}
for($i=$start; $i<=$end; $i++){
    if ($preview_row[$image_preview[$i]]['image_id'] == $image_row['image_id']) {
    $t_template .= "<td class=\"preview_box_colored\">\n";
    } else {
    $t_template .= "<td class=\"preview_box\">\n";
    }
    $tag = get_thumbnail_code($preview_row[$image_preview[$i]]['image_media_file'], $preview_row[$image_preview[$i]]['image_thumb_file'], $preview_row[$image_preview[$i]]['image_id'], $cat_id, format_text(trim($preview_row[$image_preview[$i]]['image_name']), 2), $mode, 1);
    $oriWidth = substr($tag, strpos($tag, "width")+7, strpos($tag, "\" height")-strlen($tag));
    $oriHeight = substr($tag, strpos($tag, "height")+8, strpos($tag, " alt")-strlen($tag)-1);
    $tag = str_replace('width="'.$oriWidth.'"', 'width="'.$oriWidth*$thumbsize.'"', $tag);
    $tag = str_replace('height="'.$oriHeight.'"', 'height="'.$oriHeight*$thumbsize.'"', $tag);
    $t_template .= $tag."<br />";
    $t_template .= "<font class=\"smalltext\">".$preview_row[$image_preview[$i]]['image_name']."</font>\n</td>\n";
}
$site_template->register_vars("preview_box", $t_template);
unset($image_preview);
unset($t_template);
/*--- End MOD: Photo Preview Hack, reworked by KW --------------------------- */

Help please. i want to use 5 or 7 pic tumbail below . and also use click big picture and next image

44
Feedback & Suggestions / i wanna use next_image_url someone help???
« on: August 18, 2010, 07:00:00 PM »
hello . i am new for 4images. i install 1.7.8 .
and change details.html because i want when i click the images go to the next images

Code: [Select]
{if next_image_url}<a href="{next_image_url}">{endif next_image_url}
{image}
{if next_image_url}</a>{endif next_image_url}

but Nothing is being. i examine a bit and always $next_image_url = REPLACE_EMPTY.

i dont understand anything. is it possible? Someone help me

regards

Pages: 1 2 [3]