Wallpaper Script Forum » How-To and Troubleshooting

How to disable Resolution resizes ??

(10 posts)
  1. iiyama
    Member

    24 Hours fast feedback , YEAH .. right . !! :(

    i bought this script for my new site few days ago, and i have a serious problem and a bug in the script i sent few emails to the admin, but seems the admin don't care about support, last time i had a problem with my old script i received reply after 3 mounths (lol).

    I hope someone here have the knowledge to help me.

    The script resize automaticly wallpapers to the standards ratio sizes plus wide, hd, and etc.

    1st question : how i can disable all of this , i want only one wallpaper size to be there, i don't need extra files with extra resolutions.

    2nd question : the bug in the script is : if i upload wallpaper with size does not fit the standard ratio (for example this size : 2000 x 1333), the script generate ratios to files which are not exist and i get errors such as :

    Warning: getimagesize(/home/public_html/sitename/walls/picturename.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/public_html/sitename/view.inc.php on line 89

    Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/sitename/view.inc.php:89) in /home/public_html/sitename/includes/php_functions.php on line 64

    Please any hlep here ..

    Posted 1 year ago #
  2. what is your website ??

    Posted 1 year ago #
  3. iiyama
    Member

    Got reply from Adi, and the problem solved.
    Thanks for the quick support.

    Posted 1 year ago #
  4. pLZ HELP ME WITH THE SAME PROBLEM

    Posted 1 year ago #
  5. Yes please share the solution. I need it

    Posted 1 year ago #
  6. iiyama
    Member

    i downloaded the script again, seems was a bug in the view.inc.php and php_functions.php and some other files, you can contact the admin for new download links for the script.

    Posted 1 year ago #
  7. Ok thanks for reply ;)

    Can you send me the archive he gave you please ?
    Not the dl link but the archive please :

    a8wr0b8qnpt4ks0@jetable.org

    Thx

    Posted 1 year ago #
  8. martinj
    Member

    I have the same problem, I have contacted the team but they tell me that I have the correct version, who knows exactly where was the bug in the files view.inc.php, php_functions.php or others?

    Posted 1 year ago #
  9. So I contacted Admin. He answered me fast, I really appreciated.
    He told me it was due to my rubbish hosting plan. The server has CPU limitations. And HE WAS RIGHT !

    I changed to a good hosting : https://billing.stablehost.com/aff.php?aff=186

    Link without affiliate ID : stablehost.com

    And you have 50% OFF FOR LIFE with these coupons :

    US Shared Hosting: Coupon Code: WHTUS - 50% OFF FOR LIFE (All payment plans)

    Europe Shared Hosting: Coupon code: WHTEUROPE -- 50% OFF FOR LIFE (Yearly payment plans only)

    So now it's fast and cheap, AND IT WORKS.

    My site : www.hdwallpapers.org

    Posted 1 year ago #
  10. Hi,
    I was facing same problem my site was old with hundreds of wallpapers and i was unable to change my host....

    I resolved this issue my self with the help of answers of this question. check the resolution below.

    open wallpaper.tpl and replace the coding of your page with following code given below..

    ==================page code starts here ====================

    {if !$add_item}

    <h1 style="width:290px;">{$wallpaper.name|escape:'html':'UTF-8'|truncate:36:"":true}</h1>
    <div class="reset"></div>

    {assign var="view_link" value="view/"}
    {assign var="view_url_init" value=$view_link|cat:$wallpaper.short_name|cat:$smarty.const.URL_TOKEN_SEPARATOR}
    {if $wallpaper.resolutions[0].width!=''}
    {assign var="view_url" value=$view_url_init|cat:$wallpaper.ratio}
    {else}
    {assign var="view_url" value=$view_url_init|cat:$wallpaper.ratio}
    {/if}
    {l s='%s (click to view)' p1=$wallpaper.name}

    <div class="wallpaper-separator"></div>
    <div class="wallpaper-ads-right">
    {$smarty.const.ADSENSE_DETAILS_TOP_CODE}
    </div>
    <div class="reset"></div>
    <h2>{l s='Download wallpaper'}</h2>

    <div class="wallpaper-resolutions">

    {if $wallpaper.resolutions|@count >0 }
    {/if}
    {if $item_editable == 1}<span>Original version</span>{/if}
    </div>

    {dynamic}
    {if $item_editable == 0}
    <div class="wallpaper-2ads">
    {$smarty.const.ADSENSE_DETAILS_BIG_CODE}
    </div>
    <div class="wallpaper-2ads-separator"></div>
    {/if}
    {/dynamic}

    {else}
    <h1 style="width:290px;">{l s='Add wallpaper'}</h1>
    {/if}

    {dynamic}
    <?
    global $WS, $categories_ids, $wallpaper;
    ?>
    {if $item_editable == 1}
    <br class="reset" />

    <div class="wallpaper-2ads">
    <form name="wallpaperForm" action="" method="post" enctype="multipart/form-data">
    <fieldset>
    <?=$WS->show_input(array("type"=>"hidden", "name"=>"id")); ?>
    <?=$WS->show_input(array("type"=>"hidden", "name"=>"short_name")); ?>
    <?=$WS->show_input(array("type"=>"hidden", "name"=>"old_short_name"), $wallpaper['short_name']); ?>

    • <label for="name"><b>{l s='Title:'}</b></label><?=$WS->show_input(array("type"=>"text", "name"=>"name", "required"=>true, "class"=>"input-text", "maxlength"=>"100")); ?>
    • {include file='wallpaper_category.tpl'}
    • <label for="filenamenormal"><b>{l s='Files:'}</b></label>
      <div class="multiFileDiv" style="float:left;width:400px;">
      <ul style="float:left;" id="files">
    • <?=$WS->show_input(array("type"=>"file", "name"=>"filename[]", "class"=>"input-other", "size"=>"42")); ?>
    • <?=$WS->show_input(array("type"=>"file", "name"=>"filename[]", "class"=>"input-other", "size"=>"42")); ?>
    • <?=$WS->show_input(array("type"=>"file", "name"=>"filename[]", "class"=>"input-other", "size"=>"42")); ?>

    <input type="button" class="button addFileInput" value="{l s='add'}" id="addFileInput_files" />
    </div>

    <!--li><label for="filenamewide"><b>{l s='File (wide):'}</b></label><?=$WS->show_input(array("type"=>"file", "name"=>"filename[]", "class"=>"input-other", "size"=>"42")); ?></li-->

    {*

  11. <label for="filenamenormal"><b>{l s='Files:'}</b></label> {include file="swfupload.tpl"}
  12. *}

  13. <label for="filenameurl"><b>{l s='File URL (web url like http://...):'}</b></label><?=$WS->show_input(array("type"=>"text", "name"=>"filenameurl", "class"=>"input-text", "size"=>"42")); ?>
  14. <label for="item_url"><b>{l s='Image URL:'}</b></label><?=$WS->show_input(array("type"=>"text", "name"=>"item_url", "class"=>"input-text", "size"=>"42")); ?>
  15. <label for="item_description"><b>{l s='Description:'}</b></label><?=$WS->show_input(array("type"=>"textarea", "name"=>"item_description", "class"=>"input-textarea")); ?>
  16. {include file='wallpaper_tags.tpl'}
  17. <!--meta info -->

  18. <label for="meta_title"><b>{l s='Meta Title:'}</b></label><?=$WS->show_input(array("type"=>"text", "name"=>"meta_title", "class"=>"input-text")); ?>
  19. <label for="meta_keywords"><b>{l s='Meta Keywords:'}</b></label><?=$WS->show_input(array("type"=>"text", "name"=>"meta_keywords", "class"=>"input-text")); ?>
  20. <label for="meta_description"><b>{l s='Meta Description:'}</b></label><?=$WS->show_input(array("type"=>"textarea", "name"=>"meta_description", "class"=>"input-textarea")); ?>
  21. <!--end meta info -->

  22. <fieldset>
    <legend>
    <input type="checkbox" name="iamAuthor" id="iamAuthor" {if $wallpaper.author_id == -1 or $add_item}checked="checked"{/if} class="showHide" value="1" />
    <label for="iamAuthor" class="label-author">{l s='I am the author of this wallpaper'}</label>
    </legend>

    <div id="iamAuthorDiv">

    • <label for="author_id"><b>{l s='Select author:'}</b></label>
      {if $my_authors|@count > 0}
      <select name="author_id" id="author_id" class="input-other">
      {section name=item loop=$my_authors}
      <option {if $wallpaper.author_id == $my_authors[item].id}selected="selected"{/if} value="{$my_authors[item].id}">{$my_authors[item].name}</option>
      {/section}
      </select>
      {/if}
    • <label for="author_id"><b>{l s='or Add author:'}</b></label>
      <div id="selectAuthor">

      • <label for="name_author">{l s='Name:'}</label><?=$WS->show_input(array("type"=>"text", "name"=>"name_author", "required"=>true, "class"=>"input-text-short")); ?>
      • <label for="email">{l s='Email:'}</label><?=$WS->show_input(array("type"=>"text", "name"=>"email", "required"=>true, "class"=>"input-text-short")); ?>
      • <label for="website">{l s='Website:'}</label><?=$WS->show_input(array("type"=>"text", "name"=>"website", "required"=>true, "class"=>"input-text-short")); ?>

      </div>

    <div class="reset"></div>
    </div>
    </fieldset>

  23. <input type="submit" class="button" name="save_btn" value="{l s='Save'}" />
  24. </fieldset>
    </form>
    </div>
    <div class="wallpaper-2ads-separator"></div>
    {/if}
    {/dynamic}

    {include file=wallpaper_details.tpl}

    ==================page code ends here ====================

    what i did in it just removed the resolution link from the image in 'if else' statement and removed the resolution section.

    ENJOY......
    http://funnyimages.pk/

Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.