4images Forum & Community
The forum for all 4images gallery administrators
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
4images code on GitHub
Click here
to visit GitHub.
Home
Help
Search
Login
Register
4images Forum & Community
»
4images Modifications / Modifikationen
»
Mods & Plugins (Requests & Discussions)
(Moderator:
mawenzi
) »
Admin can vote the same image many times as he want
« previous
next »
Print
Pages: [
1
]
Author
Topic: Admin can vote the same image many times as he want (Read 3658 times)
0 Members and 1 Guest are viewing this topic.
Sun Zaza
Sr. Member
Posts: 399
Admin can vote the same image many times as he want
«
on:
March 10, 2009, 12:47:45 AM »
Hello,
How can I change the code to make sure that Admin can vote the same image many times as he want?
Thank you in advance,
Cruxy
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Global Moderator
4images Guru
Posts: 17.849
mmm PHP...
Re: Admin can vote the same image many times as he want
«
Reply #1 on:
March 10, 2009, 01:23:13 AM »
In includes/page_header.php find:
if (!
in_array
(
$id
,
$split_list
) && !
in_array
(
$id
,
$cookie_rated
)) {
Insert
above
:
if (
$user_info
[
'user_level'
] ==
ADMIN
)
{
$cookie_rated
=
$split_list
= array();
$session_info
[
'rated_imgs'
] =
""
;
}
Logged
Your first three "must do" before you ask a question:
Forum rules
FAQ
Error messages
Bug Fixes & Patches
Search
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer.
(
forum rule #6
)
Extension for Firefox/Thunderbird:
Master Password+
Back/Forward History Tweaks (restartless)
Cookies Manager+
Fit Images (restartless for Thunderbird)
Sun Zaza
Sr. Member
Posts: 399
Re: Admin can vote the same image many times as he want
«
Reply #2 on:
March 10, 2009, 11:16:51 AM »
Thanks V@no. It'is working.
Cheers,
Cruxy
«
Last Edit: January 29, 2010, 07:39:28 PM by cruxy
»
Logged
Print
Pages: [
1
]
« previous
next »
4images Forum & Community
»
4images Modifications / Modifikationen
»
Mods & Plugins (Requests & Discussions)
(Moderator:
mawenzi
) »
Admin can vote the same image many times as he want