Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hey luda!

    1:
    I will check this out.

    2:
    You have to extend your themes functions.php file. You can find an example here:
    https://www.ads-software.com/support/topic/recent-forum-posts-widget?replies=4

    3:
    There is a hook which allows you to add your own information after the author name of a post. You have to extend your themes functions.php file as well for it. Try this for example:

    add_action('asgarosforum_after_post_author', 'my_function', 10, 1);
    
    function my_function($author_id) {
    	$user_info = get_userdata($author_id);
    	echo '<br /><a href="https://failtrafic.ro/author/'.$user_info->user_login.'/">Profile</a>';
    }

    4:
    What do you mean with editors? Topic/thread creators?

    5:
    You can help to create a romanian translation for Asgaros Forum on this site:
    https://translate.www.ads-software.com/locale/ro/default/wp-plugins/asgaros-forum
    Please contact me in the here if you want to be a Project Translation Editor (PTE) for Romanian.

    6:
    This is definitely NOT planned because it has nothing to do with a forum plugin. ??

    Thread Starter Iuda

    (@iuda)

    1. ok, withi mention to delete reply button at the top, is usless ??

    2. i will try

    3. works great

    4. at my site, edithors and administrators have role to moderate. authors, contributors don;t have this role.

    5. yes, i will try

    8.ok. would confirm the rule that the more it’s loaded with both a plugin will be weaker.

    Thread Starter Iuda

    (@iuda)

    4 Problem https://i.imgur.com/4Bbf24Q.png I don’t want to apear “Recent forum posts”

    Plugin Author Asgaros

    (@asgaros)

    You can set an empty title attribute:
    [widget type="AsgarosForumRecentPosts_Widget" title=" "]

    Thread Starter Iuda

    (@iuda)

    Plugin Author Asgaros

    (@asgaros)

    4:
    Normally moderators are highlighted with a green color and administrators with a red color. Moderators have no access to the forum options in the administration area yet. Maybe I will change this.

    title issue:
    I think you have to hide it with CSS. Can you put some div around the widget-call?

    For example:

    <div class="asgarosforum-widget">[widget ......]</div>

    This would allow you to hide the title for this widget via CSS:
    .asgarosforum-widget .widget-title { display: none; }

    Thread Starter Iuda

    (@iuda)

    4. this works

    .sidebar .wpb_wrapper .widget-title {
        display: none;
    }

    I forgot to ask, , how many replys will show in this widget ?

    Later Edit: links in widget dosen’t work. https://failtrafic.ro/?view=thread&id=1#postid-1

    The corect link is this https://failtrafic.ro/forum/?view=thread&id=1#postid-1

    3. problem. this author https://failtrafic.ro/author/peter-pan/ with “-” in user name. the profile forum produce this link https://failtrafic.ro/author/Peter%20Pan/

    Plugin Author Asgaros

    (@asgaros)

    3:
    Maybe you can try this:

    add_action('asgarosforum_after_post_author', 'my_function', 10, 1);
    
    function my_function($author_id) {
    	$user_info = get_userdata($author_id);
    	echo '<br /><a href="https://failtrafic.ro/author/'.$user_info->user_nicename.'/">Profile</a>';
    }

    4:
    Oh, i forgot this. In the widget you have to define on which page your forum is located. The same with the amount of replys …

    May I ask why you cant use the normal widget on your side? The normal text widget is working too?

    Thread Starter Iuda

    (@iuda)

    4. Yes, normal widget works well.

    add_shortcode( 'widget', 'my_widget_shortcode' );
    	function my_widget_shortcode( $atts ) {
    
    	// Configure defaults and extract the attributes into variables
    	extract( shortcode_atts(
    		array(
    			'type'  => '',
    			'title' => '',
    		),
    		$atts
    	));
    
    	$args = array(
    		'before_widget' => '<div class="box widget">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<div class="widget-title">',
    		'after_title'   => '</div>',
    	);
    
    	ob_start();
    	the_widget( $type, $atts, $args );
    	$output = ob_get_clean();
    
    	return $output;
    }

    where to edit ? this is the corect way https://failtrafic.ro/forum/

    Thread Starter Iuda

    (@iuda)

    a solution ?

    Plugin Author Asgaros

    (@asgaros)

    You hast have to add two additional parameters:

    [widget type="AsgarosForumRecentPosts_Widget" title=" " number="2" target="1281"]

    number: amount of replys
    target: the ID of your forum page

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Minor glitches’ is closed to new replies.