Closed gotoitguy closed 11 years ago
I am having the same issue as gotoitguy.
Nasium,
I just realized I hadn't included the location of the problem code, it's located at: app/views/posts/view.ctp
Simply locate the problem code, and replace it with the corrected code.
Hope this helps.
Thanks.
Are we able to commit a change to the code in the project?
Fixed in the next branch. Thank you @gotoitguy !
I also noticed another issue yesterday that I neglected to mention. The answer's vote up/down images were displaying the html code in the browser, instead of the image itself. Screen cap example: http://www.gotoitguy.com/Coordino_Voteup-down_Bug.png
Problem Code: 161 <?=$html->link( 162 $html->image("arrow_up.png", array("alt" => "Vote Up")), 163 '/vote/' . $answer['Answer']['public_key'] . '/up', 164 null, null, false 165 ); 166 ?> 167 <?=$answer['Answer']['votes'];?> 168 <?=$html->link( 169 $html->image("arrow_down.png", array("alt" => "Vote Down")), 170 '/vote/' . $answer['Answer']['public_key'] . '/down', 171 null, null, false 172 ); 173 ?>
Corrected Code: 161 <?php 162 echo $html->image('arrow_up.png', array('alt' => 'Vote Up', 'url' => '/vote/' . $answer['Answer']['public_key'] . '/up')); 163 ?> 164 <?=$answer['Answer']['votes'];?> 165 <?php 166 echo $html->image('arrow_down.png', array('alt' => 'Vote Up', 'url' => '/vote/' . $answer['Answer']['public_key'] . '/down')); 167 ?>
Hope this type of stuff is beneficial to your project. If you'd like me to push the info elsewhere, let me know. Also, I'm brand new to Github, so I don't know if there's another way I can present the code to you?