News:

Welcome to SMF Ads Support Forum

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - g-c

#1
General Support / How to install a custom ad-place
January 14, 2008, 05:43:34 PM
Hi SMF-Ads runs now since months perfectly, however i have a place in my forums in which also want to display a ad. This new ad position should be also maintained by SMF-Ads, rather then hard-code the ad-link at this position.

So what is the basic php-code for ad-position and what lines do i have to ad in "Ads.template.php" and elsewhere?

Regards, Christian
#2
Ive written a post about how to improve the look of the smFOX Theme here:
http://www.simplemachines.org/community/index.php?topic=87354.msg1202634#msg1202634
I hope it helps.....
#3
Ad Support / Re: Ad manager for smFox ?
August 15, 2007, 03:29:02 AM
Hi im currently also making this Theme "Ad.Mod" ready.... The Problem is that the user-info is above all posts.....
If im finished ill post the files here, but caution!: They have also custom code in it for Seo4SMF, Google-Spiders-Mod, Global-Announcements, etc. But IMHO thats no Problem because they are all absed on "IF-Cases", so when none of them mod is installed or activated, than youll have no Problems with it.

Regards, Christian
#4
unbeliveable, i figured it out.....
I had wrongly commented a "}" direct under <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
because i thought it was a part of the cut ad-part....

Now it works...
Maybe this could help someone...

Regards, Christian
#5
As i writing here i checked a bit further.... its because of the function template_main_below()
{

and because normaly this fuction is closed after </body></html> with a }
in my version it uses the } just above the // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

which is coming from the end of //Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


So i had wrongly removed the part with //Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{

but if i re-ad it to its original position and the function is closed properly, so the whole part looks like this
<?php // Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);

}

 
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
//}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo ' ?>



I get a Template Parse Error! with the message:
Quotesyntax error, unexpected $end

hmmm.... i hope bigguy or someone else can help me?

Regards, Christian
#6
Hi, i have moved(cut) the part with the tower-right ads to a custom position inside a div, but something i have done wrong...
Now the footer-area wont display anymore.... im using the default-theme in 1.1.3.

This is my new div, just for interesst:
<div id="sky_right" align="left" style="text-align:left;"><?php
 
//Tower Right Ads by SMFads 2.3. cut from original position and pasted modified here... undo when uninstalling SMFads2.3
$ads = show_towerrightAds();
if(!empty($ads))
echo $ads['type']==0 ? $ads['content'] : eval($ads['content']) ;
       unset(
$ads);
?>
   </div>


and this is the part just above the footer, were all original ad-code was... im not a php-pro so i think maybe i cut a "{" or a "," too much?

<?php // Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);

}

 
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
//}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
</div>'
;


//Close table for towerright ads

//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
, $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";?>


I hope you can help me, im trying it since hours...

Regards, Christian
#7
Take a Developer-Extension for your Browser, select something like "outline current element" and then you will see which item has which class....

Regards, Christian
#8
Feedback/Request / Re: Show ads after last post
February 07, 2007, 02:08:01 PM
Quote from: whyhavetoregister on February 07, 2007, 12:55:49 PM
One more request about the subject. Is it possible to display ads after the last post instead of ads after the first post if there are no replies. That would help with AdSense channels.
How do you mean this?
Help with adsense channels? - how?

Regards, Christian
#9
Quote from: bigguy on January 12, 2007, 02:09:34 PM
Glad to hear you got it figured. :)
Only a few hours after my testing, Version 2.3 was releasen in which this "function" is already implement.
hehe  :) ;)
#10
well i try it and i add to line with that tables in display.template.php the following: style="background-color:#FDFDFD;"
now everything seems to be ok.
#11
Quote from: g-c on January 04, 2007, 06:50:38 AM
Quote from: bigguy on January 03, 2007, 06:57:34 PM
Check in the style.css file. I think you can change it in there.
thanks!!
For all: it's the class .bordercolor .


So my question: can i make a Div box with an id in that area where the adcode is showed by this mod? because that i can format this with css

#12
Quote from: bigguy on January 03, 2007, 06:57:34 PM
Check in the style.css file. I think you can change it in there.
thanks!!
For all: it's the class .bordercolor .

#13
Feedback/Request / Re: Show ads after last post
January 04, 2007, 06:07:23 AM
Quote from: jerm on January 03, 2007, 10:19:14 PM
This will be in the next version i release.
Yehaaa!!!!!!!!  :) :)  8) 8)
#14
Lounge / Happy New Year!
December 30, 2006, 08:05:36 PM
Well i would like to wish everybody around here a beautiful and very successfully start in the new Year.
Remember don't drink toooooooooooo much...... ;D ;D

Nice greets from good old (Beernation) germany! ;)
#15
It seems that nobody wants to help me - very sad!  :( :(