queromedia
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
I think I solved your problem with the following code:
<table class="bookmarks-table"> <?php /** * get_bookmarks() * * Retrieves the list of bookmarks * * Attempts to retrieve from the cache first based on MD5 hash of arguments. If * that fails, then the query will be built from the arguments and executed. The * results will be stored to the cache. * * List of default arguments are as follows: * 'orderby' - Default is 'name' (string). How to order the links by. String is * based off of the bookmark scheme. * 'order' - Default is 'ASC' (string). Either 'ASC' or 'DESC'. Orders in either * ascending or descending order. * 'limit' - Default is -1 (integer) or show all. The amount of bookmarks to * display. * 'category' - Default is empty string (string). Include the links in what * category ID(s). * 'category_name' - Default is empty string (string). Get links by category * name. * 'hide_invisible' - Default is 1 (integer). Whether to show (default) or hide * links marked as 'invisible'. * 'show_updated' - Default is 0 (integer). Will show the time of when the * bookmark was last updated. * 'include' - Default is empty string (string). Include other categories * separated by commas. * 'exclude' - Default is empty string (string). Exclude other categories * separated by commas. * * @since 2.1.0 * @uses $wpdb Database Object * @link http://codex.ww.wp.xz.cn/Template_Tags/get_bookmarks * * @param string|array $args List of arguments to overwrite the defaults * @return array List of bookmark row objects */ $bookmarks = get_bookmarks(); // add 'category=1' as parameter to limit the bookmarks to a category. // set counter to zero $i = 0; // set the number of cols in our table rows $cols = 4; // start an initial row echo '<tr>'; // loop through our returned bookmarks foreach ($bookmarks as $bookmark) { // increment our counter $i++; // print our link date and hyperlink to bookmark // access to the following vars: /* link_id, link_url, link_name, link_image, link_target, link_description, link_visible, link_owner, link_rating, link_updated, link_rel, link_notes, link_rss */ ?> <td class="archive-date"><?php echo date('d-m-Y', strtotime($bookmark->link_updated)) ?></td> <td class="archive-title"><a href="<?php echo $bookmark->link_url ?>" rel="bookmark" title="Bookmark to <?php echo attibute_escape($bookmark->link_name) ?>" target="<?php echo attibute_escape($bookmark->link_target); ?>"><?php echo $bookmark->link_name ?></a></td> <?php // if our counter is dividable by 4 (= the number of cols), close our row if ( ( $i % $cols ) == 0 ) { echo '</tr>' . "\n"; echo '<tr>'; } } // close our initial (or last) row echo '</tr>'; ?> </table>Kind regards,
KimForum: Plugins
In reply to: [Plugin: Google Positioner] Error MessageHi Maceman,
Thank you for downloading my plugin and providing me with feedback.
I’ve tested the “set_results” method in classes.php but couldn’t find any anomalities.
/** * Get the results for a certain keyword */ function set_results() { // fetch the result for the url of this queryObject $parse_result = array(); $parse_result = (array)$this->parse($this->url); // remove first one array_splice( $parse_result, 0, 1); // remove last two array_splice( $parse_result, (count($parse_result)-2), 2); if ( count($parse_result) > 0 ) $this->num_queries++; $this->results = (array) $parse_result; }The error happens on the array_splice method. I will continue to run some tests until I find the error or a workaround.
Can I perhaps know the parameters with which you ran your positioning job?
Keywords, Google options and your website url will be fine.
Greets,
Kim
Viewing 2 replies - 1 through 2 (of 2 total)