May 21, 2012, 08:36:38
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Add your links to our directory. Click
here
to add your links.
Home
Forum
Help
Search
Directory
Calendar
Login
Register
News
Add your links to our directory. Click
here
to add your links.
IT Resources
Hot Wallpapers
Java and Linux HowTo's
Movie and Game Reviews
DoFollow Directory
Webmaster's Talks !
>
Forum
>
Server Related
>
Forum/CMS Related
>
Ad management mod problem
Pages: [
1
]
2
« previous
next »
Print
Author
Topic:
Ad management mod problem
(Read 6950 times)
0 Members and 1 Guest are viewing this topic.
goupou
Jr. Member
Points: 0
Offline
Posts: 9
Ad management mod problem
«
on:
January 03, 2007, 21:51:26 »
Hi everyone.I have installed the ad management mode for smf and I just cannot see the ads.
What is the probelm?
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #1 on:
January 04, 2007, 01:38:11 »
Your adsense account is new ? What templates do you use ?
Regards
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
solidghost
Hero Member
Points: 3
Offline
Posts: 553
Re: Ad management mod problem
«
Reply #2 on:
January 04, 2007, 06:48:25 »
I used that mod before. Seems to have some bugs, but now I am not sure.
As TGF has said, sometimes it takes a while for the ads to appear if your site is new.
Logged
Singapore Travel Tour Agency Listings
Singapore Business
Premium Web Directories
Authority Sites Directory
goupou
Jr. Member
Points: 0
Offline
Posts: 9
Re: Ad management mod problem
«
Reply #3 on:
January 04, 2007, 12:03:52 »
I am using the classic Yabb SE theme and I have adsense for four months now.
Should I do it manually?
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #4 on:
January 05, 2007, 00:57:55 »
What change do you do last time ? When do you accessed last time your adsense account ?
Regards
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
goupou
Jr. Member
Points: 0
Offline
Posts: 9
Re: Ad management mod problem
«
Reply #5 on:
January 05, 2007, 01:51:48 »
Quote from: TheGodFather on January 05, 2007, 00:57:55
What change do you do last time ? When do you accessed last time your adsense account ?
Regards
I do not understand what you mean by change.I have not done anything to my adsense account.they work well on other sites.
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #6 on:
January 05, 2007, 02:05:20 »
I refer what you change in your forum ... also please tell us your forum address.
Regards
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
goupou
Jr. Member
Points: 0
Offline
Posts: 9
Re: Ad management mod problem
«
Reply #7 on:
January 05, 2007, 02:34:01 »
I am actually on a free web host trying my hands at smf.i am afraid to bring it to my paid host.
URL is http://joshua.grinhost.net/smf/
While you are there I have also install the seo mod but do not seem to work.
Edit:The seo mod is working.Guess I will start loving SMF now
«
Last Edit: January 05, 2007, 03:01:59 by goupou
»
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #8 on:
January 05, 2007, 03:19:45 »
Ad management it's modifying the template ... and your template it's not modified ... probably you need to this by hand. Anyway did you try to see if with default template it's working ?
Regards
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
goupou
Jr. Member
Points: 0
Offline
Posts: 9
Re: Ad management mod problem
«
Reply #9 on:
January 05, 2007, 05:56:52 »
Is there some tutorials or list on which files to modify to put the ads on the web?
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #10 on:
January 05, 2007, 06:31:12 »
Just give me a direct link of the ad management mod and I will getit and study myself and I will explain you how to do the changes
Regards
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
goupou
Jr. Member
Points: 0
Offline
Posts: 9
Re: Ad management mod problem
«
Reply #11 on:
January 05, 2007, 22:42:07 »
The link to the mod
http://custom.simplemachines.org/mods/index.php?mod=255
Thanks
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #12 on:
January 06, 2007, 03:29:57 »
This are the modifications what you need to to on your template files :
Quote
- <file name="$themedir/index.template.php">
- <operation>
- <search position="before">
- <![CDATA[ <body>';
]]>
</search>
- <add>
- <![CDATA[
//Display ads on the top of the page
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]>
</add>
</operation>
- <operation>
- <search position="before">
- <![CDATA[ </td>
]]>
</search>
- <add>
- <![CDATA[ ';
//Welcome Ads
$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 '
]]>
</add>
</operation>
- <operation>
- <search position="before">
- <![CDATA[ template_menu();
]]>
</search>
- <add>
- <![CDATA[ //Below the menu ads
$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);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
]]>
</add>
</operation>
- <operation>
- <search position="after">
- <![CDATA[ // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
]]>
</search>
- <add>
- <![CDATA[
//Close table for towerright ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';
unset($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);
]]>
</add>
</operation>
</file>
- <file name="$themedir/BoardIndex.template.php">
- <operation>
- <search position="after">
- <![CDATA[ // Show some statistics next to the link tree if SP1 info is off.
]]>
</search>
- <add>
- <![CDATA[ //Display ads on the board index
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]>
</add>
</operation>
</file>
- <file name="$themedir/Display.template.php">
- <operation>
- <search position="before">
- <![CDATA[ global $context, $settings, $options, $txt, $scripturl, $modSettings;
]]>
</search>
- <add>
- <![CDATA[ //Display ads on the thread page
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]>
</add>
</operation>
- <operation>
- <search position="replace">
- <![CDATA[ // Get all the messages...
while ($message = $context['get_message']())
{
]]>
</search>
- <add>
- <![CDATA[ //Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;
]]>
</add>
</operation>
- <operation>
- <search position="replace">
- <![CDATA[ </td></tr>';
}
]]>
</search>
- <add>
- <![CDATA[ </td></tr>';
if ($adpost = show_posts($adcounter))
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
Sakuragi
Full Member
Points: 0
Offline
Posts: 104
Re: Ad management mod problem
«
Reply #13 on:
January 06, 2007, 15:24:09 »
Is this modifications are different from original mod's modifications?
Code:
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>jeremy:ads</id>
<version>2.0</version>
<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA[
'trackip' => array('Profile.php', 'trackIP'),]]></search>
<add><![CDATA[
'admod' => array('Ads.php', 'Ads'),]]></add>
</operation>
<operation>
<search position="before"><![CDATA[require_once($sourcedir . '/Security.php');]]></search>
<add><![CDATA[
require_once($sourcedir . '/LoadAds.php');]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
loadPermissions();]]></search>
<add><![CDATA[
// Load all the ads up
loadAds();
]]></add>
</operation>
</file>
<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[
loadLanguage('Admin');]]></search>
<add><![CDATA[
loadLanguage('Ads');]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',]]></search>
<add><![CDATA[
'edit_addmod' => '<a href="' . $scripturl . '?action=admod">' . $txt['ad_management'] . '</a>',]]></add>
</operation>
</file>
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[<body>';]]></search>
<add><![CDATA[
//Display ads on the top of the page
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]>
</add>
</operation>
<operation>
<search position="before"><![CDATA[
</td>]]></search>
<add><![CDATA[';
//Welcome Ads
$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 ']]>
</add>
</operation>
<operation>
<search position="before"><![CDATA[
template_menu();]]></search>
<add><![CDATA[
//Below the menu ads
$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);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
]]>
</add>
</operation>
<operation>
<search position="after"><![CDATA[
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!]]>
</search>
<add><![CDATA[
//Close table for towerright ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';
unset($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);]]>
</add>
</operation>
</file>
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="after"><![CDATA[// Show some statistics next to the link tree if SP1 info is off.]]></search>
<add><![CDATA[
//Display ads on the board index
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]></add>
</operation>
</file>
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings;]]></search>
<add><![CDATA[
//Display ads on the thread page
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
// Get all the messages...
while ($message = $context['get_message']())
{]]></search>
<add><![CDATA[
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
</td></tr>';
}]]>
</search>
<add><![CDATA[
</td></tr>';
if ($adpost = show_posts($adcounter))
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" /> ', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
}]]>
</add>
</operation>
</file>
<file name="$themedir/MessageIndex.template.php">
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $scripturl, $modSettings, $txt;]]></search>
<add><![CDATA[
//Display Ads on the Message index
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
]]></add>
</operation>
</file>
<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="replace"><![CDATA[
'pm' => array(]]>
</search>
<add><![CDATA[
'ad_manage' => array(
'ad_manageperm' => false,
),
'pm' => array(]]>
</add>
</operation>
</file>
</modification>
Logged
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Ad management mod problem
«
Reply #14 on:
January 07, 2007, 05:41:56 »
If you get the modifications from Ad management module then are not different. I extract just Template modifications and not the sources because Sources probably are already patched !
Regards
Logged
█
DoFollow Directory. Nofollow free links
█
Hostmaster Web Tools
█
Webmaster Web Tools
Pages: [
1
]
2
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Web Design and Graphics
-----------------------------
=> General
=> Web Design Discussion
===> Adobe Photoshop, Corel PhotoPaint or other Image editing software
===> Dreamweaver, FrontPage or other WYSIWYG software
=> Web Design Reviews
=> Design Contest
-----------------------------
Programming
-----------------------------
=> Databases
=> PHP
=> ASP
=> Javascript
=> Java
=> General Coding
===> Perl
===> .NET
-----------------------------
Search Engine
-----------------------------
=> Google
=> Yahoo
=> MSN
=> Other Search Engines
=> Web Directories
===> SMF Directory
-----------------------------
Domain Names
-----------------------------
=> Domain Name Discussion
=> Domain Appraisals
=> Expired Domains
-----------------------------
Server Related
-----------------------------
=> Forum/CMS Related
=> Apache/IIS
=> Security
=> Linux
===> General Questions
===> Installations
===> Desktop & Multimedia
===> System configurations problems
===> Kernel things
-----------------------------
The Webmasters Talks !
-----------------------------
=> General Discussion
===> Fun
=> Tools
===> Link Popularity
===> Google Datacenter Query
===> Google Backlinks Checker
===> Google Page Rank Checker
===> Html Validation
===> Alexa Rank Checker
===> SEO 4 SMF
=====> Showcase
=====> Joomla
=====> Bugs
=====> Features
=> New Member Introductions
=> Suggestions & Feedback
=> News and Announcements
Loading...