News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Parse Error with Dilber MC

Started by DanSoCAl, November 26, 2007, 09:21:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DanSoCAl

Jerm, Bigguy,

Whenever I include your following modification to my Dilber MC Theme Index.Template.php I get the parse error. My board is then inoperable until I restore Index.Template.php from a backup.

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


Forum version: SMF 1.1.4
Current SMF version: SMF 1.1.4
Ad Management Mod V2.3

Mod shows as installed but has never worked or even shown up in the Admin Configuration menu. Thanks for any help.

jerm

Please show a few lines before and after where you put that code.

DanSoCAl

Thanks for replying, Jerm.

Code before:

<td valign="middle" height="30" class="smalltext" style="padding-left:10px; padding-top:0px; padding-bottom:0px;">
<b>', $txt[102], '</b>: ', $context['random_news_line'], '
</td>
';
//Welcome Ads


Then I insert this, as found in this forum:

$ads = show_welcomeAds();

if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
echo '


Followed by this (existing):

if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }
                  echo '
         ';
   echo '


And ka-blooey! Forum crashes. Where am I going wrong, and why is this so bloody complicated? Thanks for any help!

DanSoCAl

Does anyone have Ad Management 2.3 working with their Dilber theme? If so, how did you do it???

DanSoCAl

I need to get this working or find another solution. Can someone please help me or perhaps recommend another product?

Thanks...

jerm

Sorry.. nobody else here to help but me, and i'm pretty busy right now with school.

Attach the file or send it to me by email: jerm@smfads.com

DanSoCAl

Quote from: jerm on December 04, 2007, 11:33:25 PM
Sorry.. nobody else here to help but me, and i'm pretty busy right now with school.

Attach the file or send it to me by email: jerm@smfads.com

Hi Jerm, I sent the file five days ago. Any progress? Did you get it? Shall I send it again??

Thanks,

james870

Hey,

I'm having the exact same problem as DanSoCAl. Any help would be really appreciated.

Thanks,

James