Search

bbPress Showcase » Plugins by _ck_

  1. wlz0072
    User has not uploaded an avatar

    member
    Joined: Jul '10
    Posts: 32

    offline

    _ck_ - 5 分钟 ago  » 
    By the way, sorry if I sound like I was treating you like a novice, I just read your main page and realized you know what you are doing!
    Do you have anything special in the .htaccess file in the bbpress directory?

    No, there is no .htaccess file in bbpress directory.

    Posted 1 year ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Oh I just discovered something unrelated but very bad.

    Your templates have a web virus in them, at least the bbpress side.

    Go look in header.php front-page.php and probably others.

    You'll see something like this in them:

    <script language="javascript">document.write('<style> #a1dd122 	{		margin: -40000px;		position: absolute;		text-align:right;	} </style>');
    						</script><a href="">..... 20mg</a>

    You probably got the template from one of the fake sites that has been infected (or someone copied them from there onto another site).

    Always search for document.write and eval in templates. They should never appear.

    Posted 1 year ago #
  3. wlz0072
    User has not uploaded an avatar

    member
    Joined: Jul '10
    Posts: 32

    offline

    Oh, yes there are something like that.

    I deleted them right now.

    Posted 1 year ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Ah, I found a related problem.

    On your front page, when you view source, you get a blank line before the doctype

    (blank)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang=" ">

    But not on any other page.

    That is very strange.

    Can you please copy the first few lines of the header.php file here (between backticks)

    If I recall correctly, doctype must be the absolutely first line with nothing before it.

    Posted 1 year ago #
  5. wlz0072
    User has not uploaded an avatar

    member
    Joined: Jul '10
    Posts: 32

    offline

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>>

    Posted 1 year ago #
  6. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    That's really interesting.

    So what is injecting the two characters.

    When I download the raw page in binary and examine it, I see two characters before the <!DOCTYPE

    20 0A

    Which is a space and a linefeed (newline).

    So if the PHP template isn't putting it there, what is?

    And why only on the front page?

    Posted 1 year ago #
  7. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Have you edited any other bbPress file for any reason?

    Just your templates and bb-config.php right?

    And you are running 1.0.2 which you got from bbpress.org?

    Posted 1 year ago #
  8. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    bbPress has a "safe mode" (which I asked them to implement)

    Temporarily put this into your bb-config.php file

    $bb->safemode=true;

    (also while you are there make sure there are no spaces at the end of bb-config.php after the ending ?>)

    Posted 1 year ago #
  9. wlz0072
    User has not uploaded an avatar

    member
    Joined: Jul '10
    Posts: 32

    offline

    Ok, Ill try this.

    Posted 1 year ago #
  10. wlz0072
    User has not uploaded an avatar

    member
    Joined: Jul '10
    Posts: 32

    offline

    But there is still a blank line before
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    Posted 1 year ago #

RSS feed for this topic

Post a reply to “BBpress language switcher: English not selectable” »

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
39 users online from in the past 30 minutes. 15 bots 23 guests 1 members: mccawphoto
257 views today 7,784 yesterday 14,010 peak. Most at once 42 today 63 yesterday 131 peak. Visited today: mccawphoto
2,240 posts in 380 topics over 63 months by 425 of 1,992 members. Latest: shairah27, Augustine01, MichaelGomez