adamh
Forum Replies Created
-
Forum: Plugins
In reply to: Plugin to insert code into postI believe my plugin External Files will help. It provides a shortcode which imports code from a file or url and auto-highlights it.
https://www.ads-software.com/extend/plugins/external-files
I’d appreciate any feedback!
Adam
Forum: Plugins
In reply to: code insert plugin with select all featureHi
I had much the same requirement and found a syntax highlighter i liked, so I wrapped it into a plugin – External Files.
If your code snippets are saved as a file or url, you can wrap that file or url in [external] shortcode in the editor and the file will be imported and highlighted automatically.
Extra parameters allow you to specify which lines to import and override the syntax highlighting format.
It’s available at https://www.ads-software.com/extend/plugins/external-files
I’d really appreciate any feedback – I’ll try and update the plugin with any suggestions you have.
Thanks, Adam
Forum: Fixing WordPress
In reply to: Where / How to add [code][/code] to posts?Hi Maev
I wrote a plugin for showing code, although the code needs to be in an external file or url – it’s called External Files.
If your code snippets are saved as a file or url, you can wrap that file or url in [external] shortcode in the editor and the file will be imported and highlighted automatically.
Extra parameters allow you to specify which lines to import and override the syntax highlighting format.
It’s available at https://www.ads-software.com/extend/plugins/external-files
I’d really appreciate any feedback – I’ll try and update the plugin with any suggestions you have.
Thanks, Adam
Forum: Fixing WordPress
In reply to: Decent Code inserting pluginHi Takuhii
I had much the same problem, especially with maintaining code indenting, so I wrote a plugin – External Files.
If your code snippets are saved as a file or url, you can wrap that file or url in [external] shortcode in the editor and the file will be imported and highlighted automatically.
Extra parameters allow you to specify which lines to import and override the syntax highlighting format.
It’s available at https://www.ads-software.com/extend/plugins/external-files
I’d really appreciate any feedback – I’ll try and update the plugin with any suggestions you have.
Thanks, Adam
Forum: Plugins
In reply to: using wordpress function getblog_info() in external php fileYou could just use
$_SESSION['blogname'] = get_bloginfo('name')
in file a (assuming session_start() has been called by wp). Then, in file b
session_start(); \\ at the very top echo $_SESSION['blogname'];
Forum: Plugins
In reply to: using wordpress function getblog_info() in external php fileInstead of using send.php, why not have the contact form post to itsself (myplugin.php). Then in myplugin, have an ‘if’ statement to see if the form has been posted
if($_REQUEST['message']) { /* send the contact form */ /if
Could you install another version of phpmyadmin on your hosting?
Forum: Plugins
In reply to: Prevent plugin script loading til neededThe only thing you could do is put a conditional statement at the top of your plugin(s) that checks, say, a page variable and only runs the script if it matches
You could try going direct to the settings page at https://www.yoursite.com/blog/wordpress/wp-admin/options-general.php
Obviously you’ll need to change that (up to wp-admin) to match your site
Forum: Plugins
In reply to: Can WordPress handle 3,000 categories?One thing i’d do is make sure your content is extractable – ie, it’s valid markup with no inline styles, so that if you want to export it and use it elsewhere at some point you can.
We’re just finishing a site in WordPress 1.5 which rapidly grew to 2,500 pages (way above expectations). The amount of work i’ve had to do to get things usable… for example, the internal function that generates a nested list of all the page titles is really inefficient, and is used on more pages than you’d think!
Forum: Plugins
In reply to: akismet not letting me see all the spam it’s detectedI guess you could change the akismet plugin to show all spam posts, not just one per IP address. Shouldn’t be too difficult?
Forum: Fixing WordPress
In reply to: Editor inserts random page breaksThere’s a few posts about this;
https://www.ads-software.com/support/topic/1417
And Alex King wrote a plugin called WP Unformatted which removes the auto-formatting based on custom fields, but can easily be changed to remove it from every post.
Forum: Plugins
In reply to: akismet not letting me see all the spam it’s detectedGood thread, i’ve also been wondering why this is. Blogachover says;
the likelihood is just about 100% that if you got one spam from an IP address, everything from that IP is indeed spam
But does it work both ways? If a legitimate comment is marked as spam, and that user (ie IP) has posted more than one comment, will marking the first comment as ‘not spam’ also mark the users’ other comments?
Forum: Plugins
In reply to: WordPress as CMS for a big site?Thanks for the plug, Croila!
Madsphi: the site we are working on at the moment is currently at about 2,500 pages (and 0 posts!). This is why i wrote the Pages+ plugin Croila mentions above.
The main issues we’ve had with wordpress are;
Friendly URLs using mod_rewrite
WP creates 4 mod_rewrite rules for each page – so was causing the htaccess file to run to about 11megs. Crashed our hosts’ webserver, got in trouble! Resolved by usingindex.php/path/to/page/
syntax.Speed issues with certain core functions
Some of the core WP functions are obviously not written for page-based sites. For example,wp_list_pages
– if you want to get a page ‘tree’ of all pages below page X, this function gets the entire page tree and then filters it – so becomes very resource intensive.WP auto-formatting posts
Wordpress automatically replaces newlines in posts with br tags – so if you put html code in the page content, you’ll end up with lots of whitespace on your code. Today I found a way of turning this off – I’ll plugin-ise it and post it when i get a second.A few lesser issues, but contact me through my site if you want to chat in more depth!
Adam
Forum: Fixing WordPress
In reply to: How do I get a URL formatted version of the title?Use
urlencode($title)
where $title is the text to encode. If you also want it lowercase, usestrtolower(urlencode($title))
hope that helps, adam