Forum Replies Created

Viewing 10 replies - 46 through 55 (of 55 total)
  • How to show badges under the user avatar in bbpress. When i searched for it I found several people asking for it but no great logic answer.
    I have done this and can provide som code on how I did it.

    Thread Starter SiKth

    (@sikth)

    I’m very happy with this answer!

    I think it will take me 1-3h to go though all members and just activate the badges, this is not a problem, rather then create a script.

    Maybe I can execute the hook when someone is uploading a profile picture from my current solution, or add some information in the profile. I look in to it.

    Thanks ??

    Thread Starter SiKth

    (@sikth)

    Thank you! Works great!

    Thread Starter SiKth

    (@sikth)

    The login_name works! And thats good enough for me ?? Thank you very much!
    5 star coming..

    Here is the link: https://mroffshore.se/om-2/

    Thread Starter SiKth

    (@sikth)

    Well, its getting better ??

    Now the [starbox] work as expected. But not the [starbox id=X]. No error message, just looks strange, listed, like its without CSS. Tell me if you want a screenshot.

    From earlier post, the PHP solution with <?php echo starBoxShow( X ); ?> works, and if i put the code (Listed below for reference) in my functions.php file and then <?php echo starBoxShow( <ANY NUMBER> ); ?> in a page template, then the [starbox id=X] works on the page with this template.
    Tried to put 0 in the php, then the pageauthor shows and all the [starbox id=X] works great.

    I am very thankful for this support! Fantastic! ??

    add_action('init','starBoxCustom');
    
    function starBoxCustom(){
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->custom = true;
    }
    
    function starBoxShow($user_id) {
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Classes_Tools');
    
            $theme = ABH_Classes_Tools::getOption('abh_theme');
    
            $str = '';
            $str .= '<script type="text/javascript" src="' . _ABH_ALL_THEMES_URL_ . $theme . '/js/frontend.js?ver=' . ABH_VERSION . '"></script>';
            $str .= '<link rel="stylesheet"  href="' . _ABH_ALL_THEMES_URL_ . $theme . '/css/frontend.css?ver=' . ABH_VERSION . '" type="text/css" media="all" />';
            $str .= ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox($user_id);
    
            return $str;
        }
    Thread Starter SiKth

    (@sikth)

    Hi, sorry, same error.
    I get it when I update the page. If I remove the plugin, save the page with the shortcode, activate the plugin and show the page everything is there but totally without css.

    EDIT: Off course I get the same error when I’m reload the page frontend.

    Thank you!

    Hi thisismyalterego!
    This works like a charm! Thank you so much! I been dealing with this for weeks, and this week only wondered around feeling sad this is not working, but then, I found you! ??

    There is only one thing, the lightbox, colorbox or prettyphoto, what ever you call it. This only works on page 1, then it breaks. You said you have solved this, mind sharing this solution?

    Thanks again!
    Fredrik, Sweden

    Thread Starter SiKth

    (@sikth)

    Yeah i know ??
    I can work around this problem if I just could remove the login form from blocked pages. The registration form can i remove just by clicking a check box in the settings, but the login form is harder.
    I dont have to do all this I could remove it instead.

    Thread Starter SiKth

    (@sikth)

    Yes I do ??
    Thanks you very much!
    I’ll look in to it!

    Thread Starter SiKth

    (@sikth)

    okey, here is the tag that sets the output image in functions.php!
    How do Image this one specially chosen image, means NOT random!

    $insertpic = '<img class="Thumb" alt="'.$picture["name"].'" src="'.nggallery::get_thumbnail_url($picture["pid"]).'"/>';


    Here is some more if you like:

    $out = '<div class="ngg-albumoverview">';
    	foreach ($picturelist as $picture) {
    		$args['gallerytag'] = $picture["slug"];
    		$link = $nggRewrite->get_permalink($args);
    
    		$insertpic = '<img class="Thumb" alt="'.$picture["name"].'" src="'.nggallery::get_thumbnail_url($picture["pid"]).'"/>';
    		$tagid = $picture['tagid'];
    		$counter  = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpic2tags WHERE tagid = '$tagid' ");
    		$out .= '
    			<div class="ngg-album-compact">
    				<div class="ngg-album-compactbox">
    					<div class="ngg-album-link">
    						<a class="Link" href="'.$link.'">'.$insertpic.'</a>
    					</div>
    				</div>

Viewing 10 replies - 46 through 55 (of 55 total)