pdonner
Forum Replies Created
-
Forum: Hacks
In reply to: How to achieve plain old RSSNot being at home in the PHP environment and WP, I decideded to walk the quick and dirty road by putting the second code block into functions.php and by pointing at a modified rss 0.92 template. There was a bit of file/function name magic, but I found my way in the en.
Apparently I should learn how to write a plugin, since that would be a clean approach which maybe could survive an update of the template.
Now I still have to modify the transformation from rss xml to html, but that’s quite another story. – Warm thanks to bcworkz!
Forum: Hacks
In reply to: How to achieve plain old RSSThanks bcworkz for the very useful advice. The ‘Customizing Feeds’ page explained that I would need to “clear the default actions then take appropriate steps to call load_template”. “Feed templates are located in the /wp-includes/feed-{type}.php”. There I found the old feed-rss.php which seems to produce the kind of output I’m longing for.
<item> <title><?php the_title_rss() ?></title> <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> <link><?php the_permalink_rss() ?></link> <?php do_action('rss_item'); ?> </item>
So the template seems already to be there (although the CDATA decoration could still be a problem for the GXV3175 RSS reader). By applying the tutorial advice, I think that this is how the default actions could be replaced:
remove_all_actions( 'do_feed_rss2' ); add_action( 'do_feed_rss2', 'plain_old_rss_feed', 10, 1 ); function plain_old_rss_feed( $for_comments ) { $rss_template = get_template_directory() . '/feeds/feed-rss.php'; if( file_exists( $rss_template ) ) load_template( $rss_template ); }
However, it seems to me that all that new machinery is already available in the installed WP files. In default-filters.php I found this line:
add_action( 'do_feed_rss', 'do_feed_rss', 10, 1 );
So it seems that the action is already there. And in functions.php there is a ready-made function which is already integrated by that add_action call:
function do_feed_rss() { load_template( ABSPATH . WPINC . '/feed-rss.php' ); }
So apparently all functionality is already there (minus the template file existence checking lines). But apparently these lines are never being called (or then they are deactivated somewhere along the road).
Not being very familiar with WP template geography I still fail to see where the patch should be entered. Could you guide me to the relevant template.
Forum: Fixing WordPress
In reply to: How to import post without FTPI made a fresh install of the newest WP on yet another site. While performing the procedure to import the archive Mr. WP never grunted his ‘FTP’ with the nasty credential request. The program was probably capable to perform the transfer… internally.
Maybe our discussion was heard by a friendly soul?
Thanks to everybody involved. ph
Forum: Fixing WordPress
In reply to: How to import post without FTPThanks Chip for your feedback. You wrote:
I think pdonner needs to find … a hosting service provider
who allows basic necessities, like FTP access to pdonner’s own hosting account.I’m intending to promote WP in my municipality by asking for WP training at the adult education center. To ensure that the students would be able to carry out simple WP administration tasks, I actually also did exactly what you proposed.
The hosting service provider was very kind and helpful until I brought up this issue with them. Although the company representative understood that the proposed WP training scheme would bring them new customers, they went quiet as soon as I asked about supplying user and password information in the WP dialogs.
I think we ought to address this issue. Apljdi remarks on sniffing credentials sound relevant to me. At one point he writes:
The FTP transaction is localhost to localhost.
If this is the case I guess that we could write localhost in the field for the server name. Although this doesn’t solve the dilemma of the web master, I guess this could be a way of ensuring that the traffic remains in the server. But would it work Chip?
Forum: Fixing WordPress
In reply to: How to import post without FTPThanks ESMI for kind feedback. It would be good if I could locate some documentation about this fact so that also the web hotel administrator could get satisfied.
Forum: Fixing WordPress
In reply to: Posting videos onto websiteHi. We do host our videos on a separate media server. Is there a plugin for presentation of video and other material prepared for the RealNetworks streaming platform?