An introduction to support on the Marketplaces
- Envato staff look over every item before it can be sold on the Marketplaces.
- Technical items contain help files to introduce you to the item and its components.
- Authors can choose to support their items but this is optional and may vary.
Hands-on support for this item is provided by dtbaker
Frequently Asked Questions
exclude parts from search results
Exclude content from inclusion within search results is not possibly with this script as-is. But it is an option extra if you wish to change some code.
Simply go into search.php about line 359 where you see this code:
$file_contents = preg_replace('#<script[^>]*>.*<'.'/script>#ismU','',$file_contents);
add this line of code before the above line of code:
$file_contents = preg_replace('#<!--\s*hidesearch start\s*-->.*<!--\s*hidesearch end\s*-->#ismU','',$file_contents);
then in your html files you can add these comments to ignore certain content:
<!-- hidesearch start --> content to ignore (eg: a menu) <!-- hidesearch end -->
UTF8 characters show up funny in search results (at the start or end of the search result, near the …. )
change these 3 bits of code in search.php:
substr($matches,-$before_limit) substr($matches,0,$after_limit) substr($this_result[$highlight_item],0,$GLOBALS['_SEARCH_SUMMARY_LENGTH'])
to these 3 lines of code respectively:
utf8_encode(substr(utf8_decode($matches),-$before_limit)) utf8_encode(substr(utf8_decode($matches),0,$after_limit)) utf8_encode(substr(utf8_decode($this_result[$highlight_item]),0,$GLOBALS['_SEARCH_SUMMARY_LENGTH']))
if you get ‘undefined variable: return’
look for a line of code like this:
@exec('pdftotext -v',$pdftotext,$return);change it to this line of code:
$return = false; @exec('pdftotext -v',$pdftotext,$return);(ie: add
$return = false;just before it)
When to contact Envato Support
Authors are experts on their own items, but if you're having trouble using the Marketplaces you should come straight to Envato Support.