News:

Help keep this project going by donating or buying adseller pro

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

Topics - bigguy

#1
General Support / MOVED: Bug in SMF Ads
September 04, 2008, 09:04:08 PM
#6
Feedback/Request / README
August 29, 2008, 09:35:29 PM
This board is only for mod/site feedback and mod feature requests. ALL support topics should NOT be posted  here.
#10
Feedback/Request / MOVED: PayPal Donate
August 29, 2008, 09:30:32 PM
#11
Theme Support / I have been behind, so...
July 06, 2007, 11:52:23 PM
I am creating this thread so all who I have NOT helped up until the creation of this thread, meaning all those people that are just new and wanting theme files edited please post here in ONE POST, DO NOT BUMP YOUR POST IN THIS THREAD. Post this info and your 4 template files.

The four that I will need are:
get these from your CUSTOM theme, NOT the default theme

MessageIndex.template.php
Display.template.php
BoardIndex.template.php
index.template.php

The info I will need is this:
copy and paste this into your post

[b]Version of SMF:[/b]
[b]Version of Ad Mod:[/b]
[b]Theme being used:[/b]
[b]Are the files clean:[/b]


The last line means are the template files modified in ANY WAY from their original state.

Post this info and attach the 4 template files and DO NOT BUMP and I will post back with the edited theme files. I think this will be easier for me if I can find everyone all in one thread. Anyone that bumps their post will NOT be looked at. If you bump your post you are really just wasting my time filtering through this. So please be patient and I will get to these files. Please allow a bit of time for this, "Real Life" and other responsabilities do sometimes come first.  :)  As I do plan to be around alot more on this site, there should not be to much of a wait.



For anyone who I have ALREADY started to help, bump your original post and I will get to you as soon as I can. As I have said above I will be around (or am going to try to be) a bit more on this site for help with the ad mod.
#13
Theme Support / General overiew of manual edits
May 25, 2007, 03:19:52 PM
The first thing you have to remember about manually editing the ad mod is once it is installed through the package manager the only edits that have to be done are the 4 template files in the custom theme you want to use. When the ad mod installs it edits 4 of the default templates, this is why it works on the default theme. The 4 templates it modifies in the default theme are:

index.template.php
MessageIndex.template.php
Display.template.php
BoardIndex.template.php

Some custom theme's will not have all 4 of these files and may only have 1 or 2. Now what you have to do is ftp into your account to your Themes directory of your SMF install and then to your custom theme folder. Find the 4 template files as mentioned above or as many of them as you can and download them to your desktop.

Now you have the files on your desktop ready to be edited. All you need now is a good editor. A lot of ppl use Dreamweaver, which is fine. I personally use Php Designer. Any editor is good as long as it has a search function and it is NOT notepad from Windows. Open your editor and load up one of the template files and search for your first line of code.

Keep in mind that all authors of themes DO NOT USE the same lines of code as the default theme does. This means that while searching for:

<body>';

in the index.template file you might not find it, but you might find this:

<body>

or some variation of that. Sometimes just searching for the word body is good enough. Next you insert your lines of code from the ad management mod and debug it if you can. debugging a file requires php to be installed on your system most of the time so you might not be able to do that part. If you can't then trial and error are your best friends.

Save your file and upload it to your custom theme folder. BUT BEFORE YOU DO. rename the original file so you do NOT overwrite it. This way you will have it there incase you didn't do the edits right the first time and you can get your board back up and running again. Keep doing this until you get the edits right.

One little trick I have learned is if your theme is not that different from the default theme then you might get away with just renaming the 4 template files in your custom theme folder to something other than what they are called originally. Doing this will tell SMF to use the template files from the default theme folder, and the edits there are already done from when you installed the ad mod. ;)

Hope this helps a bit. It's just a general overview of manually editing custom theme files.
#14
Feedback/Request / MOVED: Not working
May 22, 2007, 04:48:19 PM
#15
Theme Support / Ad Chart
April 28, 2007, 11:29:34 PM
I found this on Google Ad-Sense. It is a chart to tell you were the most optimum spot for ads is. The dark orange is the best spots (So they say) and the lighter spots are not so good for ads. I don't know if it will help anyone but I thought I would post it.
#16
Theme Support / MOVED: SMF 1.1.1 + Babylon
February 12, 2007, 09:21:36 PM
#17
Theme Support / Edits for ad_mod_1-1-1_v2-3
January 11, 2007, 07:42:32 PM
These are the edits for the ad mod version 2.3

