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

Pages: 1 2 3 4 [5] 6 7 8 9 ... 23
61
Discussion & Troubleshooting / Re: Getting 1 year back images
« on: July 05, 2010, 03:07:45 PM »
Thanks V@no.. I got the clue..  :)

62
Discussion & Troubleshooting / Getting 1 year back images
« on: July 05, 2010, 11:34:27 AM »
Hi,
    Could anyone please let me  know how can I get the images which I have added one year back..??

I checked the image_date field but its a integer not a date and my knowledge in mysql is not so good.. :)

If image_date would be a date field and its in DB2 then the condition would be like this..

Code: [Select]
i.image_date < 1 YEAR 


It would be great, if someone can let me know the equivalent syntax of the above statement in mysql and for 4image..


Thanks,
batu544

63
V@no -
            I used option 1 .. :) and its working fine..

and you are correct the above lines of code is not in the fresh 4image installation, but its actually a part of the Google Friendly Urls For 4images Best Seo Mod.


Thanks
batu544

64
V@no -
            Do you think putting &amp; in the url() function will cause a problem ?? I have not done this changes but still its working.. and also I noticed there is a line in the url() function..
Code: [Select]
$url = str_replace('&amp;', '&', $url);

Is this not to replace &amp; with '&' ??


Budduke -
                   The Hot link error message comes in, if one person is bookmarking one image download page and he comes later to visit that page. For example if you will visit this page now then you will get the hotlink error message

http://www.bhwallpapers.com/download-kim-kardashian-20592-13-1280x800.htm

but if you will visit the same page by visiting wallpapers detail page --> download page.. it will not give you any error message..

The error message comes up from the following lines of code in download.php

Code: [Select]
    if (!check_download_token($image_row['image_id'])) {
      echo "Hotlinking is not allowed";
  exit;
  redirect("index.php");
    }


Thanks
batu544


65
Hi Budduck.. !!
                         I am back again with a request .. :) 

Now, If I am accessing the download url directly .. then its showing me an error message "Hotlinking is not allowed", Can it be possible to stop this error message and display the actual image what user has requested.. ??


Thanks
batu544

66
Hi V@no,
               I changed the below line
Code: [Select]
$split = explode('?', $url);  to
Code: [Select]
$split = explode('&', $url);  and it worked .. !! :)



Thank you for your help.. !! :)

only one issue is Multi Download is not using any array for displaying the original size image.. so its not working for original size link..


Thanks again.. !!

batu544



67
Hi V@no,
               I changed the code which generates the link for multi download and I passed it thru 4images standard url function but the output link is not correct..

actual Multi download code was :
Code: [Select]
$multi_download_group .="<td align='center'><a href='".ROOT_PATH."download.php?action=resize&amp;image_id=".$image_row['image_id']."&amp;multi_download_select=".$var."'".$multi_download_var['target'].">".$download_multi_sizes[$var][0]."</a></td>";

I changed it to
Code: [Select]
$multi_download_group .= "<td align='center'><a href=\"".$site_sess->url(ROOT_PATH."download.php?action=resize&amp;image_id=".$image_row['image_id']."&amp;multi_download_select=$var"). "\" >".$download_multi_sizes[$var][0]."</a></td>";

and the resulted output after this modification is ..

http://www.bhwallpapers.com/download.php?action=resize


Is there anything left and needs to be changed.. ??

Thanks,
batu544

68
Hi V@no -
                No Luck.. Its not working.. :( I was just trying to debug the php file and it seems the control is never going to that part of code due to the
Code: [Select]
if (!defined('IN_CP'))  line of code in url function..


Thanks,
batu544

69
All -
      I came up with an another question. Its related to two different mods.. but I am posting the question here.. :)


Could anyone please write some MOD to put below url in SEO formatted url.. ??
Code: [Select]
http://www.bhwallpapers.com/download.php?action=resize&image_id=15982&multi_download_select=2

The expected url would be

Code: [Select]
http://www.bhwallpapers.com/d-image-name-1600x1200-15982.htm

below are conversion details

d ==> download.php?action=resize
15982 stands for the image_id
multi_download_select=2 ==> 1600x1200
multi_download_select=1 ==> 12345x6789
multi_download_select=3 ==> aaaaaxbbbbb


any help will be appreciated.. :)


Thanks,
batu544

70
@Marcovich -
                    You can get a complete different category page by using that MOD. For different headers, footer don't use the {header} and {footer} tag.. just write your own in each templates..

Thanks,
batu544

71
Programming / Re: How To Take Left Block To The Right
« on: June 24, 2010, 11:37:56 PM »
hi,
    you need to edit the templates manually to move the blocks.. We can provide you exact answer if you can tell us what exactly you want to move from left to right..


Thanks,
batu544

72
budduck -
                Download.php changes worked for me.. I have not applied the function.php because for me everything looks okay.. ( original size also works fine because I already have applied some fix which was posted earlier ) ..


Thanks,
batu544

73
Hi budduke,
                   Found a bug..  After installing this mod.. if I am not using the multi download option for category and using the normal download button.. then instead of downloading the image.. the image just opens in the same window....


it would be great if you find a fix for this.. !!

Thanks,

74
just a guess.. may be your categories.php is infected by virus.. try to put a clean one and post your footer results here ..


75
Thanks budduke.. now everything is okay.. :)

Just a thought.. if it can be possible..


Now, while selecting to open the resized image ... its only opening the image in a new window..  It will be better if we can make a template for this... so that may be we can add little header, title, keyword and description tags for better SEO..

Thanks,
batu544

Pages: 1 2 3 4 [5] 6 7 8 9 ... 23