Muhammad Muhaimin
Forum Replies Created
-
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Line Wrap – line numbers don't follow linesOh, that’s not good.
I tried that too.
All the line numbers sticked to the top, not distributed properly for each line.Forum: Plugins
In reply to: [Crayon Syntax Highlighter] PgSQL, Black text over Black background?Yay!
it is fixed in version 2.3.0.Oh no, apparently this forum does not support multiple spaces.
What I want to type is:
str_replace( "<double space>", " ", ...
Forum: Plugins
In reply to: [bbPress - Private Replies] How to make the attachments private tooI’ve found it!
GD bbPress Attachments plugin use 100 for the priority of the ‘bbp_get_reply_content’ hook.
And your plugin use 0.
So I simply set it higher than 100, and it works.May I set it to [resolved]?
Forum: Plugins
In reply to: [Sweet Captcha] Throw notice: wp_enqueue_style was called incorrectlyOh, yes, I tried a fresh wordpress installation too, and I got this error:
Warning: fsockopen(): unable to connect to https://www.sweetcaptcha.com:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\xampp\htdocs\wordpress\wp-content\plugins\sweetcaptcha-revolutionary-free-captcha-service\library\sweetcaptcha.php on line 73
Couldn’t connect to serverForum: Plugins
In reply to: [Sweet Captcha] sweetcaptcha dont workI don’t know.
You didn’t mention any details about your problem.
Have you registered to get Application ID, SweetCaptcha Key and SweetCaptcha Secret?From the above story, I think did_action() is useful to recognize pages.
Content Aware Sidebars is not compatible with the BP Group pages. Maybe we can use this one:
did_action(‘bp_before_group_header’);For example:
$bp_group = did_action(‘bp_before_group_header’);
if ($bp_group) {
// do sidebar changing
}Is there any chances to do it?
I use both BuddyPress and bbPress.
Simple Facebook Connect plugin can replace WP avatar with FB profile picture if a user has connected his/her WP account with FB account in profile settings page.
This FB profile picture is displayed in toolbar, Sidebar Login plugin, posts, comments, and bbPress, but not in BuddyPress.So I modified functions.php in my child theme.
We can get FB profile picture URL if we know its FB user ID.
And we can get FB user ID if we know its WP user ID.
But there is no single way to get WP user ID for all BuddyPress pages. Every component has its own way, even in one page.
In activity post and comment post forms, they use bp_loggedin_user_id().
In other components, usually a global variable is used.
For example:
In members directory
global $members_template;
$user_id = $members_template->member->id;
In activity streams
global $activities_template;
$act_uid = $activities_template->activity->user_id;
$com_uid = $activities_template->activity->current_comment->user_id;But after I used preg_replace() for user avatar in some components, it also changed avatars in other places, like sidebar.
I didn’t like it, so I needed some limits for every avatar changes.
Then I found a WP function do_action() is used in some places in BuddyPress.
With function did_action(), we can retrieve the number of times an action is fired.
So I used them as my limits. One did_action() before the component, and one did_action() after the component.Forum: Plugins
In reply to: [Crayon Syntax Highlighter] How to indent?Have you tried Netbeans?
You can press Alt+Shift+F to spruce up your codes.
There is also NppAutoIndent Plugin for Notepad++, but I haven’t tried it.Any web based one?
For JS and HTML: https://jsbeautifier.org/Expecting a WP plugin that could do it?
Yeah, I hope it too. I know it’s a hard work to do.Forum: Plugins
In reply to: [Crayon Syntax Highlighter] How to indent?I think every time we press the [Tab] button in most IDEs, it becomes some [space] characters.
Just copy your source codes from your IDE to the crayon editor, then you will get the indents.
Check this out: https://widyagama.ac.id/informatika/komunitas/grup/pemrograman-web/forum/topic/tutorial-html-pendahuluan/#post-574Forum: Plugins
In reply to: [GD bbPress Attachments] Overlapping attachment linksWill this be fixed in the next version?
Forum: Plugins
In reply to: [Envolve Chat] Cannot save double dot domain namesJames had replied me:
“If you just leave the entire domain field blank, it should work for you.”Thanks so much.
I got the same problem.
So maybe the groups and forums are not singular or archive, maybe they are something different.
Do we have to do a manual “add_filter”?
I hope not.Forum: Plugins
In reply to: [BuddyPress Activity Plus] Activity stream not automatically updatingYes, I experienced the same problem.
When any media inserted, it won’t refresh automatically.
The automatic refresh will only work if I use its original function: text only, without media.Is it a bug of newest version of BP Activity Plus?
Recently I have another problem with a plugin. I tried many changes to the Dashboard, and I found that the problem is because of the theme I used. The problem was fixed when I used default WP theme. I like my previous theme, but I cannot find any other solutions.
So I tried the BP Activity Plus funtionality again with default WP theme. Unfortunately, I still have to do manual refresh.
Maybe, I should give up for now, since there haven’t any solutions everywhere yet.