Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 1,359 total)
  • Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Thanks. That’s a lot clearer now

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi @jookkoo

    Interesting localhost works fine. This could be a file permissions issue but there isn’t much info to go on.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi @shauney3

    I struggled to see much from the screenshot you shared via tinypic.com. I just see various pop-ups and adverts. It might be worth sharing images with a service such as imgur.com instead going forward.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hey @hmglv

    Diagnosing that problem is going to be rather difficult on the little info we have to go on. My advice is to search the WordPress code base to see if anything shows up for the exact error string you’re seeing. Then try to trace back to see what may be causing the error.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Also, where exactly do you have this .htaccess file? In what directory?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Try moving RewriteBase /socialnetwork/ to the top, directly underneath RewriteEngine On

    For example:

    RewriteEngine On
    RewriteBase /socialnetwork/
    
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
    RewriteRule ^index\.php$ - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Exactly! :)

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Unfortunatly i am not that good with php, so i hope i will be able to create the function myself

    You won’t need to create a function :)

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    This comment was kind of on the right track but as most of the people pointed out in that topic, editing core files is a very bad idea.

    Instead, you should take a look at this article to familiarise yourself with the Template Hierarchy. That way, you can remove the ‘reply’ link and be sure your modifications will remain after you upgrade BuddyPress.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi @bibblehead

    Clicking on ‘Register’ on site, when I am logged out, brings up ‘Create an Account’ but ’email address’ field required is already populated with my user name ‘bibblehead’ and ‘Password’ field already populated with password in usual dots!

    It is your browser doing this. Try clearing your browsing data and you’ll see these dots and your username will be removed.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You are ensuring /socialnetwork/ is prepended to relative paths in the line RewriteBase /socialnetwork/. Why are you manually doing it again in line RewriteRule . /socialnetwork/index.php [L]?

    Try removing just the socialnetwork part from the last line.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    What’s the entire contents of your .htaccess?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    @amalsh

    None of what you have here relates to redirecting HTTP to HTTPS. I’m assuming you know that?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    That should not be an issue whatsoever with 2 John Smiths, two should should up and you click on whichever one you want

    That doesn’t solve the problem with URLs. How can you get first/last name cleanly into a URL?

    example.com/members/john%20smith

    or with some string replacement:

    example.com/members/john-smith

    but what about John Smith 2 or John Smith 3? You’ll need to append something to the URL

    example.com/members/john-smith2
    example.com/members/john-smith3

    That doesn’t look great and John Smith has no choice in what gets appended.

    My personal opinion is usernames are there for a reason and that’s to uniquely identify members in a ‘pretty’ manner (instead of by user ID for example).

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    The username serves multiple purposes:

    1. It’s needed internally for use in URLs etc. First name and surname won’t play nicely in this context because you can’t have spaces etc in URLs.
    2. It’s used as a ‘friendly’ unique identifier. What happens when you have 2 members named John Smith? How do you private message the first John Smith without private messaging the second?
    3. There are probably more purposes I’m missing?
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi @minglonaire

    This whole username, name system in Buddypress is weird

    What do you think is weird about it?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Thanks for sharing @vimes1984. Would be great if you could get it into the official plugin dir!

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You have a semicolon that needs removing (value of Para2)

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You should check your error logs to see if anything is written. Also, what status code are you getting?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    That looks pretty standard to me. everything is sent to index.php as expected so I doubt the problem is with your .htaccess directives. The problem must be elsewhere

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Sorry, I didn’t read the article in full. I just noticed item 9 describes how to do the .htaccess part.

    Do you have anything else in .htaccess that may be conflicting?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hey @amalsh

    Which server are you using? If Apache, do you have .htaccess enabled? If so then how about using mod_rewrite?

    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    This will do this following:

    1. Turn on the rewriting engine
    2. Check if the request isn’t HTTPS and
    3. 301 redirect whatever the current page to the same page but HTTPS.
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi pixskull

    You have a number of options. There are plugins you could install which would help you. Also there is the code-it-yourself approach. It depends on your time, coding skills, requirements etc.

    Check out https://apppresser.com/ as well. It lets you build apps with WordPress.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I’m not an expert on mod_rewrite or regexp but:

    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .register*
    RewriteCond %{HTTP_REFERER} !.*http://manifestationjournal.com/.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://mysite.com/ [R=301,L]

    This tells Apache you want to permenantly redirect all HTTP requests to http://mysite.com/ that a) use the POST method b) include registe, register, registerr, registerrr etc in the path c) are not referred from http://manifestationjorunal.com or don’t have a user agent header

    Assuming nothing else is going on in your .htaccess or http.conf files, if the request that takes place fits this bill above exactly then the redirect will happen, else the thing making the request will be granted access

Viewing 25 replies - 1 through 25 (of 1,359 total)
Skip to toolbar