Manipe wrote: Do you have phpMyAdmin?
answer please
n0ia wrote: I've made some different color vote_lcap.gif, vote_rcap.gif, and voting_bar.gif images if anyone is interested.
I just copied the original, duplicated the layer and did a color overlay of the following:
Red
Blue
Green
Yellow
Purple
Turqoise
Pink
They are PNG images saved with a .gif extension so that they render the transparency correct. Let me know if anyone wants this and I'll give you a link or send it to someone to host.
Could not insert user_id for poll
DEBUG MODE
INSERT INTO phpbb_vote_voters (vote_id, vote_user_id, vote_user_ip, vote_option_id) VALUES (24, 2, '8180d931', '2')
Line : 519
File : posting.php
DJ Andre wrote: This is an excellent MOD! Thanks!
Below I included an EasyMOD version that will work well if in case you also installed Admin Voting 1.1.8 before installing this MOD.Code: Select all
# #-----[ OPEN ]--------------------------------------------- # posting.php # #-----[ FIND ]--------------------------------------------- # $sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip, vote_cast) VALUES ($vote_id, " . $userdata['user_id'] . ", '$user_ip', $vote_option_id)"; # #-----[ REPLACE WITH ]--------------------------------------------- # // Colour on Poll Results MOD, By Manipe (Begin) $sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip, vote_cast, vote_option_id) VALUES ($vote_id, " . $userdata['user_id'] . ", '$user_ip', '$vote_option_id')"; // Colour on Poll Results MOD, By Manipe (End)
I did the same thing, but how do I use them?n0ia wrote:I've made some different color vote_lcap.gif, vote_rcap.gif, and voting_bar.gif images if anyone is interested.
I just copied the original, duplicated the layer and did a color overlay of the following:
Red
Blue
Green
Yellow
Purple
Turqoise
Pink
They are PNG images saved with a .gif extension so that they render the transparency correct. Let me know if anyone wants this and I'll give you a link or send it to someone to host.
Code: Select all
<td><img src="templates/subSilver/images/vote_lcap.gif" width="4" alt="" height="12" /></td>
<td><img src="{poll_option.POLL_OPTION_IMG}" width="{poll_option.POLL_OPTION_IMG_WIDTH}" height="12" alt="{poll_option.POLL_OPTION_PERCENT}" /></td>
<td><img src="templates/subSilver/images/vote_rcap.gif" width="4" alt="" height="12" /></td>
Code: Select all
$images['voting_graphic'][0] = "$current_template_images/voting_bar.gif";
$images['voting_graphic'][1] = "$current_template_images/voting_bar1.gif";
$images['voting_graphic'][2] = "$current_template_images/voting_bar2.gif";
$images['voting_graphic'][3] = "$current_template_images/voting_bar3.gif";
$images['voting_graphic'][4] = "$current_template_images/voting_bar4.gif";