tapiohuuhaa
Forum Replies Created
-
Forum: Plugins
In reply to: [bbp style pack] Date formatThank’s.
Just a small notice.
It is possible to take off avatar from freshness display.
But I didn’t find an option take it off also from topics on the left.
Just tiny consistency issue and that can be taken off with CSS.
Or I just missed the option.Forum: Plugins
In reply to: [bbp style pack] Change Profile formI may look at this at a later stage, but there is a long list !
I would add classes to the front end profile forms.
I would allow Robin to get code as code snippet.
Just create an account to my site and I give full rights to the backend.
I just need to know what file to edit.Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageThis doesn’t anymore relate with your plugin, but adding some content to the bottom, I must use variables.
for normal pages
$content = $content . $toTop.$forums.$adblockInfo;
return $content;
if I used a function, the content became before, for example:$content = $content . add_my_own_content();
no difference
$after=add_my_own_content()();
$content = $content . $after;That had in fact an advance. I put:
$content = $content . $toTop.$forums.$adblockInfo.toBottom2();The function became to the top of the content (link to bottom).
I didn’t need to use other function for that.If fact
add_action( ‘bbp_template_after_single_forum’ , ‘tap_add_breadcrumb’);generate contents before breadcrumbs. In fact that is in this case OK.
I just wondering the order.
I can’t use global variables (seems to be disabled). So I can’t refer into a stand alone variable outside a function.
But can i create an own shortcode and refer to that and the shortcode would be rendered after.
$content = $content .'[my_shortcode]’;
Forum: Plugins
In reply to: [bbp style pack] Change Profile formThe main problem for me is that a registered user can’t change the display name in his profile
I don’t figure that problem. I can set that clicking first “Edit your profile” button.
The one of the available options is to set the display name.
In my mind that belongs to this plugin.Forum: Plugins
In reply to: [bbp style pack] Change Profile formSorry, doesn’t work. I tried
add_action( ‘wp_head’, function () { ?>
<style>
tr.user-first-name-wrap,tr.user-last-name-wrap
{ display:none;}
/* write your CSS code here */</style>
<?php } );No effect. I don’t understand why I can’t set for backend own CSS.
Forum: Plugins
In reply to: [bbp style pack] Change Profile formIf you mean backend profile edit form, they actually have classes, for example
class=”user-nickname-wrap”
You can easily hide elements. I tried to add own CSS but that seems not work for backend, but try Code Snippets
add_action( ‘wp_head’, function () { ?>
<style>/* write your CSS code here */
</style>
<?php } );and set that as “Only run in administration area”
Frontend profile settings miss classes.
If you now want to limit setting, you should allow use only backend way to redine user profile settings, because Robin’s plugin does not have classes in order hide unwanted items.Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageThank’s. Almost correct. Seems that the second argument must always be a function but I offered a string.
I just put strings inside funtions.I put to the strings “To the bottom of the page” in Finnish (“Sivun loppuun”) – that might be a good idea also to your plugin?
With wide screen my site doesn’t need it but using cell phone that is useful.Liks “To the top of the page” (in Finnish “Sivun alkuun”) and “To the bottom of the page” are in my mind useful.
See for example here:
https://www.sanaristikkofoorumi.net/wordpress/forums/topic/foorumin-ulkoasusta-ym/Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageIs there any corresponding method for adding something to the top of these pages.
I tried just a lucky guess, which was wrong:
$bottom1=’Sivun loppuun‘;
$bottom2=’Sivun loppuun‘;
add_action( ‘bbp_template_before_forums_index’ , $bottom1);
add_action( ‘bbp_template_before_single_forum’ , $bottom2);
add_action( ‘bbp_template_before_single_topic’ , $bottom2);BTW. My answer in the first mention page was deleted.
It was quite the same as in the beginning of this topic except these sentences:The code seems to have syntax error but after fixing it works ok. I used Code Snippet plugin in order to test it.
Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageOK. Works. Now I don’t need to alter your code in every new update.
Thank’s.Forum: Plugins
In reply to: [bbp style pack] Change Profile formYou can translate it into german
install poedit
use FTP and
find the file
bbp-style-pack.pot
translate it into german (not need to translate everything)
put the file into folder …/wp-content/languages/plugins/NOT to the language folder of the plugin itself because it will be deleted in the next update!
Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pagefailed
runkit_function_remove (’bsp_add_breadcrumb’);
function bsp_add_breadcrumb () {…get:
Cannot redeclare bsp_add_breadcrumb() (previously declared in /home/sanarist/public_html/wordpress/wp-content/plugins/bbp-style-pack/includes/functions.php:2116)Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pagehttps://php.net/manual/en/function.runkit-function-remove.php
I apparantly can handle this.
Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageIn XCLASS I could redefine certain functions.
Normally I can’t redefine functions.
I don’t remember, if there is possibility in some kind “delete” existing function and rewrite it.
If that is possibile I could do all necessary changes using Code Snippet just “deleting” existing function and redefine it.Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageTypo3 has long references for hooks and XCLASSes, but using Code Snippet long references are not necessary. Long references might be needed, if the added functions are in separate plugins. But in WordPress this can be done easier with Code Snippet plugin.
Forum: Plugins
In reply to: [bbp style pack] New content to the bottom of the pageCould you add hooks:
bbp_get_topic_content_after
bbp_get_reply_content_after
bbp_get_forum_content_afterI can’t redefine
bbp_get_topic_content
bbp_get_reply_content
+
(lycky guess) bbp_get_forum_contentMaybe someone else would be interested those also.
If I remember correct, hooks needs just
function bbp_get_topic_content(){
…
if(is_set(‘bbp_get_topic_content_after’) {
$content=$content.bbp_get_forum_content_after($content);
}
…
}It is almost ten years when I last time made as part-time developer PHP-encoding and I might remember incorrect.
I have made pluging for Typo3 CMS, which uses XCLASSes and HOOKS.