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

Pages: 1 [2] 3 4 5 6 ... 11
16
Anyone else..

have any one tried it.. looking exactly for something like this..

can any one make it possible?

17
i my self looking for some thing like this.. multiple images...

i mean when user click the thumbnail. and get redirected to details page..there should be more then one pic..like one big pic in center , and more thumbnail kind of pics on top of big or below of big pic.. so when user click on below thumbnail pic.., it enlarges.

it will be good to have that feature.. like you showing a model of a car..but different pics of the same car having different angles can be placed in same place..

hope you getting what im saying.. i mean one file has many screenshots/images.

so is it possible in 4images.

i have seen a mod used in a site.. which do some thing kind of like this..but not exactly..

it shows images thumbnails which are available in the category of which a user has opened the details page..

here is the link..

http://demo2.vienna-pictures.com/details.php?image_id=11715&sessionid=2d2bee8f9044edade0c0cae8123bd16e

so is it possible..can any one make it possible here.?

18
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: March 03, 2011, 10:37:32 PM »
Hello V@no sir.

Please can you do little modifications in this Mod.. that when user upload avatar , it automatically resizes the avatar..

if it is not possible..so is it possible a pop up appears to show user that he/she must upload the avatar to the defined width and height??

Sir.. having very much issue with avatar..  Please find a way to solve the resizing problem..if resizing not possible ..then please tell how to show user the popup error of avatar..

Looking forward to your response.

Kind Regards,
Haider

19
Programming / Re: Second Thumbnail Size
« on: March 02, 2011, 06:07:02 PM »
Thank you sir..your code is working now without blur thing..also now it can be resized to smaller size.. but one more issue is still here.

i have uploaded a pdf file ..and im using my site as eductational purpose .. ppt pdf files etc..

so my download programer automatically is trying to download the pdf file i have uploaded on my 4 images site..

also files with no images should show respective icon.. i mean like if i have uploaded zip file.. it should show zip icon..etc but it instead showing the name of the file?


==============================================

Many Thanks . sir.. little change back to old code in your code ..saved the problem..

many thanks .. superb work sir...

//################################# Thumbnail small Code ########################################################
function get_thumbnail_small_code($media_file_name$thumb_file_name ""$image_id$cat_id$image_name ""$mode ""$show_link 1$open_window 0) {
  global 
$site_sess$config$site_template;

//####### Config ###############################
  
$maxwidth "270"// pixel
//####### Config ###############################

  
if (!check_media_type($media_file_name)) {
    
$thumb "<img src=\"".ICON_PATH."/404.gif\" style=\"border:0;width:$thumb_width ; height:$thumb_height ;\" />";
  }
  else {
    if (!
get_file_path($thumb_file_name"thumb"$cat_id00)) {
      
$file_src ICON_PATH."/".get_file_extension($media_file_name).".gif";
      
$image_info = @getimagesize($file_src);
       
$thumb_width $image_info[0]."px";
       
$thumb_height $image_info[1]."px";
       
$thumb "<img src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\" alt=\"".format_text($image_name2)."\" />";
    }
    else {
      
$file_src get_file_path($media_file_name"media"$cat_id01);
      
$image_info = @getimagesize($file_src);
      
$thumb_width $image_info[0];
      
$thumb_height $image_info[1];

      if (
$thumb_width $maxwidth){
        
$imageprop=$maxwidth/$thumb_width;
        
$imagevsize$thumb_height*$imageprop;
        
$thumb_width=$maxwidth."px";
        
$thumb_heightround($imagevsize)."px";
      }
      else{
        
$thumb_width $image_info[0]."px";
        
$thumb_height round($image_info[1])."px";
      }

      
$thumb "<img src=\"".$file_src."\" style=\"border:".$config['image_border']."px solid;width:$thumb_width; height:$thumb_height;\" alt=\"".format_text($image_name2)."\">";
    }
  }

  if (
$show_link) {
    if (
$open_window) {
      
$thumb "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode ""))." #z1\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      
$thumb "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode ""))." #z1\">".$thumb."</a>";
    }
  }
  return 
$thumb;
}
//------------------------End Thumbnail small



in first else part i changed to $thumb_file_name, "thumb"

from $media_file_name, "media"

now pdf file is not downloading it self.. i mean idm not detecting it..its nice..

Many thanks again..

20
Programming / Re: Second Thumbnail Size
« on: February 28, 2011, 10:35:08 PM »
oh! sorry..

i downloaded file and replaced with my one.. the other thumbnail image was very big so i tried to make it smaller ..but its not rezing to small??

