https://www.icyphoenix.com/viewtopic.php?f=26&t=1424
-----------------------------------
felix968
Sat 24 Mar, 2007 18:01

FAP SUPPORT - Disable Vote Own Image
-----------------------------------
I'd like disable vote own image.
Can I do it?
I've FAP 1.4.1
Thanks


-----------------------------------
Artie
Mon 26 Mar, 2007 01:22

Re: Disable Vote Own Image
-----------------------------------
Simplest way would be below, but be warned, it does removes the rate ability, but message appears that users has already rated pic.

OPEN [b]album_showpage.php[/b]

FIND
[codeblock]if ($db->sql_numrows($result) > 0)[/codeblock]
REPLACE WITH
[codeblock]	if (($db->sql_numrows($result) > 0) || ($thispic['pic_user_id'] == $userdata['user_id']))[/codeblock]


-----------------------------------
TheSteffen
Mon 26 Mar, 2007 07:20

Re: Disable Vote Own Image
-----------------------------------
[quote user="felix968" post="10740"]I'd like disable vote own image.
Can I do it?
I've FAP 1.4.1
Thanks[/quote]

Good thing ;-)

Maybe it should be standard in future FAP but with another message...  :mricy: 

"You can not vote your own pictures." ;-)


-----------------------------------
felix968
Mon 26 Mar, 2007 08:16

Re: Disable Vote Own Image
-----------------------------------
Thank you Artie ... [img]http://www.icyphoenix.com/images/smiles/0056.gif[/img]


-----------------------------------
Artie
Mon 26 Mar, 2007 17:06

Re: Disable Vote Own Image
-----------------------------------
[quote user="TheSteffen" post="10844"]

Maybe it should be standard in future FAP but with another message...  :mricy: 

"You can not vote your own pictures." ;-)[/quote]
That would be pretty simple to do, I just didn't feel like doing it.  :wink: 

[quote user="felix968" post="10847"]Thank you Artie ... [img]http://www.icyphoenix.com/images/smiles/0056.gif[/img][/quote]
You are welcome.


-----------------------------------
Mighty Gorgon
Tue 27 Mar, 2007 01:08

Re: Disable Vote Own Image
-----------------------------------
Thanks... added to FAP.


