Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter entropicus

    (@entropicus)

    I resolved this and post it so it might be of use to someone else. The expression for “not”, “!” should be stated once before the iteration to test each multiple conditional begins.

    This works perfectly:

    <?php if (!( is_page(181) || is_page(182) || is_page(183) || is_page(184) || is_page(185) || is_page(186) || is_page(187) )) { ?>

    <script type=”text/javascript”><!–
    google_ad_client = “”;
    google_ad_width = 336;
    google_ad_height = 280;
    google_ad_format = “336x280_as”;
    google_ad_type = “text”;
    google_ad_channel = “”;
    google_color_border = “FFFFFF”;
    google_color_bg = “FFFFFF”;
    google_color_link = “6B8F16”;
    google_color_text = “000000”;
    google_color_url = “000000”;
    //–>
    </script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>
    <?php } ?>

    Thread Starter entropicus

    (@entropicus)

    Another approach that seems logical, which avoids using Echo, but doesnt work, is to concatenate the Pages you don’t want the code to show. But this doesn’t work either:

    <?php if(!is_page(181) || !is_page(182) || !is_page(183) || !is_page(184) || !is_page(185) || !is_page(186) || !is_page(187)): ?>
    <!– Google Code –>
    <script type=”text/javascript”><!–
    google_ad_client = “”;
    google_ad_width = 336;
    google_ad_height = 280;
    google_ad_format = “336x280_as”;
    google_ad_type = “text”;
    google_ad_channel = “”;
    google_color_border = “FFFFFF”;
    google_color_bg = “FFFFFF”;
    google_color_link = “6B8F16”;
    google_color_text = “000000”;
    google_color_url = “000000”;
    //–>
    </script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>
    <?php endif; ?>

    Thread Starter entropicus

    (@entropicus)

    I got to the bottom of this, in case this happens to someone else. It seems as if using WP as a mock CMS with lots of pages requires more than the default 8mb memory that PHP installs with.

    So, I added the following line in my .htaccess to override this at the local level:

    php_value memory_limit 16M

    Now, when I go to the Page Management page, all several hundred pages show up!

    Thread Starter entropicus

    (@entropicus)

    It seems as though the page management page itself times out and doesn’t finish loading. I tried this in every browser and the same thing. Could it be the PHP memory itself?

    What is weird is that when I try to remove some of the content I just added to some of the pages, it loads the whole page. Then when I try to add some more content in a newly created page, the page mgmt page never finishes loading.

    entropicus

    (@entropicus)

    I have the same problem, thomask, with 2.1. Before, in 2.0.7 everything was fine. I posted about this a few days ago too, here:
    https://www.ads-software.com/support/topic/105874

    It would be appreciated if someone could address this. Is there a bug in 2.1 with permalinks?

    I am running:
    mysql 4.1.20
    Apache/2.0.59
    PHP Version 5.0.4

    Thread Starter entropicus

    (@entropicus)

    What seems to make this work again is the “Using Permalinks Without mod_rewrite” advice in the codex, and using the string:

    /index.php/%year%/%monthnum%/%day%/%postname%/

    So, what this boils down to is that either mod_rewrite or htaccess doesnt work with 2.1 now, when it was working before. All my other htaccess files elsewhere on my site seem to work fine.

    The wordpress install where this isn’t working is entirely in a subdirectory (for a separate blog on a subdomain), while there is another wp install in the root directory (for the main site) — could this be the cause — multiple installs messing with apache?

    Thread Starter entropicus

    (@entropicus)

    I have no idea what caused this. Something I did when I selected a new theme (one I had for a long time) must have corrupted some file.

    I corrected this just now with the help of this post:
    https://www.ads-software.com/support/topic/44006?replies=2

    Something in one of those files must have gotten corrupted. Uploading them, like that post recommened did the trick. But still, nice to know what caused this.

    Thread Starter entropicus

    (@entropicus)

    thanks a lot!

    I really think that WP makes a better CMS than most CMS systems I have come across.

    Thread Starter entropicus

    (@entropicus)

    I actually did this on one site, but still see loads of c.spam in my spam karma plugin. These spammers, I assume, spam specific files somehow. I think that the only way to neuter this thing is to delete some files.

    I dont know what the possible consequences of this would be though ??

    Thread Starter entropicus

    (@entropicus)

    I actually think that I only want to show ads for certain posts, by their ID numbers. I just dont know the appropriate “if” statement to write, so that if a certain post ID is called, the following code which contains ads is added.

    many thanks in advance

    Thread Starter entropicus

    (@entropicus)

    To shed some more light on this, there is some more about this sort of thing at:
    https://codex.www.ads-software.com/Using_Permalinks (down the page, under “Paged Navigation Doesn’t Work”)

    It looks like htaccess was the cause(somehow?).
    My blog is a subdomain: “blog.example.com”, and the WP install is “example.com/wordpress”. This is configured properly in the options/general.

    I deleted the htaccess file at “example.com/wordpress”, rebuilt the permalinks, and then uploaded the old htaccess file again to “example.com/wordpress”.

    Now, mysteriously, the “page2” navigation works on the categories’ pages, whereas before, the “previous” navigation only seemed to work on the main page.(…that was the whole original problem, summarily)

    Strange thing is, that it worked, but I have no idea why; the htaccess in the “example.com/wordpress” dir, has the exact same info as before(?!)

    That info in the “example.com/wordpress/.htaccess” file is nothing more than (both then and now):
    ——–
    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} !^example.com$ [NC]
    RewriteCond %{HTTP_REFERER} ^(.*)$ [NC]
    RewriteRule ^(.*)$ %1 [R=301,L]

    SetEnvIfNoCase Referer “.*(bad|spamwords).*”BadReferrer

    order deny,allow
    deny from env=BadReferrer
    —–

    Thread Starter entropicus

    (@entropicus)

    I am using a theme which has for its variable “posts_nav_link”

    but when I look at the defult index.php, the variable seems to be “previous_posts_link”

    I am using 1.5.2, but the theme is compatible with this version. When I switch themes and use the default Kubrick, it does the same thing — when you select “previous”, the next page say “not found”. But when I look in my archives, and select a date from there which is previous to the last entries on the page, it displays them.

    I cant figure this one out at all.

    Forum: Fixing WordPress
    In reply to: comment spam
    Thread Starter entropicus

    (@entropicus)

    another thing I noticed is that I deleted:

    wp-comments.php
    wp-comments-popup.php
    wp-comments-post.php
    wp-comments-reply.php
    wp-commentsrss2.php

    and still there is a steady stream of spam [awaiting mod].
    The question is how is this possible?

    Forum: Fixing WordPress
    In reply to: comment spam
    Thread Starter entropicus

    (@entropicus)

    tks for the response.
    I thought about upgrading, but the major changes made me hesitant.

    Forum: Your WordPress
    In reply to: American Soldier

    This is, aesthetically, a very good looking site. Mainly because it will pretty much be a text-intensive site, its good that its on a light (white) bg. But, what is exceptional, is the header image itself.
    (As an aside, I am curious to what font the logo is done in)

Viewing 15 replies - 1 through 15 (of 17 total)