Forum Replies Created
-
several days passed, these 2 spamers didn’t do anything on my blog. Why they register? What they want to do?
@hnla, thanks a million! It works finally!
@hnla, can’t see your code. you need sorround every line with backticks.
Sorry, I just edited previous post. the error message was because an unexpected “:”, I changed it, the error message gone.
Now the if statement gets all stuffs loaded after the special user’s content, and all other user’s item header become blank. — the reverse result.Thanks, @Boone Gorges, but creating a template will be a even more complicated project for me. Iet me try the would-be-simple way first.
@Roger, @hnla, thanks! but I need more details to get the job done.
Would you please help me check what’s wrong with the following code? the stuffs in the else { } still gets loaded in this user’s profile:
``
“
`….`
`else{ original code }`
“
``
@hnla, I think the problem is the things after “endif”.
I added if bp_displayed_user_id() == 1 , display this, endif, so, after displayed user 1 stuffs, other things after the endif still carry out.
I want to remove things after the endif when userid is 1.Thanks! I will try to manage, and come back later
@hnla, I searched around, still can’t figure out how to write down the code, would you help me settle down this code?
if displayed user ==”ID”, do this, else, carry on as normal.I see, spammers. I checked their IP address– they are the same.
Thanks!@mercime, I am with WP 3.01 BP1.252
there are 2 fields, Primary Language(text box) shows something like “O4hDNZAiV” or “7rj462jpc”, and About me(text Area) shows something like “s2MtUZWWDRJYlj” or “jJxbfMDAPTIJK4r”
This only happens on newly registered members. For old members, even input new information in profile the first time, it still works normal.@boonebgorges, if I want to do this on the header of profile page—
if user ID is 1 or 2, displayABCinstead of
“last update’, “mention this user”….if user is anybody else, display item-meta as normal.
How to do this?OMG, what a super dummy I am !!!
Thanks! Fully dancing after the magical marksok, I changed to bp-custom.php, this time something happens– the code shows up at my blog header area pushing the header picture down 2 lines, and the blogs tab still in profile page. ( I tried both copy/paste the code or hard typing, get the same result. Also tried to change the files Charactor Encoding from us-ascii to utf-8, neither works). Please help!!!
I created an empty bp_custom.php in wp-content/plugins folder, added the above code. but nothing happened. no matter I put in == 0, or == 1, or == 2, the blogs tab is still there.
Maybe because my user profile is at root directory? ( http://mydomain.com/username/ )About #1, I’m using Child theme. According to BP Docs, “if you want to override a template file that is in a sub folder, you must also recreate the sub folder in your child theme”. So, should I copy the whole sub-folder of “/member/single” or “/single” into my child them, or I just create an empty sub-folder of “/member” or “member/single”?
@hnla, Thanks! #3 already covered in your #1 & #2 answers.
For #2, is there any reference or links to learn more about this subject?#1. the header area beside avatar. I want to display some additional text (something like “about me”)
#2. the profile tab — Is it posible to design a layout for one user and not touch other users?
#3. To edit profile tab for one or for all, which file to edit?
Thanks!I’m using child them which only has a style.css, I don’t have this bp_custom.php file in either bp-default them or child them. Can I create this bp_custom.php in Child them folder? Is it ok if this file contain only the above code?
Firstly, to put profilt to root directory : define ( ‘BP_ENABLE_ROOT_PROFILES’, true );
This will get the the url of http://mydomain.com/username
Secondly, multisite issue. Go to Dashboard/Super Admin/Sites/Edit/Permalink Structure
there you’ll see the annoying “blog/” structure. edit it. That’s all.
Thirdly, the problem– What if somebody in your network create a blog “cat”, and your root blog have a category of “cat” ? No solution for this yet, wait WP 3.0.2Got you! Thanks!
@paulhastings0, I see your solution will add an Activity page, that’d be great if want BP fully functional on other themes. But I want less than that. The final result I wish to achive is 2 tabs in root blog’s sidebar showing “Recent Activities” and “Lastest Topics”. When visitor click activity or topics in this tabs, it goes to the activity/topic in the 2nd blog which is BP themed. How?
@r-a-y, thank! That’s a great place to start. Which file should I add this loop?
which one doesn’t work, s2members or the 301 redirects ?
My main blog is not with bp default theme, but I redirected bp links to 2nd blog which is on default bp theme. So, if a plug in fetch and display bp streams on root blog, when user click that title, it will be redirect to the 2nd blog.
s2member sounds great, I will try it, thanks!
Then, what’s the point installing BP on a secondary blog?
I think I figured this out— need to Enable BP multisite.
Actually, after Enable multisite BP, it doesn’t matter which blog it is installed, all stream are connected.