-
mgrmn replied to the topic Importing Categories to Groups in the forum Creating & Extending 11 years, 5 months ago
Got it 🙂 problem was the $cat_id
$category = get_the_category($post_id);
[Read more]
bp_activity_add( array( 'user_id' => (int) $post->post_author,
'action' => apply_filters( 'bp_blogs_activity_new_post_action', $activity_action, $post, $post_permalink ),
'content' => '<a href="' . $post_permalink . '">' .… -
mgrmn replied to the topic Importing Categories to Groups in the forum Creating & Extending 11 years, 5 months ago
I have this within the bp_blogs_record_post function. Ofcourse its not working, can somebody help me on the right track please, thank you very much $cat_id is same id as the group id.
`bp_activity_add( array( ‘user_id’ =>’2′,
‘action’ => ‘New Post’,
‘content’ => ‘<a href=”‘ . $post_permalink . ‘”>’ . $post->post_title…[Read more] -
mgrmn replied to the topic Importing Categories to Groups in the forum Creating & Extending 11 years, 5 months ago
Can somebody tell me where I can find the part the records the activity for posts ?
I would like to modify the part that inserts activity when a post is created.
-
mgrmn replied to the topic BuddyPress Group Page in the forum Installing BuddyPress 11 years, 5 months ago
Go to pages -> Trash -> empty all pages from trash
-
mgrmn replied to the topic Importing Categories to Groups in the forum Creating & Extending 11 years, 5 months ago
Found problem for my first question, dont have the answer it though
Undefined property: BP_Groups_Component::$table_name
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Well basicly you can add conditions or remove conditions.
if (!is_user_logged_in) {
echo "your link";
}so without the else, there is no else, and will not echo out anything if it does not match your condition.
You can read about it here http://php.net/manual/en/control-structures.else.php and here…[Read more]
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Nice.. I am glad it all Finally worked out for ya 🙂
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
There you go…
When you copy and paste code from here the “<– Quotation marks like those are copy and pasted wrongly!
Ill adjust your text widget with your register code 🙂 give me a few secsAll done 🙂 Have fun!
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Yes I did, and replied, its not the code, but rather the code in your text widget.
You probably used something like echo (bloginfo(‘url’) . ‘ which will echo out http, eval and http will have problems so you have to use something like /register-2/ instead -
mgrmn started the topic Importing Categories to Groups in the forum Creating & Extending 11 years, 5 months ago
Ok, I am trying to create groups importing the wp categories (not the subs) using this code, after which i would like to insert new posts created in that category being added to the activity stream. I figured that using the same cat id as group id, would be the simple way of adding it to the group activity stream without to much trouble. (tell me…[Read more]
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Ok updated your functions.php, you added the code after the ?> closing tag at the bottom of your functions.php so, whatever php code you put in your widget would still not be parsed.
Now can do a simple test by just creating a text widget with the following
<?php
echo “Yes, php parsing works”;
?>If the output of that is Yes, php parsing works…[Read more]
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Or give me access to your admin panel (temporary)
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Can you send me your functions.php ? ol4pro at gmail.com (zip it first)
-
mgrmn replied to the topic WP categories to BP groups in the forum Ideas 11 years, 5 months ago
@mercime What if I gave the Groups the same ID as the Categories and then treat all new_blog_posts as an activity_update using Category id as Group id using the bp_activity_add() ? would that be possible ?
-
mgrmn replied to the topic WP categories to BP groups in the forum Ideas 11 years, 5 months ago
That plugin will not insert it into the Activity of a Group but put it into a newly created link on the user navigaiton menu “Blog” http://domain.com/groups/artistas-musica/blog <–
Is there a hack available for making it go straight the the Activity of Group ?
-
mgrmn started the topic WP categories to BP groups in the forum Ideas 11 years, 5 months ago
Not sure if this already possible, it would be great for wp categories to be automaticly added / or able to import into the BP groups, and also if that if a new post has been added into x category, this automaticly be published as an activity in group x.
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Change the the http part, in
echo "<a href='/register-2/'>Register</a>";
so it becomes this using http will give problems do to the eval()
[Read more]
<?php
if ( !is_user_logged_in() ) { /* if the user != logged in */
echo "<a href='/register-2/'>Register</a>"; /* echo the link*/
} else { /* else if user is logged in */
echo "Welcome Back";
} /* closing… -
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Don’t worry,
The first part what you added in functions.php will make sure that we can put in php code into the Text Widget, this is normally not allowed. It will simply not parse the php code. And that is the reason why u don not see the desired results on your screen.
So now you can add a Text Widget and put in PHP code
So now the notice…[Read more]
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Dumb was me, did not read correctly your question (sorry) updated my answer 11 minutes ago, try that, I tested it locally and works fine 🙂 the echo part you can change with your register code.
like
echo '<a href="#">LINK</a>';
I put this on the side bar using the text widget.
-
mgrmn replied to the topic [Resolved] Buddy Registration Link in the forum Creating & Extending 11 years, 5 months ago
Sorry I think, I see what you are trying to do, you are using a default Text Widget from wp admin-> Appearance -> Widgets -> A text Widget with the code you posted?
If so you can do the following
/wp-content/themes/YOURTHEME/fucntions.php (create functions.php it if does not exist)
than add this piece of code to the…[Read more]
- Load More
@mgrmn
Not recently active