Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Same issue here.. Comment counts are not showing up for Facebook comments. I checked and get_comments_number() function is included in my comments.php file.

    Thank you, supertomate!! To help clarify, if anyone else is having the same problem, in the Plugin Editor of WordPress open the admin-tab-info.php file and comment out (i.e <!— …. –!>) from line 17 until the bottom of the file. Your file will look like this:

    <h2><?php _e('Info & Support', 'mfbfw'); ?></h2>
    
    				<p><?php _e('<a href="https://fancy.klade.lv/home">FancyBox</a> developed by <a href="https://kac.klade.lv/">Janis Skarnelis</a>, ported to WordPress by <a href="https://moskis.net/">Jos&eacute; Pardilla</a>. Licensed under the <a target="_blank" href="https://en.wikipedia.org/wiki/MIT_License">MIT License</a>.', 'mfbfw'); ?></p>
    
    				<p><?php _e('As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)', 'mfbfw'); ?></p>
    
    				<ul style="list-style-type:disc;padding-left:15px;">
    
    					<li><?php _e('If you have problems or questions about FancyBox, please start with these links: <a href="https://fancy.klade.lv/howto">How-To</a> & <a href="https://fancy.klade.lv/faq">FAQ</a>.<br />If that does not help, go to <a href="https://groups.google.com/group/fancybox">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question.', 'mfbfw'); ?></li>
    
    					<li><?php _e('If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href="https://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/">leave a comment here</a> explaining the problem.', 'mfbfw'); ?></li>
    
    				</ul>
    
    				<br /><small><em><?php _e('<strong>Note:</strong> Having a cache plugin may prevent changes from taking effect immidiately, if this happens clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></em></small><br /><br />
    
    				<!-- <div style="background-color:#FFFFE0;border:1px solid #E6DB55;padding:0 .6em;margin:5px 15px 2px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;height:110px;float:left;text-align:center;width:200px">
    					<p style="line-height:1.5em;"><?php _e('If you use FancyBox and like it, buy the author a beer!', 'mfbfw'); ?></p>
    					<form id="donate_form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    						<input name="cmd" value="_donations" type="hidden">
    						<input name="business" value="[email protected]" type="hidden">
    						<input name="item_name" value="FancyBox" type="hidden">
    						<input name="amount" value="10.00" type="hidden">
    						<input name="no_shipping" value="0" type="hidden">
    						<input name="logo_custom" value="https://donate.png" type="hidden">
    						<input name="no_note" value="1" type="hidden">
    						<input name="currency_code" value="EUR" type="hidden">
    						<input name="tax" value="0" type="hidden">
    						<input name="lc" value="LV" type="hidden">
    						<input name="bn" value="PP-DonationsBF" type="hidden">
    						<input type="image" border="0" src="<?php echo FBFW_URL ?>/css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
    					</form>
    				</div>
    
    				<div style="background-color:#FFFFE0;border:1px solid #E6DB55;padding:0 .6em;margin:5px 15px 2px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;height:110px;float:left;margin-left:10px;text-align:center;width:200px">
    					<p style="line-height:1.5em;"><?php _e('The author of this WordPress Plugin also likes beer :P', 'mfbfw'); ?></p>
    					<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    						<input type="hidden" name="cmd" value="_s-xclick"/>
    						<input type="hidden" name="hosted_button_id" value="3878319"/>
    						<input type="image" border="0" src="<?php echo FBFW_URL ?>/css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
    						<img height="1" width="1" border="0" alt="" src="https://www.paypal.com/es_ES/i/scr/pixel.gif" />
    					</form>
    				</div>
    
    				<div style="background-color:#9DD1F2;border:1px solid #419ED9;padding:0 .6em;margin:5px 15px 2px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;height:110px;float:left;margin-left:10px;text-align:center;width:200px">
    					<p style="line-height:1.5em;"><a href="https://twitter.com/moskis/"><?php _e('Follow me on Twitter for more WordPress Plugins and Themes', 'mfbfw'); ?></a></p>
    					<img height="16" width="16" border="0" alt="" src="<?php echo FBFW_URL ?>/css/img/extra_twitter.png" />
    				</div> --!>

    woo hoo!! Kalee! I love you!! You just fixed everything! I’ve been pouring through code and code and more code — rewriting JS, CSS, PHP, and all it was was a checkbox!!

    I too always change my permalinks to %postname%.. great find.. I am forever in your debt!!

    Another mystery solved by the forum and the kindness of strangers! Cheers! — should definitely mark this one “RESOLVED!”

    Wow — OK — back again — so I got the pagination in the galleries to work but it is still broken in the “Album Pagination”.. I’m using the custom field “ngg_paged_Galleries” in my WP Page template for my photos with value of the number of galleries per page to add pagination to my album page.

    Let me know how you do with your problem, kalee and maybe something you figure out can help me..

    Hey Kalee,

    Yes! I did finally get it all to work! It was actually by chance, though, that the pagination started working and then I realized that whatever did actually made the pop-up images work too so I had to disable FancyBox because I was getting duplicate pop-up images (I saw several posts about that on here too.. I could now go back and help them fix that problem as well! LOL)

    My first problem was the configuration of my albums and galleries. I may have missed but I didn’t see any documentation whatsoever on the correct setup of this plugin. Through my searches I found and followed these instructions (https://www.vuthy.com/blog/2008/11/23/guide-to-nextgen-gallery-plugin-album-and-gallery/) to the letter and it solved most of my issues — EXCEPT for the pagination!

    Pagination, for me, started working when I was playing around with some of the Options settings. Under “Options” > “Effects” I’ve found that if I change the effect to any other setting in the drop-down besides “Shutter” the pagination does NOT work. When set to “shutter” it works great.

    This plugin is really useful — even more so after the guide at the link above!! Hope this helps, Kalee!

    OK — I got the image pop up to work by installing the “FancyBox Plugin for WordPress”

    Did I miss this somewhere, or is it just not mentioned in the documentation?

    Any luck here, Kalee?? I also have the same problem, plus when images are clicked instead of showing full screen as overlays with the dimmed background they load in a blank window.

    I thought it was related to my theme and style.cc, as I wrote it from scratch and ditched all the default TwentyTen theme CSS, but I tried changing back to the default theme with no luck.

    Oh — and whether it matters or not I’m not sure.. but I have my photo gallery inserted into a page, not a post.

    https://dynamictactical.org/photos/
    (temporary link)

    Thoughts, anyone?

    Thread Starter ryanrayla

    (@ryanrayla)

    Hey Guys — just saw this and wanted to respond… the answer is “NO”.. I never did get a response or figure this out.. It was too advanced for me so I just added a mini-thumbnail that I made myself into the body of the post and used that as an image for my facebook share preview.. This seems like a really hot search topic so hopefully someone else will come up with the solution! The problem is that the usually the ones searching are usually those who don’t know how to fix it, LOL!

    Forum: Fixing WordPress
    In reply to: Show post number
    ryanrayla

    (@ryanrayla)

    Thanks a MILLION SRJM!!

    Let me repeat how this works and elaborate and also explain how to change the assigned post number from oldest last/newest first.

    Create a new function in the Functions.php as follows

    function Get_Post_Number($postID){
    	$temp_query = $wp_query;
    	$postNumberQuery = new WP_Query('orderby=date&order=<strong>DESC</strong>&posts_per_page=-1');
    	$counter = 1;
    	$postCount = 0;
    	if($postNumberQuery->have_posts()) :
    		while ($postNumberQuery->have_posts()) : $postNumberQuery->the_post();
    			if ($postID == get_the_ID()){
    				$postCount = $counter;
    			} else {
    				$counter++;
    			}
    	endwhile; endif;
    	wp_reset_query();
    	$wp_query = $temp_query;
    	return $postCount;
    }

    (Change above bolded ASC to DESC if you want to see the numbers in reverse (latest post as highest number).)

    Then in the index.php (or page template), anywhere after “<?php if (have_posts()) : while (have_posts()) : the_post(); ?>” just add the following code wherever you want the Post # to show up.

    <?php $currentID = get_the_ID(); ?>
    <?php $currentNumber = Get_Post_Number($currentID); ?>
    
    <?php echo $currentNumber; ?>

    Good luck, everyone!!!

    Forum: Plugins
    In reply to: Post ID shown in Post Title
    ryanrayla

    (@ryanrayla)

    Found this — hope it helps

    Create a new function in the Functions.php as follows

    function Get_Post_Number($postID){
    	$temp_query = $wp_query;
    	$postNumberQuery = new WP_Query('orderby=date&order=<strong>DESC</strong>&posts_per_page=-1');
    	$counter = 1;
    	$postCount = 0;
    	if($postNumberQuery->have_posts()) :
    		while ($postNumberQuery->have_posts()) : $postNumberQuery->the_post();
    			if ($postID == get_the_ID()){
    				$postCount = $counter;
    			} else {
    				$counter++;
    			}
    	endwhile; endif;
    	wp_reset_query();
    	$wp_query = $temp_query;
    	return $postCount;
    }

    (Change above bolded ASC to DESC if you want to see the numbers in reverse (latest post as highest number).)

    Then in the index.php (or page template), anywhere after “<?php if (have_posts()) : while (have_posts()) : the_post(); ?>” just add the following code wherever you want the Post # to show up.

    <?php $currentID = get_the_ID(); ?>
    <?php $currentNumber = Get_Post_Number($currentID); ?>
    
    <?php echo $currentNumber; ?>

    Good luck!!!

    Awesome! Thanks for your help, whooami and figaro!

    WOW! I LOVE GoDaddy.com!!! There was a restore feature in my hosting control panel with an image of my files from yesterday. I just clicked TWO buttons and fixed a month’s worth of work that I lost during the upgrade!!!

    To be clear, if I simply rename the directory from “Default” to something else, will that prevent this from happening again? Will any links be broken in my site if I do that? Will anything else need to be reconfigured?

    Thanks,
    Ryan

    The exact same thing just happened to me. Wow — This is a very big problem with the auto-upgrade. We need to have a way to save custom themes “as” when we make changes to the default.

    Hey Spadin!

    Great plugin, I just noticed that it only adds meta tags for audio. Is there a way we could develop this concept further to include video and the assigning of video and image image meta tags as well for specific posts? I think this is why links I post to Facebook never show the correct preview from my blog.

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