EnlightenedShadow
Forum Replies Created
-
Forum: Plugins
In reply to: Looking for a Bid Proposal PluginThat looks really promising. Thanks. I’ll take a look at on a fresh install soon.
Forum: Fixing WordPress
In reply to: if empty check on wp_list_bookmarksSmall update. It’s all working fine. Thanks again for the help. I hope to one day know enough PHP tricks to get stuff done on my own lol. Until then, glad there are people out there who are smarter than me. ??
Forum: Fixing WordPress
In reply to: if empty check on wp_list_bookmarksThat did the trick! Sorry it took so long to respond, I was away. Simple syntax mistake lol. Thanks a ton. Now I just got to add the else statement to display the links when there are links.
Forum: Fixing WordPress
In reply to: if empty check on wp_list_bookmarksOK trying to run this code:
<?php if( ! wp_list_bookmarks('category_name='.$userestimates.'&echo=0) ) { echo "<p>You don't have any estimates yet.</p>"; }
returns an error: “Parse error: syntax error, unexpected T_STRING in CODE on line 3 Errors parsing CODE”
This is being run both on the live site and a syntax checker.
Forum: Fixing WordPress
In reply to: if empty check on wp_list_bookmarksThose should work. I’m not at home and can’t implement anything yet but will give them a try when I can. Thanks guys.
From a glance though I can see that this may not work due to some syntax issue I will have.
My category_name is generated through a variable which works for me. So my syntax for the wp_list_bookmarks would be something like this: <?php if( ! wp_list_bookmarks(‘category_name=’.$userestimates&echo=0) ) : ?>
<p>You don’t have any estimates yet.</p>The way I have to do the variable would cause an unexpected T_ECHO where it says &echo because it will appear outside the quotes.
I would use it inside the quotes but the variable does not work that way.
LOL OK then. Thanks anyway.
OK that’s fine. I’ll have to track down that rouge HTTPS on my server. Any tools available to do something like that you know of?
OK then. Now I just have one more question. Will my change (removing the s from $_SERVER[‘HTTPS’] making $_SERVER[‘HTTP’]) mess up anything in my installation or the plugin?
I do have it installed and running lol. I haven’t changed anything since I removed that S in the plugin. If it is what my server is set to, how do I change that? Is it something that I have to do through my hosting provider or WordPress?
UPDATE: So I figured out what was generating the S on the HTTP. It was this line in the plugin: echo “\t<meta property=’og:url’ content=’http” . (isset($_SERVER[‘HTTPS’])?’s’:”) . “://”.$_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’].”‘ />\n”;
I removed the S and now it doesn’t generate the https. I’m not a PHP developer and I don’t really know exactly what the line was doing so I hope I didn’t mess something up and could someone explain it to me?
I’m having the same issue. Does anyone know of a way to be white-listed on Facebook or has the OP figured out a way to get this working again? It’s very frustrating. Not only is it keeping me from sharing manually it is not letting the APP share automatically either.
*Pulling my hair out!*
Update: This bug has been fully reported on the Facebook Developers website. If anyone else has this issue, please report it here: https://developers.facebook.com/bugs/347441388626378 The more we report it, the quicker they will fix it.
Forum: Fixing WordPress
In reply to: Query Posts ShortcodeI figured out what was breaking my code. It was a custom div ID I made. I made #border and that is also generated in the blog page.