-
epaulosky started the forum topic Comparing Docs in the group BuddyPress Docs: 13 years, 5 months ago
When i compare revision and it shows the two docs, they are displayed in the html mode and html tags are scattered throughout.
Is there a way to change it so that they are displayed in the “visual” mode so that there are no html tags -
epaulosky posted on the forum topic Selected doc displaying wrong info in the group BuddyPress Docs: 13 years, 5 months ago
that worked! thanks alot!
-
epaulosky posted on the forum topic Selected doc displaying wrong info in the group BuddyPress Docs: 13 years, 5 months ago
i did it by modifying the plugin itself. here are the snippets from the two files that i modified addon-hierarchy.php ` function __construct() { // Make sure that the bp_docs post type supports our post taxonomies add_filter( ‘bp_docs_post_type_args’, array( $this, ‘register_with_post_type’ ) ); // Hook into post saves to save any taxonomy terms.…[Read more]
-
epaulosky posted on the forum topic Selected doc displaying wrong info in the group BuddyPress Docs: 13 years, 5 months ago
the URL is /docs/ the title of the document who’s tab is currently selected.
but it is displaying the info of it’s child document.
i thought that maybe it was calling URL of the child, but its not….
-
epaulosky posted on the forum topic Selected doc displaying wrong info in the group BuddyPress Docs: 13 years, 5 months ago
it didnt show, but right under where you add the tab for the current_doc i call
do_action( ‘bp_docs_children_tab’ )
…i dont know what ‘backticks’ are
-
epaulosky posted on the forum topic Selected doc displaying wrong info in the group BuddyPress Docs: 13 years, 5 months ago
for the children, i made a duplicate of you “show_children()” in the addon_hierarchy.php file and modified the end of it to look like so:
$html = ''; if ( !empty( $child_data ) ) { foreach( $child_data as $child ) { $children_html = ' <a href="' . $child . '">' . $child . ' </a>'; echo $children_html; }
then i did… -
epaulosky posted an update 13 years, 5 months ago
backticks fdsfsd backticks
-
epaulosky started the forum topic Selected doc displaying wrong info in the group BuddyPress Docs: 13 years, 5 months ago
so i’ve added the parents and children links as tabs such as when you click on a document, the name of it’s parent doc appears as a tab to the left and the names of it’s children appear as tabs to the right. The only problem is that is that the “current” doc isn’t loading […]
-
epaulosky joined the group BuddyPress Docs 13 years, 5 months ago
-
epaulosky posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 13 years, 6 months ago
i am adding the page by going to the pages section in the dashboard and simply adding a new page. In the html for that page i embed a php file. That makes the php page independent of buddypress. I guess a better way of looking at it would be, if i accessed an independant […]
-
epaulosky posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 13 years, 6 months ago
i created a buddypress page and that page embeds a php file to display, for testing purposes i just want that to display the users id. the file is called myphp.php and i have it in the buddypress directory. im new to php so i’m not sure how to do this. i feel like im […]
-
epaulosky posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 13 years, 6 months ago
can someone help me out?
i’m not sure what to do, do i need to include a php file? do i need to put my php file in a specific directory?
-
epaulosky posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 13 years, 6 months ago
that was my typo in the post, i did have $bp in my code.
i just tried bp_loggedin_user_id()
and i got this.
Fatal error: Call to undefined function bp_loggedin_user_id()
-
epaulosky started the forum topic Get Logged In Username in the group How-To and Troubleshooting: 13 years, 6 months ago
I’ve searched and have tried to do this but have been unsuccessful.
Right now im just trying to get the user id.
the code i’m trying is:function get_user(){
global $bp;
$username = $->loggedin_user->id;
echo $username;
}get_user();
i get nothing printed out.
-
epaulosky joined the group How-To and Troubleshooting 13 years, 6 months ago
@epaulosky
Not recently active