Hi. I need two things customized in my Hotaru 1.7.1 install, and I'm tired of trying to figure it out myself. I need... 1. The URLs in RSS feeds' <link></link> tags replaced with original URL values rather than Hotaru links with &forward= . 2. I need post tags to appear in RSS feeds, inside the <decription> tag. If you are capable of doing these customizations, and you can do them fairly quickly, please make contact with me with an estimate of your price and delivery time. Thank you, Pariah Burke
I'll be able to look at the post tags in a few hours, but it should be easy. (No cost, although do consider making a donation to the project at some point.) Does the forward not work for you? I tested it and it did work, so please post in tags if you're still having problems.
Thanks. I shall gladly donate what I would have paid. I tried it, and the forwarding does work, but for some reason if I share it again to WordPress, the URL is getting mangled. I'd rather just have the RSS link be the direct origURL.
To get the link as you want it, replace line 200 in /content/plugins/postRSS/libs/PostRSSFunctions.php with: Code: $item['link'] = (strpos($result->post_orig_url, "http://") !== false || strpos($result->post_orig_url, "https://") !== false) ? $result->post_orig_url : 'http://' . $result->post_orig_url; and comment out line 845 of /content/plugins/bookmarking/bookmarking.php so it looks like this: Code: // $item['link'] = $h->url(array('page'=>$result->post_id, 'forward'=>$result->post_id)); Leave the setting "Automatically redirect RSS links to their original sources" in the admin panel checked. To add tags to the end of the description, replace line 202 of PostRssFunctions.php with: Code: if ($result->post_tags) { $post_tags = explode(', ', urldecode($result->post_tags)); $all_tags = '<p class="tags"><strong>Tags: </strong>'; foreach ($post_tags as $html_tag) { $all_tags .= '<a href="' . $h->url(array('page'=>'all', 'tag'=>$html_tag)) . '" rel="tag">' . $html_tag . '</a> '; } $result->post_tags = $all_tags . '</p>'; } $item['description'] = $result->post_content . $result->post_tags; I chose here to direct visitors to the all page so you'll see all posts with the tag but, if you want just the front page posts only, simply remove the part ['page'=>'all',]. Also, make sure to have friendly URLs on. You can find that under the main tab in settings.
The tags now appear in the feeds. Yay! Thank you! However the URL changes haven't quite worked. The <link> now looks like this "http://http://tomakeawebsite.net/50-alternative-and-unique-ways-to-using-wordpress/" with Friendly URLs on or off. Also, with Friendly URLs on, the HTML links to RSS feeds break, resulting in a 404. It changes the URLs from /hotaru/index.php?page=rss to /hotaru/rss/ which gives me a 404.
Er, the forum replaced the HTML entities that are appearing in my RSS feed. Here's what's actually in the RSS link fields: Code: http://http%3A%2F%2Ftomakeawebsite.net%2F50-alternative-and-unique-ways-to-using-wordpress%2F
My apologies. Forgot that it was encoded. Replace line 200 in /content/plugins/postRSS/libs/PostRSSFunctions.php with: Code: $result->post_orig_url = urldecode($result->post_orig_url); $item['link'] = (strpos($result->post_orig_url, "http://") !== false || strpos($result->post_orig_url, "https://") !== false) ? $result->post_orig_url : 'http://' . $result->post_orig_url; The friendly URLs should not be giving you a 404. Have you changed your .htaccess file?
Yes, that was my bad. The database fields are (properly) encoded and I forgot to decode them. Please try the new code I posted.
I tried that. PayPal gives me the following error: "Currently PayPal accounts in Japan are only able to send payments. This recipient is not eligible to receive funds."
@shibuya246 will fix that as soon as he wakes up, I'm sure. We do keep him busy in the wee hours of his mornings. He told me he sleeps, but I have my doubts.
thakns. have spent a lot of time trying to fix this but no result yet. seems to be easier to program Hotaru CMS than try to solve paypals problems