Darrell Schauss
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Backup without phpadminYou could make a php file in your root (mysqlbackup.php)
Replace the HOST, PASSWORD, USER DATABASE. -h, -p, -u should stay there, replace just the cap words. Not sure if GoDaddy disallows exec().
<?php exec("mysqldump --opt -hHOST -pPASSWORD -uUSER DATABASE > ./db_backup.sql"); ?>If you want to zip it put this next in the file.
<?php exec("gzip ./db_backup.sql"); ?>Then access http://www.yourdomain.com/mysqlbackup.php
Forum: Fixing WordPress
In reply to: what’s the correct tag to use to show links for only admins?In the first one the HTML wasn’t seperated.
<?php if (is_admin()) { ?> <a href="/wp-admin">Admin Login</a> <?php } ?>Forum: Fixing WordPress
In reply to: what’s the correct tag to use to show links for only admins?If you want some user friendliness for admins you can install Admin Bar http://ww.wp.xz.cn/extend/plugins/wordpress-admin-bar/
When logged in this will put a bar across the top with same links as WordPress panel. So you can browse around the site while logged in and click edit on a page and jump to editing that page quickly.
To only show something on a page while logged in as admin.
<?php if(is_admin()){ //stuff here } ?>I found this one on experts exchange I think it is for Admin pages.
<?php global $user_ID; if( $user_ID ) : ?> <?php if( current_user_can('level_10') ) : ?> //stuff here <?php else : ?> <?php endif; ?> <?php endif; ?>Forum: Fixing WordPress
In reply to: What Google Returns When You Search For Your SiteWhatever is in your meta description of your page is what Google will use. If you don’t have a description Google will choose a piece of your content. If you want to customize a catchy description (that will make people want to visit) for all your pages instead of it automatically being filled with your post/page content. You can use http://ww.wp.xz.cn/extend/plugins/all-in-one-seo-pack/
Forum: Fixing WordPress
In reply to: Bluehost Transfer HelpTo export from WordPress.com account
http://en.support.wordpress.com/export/Another discussion about possible concerns.
http://en.forums.wordpress.com/topic/export-wordpress-to-self-hosted-specific-concernsForum: Fixing WordPress
In reply to: Using PHP and shortcode at the same time (resolved)You dont start
<?phpover again when inside php code already. More like this. (not tested).the_titlewill echo the title right away.get_the_titleallows you to store and use the value.
<?php echo do_shortcode('[ti_audio name="'.get_the_title($post->ID).'"]'); ?>Forum: Fixing WordPress
In reply to: Hiding “posted on.. by…” in posts (Twenty-ten)Quick way with css is
.entry-utility{display:none;}. If you have comments disabled (Settings > Discussion) the form should not display either.Or inside the index.php and single.php remove everything inside and including the <div class=”entry-utility”>…</div> and remove
comments_template();to completely remove the form.I haven’t actually looked at this theme’s files but it should be similar.
Forum: Fixing WordPress
In reply to: PHP plugin general problemContact Form 7 is pretty good. It has its own admin section. You apply forms to pages using [shortcodes] It won’t modify your editor.
http://ww.wp.xz.cn/extend/plugins/contact-form-7/Forum: Fixing WordPress
In reply to: Styling categories classesI looked into the default
the_category()which ultimately uses the function get_the_category_list where in wordpress core files I don’t see any spot for injecting other attributes such as a class by using filters.Maybe try doing it manually.
$categories = wp_get_post_categories($post->ID);
Then loop through the $categories array and generate your own links how you want. I haven’t tried this out so Im not sure how much information it will give you such as the URL, etc.Forum: Fixing WordPress
In reply to: Having Trouble with a “Purchase Tickets” linkPlease list the plugin(s) you are using for the ticketing/calendar. And a link to the website or pages with the unwanted ticket links.
Forum: Fixing WordPress
In reply to: Rss Feed Not ParsingIt is parsing for me in Firefox just fine. Looks like WP Super Cache latest version of it is today 5-13. Maybe it was cached at a bad time? Or maybe your parser doesn’t like the HTML comments at the bottom from WP Super Cache.
Forum: Fixing WordPress
In reply to: PHP plugin general problemI am using Exec-PHP. Did you disable the Visual Editor under Users > Profile? Also make sure under your profile that “Disable WYSIWYG Conversion Warning” is not checked. This way if you have Visual Editor on you will get a warning as a reminder not to edit your pages with PHP. Even choosing the HTML tab will mess it up.
So after turning off the visual editor, edit your page. There will be no Visual/HTML option just plain text. Once finished with your PHP you can turn it back on but don’t forget next time you edit that page.
Forum: Fixing WordPress
In reply to: Hiding “posted on.. by…” in posts (Twenty-ten)You could hide it with css. Or it should be in the index.php,page.php, and/or single.php of theme. I put my css modifications at the bottom of the style.css to override the themes defaults. So I don’t create a mess.
.entry-meta{display:none;}You can edit themes within admin then download it as backup or edit on your computer through FTP. Whatever you prefer for workflow.
Forum: Fixing WordPress
In reply to: Displaying Post on non-wp site from WP blog on another serverI would load the RSS feed from the blog into the other site. You can install http://simplepie.org/ onto your business site to parse RSS or use the PHP built in XML parser SimpleXML http://www.w3schools.com/PHP/php_xml_simplexml.asp
Forum: Fixing WordPress
In reply to: How do I hide all the little comments and posted by stuff?comments_template() is another function you will find most likely in the single.php. This shows the list of comments.
http://codex.ww.wp.xz.cn/Function_Reference/comments_template