By David Montoya on Thursday, 02 June 2016
Posted in Technical Issues
Likes 0
Views 404
Votes 0
For \ratings\form.php when I remove the following line of code the Already Voted URL turns into a relative link. Any idea on how to correct this? I would think removing an independent DIV wouldn't cause such a weird bug...

<?php if ($voted) { ?>
<div class="col-cell eb-rating-text voted"><?php echo JText::_('COM_EASYBLOG_RATINGS_ALREADY_RATED');?>:</div>
<?php } ?>
How to replicate this error? is it can provide us some screenshot regarding this?
·
Thursday, 02 June 2016 19:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Results can be viewed here.
http://gadunited.com/index.php?option=com_easyblog&view=latest&Itemid=437




The code commented out is from line 27 to 29.
·
Friday, 03 June 2016 04:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi David,

Hm, we are still lost here . Can you explain on the issue further?
·
Friday, 03 June 2016 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
If you click on the green icon it'll go to the front page. For some reason removing that snippet of code turns the URL into a relative link. This is experienced in Chrome.
·
Friday, 03 June 2016 14:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi David,

I am really sorry for the delay of this reply. It seems like the issue is caused by the following string ' : ' is being replaced with empty string as you can see from my screenshot here, http://take.ms/J84sx . After some checking, it turns out that the following file is causing the issue that you facing, /templates/jooswatch-v3-5/html/com_easyblog/ratings/frontpage.php where you add the following code to replace the string,
echo str_replace_first(':', '', $ratingString);


After I commented out the code, everything is working correctly as it should. Please have a look.
·
Friday, 03 June 2016 18:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Huh, that's a custom function. I can't even remember what it's purpose was.

Thank you!
·
Saturday, 04 June 2016 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
David,

Please understand that our support team cannot provide support for template modifications / customizations. Our support policy clearly states that we only provide support for issues related to the product itself.

I would suggest that you turn off all template overrides in the future to test it out before submitting a new support request.
·
Sunday, 05 June 2016 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post