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.


Topics - ilaslan

Pages: [1]
1
Hello Vano and other experts

For SEO.

i need like this code ( for header html  and  footer.html )

if ( page is details page (picture page ) ) {my code }
if ( page is category page ) {my code }
if ( page is main page ) {my code }
if ( page is top picters page ) {my code }

and this code must work. but how? $cat_id is ...? ( maybe in home page . or top pages not working . but details page and cat page i need this?
if (in_array($cat_id, $cat_mypics))


Thanx all together

2
hello

i searched this but not found.

i need this modifications.

i have 1 category (but maybe a lot of ) :

and i want to see this catecory. some many other categories subdirectory..


possible  i see

3
Programming / Basic php and mysql question
« on: January 25, 2011, 02:41:03 PM »
Sorry

i need help

in function.php and in a function. i am using this

$sql "SELECT olacak
        FROM "
.IMAGES_TABLE."
       WHERE image_id = 
$image_id
	
   ORDER BY olacak ASC"
;

$image_row $site_db->query_firstrow($sql);
$olacak_min $image_row['olacak'];

$sql "SELECT image_downloads
        FROM "
.IMAGES_TABLE."
       WHERE image_id = 
$image_id
	
   ORDER BY image_downloads DESC"
;

$image_row $site_db->query_firstrow($sql);
$download_max $image_row['image_downloads'];

$downadd $olacak_min $download_max;


$sql "SELECT  image_downloads, image_hits, alioldu, aliresim, olacak, yuzdepuan
          FROM "
.IMAGES_TABLE."
          WHERE image_id = 
$image_id";
  
$image_row $site_db->query_firstrow($sql);
        
$kacisin $image_row['olacak'];
	
$kacisin $kacisin - ( $image_downloads $downdanekle );
	
$kacisin sprintf("%1\$u"$kacisin); //  <<<<<<  this was problem 
   
..........
	
$yeni_yuzdepuan sprintf("%.2f"$yeni_yuzdepuan);
	
$sql "UPDATE ".IMAGES_TABLE."
            SET alioldu =  olacak = '
$kacisin', yuzdepuan = '$yeni_yuzdepuan'
            WHERE image_id = 
$image_id";
    
$site_db->query($sql);



in my phpmyadmin olacak int(11)  so integer
i try too  $kacisin settype$kacisininteger ); 

 but always 1 came. kacisin is normally.
300.434769

php is bad language, basic command i try to find internet gogle.. but alwayss bla bla bla. too php.net

which command i can use?  $kacisin sprintf("%1\$u"$kacisin); //  <<<<<<  this was problem 
is mistakes
also
$kacisin sprintf("%d"$kacisin); //  <<<<<<  this was problem 

4
Mods & Plugins (Requests & Discussions) / {username} in temlate files?
« on: January 24, 2011, 08:19:39 PM »
hello
in pageheader.php
$detailsplsregistermessage "pls register bla bla bla";

....
$site_template->register_vars(array(
...
  
"detailsplsregistermessage" => $detailsplsregistermessage,
....



i am usin in details.html
<center>{detailsplsregistermessage}</center>

but i need  {if userunregisateredorunloged}            

<
center>{detailsplsregistermessage}</center>

{endif 
userunregisateredorunloged}


which basic code is doing this?

TY

Edit : i find

{if user_loggedout
	
<
center>{detailsplsregistermessage}</center> {endif user_loggedout}

5
hello

in page_header.php there is
 if (!in_array($id$split_list) && !in_array($id$cookie_rated)) {
      
$session_info['rated_imgs'] .= " ".$id;
      
$session_info['rated_imgs'] = trim($session_info['rated_imgs']);
      
$site_sess->set_session_var("rated_imgs"$session_info['rated_imgs']);
      
$cookie_rated[] = $id;
      
$cookie_expire time() + 60 60 24 4;
      
setcookie($cookie_name.'rated'serialize($cookie_rated), $cookie_expireCOOKIE_PATHCOOKIE_DOMAINCOOKIE_SECURE);
      
update_image_rating($id$rating);
      
$msg $lang['voting_success'];
    }
    else {
      
$msg $lang['already_voted'];
    }
  }
  else {
    
$msg $lang['voting_error'];
  }


and i didn't change anything in this code.
but. i have a problem. if i rated  a pic first.. There is " Sorry, you've already rated for this image once recently "  in message but. rating is updating.

if i rate again " Sorry, you've already rated for this image once recently "  in message and rating is not updated.

How? Where is the problem?

6
hello
i have this code

$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 i.cat_id = 
$cat_random AND c.cat_id = i.cat_id
        ORDER BY "
.$selection[$cnt]." DESC, ".$selection_alt[$cnt];


this code is changed from mini top mod
but i have a small problem. some categories has no images. and in this cod $cat_random is random categories.

so there is a problem for me

so i need above in this code like
if ( $cat_random category has no images ) {  ..... }

ty all

7
hello
i need a small code change.

my total pic 1500 and 15 categories
but 500 pics and 5 categories are for only registered users

when guest came my main page " 1000 images in 10 categories "  now
but i want     for guests             " 1500 images in 15 categories ( 500' pics and 5 categories are only for registered ) "

because i want to guests are register.

someone help us?

8
hello.

is this possible?

if i find ip  list this bots
can anybody write this code?

is this code easy? ( iknow easy for vano :roll: )

need this code : because some categories and some categories images only registered users. And not indexed...
but i think. not registered users when came this page. this page write please register.( details page can show only one standart pic)

i think it is being more hard....



9
Feedback & Suggestions / new idea for top images
« on: September 26, 2010, 06:56:52 PM »
hello.
firstly i love 4images.
thnx every coder for this script.

and. i have an idea.
top images page is good and it is changing every time. google loves this...

but i think there can be a new section....

my "Top 10 images by rating" images is fully 10 rated. (4 votes , 3 votes ...1 votes)

and " Top 10 images by votes " images generally 3-4 rate but votes starting 100 votes..

maybe need new section ( i need )  but i dont know in english  section name ( maybe : weighted average "from google translator" )

explain new section lists...

first pic :        40 votes rate avarage :9  9x40 : 360 first ( this pic not listed now)

2.       maybe 50 votes  avarage :  7   50x7 : 350  ( this pic not listed now)
3. maybe     100 votes  avarage 3     100x3 : 300  ( this pic i think in "Top 10 images by votes" )

......

i wonder my this list :
but i dont see.

maybe i can do this in future.( time is need )

if anybody could do this. of course i use :D

Edit : i think a bit more : maybe 360/this pic hit
                                         350/pic hit
                                         300/pic hit

and again list can be more health.

because some of my pic linked from other sites. and hits are  this pics very much. and this pics listed Top 10 images by votes. i think this pics are in this new section lists  (if not divide to hit pic )
because 2 : new pics can be in this section ( so not need reset istatistic ) ( i dont like reset istatistic but new pics is problem top rated , and hit listed ,and the other )

10
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 )

11
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 )
 

12
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?

13
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]