i even tried to changed the no to 0.01 but it is same in size and its not getting small??
//################################# Thumbnail small Code ########################################################
function get_thumbnail_small_code($media_file_name$thumb_file_name ""$image_id$cat_id$image_name ""$mode ""$show_link 1$open_window 0) {
  global 
$site_sess$config;

  
$max "0.01"// Factor !

  
if (!check_media_type($media_file_name)) {
    
$thumb "<img src=\"".ICON_PATH."/404.gif\" style=\"border:0px;width:$thumb_width px; height:$thumb_height px;\" />";
  }
  else {
    if (!
get_file_path($media_file_name"media"$cat_id00)) {
      
$file_src ICON_PATH."/".get_file_extension($media_file_name).".gif";
      
$image_info = @getimagesize($file_src);

    
$thumb_width $image_info[0]*$max;
	
	
	
$thumb_height $image_info[1]*$max;
	
	
	
 
$thumb_width $thumb_width."px";
	
	
	
$thumb_height $thumb_height."px";

	
	
$thumb "<img  src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\"  alt=\"".format_text($image_name2)."\" />";

	
	
}
    else {
      
$file_src get_file_path($media_file_name"media"$cat_id01);
      
$image_info = @getimagesize($file_src);

      
$thumb_width $image_info[0]*$max;
	
	
	
$thumb_height $image_info[1]*$max;

      
$thumb "<img src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\"  alt=\"".$image_name."\"  />";
    }
  }
  if (
$show_link) {
    if (
$open_window) {
      
$thumb "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode ""))." #z1\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      
$thumb "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode ""))." #z1\">".$thumb."</a>";
    }
  }


  return 
$thumb;
}

//#######################################Thumbnail small Code #######################################################


how to resize it smaller to my specific width and height??

====================================

Hello sir i have IDM. so after applying your php file a .pdf file is automatically trying to download it self. why is that idm is catching file from media folder

its the link which always tries to download it self ..  and also i still couldnt figure out how to resize the image?

21
Programming / Re: Second Thumbnail Size
« on: February 28, 2011, 08:31:29 PM »
Many Thanks Sir..
Im trying now..

Thanks again..


==================

Sir i increased the size to 2..so the image quality went got poor.. isnt it possible the image quality still remains the same?? its ok if there is way to generate more two images , i mean resize image in two.. as long as image quality is good..

i did 2 in max the image quality got bad.  is there a fix for this?

22
Programming / Re: Second Thumbnail Size
« on: February 28, 2011, 07:54:09 PM »
thank you sir for reply but problem is still not solved.

I implemented your code on mawenzi code.. i got some error.. please check what did i do wrong?

i have attached the functions.php file..please check if this code is correct.. but i think i applied it correctly.

Please sir look what did i do wrong.
Code: [Select]
Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\library\includes\functions.php on line 562===============================================

EDIT :

Sir i think you forgot semicolon ( ; )  in your code after $thumb_height = $thumb_height."px"

i added semicolon.. the error is gone ..but image not coming up.. are you sure your code is working fine?


23
Mods & Plugins (Releases & Support) / Re: [MOD] Second Thumbnail Size
« on: February 28, 2011, 07:36:10 PM »
no you can set "$max" greater than 1

http://www.4homepages.de/forum/index.php?topic=25017.msg138624#msg138624

sir sorry i did not get .. so your mod can also increase thumbnail size.. should i use your changes directly or i have to use your code after i use mawenzi code?

its kind of confusing which code to change and which code i should not change??

24
Mods & Plugins (Releases & Support) / Re: [MOD] Second Thumbnail Size
« on: February 28, 2011, 03:22:04 PM »
its a very nice mod..
but but i want some thing little different.. please will you help me that how should i make width of second one greater then original one.

i mean you proposed a way to make width smaller.

but my thumbnails are already smaller.

so can you prupose a way to make the image size bigger then the normal thumbnail size i have defined.

it will be really great to have two thumbnails.

1. normal one which 4images already have.
2. second thumbnail (like you defined but it only make smaller) have custom size (can increase or decrease size)

so we can use

{thumbnail}
{thumbnail_big}

please tell its possible..

25
Hi.
i am trying to set my own thumnail, with my own thumbnail size.

like here is {thumbnail} so i want to add one of my own like {thumbtip}

i know i need to do changes in catogries.php to able to have or use {thumbtip} in my thumbnail_bit.html file.

So please any one have any experience how will i be able to do that.

Actually im trying to setup jquery thing. that when user mouse over the thumbnail the big tooltip kind of thing appears. so i want to set my custom size for that tooltip.

please see the attach pic.


26
is there any demo of this mod, where i can see how it looks like..
this mod looks intresting.. but it will be better to see working demo of this mod?
so please any one used this mod can post their demo or site link?

27
no it didnt work :-(

will it work if i use this in funtions.php
Code: [Select]
<!--[if lt IE 9]>
        //your code here.. All IE browsers below 9 version will get your previous code.
<![endif]-->

<![if !IE]>
         //Your code with the pretty modifications..work in browsers other then IE..
<![endif]>


If you have more suggesstions please tell..and will this work if i use it in functions.php??

==========================================

EDIT :

Hmmm..not working..that only works in html..so i googled and found this..

     if ( eregi("MSIE"getenv"HTTP_USER_AGENT" ) ) || eregi("Internet Explorer"getenv("HTTP_USER_AGENT" ) ) ) {
  
// do something

}


