Thread: Add-On Releases - Prosperent Product Search and Auto-Linker
View Single Post
  #8  
Old 01-26-2012, 08:09 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

K, so looking at the results, it would seem that its commenting out the if and else statements that display the price.
PHP Code:
<td style="width:17%; font-size:18px;"> <!--?    
                if(empty(
$record['price_sale']) || $record['price'] <= $record['price_sale'])
                { 
                    
//we don't do anything 
                    
?--> <p style="padding-bottom:15px;"><span>$<span>50.17</span></span></p> <!--?
                }
                
//otherwise strike-through Price and list the Price_Sale
                
else
                { 
                    ?--> <
p style="padding-bottom:3px;"><span style="text-decoration: line-through;">$50.17</span></p> <p style="padding-bottom:15px;"><span><font color="#cc6600">$<span></span></font></span></p> <!--? 
                } 
                ?--> <
a rel="nofollow" href="www.satelliteguys.us/product.php?q=Monster Cable HDMI A/C - Type C Mini HDMI - Type A HDMI Cable- 6ft" onclick="javascript:document.location='http://prosperent.com/store/product/401335-2154-0/?k=Monster+Cable+HDMI+A%2FC+-+Type+C+Mini+HDMI+-+Type+A+HDMI+Cable-+6ft&amp;m=Mwave.com&amp;p=b14bc82e7b5257399d818714aed72ce5&amp;referrer=http%3A%2F%2Fwww.satelliteguys.us%2F&amp;location=http%3A%2F%2Fwww.satelliteguys.us%2Fproduct.php%3Fq%3Dhdmi%2Bcable&amp;query=Hdmi+Cable';return false;"><img src="http://community.prosperent.com/img/visit_store_button.gif"></a> </td
So its included <!-- --> where the PHP statements should be. Check your code, and see if you can add
PHP Code:
<td style="width:17%; font-size:18px;">
                <?php    
                
if(empty($record['price_sale']) || $record['price'] <= $record['price_sale'])
                { 
                    
//we don't do anything 
                    
?>
                    <p style="padding-bottom:15px;"><span>$<span><?php echo $record['price']?></span></span></p>
                    <?php
                
}
                
//otherwise strike-through Price and list the Price_Sale
                
else
                { 
                    
?>
                    <p style="padding-bottom:3px;"><span style="text-decoration: line-through;">$<?php echo $record['price']?></span></p>
                    <p style="padding-bottom:15px;"><span><FONT COLOR="#cc6600">$<span><?php echo $record['price_sale']?></span></FONT></span></p>
                    <?php 
                

                
?>
                <a href="<?php echo $_SERVER['HTTP_HOST']; ?>/product.php?q=<?php echo $record['keyword']?>" onclick="javascript:document.location='<?php echo $record['affiliate_url']?>';return false;"><img src="http://community.prosperent.com/img/visit_store_button.gif"></a>
            </td>
It may have gotten affected, but if that doesn't work, probably the best thing to do for the moment would be to take out the code inside that
HTML Code:
<td></td>
statement and put
HTML Code:
<p style="padding-bottom:15px;"><span>$<span><?php echo $record['price']?></span></span></p>
Let me know if either of those fix the issue. And as for the price sorting, that's a very good idea, I'll start working on that.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01172 seconds
  • Memory Usage 1,807KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete