Lines 29 & 30 are as follows:
namespace Autostock;
use Autostock;
When I comment out these two lines, the plugin activates but fails to show in the main sidebar menu in WordPress.
I know some about PHP, but I don’t know enough about using “namespace”. As I read though, there is a lot reference to “Class” usage with namespace and there is no such reference in your php file for the plugin.
Is there something missing here?
https://www.ads-software.com/plugins/autostock/
]]>I was trying to update the image that a plugin pulls in for a Facebook button. When I changed the img src code it says this:
Parse error: syntax error, unexpected T_STRING…on line 669
Here’s the code for the original line:
$vcFbConnectButton = "<div id=\"fb-root\"></div><div class=\"fbConnectButton\"><a href=\"https://www.facebook.com/dialog/oauth?client_id=".$fbAppID."&redirect_uri=".$redirectUrl."&scope=email&response_type=token\"><img src=\"https://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif\" border=\"0\" /></a></div>";
Here’s the code for the fix I made that cause the T-STRING Effor:
$vcFbConnectButton = "<div id=\"fb-root\"></div><div class=\"fbConnectButton\"><a href=\"https://www.facebook.com/dialog/oauth?client_id=".$fbAppID."&redirect_uri=".$redirectUrl."&scope=email&response_type=token\"><img src=\"https://www.localleadmaximizer.com/wp-content/uploads/2013/10/Facebook_Connect.png" border=\"0\" /></a></div>";
Any idea what I did wrong? Seems like a pretty simple change.
There are 3 other places this img file is used in this plugin so…I assume I will have to change it there as well.
]]>Got the syntax error, scraped the file onto my notepad so that I could take out the hooks/code and rebuild, one function at a time.
Wiped the slate clean, up to the point where it said “put in your custom code after this line.”
Hit Save.
Got this:
https://www.shooterschoiceguns.com/wp…is_file_editor
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/carajones/shooterschoiceguns.com/wp-content/themes/thesis_182/custom/custom_functions.php on line 20
I cannot access any of Thesis functions or editors now. I cannot access my website.
I appreciate any help you can give. I’m feeling kind of sick over this.
Thanks
Here is a code you might consider…is something missing, and does this have something to do with the problem?:
<div id=”content” ontent () ?>
THANKS FOR ANY HELP!
]]><?php
if (is_front_page())
{echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/splash.jpg" usemap="#bg" style="border:none;" alt="background"/>';
} elseif (is_page('Portfolio')) /*use portfolio image*/{
echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/portfolio.jpg" usemap="#bg" style="border:none;" alt="background"/>';
} elseif (is_page('Ordering')) { /*use ordering image*/
echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/ordering.jpg" usemap="#bg" style="border:none;" alt="background"/>';
} else { /*for everything else use "blog" image*/
echo '<img class="lower" src="<?php bloginfo('template_directory');?>/images/blog.jpg" usemap="#bg" style="border:none;" alt="background"/>';
} ?>
Thanks!
]]>