Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR EWRporta_promotes.promote_date < ?) AND xf_thread.discussion_state = 'v' at line 11 - library/Zend/Db/Statement/Mysqli.php:77
Generated By: justin, A moment ago
Stack Trace
#0 /home/content/60/9276860/html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('????SELECT xf_t...')
#1 /home/content/60/9276860/html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '????SELECT xf_t...')
#2 /home/content/60/9276860/html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('????SELECT xf_t...')
#3 /home/content/60/9276860/html/library/Zend/Db/Adapter/Abstract.php(734): Zend_Db_Adapter_Abstract->query('????SELECT xf_t...', Array)
#4 /home/content/60/9276860/html/library/EWRporta/Block/RecentNews.php(32): Zend_Db_Adapter_Abstract->fetchAll('????SELECT xf_t...', Array)
#5 /home/content/60/9276860/html/library/EWRporta/Model/Blocks.php(116): EWRporta_Block_RecentNews->getModule(Array, 1)
#6 /home/content/60/9276860/html/library/EWRporta/ViewPublic/Custom.php(71): EWRporta_Model_Blocks->getBlockParams(Array, 1)
#7 /home/content/60/9276860/html/library/XenForo/ViewRenderer/Abstract.php(215): EWRporta_ViewPublic_Custom->renderHtml()
#8 /home/content/60/9276860/html/library/XenForo/ViewRenderer/HtmlPublic.php(67): XenForo_ViewRenderer_Abstract->renderViewObject('EWRporta_ViewPu...', 'Html', Array, 'EWRporta_Portal')
#9 /home/content/60/9276860/html/library/XenForo/FrontController.php(533): XenForo_ViewRenderer_HtmlPublic->renderView('EWRporta_ViewPu...', Array, 'EWRporta_Portal', NULL)
#10 /home/content/60/9276860/html/library/XenForo/FrontController.php(156): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#11 /home/content/60/9276860/html/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
["url"] => string(19) "http://inkdapp.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
I haven't looked, but if I remember correctly, it's "newsTitle".
If your using Chrome browser, mouse over the title and select "inspect element", then you'll see what class is used.
I still can't, for the life of me, find this in any XenPorta CSS files. I've downloaded Firefox and Firebug to inspect the element, and it is newsTitle, but I can't find the reference in order to change it. I apologize in advance for not knowing CSS.
I'm trying to get this running and I'm not having much luck. I uploaded the files using ftp and tried to add the XenPorta and I keep getting "Please enter a valid file name. The requested file could not be read."
I don't know if I uploaded to the wrong area and/or giving it the wrong info on where to find the file.
Can anyone help me with this?
James
<div class="tagline" style="height: {$option.itemheight}px;">
<div class="image" style="height: {$option.imgheight}px; width: {$option.imgwidth}px; background-image: url('{xen:link attachments, $news.attach}'); background-position: {$option.anchor} top;"></div>
<div class="title" style="margin-{$option.position}: {$option.itemwidth}px;">{xen:helper wordtrim, $news.title, {$option.trimtitle}}</div>
</div>
<div class="tagline">
<div class="image" style="height: 20px; width: 20px; padding: 0px; margin-top: -4px;"></div>
</div>
#recentSlider { padding: 10px;}
.recentSlider
{
position: relative;
background-color: #161616;
overflow: hidden;
margin-left: auto;
margin-right: auto;
float: none;
width: 602px;
}
.recentSlider .ui-tabs-hide { display: none; }
.recentSlider .ui-tabs-selected { background-color: #a12621!important; }
.recentSlider .ui-tabs-nav { list-style: none; margin: 0; padding: 0; position: absolute; top: 0px; }
.recentSlider .ui-tabs-nav-item a { text-decoration: none !important; color: #EEE; }
.recentSlider .ui-tabs-nav-item:hover { background-color: #666; }
.recentSlider .ui-tabs-nav-item {
border: 0px solid #333;
height: 20px;
width: 20px;
background-color: #292929;
margin: 5px;
}
.recentSlider .ui-tabs-nav-item:last-child { border-bottom: 0px; }
.recentSlider .ui-tabs-nav-item .image { background-repeat: no-repeat; margin: 5px; float: left; }
.recentSlider .ui-tabs-nav-item .title { font-size: 12px; font-weight: bold; padding: 10px; }
.recentSlider .ui-tabs-panel { position: relative; background-repeat: no-repeat; }
.recentSlider .ui-tabs-panel a { text-decoration: none !important; color: #EEE; }
.recentSlider .ui-tabs-panel .summary
{
background-color: rgba(0,0,0,0.7);
border-top: 1px solid #333;
position: absolute;
bottom: 0px;
left: 0px;
padding: 12px 15px;
width: 100%;
}
.recentSlider .ui-tabs-panel .summary .title { font-size: 22px; margin-right: 15px; letter-spacing: -1px; text-overflow: ellipsis;
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
height: 1em; }
.recentSlider .ui-tabs-panel .summary .excerpt { font-size: 11px; margin-right: 30px; }
.recentSlider.leftSlider .ui-tabs-nav { border-left: 1px solid #333; text-align: left; width: 30px;}
.recentSlider.leftSlider .ui-tabs-panel { float: left; }
.recentSlider.leftSlider .ui-tabs-nav-item .image { background-size: auto 100%; float: left; }
.recentSlider.rightSlider .ui-tabs-nav { float: left; text-align: right; width: 30px!important;}
.recentSlider.rightSlider .ui-tabs-panel { float: right; border: 1px solid #292929;}
.recentSlider.rightSlider .ui-tabs-nav-item .image { background-size: auto 100%; float: left; }
Most likely you are not using the correct file. You want to install file "addon-EWRporta.xml".
Thanks for sharing with us Yorick. I have general issue with the slider, it doesn't show up at all, just a black background. I looked it up the Guide here if there is something that I'm missing but still nothing showing up. I even created another recentnews module which isn't showing up either. Deleted cache, activated / reactivated, moved around the modules without luck.
Is that after adding my code, or it was doing that already? Can you supply me with a link to your site?
We use essential cookies to make this site work, and optional cookies to enhance your experience.