Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter Mpampirina

    (@mpampirina)

    Thank you very much, it worked like a charm. I just need to remember it on the next plugin update!

    Thread Starter Mpampirina

    (@mpampirina)

    Hello Thomas,
    Thanks for your answer, I’ll come back to you with more suggestions, I hope soon.

    In my client’s website, I have 77 active image banner ads from local businesses, plus a few google ads spots, and more than 50 placements. It’s …a lot to handle. Both for me and for him.

    One example, imagine making changes on the first placement on the list, then having to scroll all the way down to Save. There are inconsistencies when I Quick edit some Ads and Save. (the column data gets mixed up). The expiration date should be available for quick edit. Maybe with a calendar popping up. (An idea to be explored: to associate an email with an advert and inform them their ad is about to expire…) Lots of little things that would be better described with icons than with words – like ad type and screen type. General interface minimization…

    I have so much in my mind, both on rectifying the situation as is and on a new design approach with enhanced features, that I don’t know where to begin. I miss background ads with two links (docked ads don’t really behave and look that good, I’ve tried them), so I have purchased another plugin to serve them. Alien as it may be wordpress-wise, their interface looks much easier to handle, to turn on and off each individual ad, prettier, simpler, more usable, with all advanced options hidden neatly inside each ad, little descriptive icons carefully placed on hover…

    Clients and developers alike, we are already more or less familiar with different interfaces inside the dashboard, such as custom theme panels and the very popular page building plugins among others, so the level of ‘alien’ is kind of subjective. Personally, I would love to see things like the above in Advanced Ads as I believe that a well designed and user-friendly UI would not only make my life easier, but it would also increase exponentially the perceived value of what I offer to my clients.

    Thread Starter Mpampirina

    (@mpampirina)

    Hello again.

    Yes it is a commercial theme from themeforest (Rocco). I am… not sure I could provide a download link (I have bought it) but you could find one, I’m sure ?? .

    No, no, please don’t write a clean up! It’s fine as it is, at least for me, because I can activate the plugin when i create a new page (which is not often, now that the website has taken its shape), set the categories for the pages, and then deactivate it, using the functionality and having my breadcrumbs work correctly.

    Thread Starter Mpampirina

    (@mpampirina)

    Sure. The code above is taken from my parent template and the link of the website is here: https://goo.gl/hT785G (here is the page i got the screenshot from).

    Well, one interesting fact: Although I have deactivated the plugin, the page categories and tags I previously set, are stored. And when I query for pages with a specific tag, they show up.

    So, at the moment, I have deactivated the plugin in order to have the breadcrumbs, but I use the functionality it provided me before, when it was activated.

    Thread Starter Mpampirina

    (@mpampirina)

    Yes, I just tested it again, and I can confirm that [content field="icsd-teaching"] returns a comma-separated list of post IDs.

    I actually found my way around, by adding the enhanced text plugin which allowed me to inject some php straight into my widget. But adding support for arrays would be a good idea ??

    And just for the sake of clarity and completion, here is what my widget looks like at the moment (it’s ugly, I know, but it works):

    <h4>Πληροφορ?ε?</h4>
    <h5>Κωδικ??</h5>
    [content field="icsd-code"]
    
    <h5>Κατε?θυνση</h5>
    [content field="icsd-area"]
    
    <h5>ECTS</h5>
    [content field="icsd-ects"]
    
    [if flag="icsd-eclass"]
            <h5>E-class</h5>
            [flag]
    [/if]
    
    <?php
    $post_objects = get_field('icsd-teaching');
    if( $post_objects ): ?>
        <h5>Διδ?σκοντε?</h5>
        <?php foreach( $post_objects as $post_object): ?>
            <div class="course-teacher">
                <ul>
                <li><?php $the_thumb = get_the_post_thumbnail($post_object->ID, 'thumbnail');
    if ( $the_thumb == "") {
            $dwidth = 150;
    	$the_thumb .= "<img src='".plugins_url( '../faculty-members/img/default.png', __FILE__ )."' width='".$dwidth."'/>";
    
    			}
    echo $the_thumb;
    ?>
    
    </li>
                <li><?php echo get_the_title($post_object->ID); ?></li>
    
    <li><?php
    $fmemail = get_post_meta($post_object->ID, 'fmemail', true);
    echo eeb_email($fmemail, '<span class="icon, icon-envelope"> E-mail</span>'); ?>
    </li>
                </ul>
    
            </div>
        <?php endforeach; ?>
    
    <?php endif;
    
    ?>

    By the way I think I’m using incorrectly the [if] [flag]. But this may belong to another topic.

    Thread Starter Mpampirina

    (@mpampirina)

    This function is called:

    function mfn_breadcrumbs() {
    
    	global $post;
    	$homeLink = home_url();
    
    	$translate['home'] = mfn_opts_get('translate') ? mfn_opts_get('translate-home','Home') : __('Home','rocco');
    	$translate['you-are-here'] = mfn_opts_get('translate') ? mfn_opts_get('translate-you-are-here','You are here:') : __('You are here:','rocco');
    
    	echo '<ul class="breadcrumbs">';
    // 	echo '<li>'. $translate['you-are-here'] .'</li>';
    	echo '<li class="home"><i class="icon-home"></i> <a href="'. $homeLink .'">'. $translate['home'] .'</a> <span><i class="icon-angle-right"></i></span></li>';
    
    	// Blog Category
    	if ( is_category() ) {
    		echo '<li><a href="'. curPageURL() .'">' . __('Archive by category','rocco').' "' . single_cat_title('', false) . '"</a></li>';
    
    	// Blog Day
    	} elseif ( is_day() ) {
    		echo '<li><a href="'. get_year_link(get_the_time('Y')) . '">'. get_the_time('Y') .'</a> <span><i class="icon-angle-right"></i></span></li>';
    		echo '<li><a href="'. get_month_link(get_the_time('Y'),get_the_time('m')) .'">'. get_the_time('F') .'</a> <span><i class="icon-angle-right"></i></span></li>';
    		echo '<li><a href="'. curPageURL() .'">'. get_the_time('d') .'</a></li>';
    
    	// Blog Month
    	} elseif ( is_month() ) {
    		echo '<li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> <span><i class="icon-angle-right"></i></span></li>';
    		echo '<li><a href="'. curPageURL() .'">'. get_the_time('F') .'</a></li>';
    
    	// Blog Year
    	} elseif ( is_year() ) {
    		echo '<li><a href="'. curPageURL() .'">'. get_the_time('Y') .'</a></li>';
    
    	// Single Post
    	} elseif ( is_single() && !is_attachment() ) {
    
    		// Custom post type
    		if ( get_post_type() != 'post' ) {
    			$post_type = get_post_type_object(get_post_type());
    			$slug = $post_type->rewrite;
    
    			if( $slug['slug'] == mfn_opts_get('portfolio-slug','portfolio-item') && $portfolio_page_id = mfn_opts_get('portfolio-page') )
    			{
    				echo '<li><a href="' . get_page_link( $portfolio_page_id ) . '">'. get_the_title( $portfolio_page_id ) .'</a> <span><i class="icon-angle-right"></i></span></li>';
    			} else {
    				echo '<li><a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a> <span><i class="icon-angle-right"></i></span></li>';
    			}
    			echo '<li><a href="' . curPageURL() . '">'. wp_title( '',false ) .'</a></li>';
    
    		// Blog post
    		} else {
    			$cat = get_the_category();
    			$cat = $cat[0];
    			echo '<li>';
    				echo get_category_parents($cat, TRUE, ' <span><i class="icon-angle-right"></i></span>');
    			echo '</li>';
    			echo '<li><a href="' . curPageURL() . '">'. wp_title( '',false ) .'</a></li>';
    		}
    
    	// Taxonomy
    	} elseif( get_post_taxonomies() ) {
    
    		$post_type = get_post_type_object(get_post_type());
    		if( $post_type->name == 'portfolio' && $portfolio_page_id = mfn_opts_get('portfolio-page') ) {
    			echo '<li><a href="' . get_page_link( $portfolio_page_id ) . '">'. get_the_title( $portfolio_page_id ) .'</a> <span><i class="icon-angle-right"></i></span></li>';
    		}
    
    		echo '<li><a href="' . curPageURL() . '">'. wp_title( '',false ) .'</a></li>';
    
    	// Page with parent
    	} elseif ( is_page() && $post->post_parent ) {
    		$parent_id  = $post->post_parent;
    		$breadcrumbs = array();
    		while ($parent_id) {
    			$page = get_page($parent_id);
    			$breadcrumbs[] = '<li><a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a> <span><i class="icon-angle-right"></i></span></li>';
    			$parent_id  = $page->post_parent;
    		}
    		$breadcrumbs = array_reverse($breadcrumbs);
    		foreach ($breadcrumbs as $crumb) echo $crumb;
    
    		echo '<li><a href="' . curPageURL() . '">'. get_the_title() .'</a></li>';
    
    	// Default
    	} else {
    		echo '<li><a href="' . curPageURL() . '">'. get_the_title() .'</a></li>';
    	}
    
    	echo '</ul>';
    }

    is this any helpful?

    Thread Starter Mpampirina

    (@mpampirina)

    Something I just thought of and it might need to be taken into consideration…The ‘icsd-teaching’ field may contain either an array of post objects or an array of page link, because one course can be assigned to more than one teachers.

    In both cases, the [content field=”icsd-teaching”] displays one or more numbers-ids (depending on the assigned teachers), while the fields inside [pass] display nothing…

    In this light, when I try:

    [pass field="icsd-teaching"]
        [loop id="{FIELD}" type="faculty"]
            [content field="title"]
            [content field="image"]
        [/loop]
    [/pass]

    it displays each and every one of the faculty members, no matter if they are assigned to this course…

    Thread Starter Mpampirina

    (@mpampirina)

    ah. That should work.
    Thanks very much for the quick response.

    Thread Starter Mpampirina

    (@mpampirina)

    It seems sharing to facebook with latin permalinks is also problematic sometimes. For example, the following article cannot be shared correctly:

    https://www.filologikos-istotopos.gr/2013/08/02/sunenteuksi-tou-ufupourgou-paideias/

    Thread Starter Mpampirina

    (@mpampirina)

    The problem is solved. I did deactivate and re-activate all my plugins, with testing after each reactivation. The thing is I didn’t find which plugin caused the initial problem, though I reactivated all of them. Oh well.

    Thank you for your support, everybody.

    Thread Starter Mpampirina

    (@mpampirina)

    @esmi Interesting approach. I tried what you suggested. With functions.php empty (only <?php ?> inside) and the footer gone, the site crashes on logout, giving a blank screen. I expected it to work, but it crashes. No errors on logs so far.

    Thread Starter Mpampirina

    (@mpampirina)

    Good thought, but no. I suspected that one of the functions might be bugged, so I removed comicpress_copyright and tested the site again.

    Blank Screen.

    Then I put back that function and remove the favicon one. Tested again
    …and got blank screen.

    Then I removed both the functions, and I just left the opening and closing tags of the file <?php and ?> . Tested again and guess what….
    Blank screen!!!!!

    So it’s not the custom functions causing the problem. It’s something else, but what the heck is it?

    Thread Starter Mpampirina

    (@mpampirina)

    That’s why i ‘m so curious to know if anybody has any idea that can help.

    The file ‘functions.php’ has just two mere functions, one for a favicon, and one to calculate the copyright years.

    And footer.php is an exact copy of the parent theme, just to make sure I haven’t created a bug myself in the code.

    But if I remove any of the two files from the child-theme folder, the site works fine. Otherwise, I get a blank screen of death on logout.

    The debugging mode is on, in wp-config.php yet I see no errors on the screen. Just the blank screen. Also the error_log file in my host (bluehost) is completely empty…

    It’s unexplainable. I think, I’m loosing my mind here! o_o

    Thread Starter Mpampirina

    (@mpampirina)

    Read again.

    The footer.php used to have some code for copyrights, but as of now, for testing reasons it is an exact copy of the unedited parent theme.

    Only the footer.php is an exact copy. The functions.php is what I posted on a code block in my initial post

    Thread Starter Mpampirina

    (@mpampirina)

    bhpress, that is exactly what I did earlier, when I said

    …and debugging mode is active but I got no messages whatsoever

Viewing 15 replies - 1 through 15 (of 17 total)