In index.php look for:

'trackip' => array('Profile.php', 'trackIP'),

Before that add:

'admod' => array('Ads.php', 'Ads'),

In the same file search for:

require_once($sourcedir . '/Security.php');

Before that add:

if (file_exists($sourcedir . '/LoadAds.php'))
require_once($sourcedir . '/LoadAds.php');


In the same file search for:

loadPermissions();

Before that add:

// Load all the ads up
if (function_exists("loadAds"))
loadAds();


Save and upload after backing up the original.
NOTE: Only do this edit if installing manually



In your Sources Directory find and open Subs.php, Search for:

loadLanguage('Admin');

Before that add:

loadLanguage('Ads');

In the same file search for:

'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',

Before that add:

'edit_addmod' => '<a href="' . $scripturl . '?action=admod">' . $txt['ad_management'] . '</a>',

Save and upload after backing up the original.
NOTE: Only do this edit if installing manually



In your theme directory find and open index.template.php and search for:

<body>';

After that add:

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


In the same file find:

</td>

After that add:

';
//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);
}
echo '


In the same file find:

template_menu();

After that add:

//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);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


In the same file find:

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

Before that add:

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$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);
}




In BoardIndex.template.php find:

// Show some statistics next to the link tree if SP1 info is off.

Before that add:

//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


In the same file find:

echo '
</div>';


After that add:

//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}




In Display.template.php find:

global $context, $settings, $options, $txt, $scripturl, $modSettings;

After that add:

//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


In the same file find:

// Get all the messages...

And replace with:

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;


In the same file find:

</td></tr>';
}


And replace with:

</td></tr>';
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
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">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</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" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}

}

}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
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">
&nbsp;</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, '';


echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['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" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';

}

}




In MessageIndex.template.php find:

global $context, $settings, $options, $scripturl, $modSettings, $txt;

After that add:

//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


In the same file find:

echo '
</table>
</div>';


After that add:

//Display Ads on the Message index
if (function_exists("show_underchildren"))
{
$ads = show_underchildren();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}




In ManagePermissions.php in the sources directory find:

'pm' => array(

And replace with:

'ad_manage' => array(
'ad_manageperm' => false,
),
'pm' => array(


Save and upload after backing up the original.
NOTE: Only do this edit if installing manually



ONLY If installing manually you will require these 2 files to be in your Sources Directory:

Ads.php
LoadAds.php

And this file to be in your theme directory:

Ads.template.php

And this file to be in your Langauge directory:

Ads.english.php
#18
Lounge / MERRY CHRISTMAS
December 23, 2006, 06:50:24 PM
I thought I would say Merry Christmas to everyone. I hope you all have a great one and an awesome New Year. Be safe and take care all.  ;)
#19
Lounge / A story I just found
August 24, 2006, 12:17:21 PM
This is kinda interesting:

QuoteCybersquatters and typosquatters have stepped up efforts to get rich quick, and businesses and consumers are paying the price.

While Cybersquatting and typosquatting, the practices of registering domain names that violate a company's trademark, aren't new, experts said Wednesday they're fast becoming a cash cow for thieves who want to turn a quick profit through pay-per-click advertising made profitable by Google Inc. and others.

Microsoft this week launched an enforcement campaign, along with several lawsuits, targeting cybersquatters and typosquatters who illegally profit from online ads through the misuse of intellectual property and Internet domain names.

"We're not certain of how much they're making and who they are working with, but we believe that many owners of these sites work through well-known established online ad networks," said Aaron Kornblum, Microsoft's Internet safety enforcement attorney. "Most times these networks work with them unknowingly."

Kornblum said Google Inc. and Yahoo Inc. operate similar types of advertising networks, and Microsoft is working with them to "address the problem."

Greenberg Traurig LLC intellectual property attorney Ian Ballon said cybersquatters spoof legitimate Web sites and register them with Google's ad service.

SOURCE
#20
Lounge / SMFHelper.com
August 16, 2006, 02:40:29 PM
Well I see this board doesn`t get much attention so I guess I`ll throw this out there. Here`s a new site I have been working on. Check it out if you want to.  8)

www.smfhelper.com