PHP EXPERT NEEDED TO EDIT CMS CONTENTBOX
$30-250 USD
Dibayar semasa penghantaran
I am using a custom CMS for a music site and right now the you can only use the blog section on the the blog page...I want to display the blog section on the main page. I talked to the guy who made the cms and he said that the blog content box is coded so it can only be displayed on the blog page..So somewhere in the below code it makes sure you are on the [url removed, login to view] page...I am trying to make the blog section display on the [url removed, login to view] page but it will not work..
Send me the fix for this and I will send you money!
here is the code:
<?php
$secid = (int)$this->pagedata["sec_id"];
if (!empty($_GET["b_id"]))
{
$b_id = (int)$_GET["b_id"];
$this->clicks->setArticle($b_id);
$pageSQL = "SELECT * FROM dynamic_content WHERE dc_id=" . $b_id . " AND dc_type='b' AND page_id=" .
$this->pagedata["page_id"] . " AND dc_active=1 AND dc_disp_group<=" . $this->usergroup . " ORDER BY dc_id DESC";
$news_item = $dbc->selectrow($pageSQL);
$contentbuffer .= '<div>' . "\n";
$SQL = "SELECT * FROM gallery_content WHERE gc_id=" . (int)$news_item["dc_file"];
$thumb = $dbc->selectrow($SQL);
if (is_array($thumb))
{
$contentbuffer .='<div class="blogPhoto"><img src="galleries/' .$thumb["gc_full"] . '" border="0" /></div>'. "\n";
}
$contentbuffer .= '<div>' . stripslashes($news_item["dc_subject"]) . "</div>\n";
$contentbuffer .= '<div>' . makedateformat($news_item["dc_pub_date"]) . "</div>". "\n";
$contentbuffer .= "" . stripslashes($news_item["dc_body"]) . "\n";
$contentbuffer .= "<a href=\"[url removed, login to view];.$this->pagedata["page_callname"] . "\">Back</a></div>\n";
}
else
{
$pageSQL = "SELECT * FROM dynamic_content WHERE dc_type='b' AND page_id=" .
$this->pagedata["page_id"] . " AND dc_active=1 AND dc_disp_group<=" . $this->usergroup . " ORDER BY dc_disp_order ASC, dc_pub_date DESC";
$news_item = $dbc->selectrow($pageSQL);
$contentbuffer .= '<div>';
$SQL = "SELECT * FROM gallery_content WHERE gc_id=" . (int)$news_item["dc_file"];
$thumb = $dbc->selectrow($SQL);
if (is_array($thumb))
{
$contentbuffer .='<div class="blogPhoto"><img src="galleries/' .$thumb["gc_full"] . '" border="0" /></div>'. "\n";
}
$contentbuffer .= '<div>' . stripslashes($news_item["dc_subject"]) . "</div>". "\n"; $contentbuffer .= '<div>' . makedateformat($news_item["dc_pub_date"]) . "</div>". "\n";
$contentbuffer .= stripslashes($news_item["dc_body"]) . " \n";
$contentbuffer .= "\n</div> " . "\n";
}
$var = $contentbuffer;
?>
Here is another module that only displays on the blog page..this may help:
<?php
$secid = (int)$this->pagedata["sec_id"];
$pageSQL = "SELECT * FROM dynamic_content WHERE dc_type='b' AND page_id=" .
$this->pagedata["page_id"] . " AND dc_active=1 AND dc_disp_group<=" . $this->usergroup . " ORDER BY dc_disp_order ASC, dc_pub_date DESC";
$news_items = $dbc->select($pageSQL);
if (is_array($news_items))
{
foreach($news_items as $news_item)
{
$contentbuffer .= "<div>";
$contentbuffer .= '<div>' . "<a href=\"[url removed, login to view];.$this->pagedata["page_callname"] . "&b_id=" . $news_item["dc_id"] . "\">" . stripslashes($news_item["dc_subject"]) . "</a></div>". "\n";
$contentbuffer .= '<div>' . makedateformat($news_item["dc_pub_date"]) . "</div>". "\n";
$contentbuffer .= "</div>";
}
}
$var = $contentbuffer;
?>
ID Projek: #369915
Tentang projek
14 pekerja bebas membida secara purata $142 untuk pekerjaan ini
IF you provide me the FTP Server details, It will hardly take 1 hour to show you the desired result. Waiting for your reply, Regards
We have gone through the information that you have provided and understand your requirements very well. We have excellent expertise in PHP5, MYSQL, DRUPAL, JOOMLA, HTML, CSS, AJAX, JAVA, J2ME, JSP, SEO, SEM, ASP.NET, V Lagi
We have similar projects here, the team with over 7 years working experiences. please kindly check PMB for details, thank you.
Hey, this is not an automated bid - I've actually looked at the code. I'm sure we can fix that in pretty short order, ready to start when you are.
Hi, The simplest word "unique" fits the best with us the Profressionals of Hellboy Soft. You can rely on us. :Hellboy Soft