I need featured wallpapers module...
Like: http://wallpapers.net/ and http://wallpaperstock.net/
...anybody!?
I need featured wallpapers module...
Like: http://wallpapers.net/ and http://wallpaperstock.net/
...anybody!?
ME me want same Module.
I want it too.
ok, me too :)
me too :) :)
well.. its already 2 days over.. but it seems no actual featured module owner wants to share it... :) ( actually they bought it so may be not interested to share it )
Anyway for the time being I have a work around.. but in this case you need to enable the images manually in phpmyadmin..
If anyone interested, then please let me know, I will post the code here..
Thanks,
batu544
Batu post the code it will be of great help.
Also if you help me in my query at http://wallpaperscript.com/forum/topic/2-problems
It would be great.
Here is the code made by my me for My web site http://hotsrilankangirls.com/
it works well you can feature or UN feature wallpapers at any page because the option shows under every thumb image.
Here is the code
First create a column in the "item" table in your database called
"featured".Then
In templates/default/item.tpl
{if $items[item].featured == 1}
{else}
{/if}
you have to upload feature_disable.png and feature_enable.png images to your image folder on the template folder.
here is the function part of the module.
In wallpaper.inc.php
Add this code
case "Unfeature":
$sql = "UPDATE SET
.=NOW(),
d='0' WHERE
a='".$_REQUEST['id']."' ";
$DB->query($sql);
redirect($_SERVER['HTTP_REFERER']);
break;
case "feature":
if ($_SESSION["user_data"]["type"]=="admin")
{
$sql = "UPDATE SET
.=NOW(),
d='1' WHERE
a='".$_REQUEST['id']."' ";
$DB->query($sql);
redirect($_SERVER['HTTP_REFERER']);
}
else
{
$siteError->add($LANG->l('Error admin required for enable action'), "error");
}
AFTER
case "disable":
$sql = "UPDATE SET
.=NOW(),
d='0' WHERE
a='".$_REQUEST['id']."' ";
$DB->query($sql);
redirect($_SERVER['HTTP_REFERER']);
break;
To manage featured wallpapers i will write a function later.
Hope you like this.
Thak you !
Hi,
Refer to the complete MOD here ..
http://wallpaperscript.com/forum/topic/mod-featured-wallpaper-by-batu544
Thanks,
WOW nice work batu544 "stealing other people ideas".and any one needs the managing part of featured wallpapers please pm me because i dont like that someone get my code and showing off that its his idea of writhing those functions.pm me if u need the next part.
@bandara1988,
1. Please read the complete post before posting a new reply.
2. If you will look into the older replies of mine for this post, then, you can understand that, I have my code with me much before you posted your solution. ( only the thing is.. its a coincidence that you posted your code just 1 min prior to me ).
..Regarding your point of copying your functions..
3. one person can not understand what solution or what code changes you have provided in your previous post.
4. Yes, may be your code and my code can be same, because there is no other way.. One person has to use the CASE statements..
I am not claiming some other persons hard work as mine.. what I have posted is completely done by me.. If you want then you can post your code and let other users chose which one is best and which one they want to use..
By the way.. in my changes I have used 4 different files.. and in your case, you have only provided 2 file changes and I have visited your website also, your featured functionality was not good while I was posting my MOD.
Thanks
batu544
Just now, I went thru your post again and noticed, you have instructed to create a new column in item table, which is wrong, because featured column already exists in the table.. :)
bandara1988
Please do not link to my images. If you need the images (flags) please contact me on my page and i will glad send them to you.
Thank you
a target="_blank" href="http://translate.google.com/translate?js=n&prev=_t&hl=En&ie=UTF-8&u=http://hotsrilankangirls.com/&sl=en&tl=el">
<img alt="" src="http://www.recoilproductions.net/flags/Greece1.png" border="0"
bandara1988
or you can download the flags here
im extremely sorry about the flags zeero6 i wll change them now didnt mean to harm you did it for testing purposes only and didnt have time to change it i wll change it now.Sorry again.(i know saying sorry is not ok did it consumed much bw ??)
batu544 soryy for the misunderstanding.I was angry at that time i shared the code for the world any one can do any thing to that code.Its like open source.But some people dont wana share what they know thats why i was angree.Because in the top of thread there are some people who dont wana share any ideas.
Sorry again batu544 for my words.
No problem bandara1988
i'll leave the link for you to download the flags above
huh! All we're doing this [Helping each other] is nothing but increasing competetion between all WallpaperScript users... Even Admins won't help there users that much...
You must log in to post.