coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: davieb on December 24, 2008, 02:47:41 PM

Title: Single vote tweak
Post by: davieb on December 24, 2008, 02:47:41 PM
You'll need to have a look at this thread (http://forum.coppermine-gallery.net/index.php/topic,54319.0.html) 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
Title: Re: Single vote tweak
Post by: Hein Traag on December 24, 2008, 04:24:10 PM
Maybe this thread will help you further: http://forum.coppermine-gallery.net/index.php/topic,50507.0.html (http://forum.coppermine-gallery.net/index.php/topic,50507.0.html)
Title: Re: Single vote tweak
Post by: Nibbler on December 24, 2008, 04:28:14 PM
Should be able to do this by editing ratepic.php and changing


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


//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.
Title: Re: Single vote tweak
Post by: davieb 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  ;)
Title: Re: Single vote tweak
Post by: Joachim Müller on December 28, 2008, 10:51:07 AM
davieb by unrequested personal message:
Quote from: davieb on December 27, 2008, 12:10:42 PM
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?