Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Single vote tweak  (Read 2786 times)

0 Members and 1 Guest are viewing this topic.

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Single vote tweak
« on: December 24, 2008, 02:47:41 pm »

You'll need to have a look at this thread here for this question to make any sense.

Is there a way to make a "Thank you for voting" message appear instead of just having the screen refresh after the "vote" button is clicked? If so can someone provide me with the details of how do make this type of change.

Thanks
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Single vote tweak
« Reply #1 on: December 24, 2008, 04:24:10 pm »

Logged

Nibbler

  • Guest
Re: Single vote tweak
« Reply #2 on: December 24, 2008, 04:28:14 pm »

Should be able to do this by editing ratepic.php and changing

Code: [Select]
header($header_location . $location);
pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$location\">");
msg_box($lang_info, $lang_rate_pic_php['rate_ok'], $lang_continue, $location);

to

Code: [Select]
//header($header_location . $location);
pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$location\">");
msg_box($lang_info, $lang_rate_pic_php['rate_ok'], $lang_continue, $location);

You can change the 1 to the delay in seconds before you get redirected and you can change $lang_rate_pic_php['rate_ok'] to your own message.
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Single vote tweak
« Reply #3 on: December 24, 2008, 08:20:57 pm »

Cheers guys.

Still think this would be useful tied to the original thread in case anyone else is after the same thing in the future  ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Single vote tweak
« Reply #4 on: December 28, 2008, 10:51:07 am »

davieb by unrequested personal message:
Sorry but if you read the other post I placed in the forum I did exactly what was asked (i.e. opened a new thread) and got the question answered there. I feel that the arrogance of some of the administration members here is unbelievable in that it has to be done your way or not at all.  I still believe that it was a valid question to be raised as it did involve the mod in question. As I mentioned in the thread I opened, what if someone else has exactly the same question of that mod? Surely it makes sense to have the solutions to various problems tied together. Maybe only to someone sensible  ::)
Thanks for molesting me although you mustn't. You had your fun, now stop it, will you?
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 15 queries.