PHP EXPERT NEEDED TO EDIT CMS CONTENTBOX

Dibatalkan Disiarkan Jan 13, 2009 Dibayar semasa penghantaran
Dibatalkan 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;

?>

ASP Java Perl PHP Reka Bentuk Laman Web

ID Projek: #369915

Tentang projek

14 cadangan Projek jarak jauh Aktif Jan 28, 2009

14 pekerja bebas membida secara purata $142 untuk pekerjaan ini

webtechinfo

please check pmb thank you

$100 USD dalam 0 hari
(28 Ulasan)
5.4
ydude

Please check PM. Thanks,

$80 USD dalam 2 hari
(26 Ulasan)
5.0
ShahidMahmood

HI, PHP Pro here.I would love to do it for you. Ready to proceed. Regards Shahid

$150 USD dalam 3 hari
(27 Ulasan)
5.0
CoderTech

please check pm...

$50 USD dalam sehari
(8 Ulasan)
4.7
AKSolutions

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

$70 USD dalam sehari
(7 Ulasan)
4.2
AGSTechnologies1

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

$240 USD dalam 3 hari
(2 Ulasan)
4.0
ossolution4u

We have similar projects here, the team with over 7 years working experiences. please kindly check PMB for details, thank you.

$150 USD dalam 2 hari
(7 Ulasan)
3.2
keyurd

I'll do it for you. I believe I know where the problem lies by looking at the code snippet.

$225 USD dalam 4 hari
(1 Ulasan)
3.1
rjh

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.

$50 USD dalam 4 hari
(1 Ulasan)
2.5
Hellboysoft

Hi, The simplest word "unique" fits the best with us the Profressionals of Hellboy Soft. You can rely on us. :Hellboy Soft

$100 USD dalam 2 hari
(0 Ulasan)
0.0
int2k

I can surely fix this to your need. Check your PM

$120 USD dalam 2 hari
(0 Ulasan)
0.0