Single vote tweak Single vote tweak
 

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]

Main Menu

Single vote tweak

Started by davieb, December 24, 2008, 02:47:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davieb

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

Hein Traag


Nibbler

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.

davieb

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  ;)

Joachim Müller

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?