but with this i can echo only.. if i use the download button code or anything. i get an error on IE?

is there anything in PHP which i can use like

if internet explorer

execute code 1

else

execute code 2


is it possible in php??

=============================================

EDIT 2 :

ok..i did this now and it some how worked..but having little issue with it??


     if ( eregi("MSIE"getenv"HTTP_USER_AGENT" ) ) || eregi("Internet Explorer"getenv("HTTP_USER_AGENT" ) ) ) {
  
// do something

  
echo "<h5>This is IE</h5>";

}

else {
	
 echo 
"<h5>This is not IE</h5>";
	
}



but there is some problem..in IE the message appears 3 times like this.

and browser other then ie it echos the message 4 times??

what to do it dont do looping thing??

=======================================

Edit 3 :

Wow awesome Superb..superb..

i did this and its working ..

     if ( eregi("MSIE"getenv"HTTP_USER_AGENT" ) ) || eregi("Internet Explorer"getenv("HTTP_USER_AGENT" ) ) ) {
  
// If User is using IE this statements will be executed

    
if ((!check_permission("auth_download"$image_row['cat_id'])) && $user_info['user_level'] == GUEST) {
    
$download_button "<a href=\"".ROOT_PATH."index.php?template=please_reg\" onclick=\"void(window.open(this.href,this.target,'width=300px,height=150px,top=200px,left=500px,resizable=0,menubar=no,locationbar=no,scrollbars=auto'));return false;\"><img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" /></a>";
    
$download_zip_button "<a href=\"".ROOT_PATH."index.php?template=please_reg\" onclick=\"void(window.open(this.href,this.target,'width=300px,height=150px,top=200px,left=500px,resizable=0,menubar=no,locationbar=no,scrollbars=auto'));return false;\"><img src=\"".get_gallery_image("download_zip_off.gif")."\" border=\"0\" alt=\"\" /></a>";
    
$allow_download 0;
    
clear_download_token($image_row['image_id']);
  }
}

else {
     
// else statement will be executed if it is not IE.

	
 if ((!
check_permission("auth_download"$image_row['cat_id'])) && $user_info['user_level'] == GUEST) {
    
$download_button "<a href=\"#?w=350\" rel=\"register_please\" class=\"poplight\" ><img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" /></a>";
    
$download_zip_button "<a href=\"#?w=520\" rel=\"register_please\" class=\"poplight\" ><img src=\"".get_gallery_image("download_zip_off.gif")."\" border=\"0\" alt=\"\" /></a>";
    
$allow_download 0;
    
clear_download_token($image_row['image_id']);
  }
	
}


its working awesome.. if user use the IE the code with your procedure will appear.. and if user uses browser other then IE the code appear to user will be yours but modified jquery one..

Its really kool cuz now both users of IE and Non IE can get benefited from this feature.. kool haan..

Many THanks.. i couldnt do this without your help..Many thanks..

Now its working.. I think you should introduce it as your mod.. :-)

May b users like this mod..i liked it very much as it give ease to users in using my site..
Now gonna apply it to my site.. it worked on wamp localhost so far..now gonna apply on my site. :-)

28
 Many Many Many Many Superb THanks..

with little modifications..now it is looking good..

Many THanks for helping.. It is working awesome with your help..

i did little modification from
http://www.sohtanaka.com/web-design/inline-modal-window-w-css-and-jquery

and now its looking pretty..

Here is my site. you can see changes.

http://cusitlibrary.com/details.php?image_id=65

THanks again..

Keep Rocking..


--------------------------------------------------------------------

Oh.. i just found out ..the modifications it did dont work in old internet explorers..it is working fine on google chrome and firefox..
now trying to figure our a way to fix it for internet explorer..

is there any way to show your way if user is using internet explorer..and show this my modification..

29
hi ..i want to add a message to my download button for unregistered users..

download button is fine..what i mean to say when unregistered or guest clicks the download button it shows message to the user to register or login ..

its ok if it redirects to another page..and it will be alot better if its possible to display message box like using javascript
alert.messagebox kind of thing..

Any one any ideas how to do that..

Actually today one of user asked me how to download file.. i cant download file when i click download.. and there i told him that you need to register..

so what i mean to say, all users are not good with computers.. it will be better to display user their error that why they can not download files..that they need to register or login to able to download..


Help and responses needed...If there is any mod out here for this purpose..will b great to hear about that.


Kind Regards
Haider

30
Hello sir im having little Problem..

when i try to upload image on my website it dont resize.. but when i try to upload image on wamp on local PC.. it resizes..

why it is not resizing on server.. what to do..really need support.. Please Please Please Help..

Pages: 1 [2] 3 4 5 6 ... 11