thetooon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change title dynamically?<title><?php wp_title('|', true, 'right'); ?> <?php if (get_query_var('paged')) { echo get_query_var('paged') . ' page'; } ?> <?php bloginfo('name'); ?></title>
Forum: Fixing WordPress
In reply to: Formatting for blank linesTry WP Unformatted.
It helped me a lot, actually, because I didn’t find how to turn WP help in auto-format damn off.
Forum: Themes and Templates
In reply to: Decrease get_the_excerpt() lengthThanks, pboosten.
Forum: Fixing WordPress
In reply to: list of children as arrayWell, I used FlexiPages plugin finally.
Forum: Fixing WordPress
In reply to: How to change message “Error establishing a database connection”It will never work.
Because in wp-includes/wp-db.php on line 372, if connection to db failed – it failed. Without even attempt to call dead_db():
`
$this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword, true);
if (!$this->dbh) {
$this->bail(sprintf(/*WP_I18N_DB_CONN_ERROR*/”
<h1>Error establishing a database connection</h1>
<p>This either means that the username and password information in yourwp-config.php
file is incorrect or we can’t contact the database server at%s
. This could mean your host’s database server is down.</p>- Are you sure you have the correct username and password?
- Are you sure that you have typed the correct hostname?
- Are you sure that the database server is running?
<p>If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.</p>
“/*/WP_I18N_DB_CONN_ERROR*/, $dbhost), ‘db_connect_fail’);
return;
}`Looks like dead_db() is a orphan function.
Forum: Fixing WordPress
In reply to: How to change message “Error establishing a database connection”It seems that it doesn’t work for me neither.
Forum: Fixing WordPress
In reply to: wpdb *something* = generated permalinkI have a catalog like this. It is in Russian and it is still in development phase, so, do not blame, please.
As you can see it is actually not catalog, but a huge single page with great Indizar plugin parsing.
It is ok when number of items is reasonable, but when it grows up, it will become very inconvenient to edit those pages.
So, what I thinking of is to create few tables, a simple interface in admin control panel where operate data, and parse URLs like, e.g., https://mysite.ru/catalogue/radio/portable/mp330 trough some functions, WP filters or actions, and take requested information from DB.
I hope that this explanation is a bit better.
Forum: Fixing WordPress
In reply to: wpdb *something* = generated permalinkActually I think the most close solution for what I am looking for is here.
But there are still open question – what action or filter should I use for my db functions?
Forum: Fixing WordPress
In reply to: How to change message “Error establishing a database connection”@vici: wp-includes/functions.php – dead_db()
Forum: Plugins
In reply to: wp_rewrite problems with custom pluginCheck this out. Might help.
Forum: Plugins
In reply to: [Plugin: WP-SpamFree Anti-Spam] Notice: Undefined index:Well, actually I forgot one more check in line 665 –
if ( is_page() && ( !is_home() && !is_feed() && !is_archive() && !is_search() && !is_404() && !is_front_page() && comments_open()) ) {
Forum: Plugins
In reply to: [Plugin: WP-SpamFree Anti-Spam] Notice: Undefined index:Changed line 665 from
if ( is_page() && ( !is_home() && !is_feed() && !is_archive() && !is_search() && !is_404() && comments_open()) ) {
to
if ( is_page() && ( !is_home() && !is_feed() && !is_archive() && !is_search() && !is_404() && comments_open()) ) {
and add before 1157 additional check
$content_new = $content; if (comments_open()) { }
Forum: Fixing WordPress
In reply to: Thumbnails in [gallery] – not square?!Deleted images and re-upload them all again.
Forum: Plugins
In reply to: [Plugin: WP-SpamFree Anti-Spam] Notice: Undefined index:Entries means posts.
Forum: Plugins
In reply to: [Plugin: WP-SpamFree Anti-Spam] Notice: Undefined index:There is no comment form on pages, only on entries.