Author Topic: cancel vote for yourself... instead drop down - images  (Read 7310 times)

0 Members and 1 Guest are viewing this topic.

Offline artpapa

  • Newbie
  • *
  • Posts: 31
    • View Profile
cancel vote for yourself... instead drop down - images
« on: May 24, 2003, 06:55:25 AM »
My gratings to the community.
1. is anybody help me how to cancel options to Vote for yourself?
2. is their any opportunity to use instead drop down Rate menu - images
related  to "Star Rating", with the action similar to "Lightbox without reloading page"

Alexei

www.artpapa.com

Offline 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...
    • View Profile
    • 4images MODs Demo
cancel vote for yourself... instead drop down - images
« Reply #1 on: May 24, 2003, 08:08:36 AM »
1. vote for yourself? do u mean vote for your images? if so, then in /includes/functions.php find:
Code: [Select]
 if (check_permission("auth_vote", $image_row['cat_id'])) {replace with:
Code: [Select]
 if (check_permission("auth_vote", $image_row['cat_id']) && ($user_info['user_id'] != $image_row['user_id'] || $user_info['user_level'] == GUEST)) {

2. so far the only way I see this could be done is use image, otherwise u wont be able see if the vote casted or not.
Your first three "must do" before you ask a question:
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)

Offline artpapa

  • Newbie
  • *
  • Posts: 31
    • View Profile
cancel vote for yourself... instead drop down - images
« Reply #2 on: May 24, 2003, 09:18:27 PM »
thank you its work well
 
Quote from: V@no

2. so far the only way I see this could be done is use image, otherwise u wont be able see if the vote casted or not.


sorry my grammar not capable to express my questions well.

I mean instead  vote casted drop down use image kind of : www.artpapa.com/Untitled-1.jpg

Offline artpapa

  • Newbie
  • *
  • Posts: 31
    • View Profile
cancel vote for yourself... instead drop down - images
« Reply #3 on: May 26, 2003, 04:27:45 AM »
Quote from: V@no
1. vote for yourself? do u mean vote for your images? if so, then in /includes/functions.php find:
Code: [Select]
 if (check_permission("auth_vote", $image_row['cat_id'])) {replace with:
Code: [Select]
 if (check_permission("auth_vote", $image_row['cat_id']) && ($user_info['user_id'] != $image_row['user_id'] || $user_info['user_level'] == GUEST)) {

This is work, user don't have ability to rate their own image anymore.

but this tweak, seems to me, stopped functions of  "Star rating" mood,
stars didn't change any more.

where is could be a problem?

thank you
Alexei
www.artpapa.com

Offline artpapa

  • Newbie
  • *
  • Posts: 31
    • View Profile
cancel vote for yourself... instead drop down - images
« Reply #4 on: May 26, 2003, 11:07:14 PM »
Dear V@no,
Is there any solution?
why "Star rating" mood stop working after I adjust  check_permission Code?

Maybe I should post  this question somewhere else?

Can you advise Please ?

Alexei
www.rtpapa.com

Offline 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...
    • View Profile
    • 4images MODs Demo
cancel vote for yourself... instead drop down - images
« Reply #5 on: May 26, 2003, 11:53:09 PM »
hmmm...those changes has nothing to do with your star rating...
maybe u did some changes somewhere else...
sorry, I dont have an answer for this.
Your first three "must do" before you ask a question:
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)

Offline artpapa

  • Newbie
  • *
  • Posts: 31
    • View Profile
cancel vote for yourself... instead drop down - images
« Reply #6 on: May 27, 2003, 12:39:14 AM »
I think I find problem,
 
Code: [Select]
if (check_permission("auth_vote", $image_row['cat_id'])) {


this line repeats two times (308 and  531) in the original document, and I replace both lines automatically in the "dreamweaver".


Can you tell me, please which line from original file is supposed to be replaced with code you mentioned?

 
thank you
Alexei

Offline 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...
    • View Profile
    • 4images MODs Demo
cancel vote for yourself... instead drop down - images
« Reply #7 on: May 27, 2003, 12:49:27 AM »
it should be first from the top, next to
$rate_form = "";
Your first three "must do" before you ask a question:
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)

Offline artpapa

  • Newbie
  • *
  • Posts: 31
    • View Profile
cancel vote for yourself... instead drop down - images
« Reply #8 on: May 27, 2003, 01:35:45 AM »
that's working now
thank you !!!!!!!!!!!!!!!!!