Wallpaper Script Forum » Plugins and Hacks

MOD - Featured wallpaper - by batu544

(29 posts)
  1. HI,
    For those who are looking for featured wallpapers on there websites..

    I have attached all the required files in text format. Please follow the instructions given inside all the files.

    Files needs to be changed :

    1. index.inc.php
    2. wallpaper.inc.php
    3. templates/your template folder/index.tpl
    4. templates/your template folder/items_feat.tpl ( New file)

    Please save items_feat.tpl.txt as items_feat.tpl in your template folder.

    P.N. two png images are also required, but I don't have :(. If anyone can design that just share it here..
    Let me know if anyone has any questions..

    Thanks,
    Jon

    Attachments

    1. index.tpl_changes.txt (0.6 KB, 50 downloads) 2 months old
    2. wallpaper.inc.php_changes.txt (1 KB, 42 downloads) 2 months old
    3. items_feat.tpl.txt (0.5 KB, 37 downloads) 2 months old
    4. index.inc.php_changes.txt (1 KB, 43 downloads) 2 months old
    Posted 2 months ago #
  2. sidew
    Member

    Thanks Jon for this featured tutorial.
    I like your website design.
    Anyway, how to create background box panel like in your website

    Posted 1 month ago #
  3. @sidew - honestly speaking .. the template what I am using is not designed by me.. :(

    I got it from one of my friend.. and I also have seen the same template for couple of other websites.. so, can't say much about it..

    Thanks..

    Posted 1 month ago #
  4. iiyama
    Member

    I didnt use this, but Thank you very much for this :)

    Posted 1 month ago #
  5. Hey Batu

    Can u say how u shown just 6 random on your home page? can share it?

    Thanks

    Posted 1 month ago #
  6. Hey Batu

    Can u say how u shown just 6 random on your home page? can share it?

    Thanks

    Posted 1 month ago #
  7. How do you add featured wallpapers? I have added all the above codes, but how do you add the wallpapers to it?

    Posted 4 weeks ago #
  8. Moxxy .. if you have installed this Mod correctly.. then you can see near to delete, disable button of each image, there is a small text which must say 'feature' .... you need to click on that to activate that image as a featured image..

    On the same way.. if one image is already featured, then the same button will be displayed as "unfeature" ..

    Hope this will work for you... !!!

    Posted 4 weeks ago #
  9. I have edited all the files exactly as the instructions say that I must.

    I have no clue why it will not show the feature button.

    Posted 4 weeks ago #
  10. can you post a screen shot of your gallery home page .. after login with your admin account. ??

    Posted 4 weeks ago #
  11. martinj
    Member

    Hey Batu544,

    As Moxxy, I don't see any "featured" text near the image, could you please take a screenshot of you admin home page. We will be able to see how it looks like, please.

    I will be interested for exchange link in a near future (beginning of september), I will launch a wp site with some good traffic.

    Thanks

    Posted 4 weeks ago #
  12. Hi guys.. Today I just reviewed my post again.. and I am sorry, I missed one file which needs to be modified..

    Here is that ..

    Open your item.tpl file and add few lines just before {/if} .

    This changes will display the feature and unfeature icon for each image..

    You need 2 png images with name button_disable.png and button_enable.png . For the time being you can copy button_disable.png and button_enable.png file and rename it with the above names to display it properly..

    Thanks,

    Attachments

    1. item.tpl_changes.txt (0.6 KB, 20 downloads) 3 weeks old
    Posted 3 weeks ago #
  13. martinj
    Member

    There are several {/if} in the item.tpl file, what's the good one, please?
    The button 'feature' appears even if I'm not logged in admin mode, is it normal?

    Posted 3 weeks ago #
  14. I am attaching the item.tpl file here as a txt file, If you have not done any additional changes in your existing item.tpl file, then you can use this tpl file directly. else, if you will open this attached tpl file, then you will get the idea where to add the new lines..

    The featured button will display along with other edit, enable and delete button..

    Use this new tpl file, I think your problem will be solved.

    Thanks,

    Posted 3 weeks ago #
  15. Sorry .. missed the attachment.. here it is...

    Attachments

    1. item.tpl.txt (3.1 KB, 21 downloads) 3 weeks old
    Posted 3 weeks ago #
  16. martinj
    Member

    Thanks a lot, with your new file, it works perfectly!

    Posted 3 weeks ago #
  17. It is working nicely, thanks a million Batu!

    Posted 3 weeks ago #
  18. Thanks a lot for that feature man. It works well

    Posted 2 weeks ago #
  19. To modify the number of featured wallpapers you wanna show, just go to index.inc.php and search for the first line begining with "$featitems".

    At the end of that line, just after "DESC limit" is the number of featured wallpapers you want to show. By default, I think it's 3.

    Hope I help somebody

    Posted 2 weeks ago #
  20. Tranquillity
    Member

    Is there a way to randomize the displayed thumbnails?

    Thanks for mod, by the way.

    Posted 1 week ago #
  21. yes that would be great idea as only 3 images shows and the forth hide uptill and untill one is disabled

    Posted 1 week ago #
  22. Tranquillity
    Member

  23. @Tranquillity ..

    1. Try this untested option for randomize the wallpapers..

    In your index.inc.php file replace the inserted getAll with getRandom . I think it would randomize the featured wallpapers.. let me know if it would not help you..

    2. Regarding the featured -tag .. yes you need change in that place only ..

    Posted 1 week ago #
  24. Tranquillity
    Member

    Hi Batu,

    getRandom didn't work...
    Warning: Missing argument 2 for db::getRandom(), called in /var/www/web150/html/server/index.inc.php on line 28 and defined in /var/www/web150/html/server/includes/db.php on line 100

    Regarding the feature-tag, I've been trying to get it to work, but I keep getting error messages. Do you know how the code should look like?

    Thanks in advance :)

    Posted 1 week ago #
  25. it works perfect man
    thanks for the great work...
    my site www.shamusik.info/lookme
    please take a view at it

    Posted 1 week ago #
  26. @Tranquility ..

    For featured tag .. add following line ..

    {if $items[item].featured}<span class="tag-featured tips" title="{$items[item].name|escape:'html':'UTF-8'} :: {l s='featured Wallpaper'}"></span>{/if}

    You need to update the style.css file for your own featured tag image ( you can copy any existing tag to tag-featured ).

    Posted 1 week ago #
  27. @Tranquility..where to add this line?
    in which file?
    thanx bruder

    Posted 1 week ago #
  28. Tranquillity
    Member

    @lookme.. open your item.tpl file and find this:
    {if $items[item].author_id == -1}<span class="tag-author tips" title="{$items[item].name|escape:'html':'UTF-8'} :: {l s='Original Wallpaper'}"></span>{/if}</span>
    </div>

    Now add the code from batu right between "Wallpaper'}"></span>{/if}" and "</span></div>".

    Next you will have to edit your css-file to your likings. Important: you will have to call the div-tag ".tag-featured" otherwise it won't be addressed properly.

    @batu... thanks for the help on the code :)

    @all.. anybody have an idea on randomizing the featured wallpaper?

    Posted 1 week ago #
  29. @Tranquillity.. I think you got the idea how to randomize the featured wallpapers.. :)

    Posted 9 hours ago #

RSS feed for this topic

Reply

You must log in to post.