Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2557)
SimpleAds
This mod allows you to display HTML code in various locations of forum. You can limit ads by time, click, impressions, membergroups or actions. You can also create custom ad positions.
The mod requires minimal template edits. If you are using a custom theme, make sure you install the mod for those custom themes as well, using the "Install in Other Themes" option during the installation.
This mod uses FamFamFam Silk (http://www.famfamfam.com/lab/icons/silk/) icons licensed under Creative Commons Attribution 2.5 License.
Congrats [SiNaN]!
Great Mod Sinan. Ad Management has a sister now.
She has been there alone for long.
Congrats.
I try to install I get a error admin.php
like that:
Select:
), 'maintenance' => array(
Change
), 'ads' => array( 'title' => $txt['sa_admin_cat_title'], 'permission' => array('admin_forum'), 'areas' => array( 'ads' => array( 'label' => $txt['sa_admin_title'], 'file' => 'ManageAds.php', 'function' => 'ManageAds', 'permission' => array('admin_forum'), 'icon' => 'ads.png', 'subsections' => array( 'ads' => array($txt['sa_ads_list_title']), 'addad' => array($txt['sa_ads_add_title']), 'positions' => array($txt['sa_positions_list_title']), 'addposition' => array($txt['sa_positions_add_title']), ), ), ), ), 'maintenance' => array(
I do samething but admin panel become off.... What can I do?
Quote from: akbora on May 14, 2010, 03:40:05 PM
I try to install I get a error admin.php
like that:
Select:
), 'maintenance' => array(
Change
), 'ads' => array( 'title' => $txt['sa_admin_cat_title'], 'permission' => array('admin_forum'), 'areas' => array( 'ads' => array( 'label' => $txt['sa_admin_title'], 'file' => 'ManageAds.php', 'function' => 'ManageAds', 'permission' => array('admin_forum'), 'icon' => 'ads.png', 'subsections' => array( 'ads' => array($txt['sa_ads_list_title']), 'addad' => array($txt['sa_ads_add_title']), 'positions' => array($txt['sa_positions_list_title']), 'addposition' => array($txt['sa_positions_add_title']), ), ), ), ), 'maintenance' => array(
I do samething but admin panel become off.... What can I do?
I got it too but i manually edited that file. Its easy ..
), 'maintenance' => array(
This code isn't there.
Take of the ),
'maintenance' => array(
should be on a line itself (with an indent)...
Great mod and great for it getting approved ;)
Quote from: akbora on May 14, 2010, 04:03:29 PM
), 'maintenance' => array(
This code isn't there.
you may also want to send the file here, i can edit it for you.
really nice plugin and thank you
Thanks Afro,
I installed however and mod is very very good, but mod doesn't perfectly.
For example
# Above Info Center
# After First Post
# Inside First Post
# After Last Post
I added these areas a html code but it doesn't seem in these area? Why?
Quote from: akbora on May 15, 2010, 08:39:21 AM
Thanks Afro,
I installed however and mod is very very good, but mod doesn't perfectly.
For example
# Above Info Center
# After First Post
# Inside First Post
# After Last Post
I added these areas a html code but it doesn't seem in these area? Why?
I noticed that if you select where you want the ad to be placed, It gives you some codes.
You need to locate the {content} and replace it with your html code.
It worked on my test site.
I am still figuring out why i should use this since i have SP installed..
Great Mod SiNaN!!
Congratulations to my friend! I'm immediately starting to translate. Hmmm :)
great mod.. :D
but i was unable to put ads.. i replaced {content} with adsense code... but nothing is shown on website... i selected headers...and above statistics..
thanks :)
good work, you should also add some screenshots of the ads placements..
Quote from: Afro on May 14, 2010, 03:54:00 PM
Quote from: akbora on May 14, 2010, 03:40:05 PM
I try to install I get a error admin.php
like that:
Select:
), 'maintenance' => array(
Change
), 'ads' => array( 'title' => $txt['sa_admin_cat_title'], 'permission' => array('admin_forum'), 'areas' => array( 'ads' => array( 'label' => $txt['sa_admin_title'], 'file' => 'ManageAds.php', 'function' => 'ManageAds', 'permission' => array('admin_forum'), 'icon' => 'ads.png', 'subsections' => array( 'ads' => array($txt['sa_ads_list_title']), 'addad' => array($txt['sa_ads_add_title']), 'positions' => array($txt['sa_positions_list_title']), 'addposition' => array($txt['sa_positions_add_title']), ), ), ), ), 'maintenance' => array(
I do samething but admin panel become off.... What can I do?
I got it too but i manually edited that file. Its easy ..
Yeah, you'll need to apply that edit manually then.
Afro, which mods you have installed? Can you attach your Admin.php file? If there is a conflict with a popular mod, I'm going to change the installation instructions.
Quote from: akbora on May 15, 2010, 08:39:21 AM
Thanks Afro,
I installed however and mod is very very good, but mod doesn't perfectly.
For example
# Above Info Center
# After First Post
# Inside First Post
# After Last Post
I added these areas a html code but it doesn't seem in these area? Why?
Quote from: amigozone on May 16, 2010, 02:46:16 AM
great mod.. :D
but i was unable to put ads.. i replaced {content} with adsense code... but nothing is shown on website... i selected headers...and above statistics..
thanks :)
Are you sure you set the membergroups and actions to display ads for?
As a tip, if you want to display ads everywhere, just put "all" (without quotes) to Custom Display options field.
Quote from: ukhalik2 on May 16, 2010, 03:22:38 AM
good work, you should also add some screenshots of the ads placements..
I'm unable to upload attachments to Mod Site these days. I had some screenshots here though:
http://i44.tinypic.com/1zn7k2r.png
http://i40.tinypic.com/29wkcg6.png
http://i39.tinypic.com/33ljlsi.png
http://i43.tinypic.com/6pz5hs.png
http://i42.tinypic.com/358rn2s.png
http://i43.tinypic.com/5d461d.png
Putting "all" in Custom Display fixes it. Also, if you are using any portal, and want to show an ad above info center, write forum on the field.
OK SINAN, I have a few important mods..here is the /source/admin.php file.
Remember i got it fixed manually on the file i am sending.
Facebook_Like v.1.2 1.2
Downloads System 1.3.2
SMF Archive 2.0
SimplePortal 2.3.2
SMFShop 3.1.5.2
RedirectPage 1.1c
Aeva Media 1.1b
Sitemap 2.1.2
Smf seo boards title[ 1
Referrals Mod 2.2.7.2
SimpleAds 1.0
Custom_Top_menu 1.0
FantasticSmileys 1.0
SMF Quiz Categories
VB Style User Profile In Posts 1.0
Buddy Page 1.2
Error Log Counter
Activity_Bar 1.0.1.2
SMF Quiz 1.0.8 beta3
Highslide 4 SMF
Hide SMF Version
Register At Post View v.1.1
SMF Arcade
Relative Dates
Quote from: Yağız... on May 16, 2010, 05:29:03 AM
Putting "all" in Custom Display fixes it. Also, if you are using any portal, and want to show an ad above info center, write forum on the field.
It's a feature, rather than a bug. You need to define where you want the ad to be displayed.
If you want to use the Above Info Center position, you can just use "all" or "Board Index" as display option. Since the position code is in BoardIndex.template.php, it won't be displayed on other pages anyway.
As for people using portal and Custom Display option; "forum" will always return true. Only wildcard-like thing for this field is "all" which displays the ad everywhere. Apart from that, you need to use PHP. I haven't documented it yet though. For displaying an ad on ?action=forum, you would use something like this as Custom Display option:
{action} == 'forum'
So there are two variables {action} and {board} you can use with Custom Display option. Like you can do:
in_array({board}, array(1, 2, 3))
and that would display the ad on boards with id of 1, 2, or 3.
I'll add some help texts in future versions explaining all these.
Quote from: Afro on May 16, 2010, 05:39:37 AM
OK SINAN, I have a few important mods..here is the /source/admin.php file.
I'll check that. Thanks!
pleas e xplain " Custom Display options field."
I have given some clues on how to use them just in the post above yours. What do you want to be explained exactly?
sorry i ddnt notice those clues ..
i'm more confused now.. what is the relation between add position and that custom field...
hey can u setup ads on my forum.. i can make an account for u with administrative permissions..??
Quote from: amigozone on May 17, 2010, 02:31:07 AM
i'm more confused now.. what is the relation between add position and that custom field...
Using that Custom Display field, you can define on which actions you want the ad to be displayed. Like you may have an ad setup for the Overall Header position. You want to display it on board index, help page and search page but no where else. So you'll use the display options. Most of the time Actions and Boards field will be enough. But if you want to define more complex conditions to display the ad, you can use the Custom Display field.
Quote from: amigozone on May 17, 2010, 02:31:07 AM
hey can u setup ads on my forum.. i can make an account for u with administrative permissions..??
Nope. I don't have time for that. That's something you need to do. I can just help when you can't figure out something with the mod. ;)
okay.. i filled the custom field with "all" without commas... but still i cant see any ads.. :S
Did you set the membergroups that can see the ad, correctly?
yess i did :(
u can still guide me...
How did you set them? Can you attach a screenshot of the ad settings that doesn't show up?
whats A/X/D on membergroups? :|
A=Allow
X=????
D=Deny
X = Disallow, like all other permissions.
A = a group has the permission
X = that group doesn't give the permission, but it doesn't block any other group giving it
D = deny, meaning it makes no difference what other groups grant this permission, the user doesn't have it.
Let's say a member is a Regular Member and Newbie post count group.
Let's say both groups have New topics = A. Means they can post a new topic.
Let's say, now that Regular Member has it as A but Newbie has it as X. The X doesn't block the A granting the permission. (which is the usual state of affairs)
Now let's say we make Newbie D for new topics. Now no matter what other groups they're a member of (except main admin group), they can't have that permission. X doesn't give it, D forces it to go away.
wow, thats what i call control, thanks!!!
any chances to implement sudo? :P
No chance for sudo, not even to make a sandwich :P
But really, that permission set is just what SMF offers normally with deny permissions enabled.
Great mod, but I can not access when I click on the link to administer the MOD, go to the Ad Management. How to solve this? it seems that the action is the same Ad Management
You wouldn't normally have them both installed at the same time since they both do the same thing.
How can we choose the width that will show the DIV
Ok, I copy my code Ad Management, and migrate to your MOD, but I tested on the local machine, and in my forum I have a sidebar that I use a table width of 140px but in its wider DBM is On behalf of the DIV, as I control them?
Another suggestion ... See the ADS any way to not get so stuck in the forum.
The underlying construction of this mod is to avoid template edits. Even taught me a couple of lessons on avoiding them.
So no solution for lateral width of ADS?
I'm not sure I understand your question.
It would help us a lot if you provide the code you are using along with a screenshot indicating what you exactly want.
Everything works fine except only clicks counter doesn't work. I clicked two or three times I look clicks number is zero. İmpressing are 1400 but click is zero.
If the links are displayed by a JavaScript code (like in the case of AdSense) it won't be able to track click counts.
Fortunately, AdSense is clicks counts. ;D
i have just intasll this mod but Admin panel become off.... What can I do?
This is very useful program. I put announce, videos, any texts, game and the others to ad areas...
Especially expires date feature is big big big feature...
Quote from: forumnepali on May 19, 2010, 05:24:33 AM
i have just intasll this mod but Admin panel become off.... What can I do?
I have no idea what you mean by "Admin panel become off".
Quote from: [SiNaN] on May 19, 2010, 07:15:40 AM
Quote from: forumnepali on May 19, 2010, 05:24:33 AM
i have just intasll this mod but Admin panel become off.... What can I do?
I have no idea what you mean by "Admin panel become off".
yes when i click in adit icon not showing any think just showing blank
What's "adit icon"? Do you have any errors in the Error Log?
Quote from: [SiNaN] on May 19, 2010, 07:27:34 AM
What's "adit icon"? Do you have any errors in the Error Log?
* offtopic * Congrats on 10k post :P * offtopic*
Indeed, congrats :P
/me is very impressed with this mod in general :)
here is Error Long
http://forumnepali.com/index.php?action=admin;area=ads;sa=addposition;b4650ccfb=db87a208d37643fd2227e480f41522a8Unable to load the 'main' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=add;b4650ccfb=db87a208d37643fd2227e480f41522a8Unable to load the 'addAds' template.
http://forumnepali.com/index.php?action=admin;area=ads;b4650ccfb=db87a208d37643fd2227e480f41522a8Unable to load the 'main' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=main;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'main' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=add;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'addAds' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=credits;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'creditsAds' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=settings;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'settingsAds' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=addad;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'main' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=ads;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'main' template.
http://forumnepali.com/index.php?action=admin;area=ads;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'main' template.
http://forumnepali.com/index.php?action=admin;area=ads;sa=main;e78d35c2597=0ee9a69e5ba969cf19e7ec2c173227afUnable to load the 'main' template.
.
http://forumnepali.com/index.php?action=admin;area=ads;sa=addposition;b4650ccfb=db87a208d37643fd2227e480f41522a88: Undefined index: addpositionFile: /home/forumnep/public_html/Sources/Admin.php
Line: 598
http://forumnepali.com/index.php?action=dlattach;attach=9;type=avatar2: Invalid argument supplied for foreach()File: /home/forumnep/public_html/Sources/Load.php
Line: 1800
You are trying to use two ad management mod. Uninstall both and install only SimpleAds or Ad Management.
Ok let me uninstall first
when i try to unistal i'am getting this Error What should i do now ??
Uninstall ModPlease remember to always make regular backups of your sources and database before installing mods, especially beta versions.
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions "Ad Managment" Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php [color=red]Test failed[/color]
1. Replace ./index.php Test successful
2. Replace ./index.php Test successful
3. Replace ./index.php [color=red]Test failed [/color]
2. Execute Modification ./Sources/Admin.php Test successful
1. Replace ./Sources/Admin.php Test successful
2. Replace ./Sources/Admin.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test successful
1. Replace ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test successful
3. Replace ./Themes/default/index.template.php Test successful
4. Replace ./Themes/default/index.template.php Test successful
4. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
1. Replace ./Themes/default/BoardIndex.template.php Test successful
2. Replace ./Themes/default/BoardIndex.template.php Test successful
5. Execute Modification ./Themes/default/Display.template.php Test successful
1. Replace ./Themes/default/Display.template.php Test successful
2. Replace ./Themes/default/Display.template.php Test successful
3. Replace ./Themes/default/Display.template.php Test successful
6. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
1. Replace ./Themes/default/MessageIndex.template.php Test successful
2. Replace ./Themes/default/MessageIndex.template.php Test successful
7. Execute Modification ./Sources/ManagePermissions.php Test successful
1. Replace ./Sources/ManagePermissions.php Test successful
8. Delete File ./Sources/Ads.php
9. Delete File ./Sources/LoadAds.php
10. Delete File ./Themes/default/Ads.template.php
11. Delete File ./Themes/default/languages/Ads.english.php
12. Delete File ./Themes/default/languages/Ads.english-utf8.php
13. Execute Code UnInstall.php
Uninstall SimpleAds, then uninstall Ad Management, I think...
yes i have try but Still Showing Error
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions "Ad Managment" Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test failed
1. Replace ./index.php Test successful
2. Replace ./index.php Test successful
3. Replace ./index.php Test failed
That's because you're trying to uninstall Ad Management.
Uninstall SimpleAds FIRST.
Quote from: Arantor on May 19, 2010, 09:26:28 AM
That's because you're trying to uninstall Ad Management.
Uninstall SimpleAds FIRST.
yes i have Uninstalled SimpleAds but still Showing Error please suggest me now what i should do ??
So what mods did you install after Ad Management?
here is my mod list
Adk Portal 2.0 RC2 [ Uninstall ] [ List Files ] [ Delete ]
2. Ad Managment 2.3.6.2 [ Uninstall ] [ List Files ] [ Delete ]
3. Board Viewers Mod 1.2.1 [ Uninstall ] [ List Files ] [ Delete ]
4. View Single Post 2.0.7 [ Uninstall ] [ List Files ] [ Delete ]
5. SA Affiliates 3.3.5 [ Uninstall ] [ List Files ] [ Delete ]
6. Join date in Posts 1.0 [ Uninstall ] [ List Files ] [ Delete ]
7. Resize Attached Images 1.4 [ Uninstall ] [ List Files ] [ Delete ]
8. Advanced Recent Posts 1.1 [ Uninstall ] [ List Files ] [ Delete ]
9. Global Headers Footers 2.0 [ Uninstall ] [ List Files ] [ Delete ]
10. Internal_Links_Use_Same_Window 1.2 [ Uninstall ] [ List Files ] [ Delete ]
11. SimpleAds 1.0 [ Install Mod ] [ List Files ] [ Delete ]
12. Hide Tag 2.3.6 [ Uninstall ] [ List Files ] [ Delete ]
13. Referrals Mod 2.2.7.2 [ Uninstall ] [ List Files ] [ Delete ]
14. WYSIWYG Quick Reply v2 RC3 [ Uninstall ] [ List Files ] [ Delete ]
15. Fake Online Time | S-Ace 1.2 [ Uninstall ] [ List Files ] [ Delete ]
I'm pretty sure it's the portal mod you have. But it would be better if you request support about uninstalling Ad Management mod in its own support topic.
please help me guys i realy want to install this mod
i have install this mod and work fine
but now i'am geting this Error please see
http://forumnepali.com/index.php?board=18.08: Undefined index: foroFile: /home/forumnep/public_html/Sources/Subs.phpLine: 4082 http://forumnepali.com/index.php?action=post;topic=1840.0;num_replies=78: Undefined index: foroFile: /home/forumnep/public_html/Sources/Subs.phpLine: 4082
That error is not related to this mod. It should be another mod having "foroFile" index in one of its arrays.
Quote from: [SiNaN] on May 19, 2010, 07:27:34 AM
What's "adit icon"? Do you have any errors in the Error Log?
** off topic *** Hi [SiNaN] , is your forum' theme a custom one or is it available on this website?
You mean the one on simpleportal.net? It's a custom theme I made for sp.net:
http://simpleportal.net/index.php?topic=5307.0
No, i mean this one: http://www.samanyolufanlari.com/forum/index.php
ohhh, now i see that is a phpbb forum.......
thank you
He doesn't use SMF :)
Yeah, that's one of the forums I manage. It's running phpBB. The theme is proSilver Special Edition:
http://www.phpbb.com/customise/db/style/prosilver_special_edition/
Hi SiNaN, :D
I know NOTHING about ads. I tried A Manager and got lost. Un-installed that and installed Simple Ad, but it doesn't seem much different.
Um, I want to present two (2) ideas so that I can learn.
1) the following words as an ad
You are the most important person to someone you know.
Why? Because you can help, when no one else can or will.
Do you know that one out of every four women, and one in six men have been or are being abused?
You can make a difference, and it won't even cost you anything.
How? Simply share with them a place that offers compassion and understanding.
Resources and solutions. Guidance but never advice. Offer them A Sanctuary,
at http://www.asanctury.net.
Would like this on just the forum index
2) the attached Screen Shot shows that I would like the SMF Logo for Online Manual to be on the index and perhaps every board but NOT in Topics.
I want to learn so that is why I don't ask you to make it for me, rather "show" me and then I will be able to. If you look at some of my other posts, you will see that I am quite gutsy and will change source files if I have to in order to get the desired result.
I thank you or others in advance and look forward to a reply.
Be Well,
Cloud 8)
I've added "hour" to expiration time. But I think it has a problem :)
I've replaced this on ./Sources/ManageAds.php:
$values['duration'] = ((int) $_POST['expiration']) * 86400 * ($_POST['expiration_type'] == 3 ? 365 : ($_POST['expiration_type'] == 2 ? 30 : 1));
With this:
if ($_POST['expiration_type'] != 4)
$values['duration'] = ((int) $_POST['expiration']) * 86400 * ($_POST['expiration_type'] == 3 ? 365 : ($_POST['expiration_type'] == 2 ? 30 : 1));
else
$values['duration'] = (int) $_POST['expiration'] * 3600;
This on ./Sources/Subs-AdsAdmin.php:
$types = array(
3 => 86400 * 365,
2 => 86400 * 30,
1 => 86400,
);
With this:
$types = array(
4 => 3600,
3 => 86400 * 365,
2 => 86400 * 30,
1 => 86400,
);
And this on ./Themes/default/ManageAds.template.php:
<select name="expiration_type">
<option value="1"', $context['ad']['expiration'][1] == 1 ? ' selected="selected"' : '', '>', $txt['sa_generic_expire_days'], '</option>
<option value="2"', $context['ad']['expiration'][1] == 2 ? ' selected="selected"' : '', '>', $txt['sa_generic_expire_months'], '</option>
<option value="3"', $context['ad']['expiration'][1] == 3 ? ' selected="selected"' : '', '>', $txt['sa_generic_expire_years'], '</option>
</select>
With this:
<select name="expiration_type">
<option value="4"', $context['ad']['expiration'][1] == 4 ? ' selected="selected"' : '', '>Hour(s)</option>
<option value="1"', $context['ad']['expiration'][1] == 1 ? ' selected="selected"' : '', '>', $txt['sa_generic_expire_days'], '</option>
<option value="2"', $context['ad']['expiration'][1] == 2 ? ' selected="selected"' : '', '>', $txt['sa_generic_expire_months'], '</option>
<option value="3"', $context['ad']['expiration'][1] == 3 ? ' selected="selected"' : '', '>', $txt['sa_generic_expire_years'], '</option>
</select>
I've put 1 in Expiration and select Hour(s) then saved. When I return to edit page, I see 2.5 in Expiration field. It always multiplies with 2.5. Do you have any ideas?
Quote from: A Cloud Walker on May 23, 2010, 01:55:22 PM
I know NOTHING about ads. I tried A Manager and got lost. Un-installed that and installed Simple Ad, but it doesn't seem much different.
Um, I want to present two (2) ideas so that I can learn.
For 1; go to "Admin > SimpleAds > Advertisements > Add Ad". Fill in the "Name" as you like. Add this as "Body":
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content centertext">
You are the most important person to someone you know.<br />
Why? Because you can help, when no one else can or will.<br />
Do you know that one out of every four women, and one in six men have been or are being abused?<br />
You can make a difference, and it won't even cost you anything.<br />
How? Simply share with them a place that offers compassion and understanding.<br />
Resources and solutions. Guidance but never advice. Offer them A Sanctuary,<br />
at <a href="http://www.asanctury.net">http://www.asanctury.net</a>.
</div>
<span class="botslice"><span></span></span>
</div>
Check the "Below Menu" option for "Positions". Select "A" for all groups that you want them to see the ad. Check "Board Index" for the "Actions". Click "Add Ad" and that should be all.
For 2; I'm not sure how that's related to this board. You may want to ask that in support boards.
Quote from: Yağız... on May 23, 2010, 02:12:47 PM
I've added "hour" to expiration time. But I think it has a problem :)
....
I've put 1 in Expiration and select Hour(s) then saved. When I return to edit page, I see 2.5 in Expiration field. It always multiplies with 2.5. Do you have any ideas?
Couldn't reproduce that 2.5 issue. Try checking your edits again. Though, you need to change:
$types = array(
4 => 3600,
3 => 86400 * 365,
2 => 86400 * 30,
1 => 86400,
);
as this:
$types = array(
3 => 86400 * 365,
2 => 86400 * 30,
1 => 86400,
4 => 3600,
);
Otherwise it will always return the duration in hour format.
3600 fixes it :P Thanks :)
This mod supports php codes or onyl html codes?
SiNaN,
Thank you so much for your help!
The ad is AWESOME!! :D
All I have to do now is go to Dave's Site and look at his css stuff to figure what all the <div> and </div> and stuff does.
I posted the other request out on SMF 2.x Support Board. ;)
Thanks again,
Cloud 8)
Hi I'm having a slight problem..
I have this mod
View / Enter Board Permissions
Also I have your simple ads mod installed all works well untill a member who does not have access to a certain board..
It cuts the theme off and displays this error message.
Fatal error: Call to undefined function template_ad_position() in /home/uniquez-home/public_html/v2/Sources/Load.php(2458) : eval()'d code on line 394
I have made a custom position so that it shows just above the menu and below the info center.
Please could you help me with this error.
Quote from: Yağız... on May 24, 2010, 01:49:38 PM
3600 fixes it :P Thanks :)
You're welcome.
Quote from: akbora on May 24, 2010, 03:05:27 PM
This mod supports php codes or onyl html codes?
It doesn't support PHP content. Only HTML.
Quote from: A Cloud Walker on May 25, 2010, 01:30:16 AM
SiNaN,
Thank you so much for your help!
The ad is AWESOME!! :D
All I have to do now is go to Dave's Site and look at his css stuff to figure what all the <div> and </div> and stuff does.
I posted the other request out on SMF 2.x Support Board. ;)
Thanks again,
Cloud 8)
You're welcome.
Quote from: aljo1985 on May 25, 2010, 04:19:40 AM
Hi I'm having a slight problem..
I have this mod
View / Enter Board Permissions
Also I have your simple ads mod installed all works well untill a member who does not have access to a certain board..
It cuts the theme off and displays this error message.
Fatal error: Call to undefined function template_ad_position() in /home/uniquez-home/public_html/v2/Sources/Load.php(2458) : eval()'d code on line 394
I have made a custom position so that it shows just above the menu and below the info center.
Please could you help me with this error.
See if this fixes it:
Sources/Errors.php
// Don't bother indexing errors mate...
global $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
load_ads();
// Don't bother indexing errors mate...
Quote from: aljo1985 on May 25, 2010, 04:19:40 AM
Hi I'm having a slight problem..
I have this mod
View / Enter Board Permissions
Also I have your simple ads mod installed all works well untill a member who does not have access to a certain board..
It cuts the theme off and displays this error message.
Fatal error: Call to undefined function template_ad_position() in /home/uniquez-home/public_html/v2/Sources/Load.php(2458) : eval()'d code on line 394
I have made a custom position so that it shows just above the menu and below the info center.
Please could you help me with this error.
See if this fixes it:
Sources/Errors.php
// Don't bother indexing errors mate...
global $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
load_ads();
// Don't bother indexing errors mate...
[/quote]
Awsome Thanks worked a treat..
Great mod I must say BTW... Its great for when you wanna add banners for your own website showing people what you have to offer..
We wil be using this mod alot.. Not just for placing other peoples adverts can jazz up your style a little..
Awsome mod works great 2.
You're welcome. ;)
Might be off topic
Is it possible to place a link on the mod page (that would re-direct to a site or page that would have the information on how to build ads) for those of us that don't know how?
Thanks,
Cloud
I don't have the time to write such documents. I'll add some help pop-ups for the next versions though.
Quote from: [SiNaN] on May 26, 2010, 10:35:44 AM
I don't have the time to write such documents. I'll add some help pop-ups for the next versions though.
SiNaN
I figured that some instruction existed elsewhere, and you could just link it.
Cloud
I can't seem to get it to show when selecting (After First Post.) or (After Last Post).
The rest of the options are showing ok when testing.
How can I get it to show for after first post? Do I need to edit something?
Thanks for any help.
[Using smf2.0/rc3/core]
Where/How to change Rotation Ads timing?
Quote from: A Cloud Walker on May 26, 2010, 11:34:15 AM
Quote from: [SiNaN] on May 26, 2010, 10:35:44 AM
I don't have the time to write such documents. I'll add some help pop-ups for the next versions though.
SiNaN
I figured that some instruction existed elsewhere, and you could just link it.
Cloud 8)
Like?
Quote from: lllbob on May 27, 2010, 03:34:31 AM
I can't seem to get it to show when selecting (After First Post.) or (After Last Post).
The rest of the options are showing ok when testing.
How can I get it to show for after first post? Do I need to edit something?
Thanks for any help.
[Using smf2.0/rc3/core]
While installing the mod, did you apply the template edits for Core Theme as well? If not, try uninstalling the mod and installing it again; this time making sure you apply the template edits for Core Theme too.
Quote from: netjerk on May 27, 2010, 07:04:26 AM
Where/How to change Rotation Ads timing?
It doesn't have a timing. The ad will change for every page load.
Thanks SiNaN...
Awesome mod!
But i've found 2 bugs:
1. even when ad is inactive - its status on ads list is "active"
2. impression counter for images is ok, but for complicated banners as GoogleAdSense isn't working at all. How to fix it?
For 2: http://www.simplemachines.org/community/index.php?topic=381408.msg2633335#msg2633335
Quote from: Yağız... on May 28, 2010, 01:49:30 PM
For 2: http://www.simplemachines.org/community/index.php?topic=381408.msg2633335#msg2633335
ah, didn't see this reply. Thanks alot!
Quote from: Tair on May 28, 2010, 01:41:40 PM
1. even when ad is inactive - its status on ads list is "active"
Right. Thanks for the report! ;)
I'm looking forward to release a new version soon with adding some new features.
Quote from: [SiNaN] on May 29, 2010, 05:30:55 AM
Quote from: Tair on May 28, 2010, 01:41:40 PM
1. even when ad is inactive - its status on ads list is "active"
Right. Thanks for the report! ;)
I'm looking forward to release a new version soon with adding some new features.
thank you for your nice mod!
Found 1 more bug:
I'm using Simple Portal (latest release) on my smf 2.0 RC3 and i'm getting the following error on standalone SimplePortal page:
"Fatal error: Call to undefined function update_ad_impressions() in /www/forum/Sources/Subs.php on line 2892"
I managed to fix it via adding
function update_ad_impressions()
{
global $smcFunc, $context;
if (empty($context['displayed_ads']))
return;
$smcFunc['db_query']('', '
UPDATE {db_prefix}sa_ads
SET impressions = impressions + 1
WHERE id_ad IN ({array_int:displayed_ads})',
array(
'displayed_ads' => $context['displayed_ads'],
)
);
}
to the end of Sources/PortalMain.php but i'm sure this is not the solution.
Also ads anyway don't appear on portal page at all.
do you have the smf 1.11.1 parse file?
nice mod use full one thanks bro :)
Quote from: Tair on May 31, 2010, 05:36:51 PM
Found 1 more bug:
Thanks, I'll fix that as well.
Quote from: vomega on June 02, 2010, 11:23:28 AM
do you have the smf 1.11.1 parse file?
It doesn't work with SMF 1.1 versions. Only SMF 2.0 versions.
Quote from: luuuciano on June 03, 2010, 01:12:12 AM
it would be great if you expand that "in various locations of forum"... where?
people needs to know! :)
I read your previous lines saying that you do not have time... how much it takes to write 2 phrases? 5 minutes?
what about a few screenshots? 10 minutes?
custom ads location... 20 minutes maximum?
I do not want to sound harsh... I said this because I believe it is a good and useful mod, with a not too good description :)
I had some screenshots here:
http://www.simplemachines.org/community/index.php?topic=378707.0
But I couldn't attach them on the Mod Site due to a bug on this site.
I don't like writing long and fancy descriptions to my mods. I'll be adding some help pop-ups to the mod in the next version though.
---->>>> OFF TOPIC <<<<----
Having written a 275+ pages of html, it can be difficult. I have no idea how to write a mod, but I imagine just like html, if a period is placed where a coma goes, the mod will not function. Trying to hurry through is equal to "haste make waste".
Always let me remember, that almost all mods are written in the author's free time. They do NOT charge for the hours (not) minutes to write a mod.
All that said, (unless I am willing to say to the author I will give you x$) I don't think I should say, "I need you to do this or that."
I installed this mod 2 weeks ago, and asked for help because I didn't know how to use it for either text or image ads, especially the placement. The author answered quickly with how to place the text mod, and recommended that I ask on the Support Board for the image mod because it was a SMF Online Manual ad that I wanted to place in our forum.
I still haven't heard anything on that, but I just gently bump now and again. I would NOT necessarily insist that the mod author provide detailed instruction beyond the basic use of the mod ( I did however ask for a link, but none were available ) and so I will wait.
I know I will always catch more flies with honey than with vinegar.
Be Well and Take Care,
Cloud
First of all thanks for this great mod :)
Unfortunately I'm getting a lot of this errors:
http://www.anddev.it/index.php?action=dlattach;attach=1;type=avatar
2: Invalid argument supplied for foreach()
File: /home/jd82/www/anddev.it/Sources/Load.php
Row: 1797
Row 1797:
foreach ($settings['template_dirs'] as $template_dir)
The error occurs in an installation without any other plugin, but I can install all these plugins without which they generate errors:
1. RSS Feed Icon 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
2. Sitemap 2.1.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
3. Hide SMF Version 1.0.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
4. Topic Solved 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
5. Titled Links 1.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
6. Share This Topic 1.4 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
7. Tapatalk SMF Plugin 0.9.10 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
8. Error Log Counter 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
9. Favicon 1.3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
10. Vbulletin Style Meta Tags 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
11. Google Analytics Code 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
12. SimpleAds 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
13. YouTube BBCode 2.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
14. Users Online Today 1.5.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
15. GeSHi 1.0.4-rc3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
16. Spiders Don't Increase Topic Views 1.1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
17. Off-Topic_BBC_Tag 1.1.2-rc3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
18. Search Focus Dropdown 1.42 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
19. Yet Another Global Announcements Mod 2.7.3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
20. Reason For Editing Mod 2.3.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
21. move recent posts to the top 2.4 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
The error occurs only with SimpleAds. Any suggestions?
Bump.
Any ideas/suggestion? I'd love to use this mod :'(
It doesn't seem like caused by this mod. The mod won't do/load anything on dlattach action.
Quote from: [SiNaN] on June 07, 2010, 05:29:28 AM
It doesn't seem like caused by this mod. The mod won't do/load anything on dlattach action.
But the error only occurs after installing this mod. I tried several times to uninstall and reinstall and without this mod the error never happens.
I cannot reproduce it, so I don't have any suggestions.
If you pm me a temporary FTP and admin account, I could have a look at it on your forum.
I had the same error too, but I think it was because of SimplePortal and if I remember correctly commenting this:
// Attachments don't require the entire theme to be loaded.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && (!empty($modSettings['allow_guestAccess']) && $user_info['is_guest']))
detectBrowser();
// Load the current theme. (note that ?theme=1 will also work, may be used for guest theming.)
else
on ./index.php fixes it.
Quote from: [SiNaN] on June 07, 2010, 11:30:17 AM
I cannot reproduce it, so I don't have any suggestions.
If you pm me a temporary FTP and admin account, I could have a look at it on your forum.
You have a PM :)
SiNaN,
I posted this over on the Support for SMF 2.0 and this is what happened :-\
I attached a screen shot of where I want the ad to be.
I think that the code would be placed in the ./Themes/default/css/index.css
in this example "{" is substituted for "["
{right}
{url=link to online help}
{img}path to and name of image here{/img}{/a}
(this is just a guess from the html that I know)
Quote from: A Cloud Walker on June 08, 2010, 09:46:48 AM
Quote from: K@t on June 08, 2010, 07:43:29 AM
Quote from: A Cloud Walker on June 07, 2010, 07:58:46 PM
Quote from: A Cloud Walker on June 02, 2010, 05:41:02 PM
Quote from: K@t on June 02, 2010, 04:52:33 PM
Quote from: A Cloud Walker on June 02, 2010, 04:42:33 PM
Quote from: A Cloud Walker on May 25, 2010, 01:20:25 AM
Hello,
I am trying to use Simple Ads (by SiNaN) to have a link to the Online Manual just as it is here on SMF. O:)
Quote from: A Cloud Walker on May 23, 2010, 01:55:22 PM
Hi SiNaN, :D
I know NOTHING about ads.
Um, I want to present two (2) ideas so that I can learn.
1) SiNaN resolved this one.
2) the attached Screen Shot shows that I would like the SMF Logo for Online Manual to be on the index,
and perhaps every board, but NOT inside of Topics.
I thank you in advance,
Be Well,
Cloud 8)
Quote from: [SiNaN] on May 24, 2010, 12:40:03 PM
For 2; I'm not sure how that's related to this board. You may want to ask that in support boards.
I have attached the smaller Online Manual icon that I had attached for SiNaN. ;)
Of course, thanks in advance.
Be Well,
Cloud 8)
Bump
What is you're asking, Cloud?
Maybe my mind's gone a bit fluffy, but I don't see what you're after...
Hi K@T,
Good seeing you, and thanks for replying.
As requested by SiNaN, and as the attached Screen Shot shows:
I would like the SMF Logo for Online Manual to appear on the index,
and every board of the forum, but NOT inside of Topics, by using the Simple Ads Mod.
See attached Screen Shot.
Take Care,
Cloud 8)
Nudge?
If I were you, I'd post in that mod's support topic, Cloud.
They'll know more about it than we do. ;)
K@t,
Thank you for replying.
Will move this over there and then close this topic.
Be Well,
Cloud
I installed this Mods and it works fine but got the following errors in my logs:
Quote[08-Jun-2010 13:50:48] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/xxxxx/public_html/theinfostrides.com/Sources/Subs.php on line 2891
[08-Jun-2010 19:45:46] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/xxxxx/public_html/theinfostrides.com/Sources/Subs.php on line 2891
I also observed that "clicks" are not recorded. Please help!
Quote from: TheInfostrides.Com on June 08, 2010, 05:22:18 PM
I installed this Mods and it works fine but got the following errors in my logs:
Quote[08-Jun-2010 13:50:48] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/xxxxx/public_html/theinfostrides.com/Sources/Subs.php on line 2891
[08-Jun-2010 19:45:46] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/xxxxx/public_html/theinfostrides.com/Sources/Subs.php on line 2891
I also observed that "clicks" are not recorded. Please help!
Temp. fix
./Sources/Subs.phpfunction obExit($header = null, $do_footer = null, $from_index = false)
{
global $context, $settings, $modSettings, $txt, $smcFunc;
function obExit($header = null, $do_footer = null, $from_index = false)
{
global $context, $settings, $modSettings, $txt, $smcFunc, $sourcedir;
update_ad_impressions();
require_once($sourcedir . '/Subs-Ads.php');
update_ad_impressions();
This is a temporary fix until [SiNaN] updates the package.
Thanks Jblaze. I have apply the fix. I will observe what will happen.
Quote from: JD82 on June 04, 2010, 05:20:45 PM
First of all thanks for this great mod :)
Unfortunately I'm getting a lot of this errors:
http://www.anddev.it/index.php?action=dlattach;attach=1;type=avatar
2: Invalid argument supplied for foreach()
File: /home/jd82/www/anddev.it/Sources/Load.php
Row: 1797
Row 1797:
foreach ($settings['template_dirs'] as $template_dir)
The error occurred after installing SimpleAds. Any suggestions?
I removed
all plugins, but even so SimpleAds generates the error.
The error is
Invalid argument supplied for foreach ($settings['template_dirs'] as $template_dir), could be due to something on the filesystem? How $settings['template_dirs'] is initialized?
*headdesk*
It's not working... It's really risky to choose this once. I will not recommend or suggest for it.
Quote from: SurvivorOfAbuse on June 10, 2010, 05:52:41 PM
*headdesk*
Wow, very
usefull comment.
Forgive me if I'm not a web developer and I can not understand that code -_-
Quote from: JD82 on June 10, 2010, 06:01:51 PM
Quote from: SurvivorOfAbuse on June 10, 2010, 05:52:41 PM
*headdesk*
Wow, very usefull comment.
Forgive me if I'm not a web developer and I can not understand that code -_-
It was just a nice way for me to to say "nudge" or "bump"
Sorry, I misunderstood. I interpreted as a *facepalm* ;D
Good work sinan.
Congratulations
conflict between the simple portal and simple ads
during a simple portal and simple ads
when creating the right block in simple ads breaks layout page design
blocks in a simple portal disabled
separate modes working without problems
how to fix? problem in the mod simple ads
Can you add your ad body, Makar?
I installed a clean forum rc3
installed a simple ADs
tuned blocs
All shows perfectly..............
then put the simple portal
simply put
and the whole design is broken..........
in the portal settings do not touch
just disable the left and right column
but the design does not come back to normal until you remove the portal or disable blocks in simple ADs
I can provide a test account as a gift (address forum username / password) for viewing live
The issue relates more to the simple portal
[SiNaN] you also develops simple portal ............
please note on http://simpleportal.net/index.php?topic=5775.0
I mainly serve ads using a simple portal block
if you add a simple portal block configuration functions clicks / impressions / expiration as in Simple ADs, it will be very good. 8) :) :)
I will not have to use simple ADs :)
Great job SiNaN,
With the help and discussions in this thread I was able to execute this mod with out any problems.
Cheers
Deez
*waits patiently*
I'm away until 20th. (see my sig) So you'll have to wait until then, unless someone else helps.
I have googled "how to make ads" and
ONLY found proper wording and layout of subject matter, so, I will wait for anyone that can help with HOW to place ads in a particular area of a page (I don't get what the <div> does when used with a text ad), God help me with placing an image ad.
Probably unknown to everyone is, after posting "Link to the Online Manual" (http://www.simplemachines.org/community/index.php?topic=383271.msg2658983#msg2658983) on the "SMF 2.x Support" board, I was referred back here.
Quote from: K@t on June 08, 2010, 07:43:29 AM
If I were you, I'd post in that mod's support topic, Cloud.
They'll know more about it than we do. ;)
Hmmmm
If you want to show side bar adds only on home page not on post pages, then what to do?
Hello all.
I need some help with this mod.
How to move left (and right ad) from main wrapper to that blue space on left or right?
any news?
and what about SimplePortal problem, my layout also broken, when using Google Chrome
I just want to say great job on this mod! Much simpler to use on custom themes than the Ad Management mod!
It's a pity for those that still use the smf rc2. Is it possible to have the code for that version?
I have translated the mod into Malay language but does not properly shows in my Admin. The menu seems to be translated properly but the settings page is blank. Here is the file I have translated and modified accordingly. Did I miss any files?
And how do I place this inside first post using this mod?
Quote from: Abu Fahim Ismail on June 17, 2010, 01:20:46 PM
Quote from: rancitis on March 23, 2008, 07:53:23 AM
(http://img181.imageshack.us/img181/7449/picvt3.th.jpg)
Try this for SMF 2.0 RC3. Change left to right if you want it to be on the right side and the width accordingly with your ad size (+10px to be more beautiful).
Quote from: Abu Fahim Ismail on June 17, 2010, 09:28:46 AM
After some reference, I clean up the code a bit with ad only in the first post. Change float:left; width:270px; and adsense id to your need.
Find:
echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';
Replace:
echo '
<div class="inner" id="msg_', $message['id'], '"', '>';
if ($message['id'] == $context['first_message'])
echo '
<div style="float:left; width:270px;">
<script target="_blank" type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxx";
/* All 250x250 */
google_ad_slot = "8967115259";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js?target=_blank">
</script></div>';
echo '
', $message['body'], '</div>
</div>';
[SiNaN], help us to fix all bugs :P
at least wierd bug with left/right position while SimplePortal installed - design completely crushed in Opera/Google Chrome
p.s. to all:
i managed to fix layout via adding the following:
open
Themes\default\ads.template.php
add width="10%" or what do u need (i'm using 160px width vertical banner - so i added width="160px")
like
if (isset($context['ads']['right_side']))
{
echo '
<td style="vertical-align: top;" width="160px">';
and
if (isset($context['ads']['left_side']))
{
echo '
<td style="vertical-align: top;" width="160px">';
that fixed everything.
anyway i'd like to know how to move that banner from inner wrapper to that space around it.
[SiNaN] will be able to help when he is back in full swing. Until then, please hang tight ;)
The clicks are not recording on my admin panel.
I am sure the ads have been clicked on because adsenses recorded clicks and paid for it.
Is there anything i need to set ?
Ooops sorry. There is a mod for ad in the first post as I wanted already. I think I will just use that instead i.e. GoogAd Mod v1.1 (2.0 RC2+) http://custom.simplemachines.org/mods/index.php?mod=2565. Will use SimpleAds / SimplePortal for other locations.
On the second thought, I think it will also work with SimpleAds. I just need to do like this:
<div style="float:left; width:270px;">
<script target="_blank" type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxx";
/* All 250x250 */
google_ad_slot = "8967115259";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js?target=_blank">
</script></div>
Thanks for a great mod again.
Quote from: aljo1985 on May 26, 2010, 08:46:41 AM
Quote from: aljo1985 on May 25, 2010, 04:19:40 AM
Hi I'm having a slight problem..
I have this mod
View / Enter Board Permissions
Also I have your simple ads mod installed all works well untill a member who does not have access to a certain board..
It cuts the theme off and displays this error message.
Fatal error: Call to undefined function template_ad_position() in /home/uniquez-home/public_html/v2/Sources/Load.php(2458) : eval()'d code on line 394
I have made a custom position so that it shows just above the menu and below the info center.
Please could you help me with this error.
See if this fixes it:
Sources/Errors.php
// Don't bother indexing errors mate...
global $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
load_ads();
// Don't bother indexing errors mate...
Awsome Thanks worked a treat..
Great mod I must say BTW... Its great for when you wanna add banners for your own website showing people what you have to offer..
We wil be using this mod alot.. Not just for placing other peoples adverts can jazz up your style a little..
Awsome mod works great 2.
[/quote]
Hi sorry to bother you.. But I am still getting this error message :(
when I click on a board and do not have relevent permissions to access it.. Now when I 1st checked this I'm sure that this edit fixed it.
Seems like its not fixed the problem. Its still happening.
I double checked errors.php and the edit is there perfectly.
Just not sure why its folding me an error.
Any help would be great.
Actually the 1st issue that you fixed. It actually fixed the problem for registered Users. I tested as a guest to click on a board and I get this error.
So yeah the above post fixed the issuse for registered users but not guests.
Any chance you could help me with this?
Quote from: JD82 on June 04, 2010, 05:20:45 PM
First of all thanks for this great mod :)
Unfortunately I'm getting a lot of this errors:
http://www.anddev.it/index.php?action=dlattach;attach=1;type=avatar
2: Invalid argument supplied for foreach()
File: /home/jd82/www/anddev.it/Sources/Load.php
Row: 1797
Row 1797:
foreach ($settings['template_dirs'] as $template_dir)
The error occurs in an installation without any other plugin, but I can install all these plugins without which they generate errors:
1. RSS Feed Icon 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
2. Sitemap 2.1.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
3. Hide SMF Version 1.0.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
4. Topic Solved 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
5. Titled Links 1.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
6. Share This Topic 1.4 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
7. Tapatalk SMF Plugin 0.9.10 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
8. Error Log Counter 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
9. Favicon 1.3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
10. Vbulletin Style Meta Tags 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
11. Google Analytics Code 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
12. SimpleAds 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
13. YouTube BBCode 2.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
14. Users Online Today 1.5.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
15. GeSHi 1.0.4-rc3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
16. Spiders Don't Increase Topic Views 1.1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
17. Off-Topic_BBC_Tag 1.1.2-rc3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
18. Search Focus Dropdown 1.42 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
19. Yet Another Global Announcements Mod 2.7.3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
20. Reason For Editing Mod 2.3.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
21. move recent posts to the top 2.4 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
The error occurs only with SimpleAds. Any suggestions?
Bump :(
Quote from: SlammedDime on July 03, 2010, 12:50:30 PM
First off is SimpleAds (http://custom.simplemachines.org/mods/index.php?mod=2557) by [SiNaN] (http://www.simplemachines.org/community/index.php?action=profile;u=118168). Requiring minimal edits to a custom theme, this mod allows you to display HTML code in various locations of forum. You can limit ads by time, click, impressions, membergroups or actions. You can also create custom ad positions. A nice competitor to the Ad Management modification.
First of all, congratulations to SiNaN and his team. Secondly, I've read that SiNaN is not well for the time being. I really hope he will get better soon and continue supporting this mod.
Thanks for the mod, it's fantastic.
One question:
how can i change the position of the add in the first post? Let's say : random position of the add in the first post > left of the post, right of the post, up, etc.
More, how can i place a small space between add in post and the actual post?
Thank you.
I think for left or right, you just need to use float left or right.
For the ad after post, there is a setting for it.
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 08, 2010, 03:37:52 PM
I think for left or right, you just need to use float left or right.
For the ad after post, there is a setting for it.
I know about float, what i meant is an options to randomly show the ads in the left or the right (inside the first post). This way the user doesn't get "bored" by the ads position, and increases the chance to click on the ads.
Random eh? I am not sure how you can achieve this but you can try searching for random ads rotator or something and see how the code randomly display ads and just ads float left or right. I am not sure whether this will work but you can have a try.
Quote from: aljo1985 on June 26, 2010, 03:49:32 PM
Quote from: aljo1985 on May 26, 2010, 08:46:41 AM
Quote from: aljo1985 on May 25, 2010, 04:19:40 AM
Hi I'm having a slight problem..
I have this mod
View / Enter Board Permissions
Also I have your simple ads mod installed all works well untill a member who does not have access to a certain board..
It cuts the theme off and displays this error message.
Fatal error: Call to undefined function template_ad_position() in /home/uniquez-home/public_html/v2/Sources/Load.php(2458) : eval()'d code on line 394
I have made a custom position so that it shows just above the menu and below the info center.
Please could you help me with this error.
See if this fixes it:
Sources/Errors.php
// Don't bother indexing errors mate...
global $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
load_ads();
// Don't bother indexing errors mate...
As I stated b4 this error has gone away for registered members. But for guests when they click a board hey do not have permission to enter
It throws the same error at them.
Okay, I've searched and searched and hopefully someone can help me come up with a solution.
I'm running SMF 2.0 RC3 on my forum and everything was going great. The other day, I installed SimpleAds and am now having issues with people using Safari, on Mac or PC. I've tested this on a PC and confirmed that it is malfunctioning.
Present mods installed:
Member Awards
SMF Staff Page
Hide SMF Version
BK-SMF Website
Aeva Media
SMF Arcade
SMF Links
SimpleAds
So, when members log onto my forum using Safari, and click the REPLY button they are brought to the screen to post with a text box. Once they click in that box, if a SimpleAds banner is visable, it takes them to that website rather than allowing the member to type.
Members ARE able to tab to the text box and type in that way, however, when clicking on the POST button. The same function happens, they are taken to the website that the AD is for.
I've since disabled the AD's and this isn't happening presently, however, I need the AD's up cause I have sponsors asking about it already.
If anyone can point me in the right direction, I would sure appreciate it.
http://www.bayareaairsoft.org/forum (http://www.bayareaairsoft.org/forum)
Hi,
Thanks for your fantastic MOD.
How can I add more actions, for example for Aeva Media (?action=media)?
Please - let me know your suggest,
For sdsi:
Quote from: [SiNaN] on May 16, 2010, 04:05:36 AM
As a tip, if you want to display ads everywhere, just put "all" (without quotes) to Custom Display options field.
Quote from: [SiNaN] on May 16, 2010, 05:57:26 AM
As for people using portal and Custom Display option; "forum" will always return true. Only wildcard-like thing for this field is "all" which displays the ad everywhere. Apart from that, you need to use PHP. I haven't documented it yet though. For displaying an ad on ?action=forum, you would use something like this as Custom Display option:
{action} == 'forum'
At that rate, you can do Custom Display option like:
{action} == 'media'
OK - thanks a lot!
Quote from: punjablovers on June 17, 2010, 12:12:48 PM
If you want to show side bar adds only on home page not on post pages, then what to do?
Still waiting for answer
Quote from: punjablovers on July 20, 2010, 09:50:46 AM
Quote from: punjablovers on June 17, 2010, 12:12:48 PM
If you want to show side bar adds only on home page not on post pages, then what to do?
Still waiting for answer
Have you try the settings? IMHO you should not be asking something that you havent try. It is all there in the settings. You just need to explore a bit.
Thanks for this fantastic mod, [SiNaN].
I recently installed this mod in my test forum and ended up with the following error message right after adding my very first ad:
QuoteThe database value you're trying to insert does not exist: p_member_ip2
I'm wondering, is this because my test forum only has 1 registered member (that is, the Admin account only)? My test forum is a freshly installed SMF 2.0 RC3 version using the default theme with the following mods installed:
1. AJAX Instant Quick Reply 1.0.3
2. Users Online Today 1.5.6
3. AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
There were no errors when I installed the SimpleAds mod and I guess I'm just the second person to experience this based on a Google search performed about the error message. Right now, my test forum is unusable and I'm betting I would need to reinstall the test forum. No matter what page I load, I always get that error message now and I cannot even enter the Admin panel.
Also to give you a background, I only created the following ad which resulted to this unrecoverable error:
(http://img243.imagevenue.com/loc345/th_49705_SimpleAdsAd_122_345lo.jpg) (http://img243.imagevenue.com/img.php?image=49705_SimpleAdsAd_122_345lo.jpg)
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 20, 2010, 12:54:44 PM
Quote from: punjablovers on July 20, 2010, 09:50:46 AM
Quote from: punjablovers on June 17, 2010, 12:12:48 PM
If you want to show side bar adds only on home page not on post pages, then what to do?
Still waiting for answer
Have you try the settings? IMHO you should not be asking something that you havent try. It is all there in the settings. You just need to explore a bit.
Yes i tried that, but did not found any thing that i want!!!
Quote from: punjablovers on July 20, 2010, 06:36:08 PM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 20, 2010, 12:54:44 PM
Quote from: punjablovers on July 20, 2010, 09:50:46 AM
Quote from: punjablovers on June 17, 2010, 12:12:48 PM
If you want to show side bar adds only on home page not on post pages, then what to do?
Still waiting for answer
Have you try the settings? IMHO you should not be asking something that you havent try. It is all there in the settings. You just need to explore a bit.
Yes i tried that, but did not found any thing that i want!!!
You haven't explore it at all. It is there in the settings. Find the blocks setting and disable it for forum. SP > Settings > Block Settings.
Alternatively, you can set it from within the individual blocks.
mine seem nt 2 be working....do i need to uninstall ads management first 4 it 2 work?
ANY SOLUTION?
Yes, you cannot use both of them on the same forum since they modify the same files.
Quote from: John1 on July 28, 2010, 07:06:12 AM
Yes, you cannot use both of them on the same forum since they modify the same files.
Okay Thanks
Quote from: JD82 on July 01, 2010, 04:27:17 PM
Quote from: JD82 on June 04, 2010, 05:20:45 PM
First of all thanks for this great mod :)
Unfortunately I'm getting a lot of this errors:
http://www.anddev.it/index.php?action=dlattach;attach=1;type=avatar
2: Invalid argument supplied for foreach()
File: /home/jd82/www/anddev.it/Sources/Load.php
Row: 1797
Row 1797:
foreach ($settings['template_dirs'] as $template_dir)
The error occurs in an installation without any other plugin, but I can install all these plugins without which they generate errors:
1. RSS Feed Icon 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
2. Sitemap 2.1.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
3. Hide SMF Version 1.0.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
4. Topic Solved 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
5. Titled Links 1.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
6. Share This Topic 1.4 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
7. Tapatalk SMF Plugin 0.9.10 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
8. Error Log Counter 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
9. Favicon 1.3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
10. Vbulletin Style Meta Tags 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
11. Google Analytics Code 1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
12. SimpleAds 1.0 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
13. YouTube BBCode 2.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
14. Users Online Today 1.5.6 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
15. GeSHi 1.0.4-rc3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
16. Spiders Don't Increase Topic Views 1.1.1 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
17. Off-Topic_BBC_Tag 1.1.2-rc3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
18. Search Focus Dropdown 1.42 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
19. Yet Another Global Announcements Mod 2.7.3 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
20. Reason For Editing Mod 2.3.2 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
21. move recent posts to the top 2.4 [ Disinstalla ] [ Elenco dei file ] [ Elimina ]
The error occurs only with SimpleAds. Any suggestions?
Bump :(
I am also experiencing this same error message whenever a guest user is accessing a post that displays the poster's uploaded avatar. In case the poster is using one of the default avatars in SMF, this error does not show up. Can anyone suggest a fix please?
This error only occurs with SimpleAds. I also tried installing a fresh SMF RC3 installation and just installing SimpleAds - same error message appears. If I uninstall SimpleAds, the error message does not appear anymore.
Leave it up to me to mess up a SimpleAd:) Ok, I went to ADMIN -> SimpleAds -> Advertisements -> Add Ad
Name: Banner
Body Template:
Body: <div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content centertext">
<img src="http://www.rcing.net/images/468x60.gif" />,
</div>
<span class="botslice"><span></span></span>
</div>
Positions: Below Menu
Membergroups: A
Actions: Check All
Boards: Check All
Everything works on the front page. How do I get it to work on the forum?
One more thing very nice mod...:)
Site: www.rcing.net
To wickedstangs:
Quote from: [SiNaN] on May 16, 2010, 05:57:26 AM
As for people using portal and Custom Display option; "forum" will always return true. Only wildcard-like thing for this field is "all" which displays the ad everywhere. Apart from that, you need to use PHP. I haven't documented it yet though. For displaying an ad on ?action=forum, you would use something like this as Custom Display option:
{action} == 'forum'
How can I display ads between posts (as in ad management mod?)... For example between posts 3 and 7?
It should be something like:
in_array({posts}, array(3, 7))
That instant it isn't possible MultiformeIngegno with Custom Display. I'll tell another way. But I didn't try it.
+ Firstly, you should create a new ad position. Its namespace to be "between_posts".
+ Then you coding the belowing:
Open ./Themes/{your_theme}/Display.template.php
$ignoring = false;
if (++$msg_counter == 3 || ++$msg_counter == 7)
template_ad_position('between_posts');
$ignoring = false;
@grafitus: thanks for your help!! :)
I tried your method (cleaning the forum/browser cache after editing display.template.php) but ads (selecting the right permissions and the new namespace) do not appear...
i m using that mod but i faced some problems in main page ads are not shows for guest.
Pls, make it support 1.1.11 :'(
Quote from: king999 on August 13, 2010, 11:35:33 PM
i m using that mod but i faced some problems in main page ads are not shows for guest.
Are you sure giving the right permissions for guests?
Quote from: lastone on August 14, 2010, 11:00:34 AM
Pls, make it support 1.1.11 :'(
I guess [SiNaN]'ll not up(down)date (^^) to SMF 1.1.x versions...
Is there any way to display a particular ad on a particular topic/topics only ?
using custom display options , ie
Quote from: Tair on May 31, 2010, 05:36:51 PM
Found 1 more bug:
"Fatal error: Call to undefined function update_ad_impressions() in /www/forum/Sources/Subs.php on line 2892"
I have the same error (but I'm not using SimplePortal)...
SMF 2.0RC3
Quote from: JD82 on June 07, 2010, 05:15:00 PM
Quote from: [SiNaN] on June 07, 2010, 11:30:17 AM
I cannot reproduce it, so I don't have any suggestions.
If you pm me a temporary FTP and admin account, I could have a look at it on your forum.
You have a PM :)
Sorry, I didn't had time for this and forgot about it later. Please remove the access, if you haven't yet.
Quote from: SurvivorOfAbuse on June 08, 2010, 10:00:36 AM
SiNaN,
I posted this over on the Support for SMF 2.0 and this is what happened :-\
I attached a screen shot of where I want the ad to be.
I think that the code would be placed in the ./Themes/default/css/index.css
in this example "{" is substituted for "["
{right}
{url=link to online help}
{img}path to and name of image here{/img}{/a}
(this is just a guess from the html that I know)
The best I can suggest would be creating a Below Menu positioned ad with this as the body:
<div style="float: right;">
<a href="LINK"><img src="IMAGE" alt="" /></a>
</div>
<br style="line-height: 0; clear: both;" />
Quote from: InfoStrides on June 08, 2010, 05:22:18 PM
I installed this Mods and it works fine but got the following errors in my logs:
Quote[08-Jun-2010 13:50:48] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/xxxxx/public_html/theinfostrides.com/Sources/Subs.php on line 2891
[08-Jun-2010 19:45:46] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/xxxxx/public_html/theinfostrides.com/Sources/Subs.php on line 2891
This should fix it:
index.php
// If $maintenance is set specifically to 2, then we're upgrading or something.
require_once($sourcedir . '/Subs-Ads.php');
// If $maintenance is set specifically to 2, then we're upgrading or something.
Quote from: InfoStrides on June 08, 2010, 05:22:18 PM
I also observed that "clicks" are not recorded. Please help!
If the links are displayed by a JavaScript code (like in the case of AdSense) it won't be able to track click counts.
Quote from: JD82 on June 10, 2010, 04:52:00 PM
I removed all plugins, but even so SimpleAds generates the error.
The error is Invalid argument supplied for foreach ($settings['template_dirs'] as $template_dir), could be due to something on the filesystem? How $settings['template_dirs'] is initialized?
Could you describe me the steps to reproduce this issue? I'm unable to.
Quote from: admirable on June 10, 2010, 06:00:07 PM
It's not working... It's really risky to choose this once. I will not recommend or suggest for it.
Why is that so?
Quote from: Makar on June 11, 2010, 03:21:01 PM
conflict between the simple portal and simple ads
during a simple portal and simple ads
when creating the right block in simple ads breaks layout page design
blocks in a simple portal disabled
separate modes working without problems
how to fix? problem in the mod simple ads
Quote from: Makar on June 12, 2010, 05:06:01 AM
I installed a clean forum rc3
installed a simple ADs
tuned blocs
All shows perfectly..............
then put the simple portal
simply put
and the whole design is broken..........
in the portal settings do not touch
just disable the left and right column
but the design does not come back to normal until you remove the portal or disable blocks in simple ADs
I can provide a test account as a gift (address forum username / password) for viewing live
Quote from: Makar on June 12, 2010, 06:09:30 AM
The issue relates more to the simple portal
[SiNaN] you also develops simple portal ............
please note on http://simpleportal.net/index.php?topic=5775.0
I mainly serve ads using a simple portal block
if you add a simple portal block configuration functions clicks / impressions / expiration as in Simple ADs, it will be very good. 8) :) :)
I will not have to use simple ADs :)
I have attached a screenshot from my tests. It works fine for me. I need to know the exact steps to reproduce the issue.
Quote from: punjablovers on June 17, 2010, 12:12:48 PM
If you want to show side bar adds only on home page not on post pages, then what to do?
Check only "Board Index" option for "Actions" setting for the ad.
Quote from: Tair on June 18, 2010, 08:51:32 AM
Hello all.
I need some help with this mod.
How to move left (and right ad) from main wrapper to that blue space on left or right?
You'll need some custom coding, which I can't provide now.
Quote from: Tair on June 23, 2010, 05:56:31 PM
any news?
and what about SimplePortal problem, my layout also broken, when using Google Chrome
No idea what's broken.
Quote from: searchgr on June 24, 2010, 11:56:10 AM
It's a pity for those that still use the smf rc2. Is it possible to have the code for that version?
I don't have RC2 installed to test it, but the mod would probably work with it as well.
Quote from: ahrasis on June 24, 2010, 01:45:55 PM
I have translated the mod into Malay language but does not properly shows in my Admin. The menu seems to be translated properly but the settings page is blank. Here is the file I have translated and modified accordingly. Did I miss any files?
You don't need to include the codes in your language pack. Just the language files and language edits in modification.xml. I don't allow distribution of my code, even for translations.
Quote from: ahrasis on June 24, 2010, 01:45:55 PM
And how do I place this inside first post using this mod?
Quote from: Abu Fahim Ismail on June 17, 2010, 01:20:46 PM
Quote from: rancitis on March 23, 2008, 07:53:23 AM
(http://img181.imageshack.us/img181/7449/picvt3.th.jpg)
Try this for SMF 2.0 RC3. Change left to right if you want it to be on the right side and the width accordingly with your ad size (+10px to be more beautiful).
Quote from: Abu Fahim Ismail on June 17, 2010, 09:28:46 AM
After some reference, I clean up the code a bit with ad only in the first post. Change float:left; width:270px; and adsense id to your need.
Find:
echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';
Replace:
echo '
<div class="inner" id="msg_', $message['id'], '"', '>';
if ($message['id'] == $context['first_message'])
echo '
<div style="float:left; width:270px;">
<script target="_blank" type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxx";
/* All 250x250 */
google_ad_slot = "8967115259";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js?target=_blank">
</script></div>';
echo '
', $message['body'], '</div>
</div>';
Select "Inside First Post" as the "Positions" and check the boards you want it displayed for "Boards". Then you can use such a body:
<div style="float: left;">
content here
</div>
Quote from: John1 on June 25, 2010, 07:40:51 PM
The clicks are not recording on my admin panel.
I am sure the ads have been clicked on because adsenses recorded clicks and paid for it.
Is there anything i need to set ?
If the links are displayed by a JavaScript code (like in the case of AdSense) it won't be able to track click counts.
Quote from: aljo1985 on June 26, 2010, 03:49:32 PM
Hi sorry to bother you.. But I am still getting this error message :(
when I click on a board and do not have relevent permissions to access it.. Now when I 1st checked this I'm sure that this edit fixed it.
Seems like its not fixed the problem. Its still happening.
I double checked errors.php and the edit is there perfectly.
Just not sure why its folding me an error.
Any help would be great.
This should fix it:
index.php
// If $maintenance is set specifically to 2, then we're upgrading or something.
require_once($sourcedir . '/Subs-Ads.php');
// If $maintenance is set specifically to 2, then we're upgrading or something.
Quote from: Bogdan on July 08, 2010, 02:58:11 PM
how can i change the position of the add in the first post? Let's say : random position of the add in the first post > left of the post, right of the post, up, etc.
More, how can i place a small space between add in post and the actual post?
Use float and padding in the body code:
<div style="float: left; padding-right: 1em;">
content here
</div>
Quote from: Bogdan on July 09, 2010, 03:32:36 AM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 08, 2010, 03:37:52 PM
I think for left or right, you just need to use float left or right.
For the ad after post, there is a setting for it.
I know about float, what i meant is an options to randomly show the ads in the left or the right (inside the first post). This way the user doesn't get "bored" by the ads position, and increases the chance to click on the ads.
There is no way to make it random since its just HTML.
Quote from: viciousrumors on July 12, 2010, 09:36:34 PM
Okay, I've searched and searched and hopefully someone can help me come up with a solution.
I'm running SMF 2.0 RC3 on my forum and everything was going great. The other day, I installed SimpleAds and am now having issues with people using Safari, on Mac or PC. I've tested this on a PC and confirmed that it is malfunctioning.
Present mods installed:
Member Awards
SMF Staff Page
Hide SMF Version
BK-SMF Website
Aeva Media
SMF Arcade
SMF Links
SimpleAds
So, when members log onto my forum using Safari, and click the REPLY button they are brought to the screen to post with a text box. Once they click in that box, if a SimpleAds banner is visable, it takes them to that website rather than allowing the member to type.
Members ARE able to tab to the text box and type in that way, however, when clicking on the POST button. The same function happens, they are taken to the website that the AD is for.
I've since disabled the AD's and this isn't happening presently, however, I need the AD's up cause I have sponsors asking about it already.
If anyone can point me in the right direction, I would sure appreciate it.
http://www.bayareaairsoft.org/forum (http://www.bayareaairsoft.org/forum)
I have a feeling that it's related to the ad code you are using.
Quote from: SinnerSaint on July 20, 2010, 02:20:54 PM
Thanks for this fantastic mod, [SiNaN].
I recently installed this mod in my test forum and ended up with the following error message right after adding my very first ad:
QuoteThe database value you're trying to insert does not exist: p_member_ip2
I'm wondering, is this because my test forum only has 1 registered member (that is, the Admin account only)? My test forum is a freshly installed SMF 2.0 RC3 version using the default theme with the following mods installed:
1. AJAX Instant Quick Reply 1.0.3
2. Users Online Today 1.5.6
3. AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
There were no errors when I installed the SimpleAds mod and I guess I'm just the second person to experience this based on a Google search performed about the error message. Right now, my test forum is unusable and I'm betting I would need to reinstall the test forum. No matter what page I load, I always get that error message now and I cannot even enter the Admin panel.
Also to give you a background, I only created the following ad which resulted to this unrecoverable error:
(http://img243.imagevenue.com/loc345/th_49705_SimpleAdsAd_122_345lo.jpg) (http://img243.imagevenue.com/img.php?image=49705_SimpleAdsAd_122_345lo.jpg)
Doesn't seem to be related to this mod. It doesn't make use of a field named "p_member_ip2". If you have a mod installed related to IPs, that should be it.
Quote from: wickedstangs on August 03, 2010, 01:46:14 AM
Leave it up to me to mess up a SimpleAd:) Ok, I went to ADMIN -> SimpleAds -> Advertisements -> Add Ad
Name: Banner
Body Template:
Body: <div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content centertext">
<img src="http://www.rcing.net/images/468x60.gif" />,
</div>
<span class="botslice"><span></span></span>
</div>
Positions: Below Menu
Membergroups: A
Actions: Check All
Boards: Check All
Everything works on the front page. How do I get it to work on the forum?
One more thing very nice mod...:)
Site: www.rcing.net
Use this for "Custom Display":
{action} == 'forum'
Quote from: MultiformeIngegno on August 07, 2010, 05:16:46 PM
How can I display ads between posts (as in ad management mod?)... For example between posts 3 and 7?
It should be something like:
in_array({posts}, array(3, 7))
That is not possible currently.
Quote from: S-Ace on August 15, 2010, 12:52:14 PM
Is there any way to display a particular ad on a particular topic/topics only ?
using custom display options , ie
Using these as Custom Display:
$GLOBALS['topic'] == 1
or
in_array($GLOBALS['topic'], array(1, 2, 3))
Quote from: MultiformeIngegno on August 17, 2010, 07:53:14 AM
Quote from: Tair on May 31, 2010, 05:36:51 PM
Found 1 more bug:
"Fatal error: Call to undefined function update_ad_impressions() in /www/forum/Sources/Subs.php on line 2892"
I have the same error (but I'm not using SimplePortal)...
SMF 2.0RC3
This should fix it:
index.php
// If $maintenance is set specifically to 2, then we're upgrading or something.
require_once($sourcedir . '/Subs-Ads.php');
// If $maintenance is set specifically to 2, then we're upgrading or something.
Hi Sinan,
Thanks for the comprehensive response to all questions regarding your Mod. I will repeat what I have said a few pages ago regarding the error message:
http://www.forumname.com/test2/index.php?action=dlattach;attach=1;type=avatar
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/forumname/public_html/test2/Sources/Load.php
Line: 1793
This error message appears whenever a guest user is accessing a post that displays the poster's uploaded avatar. In case the poster is using one of the default avatars in SMF, this error does not show up.
This error only occurs with SimpleAds. I tried installing a fresh SMF RC3 installation and just installing SimpleAds (no other mods installed) - same error message appears. If I uninstall SimpleAds, the error message does not appear anymore.
I have recreated this issue two times already, the last time is today right after reading your reply. I created another test forum today just to be sure that the issue can be reproduced.
Steps done to reproduce issue:
1. Install SMF 2.0 RC3
2. Do not install ANY modification.
3. Check the error logs for any errors (haven't found any error even after creating several boards and posting several test posts).
4. Upload a user avatar in any account (in this case I uploaded an avatar to my Admin account). Note: the issue only appears with user-uploaded avatars; using the default avatars from SMF does not cause this issue.
5. Install SimpleAds 1.0.
6. Browse the forum using a logged in account and check the error logs, no errors will be generated.
7. Browse the forum from a different browser as GUEST. Check the error logs and immediately notice the above mentioned error messages.
Here are the screen shots of my error logs before and after the installation of SimpleAds 1.0:
BEFORE installation of SimpleAds
(http://i078.radikal.ru/1008/59/e3e81fe870f0.jpg)
AFTER installation of SimpleAds
(http://i078.radikal.ru/1008/61/c2e5ee9301dd.jpg)
This error is definitely caused by SimpleAds. I just don't know how to program using PHP but it's very logical that there must be some code in line 1793 of Load.php that triggers the error. I have attached a copy of my Load.php here.
(http://www.imageporter.com/xxsyhi6s8qac/blazer_lt_4dr_98_chevrolet_.jpg.html)
(http://www.imageporter.com/bih7vjxu5uj5/super-blazer-2.jpg.html)
(http://www.imageporter.com/yzqyx9khu6pp/premiumw.png.html)
It is effective ...
Not sure if there is a translation into Spanish?
Good Mod SiNaN.
Will install and update my comments.
Quote from: SinnerSaint on August 21, 2010, 10:18:51 PM
Hi Sinan,
Thanks for the comprehensive response to all questions regarding your Mod. I will repeat what I have said a few pages ago regarding the error message:
http://www.forumname.com/test2/index.php?action=dlattach;attach=1;type=avatar
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/forumname/public_html/test2/Sources/Load.php
Line: 1793
This error message appears whenever a guest user is accessing a post that displays the poster's uploaded avatar. In case the poster is using one of the default avatars in SMF, this error does not show up.
This error only occurs with SimpleAds. I tried installing a fresh SMF RC3 installation and just installing SimpleAds (no other mods installed) - same error message appears. If I uninstall SimpleAds, the error message does not appear anymore.
I have recreated this issue two times already, the last time is today right after reading your reply. I created another test forum today just to be sure that the issue can be reproduced.
Steps done to reproduce issue:
1. Install SMF 2.0 RC3
2. Do not install ANY modification.
3. Check the error logs for any errors (haven't found any error even after creating several boards and posting several test posts).
4. Upload a user avatar in any account (in this case I uploaded an avatar to my Admin account). Note: the issue only appears with user-uploaded avatars; using the default avatars from SMF does not cause this issue.
5. Install SimpleAds 1.0.
6. Browse the forum using a logged in account and check the error logs, no errors will be generated.
7. Browse the forum from a different browser as GUEST. Check the error logs and immediately notice the above mentioned error messages.
Here are the screen shots of my error logs before and after the installation of SimpleAds 1.0:
BEFORE installation of SimpleAds
(http://i078.radikal.ru/1008/59/e3e81fe870f0.jpg)
AFTER installation of SimpleAds
(http://i078.radikal.ru/1008/61/c2e5ee9301dd.jpg)
This error is definitely caused by SimpleAds. I just don't know how to program using PHP but it's very logical that there must be some code in line 1793 of Load.php that triggers the error. I have attached a copy of my Load.php here.
Interestingly, it happens only when I browse the forum with IE. See if this fixes it:
Sources/Subs-Ads.php
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
Quote from: turaper on August 21, 2010, 10:25:15 PM
(http://www.imageporter.com/xxsyhi6s8qac/blazer_lt_4dr_98_chevrolet_.jpg.html)
(http://www.imageporter.com/bih7vjxu5uj5/super-blazer-2.jpg.html)
(http://www.imageporter.com/yzqyx9khu6pp/premiumw.png.html)
It is effective ...
Not sure if there is a translation into Spanish?
There is no Spanish translation.
Respected Author,
Everything was installed properly.
I could not see anything on the admin page.
Under simple ads - advertisement, i could see only this
Ad Management
Welcome to the admin panel for the Ad Management Mod.
Edit Ads Add Ads Reports Settings Credits
------------
Nothing below it, even i clicked on all links and only blank page.
What is the best mod ? this one or ad managment
A.SK:
You need to uninstall Ad Management mod to be able to use this mod.
glennk:
Well, if you ask that in this topic, obviously I'll say this one.
Great answer. Can you explain why yours is the best though. You cant expect me to simply believe you ;D ;D
Just tried to install but im getting a parse error. I seem to be getting same error on every mod I try to install
1. Execute Modification modification.xml Modification parse error
2. Execute Modification modification.xml Modification parse error
Quote from: glennk on August 23, 2010, 03:48:07 PM
Great answer. Can you explain why yours is the best though. You cant expect me to simply believe you ;D ;D
layer based, so works flawlessly on all themes
I sorted the parse error. but still cant get it to install. All I get is a blank screen and this url
http://holderness-coast-fishing.co.uk/forum/index.php?action=admin;area=packages;sa=install2;package=SimpleAds_1.0.zip;pid=0
Quote from: glennk on August 23, 2010, 03:48:07 PM
Great answer. Can you explain why yours is the best though. You cant expect me to simply believe you ;D ;D
It requires minimal template edits. It allows you to select groups which will see ads and which won't. Gives full control over on which pages you want ads to be displayed. It allows you to add custom ad positions.
For your error; I don't have any idea. First issue should have been solved by creating a writable directory named "temp" in Packages directory.
Yes that solved the first issue, but I still cant install :'(
I faced some problems with.. simple ads my guest's are not see ads so what can i do i allready give permission to guest's..
but No guest see ads........
I have installed and it is working perfectly.
I have got 50,000 errors in error logs,
Guest
211.124.104.104
Type of error: General
http://forum.com/index.php?action=dlattach;attach=625;type=avatar
2: Invalid argument supplied for foreach()
File: /home/site/public_html/forum/Sources/Load.php
Line: 1809
On line 1809 of source / load, i have this
// No template to load?
if ($template_name === false)
return true;
foreach ($settings['template_dirs'] as $template_dir) - line 1809
{
if (file_exists($template_dir . '/' . $template_name . '.template.php'))
{
$loaded = true;
template_include($template_dir . '/' . $template_name . '.template.php', true);
$actual_template = $template_name . ' (' . basename($template_dir) . ')';
break;
}
}
Thank you
Quote from: glennk on August 24, 2010, 02:34:26 PM
Yes that solved the first issue, but I still cant install :'(
Are you able to install other mods or is this the only mod you are having problems with?
Quote from: king999 on August 26, 2010, 11:26:40 AM
I faced some problems with.. simple ads my guest's are not see ads so what can i do i allready give permission to guest's..
but No guest see ads........
What do you mean by "I already gave permission to guests"? How did you do that?
Quote from: A.SK on August 27, 2010, 05:43:13 PM
I have installed and it is working perfectly.
I have got 50,000 errors in error logs,
Guest
211.124.104.104
Type of error: General
http://forum.com/index.php?action=dlattach;attach=625;type=avatar
2: Invalid argument supplied for foreach()
File: /home/site/public_html/forum/Sources/Load.php
Line: 1809
On line 1809 of source / load, i have this
// No template to load?
if ($template_name === false)
return true;
foreach ($settings['template_dirs'] as $template_dir) - line 1809
{
if (file_exists($template_dir . '/' . $template_name . '.template.php'))
{
$loaded = true;
template_include($template_dir . '/' . $template_name . '.template.php', true);
$actual_template = $template_name . ' (' . basename($template_dir) . ')';
break;
}
}
Thank you
I have already posted the fix:
Quote from: バカ on August 22, 2010, 03:41:51 AM
Sources/Subs-Ads.php
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
First thought I'd just say great mod, it works perfectly for what I need, and the custom display support is neat :)
As mentioned earlier in the thread I notice click tracking hadn't been working for AdSense; due to the fact that the onclick is set on anchor tags rendered by the page rather than injected through JS; and even if that were worked around, AdSense ads are in an iframe (as are most, I assume) and you can't detect clicks in an iframe.
So, I thought I'd share some code that can be added to the ads.js script plus one line to Subs-Ads.php to at least approximate clicks :) (Granted you can still see the actual numbers in AdSense...but maybe there's other cases where this is handy, plus I just like seeing the clicks in the forum UI anyway :)
Note this makes a few assumptions and thus won't work in all cases:
1) You have one <div> that wraps your ad code (Edit Ad > Body), with a class that you specify in JS (see below)
2) You don't mind some inaccuracies on the click tracking since it's not really tracking clicks, just making educated guesses :)
So for my own ad body in the Edit Ad section I basically have:
<div class="simplead_wrapper">
<adsense code>
</div>
Then the following edits need to be made:
In Sources/Subs-Ads.php:
replace
$body = preg_replace('~<a([^>]+)>~', '<a$1 onclick="update_ad_clicks(' . $row['id_ad'] . ');">', un_htmlspecialchars($row['body'])\
);
with
$body = preg_replace('~<div([^>]+)>~', '<div$1 adid="'. $row['id_ad'] . '">', un_htmlspecialchars($row['body']));
Replace the entirety of ads.js with:
// There are two steps to make this work that must be done on the forum:
// 1) add a <div> wrapper around your ad code with a className, specified
// below by adClass
// 2) update Subs-Ads.php to add an adid attribute
// 3) thank moiph for writing this up :D (unless it doesnt' work --
// then yell at him)
new function() {
// the ad class here needs to match what's specified from the forum
var adClass = 'simplead_wrapper';
// current ad ID that's 'active', 0 means no ad
var currentAd = 0;
// update the ad clicks!
function update_ad_clicks(id_ad)
{
var temp_image = new Image();
temp_image.src = smf_prepareScriptUrl(smf_scripturl) + 'action=update_ad_clicks;ad=' + parseInt(id_ad) + ';xml';
}
// Some helper code to detect ad clicks
// we'll watch for a mouseover of a wrapper div for the ad
// and on unload of the page, if we hadn't seen a mouseout,
// we'll assume there was as click.
// This results in an approximation, don't assume this always means a click!
// (e.g. someone mouses over, and then refreshes the page)
function init()
{
// store the previous window onload, if one exists
var winOnload = window.onload;
window.onload = function() {
if (winOnload) {
winOnload();
}
// find all ads in the page and bindup our
// mouseover and mouseout events
var ads = getElementsByClassName(adClass);
for (var i = 0; i < ads.length; i++) {
ads[i].onmouseover = adOnmouseover;
ads[i].onmouseout = adOnmouseout;
}
}
// store the previous window onunload, if one exists
var winOnunload = window.onunload;
window.onunload = function() {
if (winOnunload) {
winOnunload();
}
// if we have an active ad ID, update the clicks for it!
if (currentAd) {
update_ad_clicks(currentAd);
}
}
}
// adOnmouseover
// gets the current ad's id
function adOnmouseover(ev)
{
currentAd = this.getAttribute('adid');
}
// adOnmouseout
// clears the curent ad id
function adOnmouseout()
{
currentAd = 0;
}
// some helper methods
// getElementsByClassName
// gets all child elements of el with the specified classname.
// if el is not defined, document will be used.
function getElementsByClassName(className, el) {
var el = el || document;
var children = el.getElementsByTagName('*');
var elements = [];
for (var i = 0; i < children.length; i++) {
var child = children[i];
if (hasClass(child, className)) {
elements.push(child);
}
}
return elements;
}
// hasClass
// returns true if el has the given class name
function hasClass(el, className)
{
var classNames = el.className ? el.className.split(' ') : [];
for (var i = 0; i < classNames.length; i++) {
if (classNames[i] == className) {
return 1;
}
}
return 0;
}
// bind up our events!
init();
}
I tested on FF 4, Chrome 5, and IE8 -- no promises for other browsers, but maybe it'll work :P
I don't know why my guest not shows ads. at board main page.
But if guests click login page or another page they see ads but they not see ads at main page
Thanks for the fix sinan.
As already asked in older topic.
Possibility to add post between topics , childboards and homepage between categories.
Any idea when it will be possible.
I am having a problem trying to place ads on the left side. I have taken a screenshot. The very left box is where I want the ads to be, where it doesn't interfere with my forum. The right box is where the ads end up, forcing my forum to the right side. How can I fix this?
Now 1 solve my problem all guests are not see ads but i gives permission to guest see ads but this is my 4 time i requesting for solve my problem but here know 1 helping me.
Can any1 solve that.
I got this error Fatal error: Call to undefined function update_ad_impressions() in /public_html/Sources/Subs.php on line 2837
some times ads shows some times not but after login ads shows
Quote from: A.SK on August 27, 2010, 05:43:13 PM
I have installed and it is working perfectly.
I have got 50,000 errors in error logs,
Guest
211.124.104.104
Type of error: General
http://forum.com/index.php?action=dlattach;attach=625;type=avatar
2: Invalid argument supplied for foreach()
File: /home/site/public_html/forum/Sources/Load.php
Line: 1809
On line 1809 of source / load, i have this
// No template to load?
if ($template_name === false)
return true;
foreach ($settings['template_dirs'] as $template_dir) - line 1809
{
if (file_exists($template_dir . '/' . $template_name . '.template.php'))
{
$loaded = true;
template_include($template_dir . '/' . $template_name . '.template.php', true);
$actual_template = $template_name . ' (' . basename($template_dir) . ')';
break;
}
}
Thank you
I have already posted the fix:
Quote from: バカ on August 22, 2010, 03:41:51 AM
Sources/Subs-Ads.php
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
Hi Sinan, thank you for the fix. I can confirm that the above-mentioned editing fixed the "
Invalid argument supplied for foreach()" error that many of us are encountering.
[Feature Request]
Ad Fader
Quote from: SinnerSaint on September 06, 2010, 11:55:04 AM
I have already posted the fix:
Quote from: バカ on August 22, 2010, 03:41:51 AM
Sources/Subs-Ads.php
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
Hi Sinan, thank you for the fix. I can confirm that the above-mentioned editing fixed the "Invalid argument supplied for foreach()" error that many of us are encountering.
It worked for me too ;D
Does anyone have the code for a custom php Simple Portal block? I created a new position and i have the code that SimpleAds gave it to me but i just couldnt get it to work in a block. I had search all this topic for this but i couldnt find it, and i search in Simple Portal forums aswell with no luck, thats why im asking here.
I hope u guys can help me out
what is the meaning of A,X,D in it that is seen above membergroup
Quote from: HotJoint on September 22, 2010, 11:27:08 AM
Does anyone have the code for a custom php Simple Portal block? I created a new position and i have the code that SimpleAds gave it to me but i just couldnt get it to work in a block. I had search all this topic for this but i couldnt find it, and i search in Simple Portal forums aswell with no luck, thats why im asking here.
I hope u guys can help me out
What is the code?
Have you put it correctly?
Quote from: Idiotji on September 25, 2010, 07:03:10 AM
what is the meaning of A,X,D in it that is seen above membergroup
Arantor replied that:
Quote from: Arantor on May 17, 2010, 12:23:18 PM
X = Disallow, like all other permissions.
A = a group has the permission
X = that group doesn't give the permission, but it doesn't block any other group giving it
D = deny, meaning it makes no difference what other groups grant this permission, the user doesn't have it.
Let's say a member is a Regular Member and Newbie post count group.
Let's say both groups have New topics = A. Means they can post a new topic.
Let's say, now that Regular Member has it as A but Newbie has it as X. The X doesn't block the A granting the permission. (which is the usual state of affairs)
Now let's say we make Newbie D for new topics. Now no matter what other groups they're a member of (except main admin group), they can't have that permission. X doesn't give it, D forces it to go away.
SO what to set the default values for membergroups i m not getting u properly,
I unticked the add placement below menu not to show on my registration page but it is showing. what can i do please ?
I dont want the ad to show on my registration page.
If you are using "overall" header or footer you need to uncheck those also.
Quote from: Spoogs on September 26, 2010, 10:49:07 AM
If you are using "overall" header or footer you need to uncheck those also.
I only checked this two boxes..
# Below Menu
# Above Info Center
this mod seems great but after I installed it, it messed up my forum...
Like the admin panel when I want to go to the simple ads options or some of other mod options it goes to the forum index and stuff like that... Seems all messed up... also when I login I get a database error
I really need some help with this...
I cant access the admin panel at all... Any option in which I click redirects me to the Forum Index...
Is there any filke I can edit to solve this?
(Before installing simple ads I had SimplePortal Installed and some other mods...)
And at login I get this error:
QuoteThe database value you're trying to insert does not exist: p_member_ip2
Only at the second time I manage to login properly
Where is the control panel for this mod ? I think I got it installed but cant find the controls for it.
yoursite/index.php?action=admin;area=ads
An Error Has Occurred!
Unable to load the 'ManageAds' template.
Quote from: glennk on October 03, 2010, 04:55:21 PM
An Error Has Occurred!
Unable to load the 'ManageAds' template.
Upload to your FTP (to ./Themes/default directory) the ManageAds.template.php file in the modification package.
Quote from: grafitus on October 03, 2010, 05:05:52 PM
Quote from: glennk on October 03, 2010, 04:55:21 PM
An Error Has Occurred!
Unable to load the 'ManageAds' template.
Upload to your FTP (to ./Themes/default directory) the ManageAds.template.php file in the modification package.
OK I did that. I now get a page with nothing on it other than site header and footer
Ok,
Ive done a manual install of everything.
I am now on this page :
http://holderness-coast-fishing.co.uk/forum/index.php?action=admin;area=ads
It says : "There are no ads created."
I cant see anywhere where I can create ads. Where do I look ?
Thanks for this great MOD.
can anyone offer me any help
Quote from: glennk on October 05, 2010, 04:41:01 PM
can anyone offer me any help
Ummm... click "Add Ad"
May want to be a little more specific.
Are there ads that you want to add, then do as i said above
If you were hoping the mod would create ads for you... wrong.
Where exactly does it say ad add ?? I cant see it anywhere at all.
Quote from: glennk on October 07, 2010, 04:17:04 AM
Where exactly does it say ad add ?? I cant see it anywhere at all.
Step 1... click the "Admin" button
Step 2... (see attached)
Is this the same mod as 'Ad Management'? Or is it available in 2 places?
this is a different mod that has less theme edits and is 2.0 only
Quote from: Spoogs on October 07, 2010, 09:37:42 AM
Quote from: glennk on October 07, 2010, 04:17:04 AM
Where exactly does it say ad add ?? I cant see it anywhere at all.
Step 1... click the "Admin" button
Step 2... (see attached)
Mmmm I dont have that option in my menu.
if you dont then.. perhaps the mod is not installed or not installed properly
Looking at your site you're using the default curve theme so you really shouldnt have any issues.
Were there any errors during installation?
Hmmm, I'm having a weird problem. I can't get ANY ad mod, (I have finally landed and am going to stick with yours because I like the interface!) to display any ads on my new forum I am setting up???? it has to be some setting somewhere or something, But I really can't figure out a darned thing I am doing wrong.. Please help
TIA, Paul R.
nevermind... being dumb..
Great mod, but...after installing it my error log is getting errors. It appears that the mod has a bad influence with SimplePortal and Aeva. I've got errors like:
8: Undefined index: theme_url
Apply Filter: Only show the errors from this file
File: /forum/Sources/Load.php
Line: 1945 --> $theme_name = basename($settings['theme_url']);
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /forum/Sources/Load.php
Line: 1855 --> foreach ($settings['template_dirs'] as $template_dir)
and many many others...
I unistall the mod, let the forum work about 24h, no errors. I have installed back... my log is again full...
It's a good mod, better then the AdManagement, please help..
Is there a way to add and ad in the profile box?
Of course there is. Firstly, you create a ad position. Then, SimpleAds'll redirect you for necessary procedures. ;)
Quote from: Diomet on October 10, 2010, 12:50:34 PM
Great mod, but...after installing it my error log is getting errors. It appears that the mod has a bad influence with SimplePortal and Aeva. I've got errors like:
8: Undefined index: theme_url
Apply Filter: Only show the errors from this file
File: /forum/Sources/Load.php
Line: 1945 --> $theme_name = basename($settings['theme_url']);
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /forum/Sources/Load.php
Line: 1855 --> foreach ($settings['template_dirs'] as $template_dir)
and many many others...
I unistall the mod, let the forum work about 24h, no errors. I have installed back... my log is again full...
It's a good mod, better then the AdManagement, please help..
http://www.simplemachines.org/community/index.php?topic=381408.msg2775704#msg2775704
Quote from: grafitus on October 12, 2010, 10:30:19 AM
Of course there is. Firstly, you create a ad position. Then, SimpleAds'll redirect you for necessary procedures. ;)
Is there a tutorial for this.. I am probably going to have a lot of questions??? For instance, I looked at the add position area but i didn't know what namespace meant...
and then i know how to edit php, noproblems there so i can add the line that needs to be added. BUT, i have no clue what the section name is called or where to find it in teh code. orrr even how to locate the section by myself... can someone help me out there?
Quote from: シナン on August 28, 2010, 05:43:07 AM
I have already posted the fix:
Quote from: バカ on August 22, 2010, 03:41:51 AM
Sources/Subs-Ads.php
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
loadTemplate('Ads');
if (($positions = cache_get_data('sa_positions', 240)) === null)
Thank you!
This is strange, i installed without errors, all the buttons are there in admin
* Edit Ads
* Add Ads
* Reports
* Settings
* Credits
But clicking on them brings up nothing, it just stays on the same page...any ideas? :-\
You need to have Ad Management mod completely uninstalled before you can use this.
Many thanks for the quick reply, when i uninstall ad management i get errors on uninstalling....bit scared to complete it..
Hi,
I'm trying to install this using a different theme, "Helios". All went well except for a failure on BoardIndex.template.php. It could not find the literal 'template_info_center();'
Helios has the following, and I'm wondering if it is as simple as doing the following...
// Here's where the "Info Center" starts...
echo $leftboxbot2. '
<img class="icon" id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), $rightboxbot2 , '
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>', $topbox;
// Remove Recent Posts
Can I replace
// Here's where the "Info Center" starts...
with
echo '<br class="clear" />';
template_ad_position('above_info_center');
// Here's where the "Info Center" starts...
I've attached my BoardIndex.template.php file if the sample code I've posted isn't enough to tell. Any help is GREATLY ppreciated.
How to display ads for all visitors? The brand I've tried X D and nothing ...
try A
I've tried including the A
Use only the A ... or try no t to use the D
This has been explained several times already but here you go
A = Allowed to view
X = not allowed to view (user will still be able to view ads if they are also in another group that has the A permission)
D = Denied (user will not be able to view the ads regardless of any other group they are in, even if the other group has the A permission)
As I said, for user works fine, the problem is with guests, I tried all the options and realized that nobody has solved the setting for guests.
May need to provide some additional info then, its working fine for guests for me.
What to do then?
Sent you a PM
Can someone maybe just tell me if what I'm trying to do is possible? Or not possible with this theme?
Quote from: ToeJam on October 18, 2010, 12:09:14 PM
Hi,
I'm trying to install this using a different theme, "Helios". All went well except for a failure on BoardIndex.template.php. It could not find the literal 'template_info_center();'
Helios has the following, and I'm wondering if it is as simple as doing the following...
// Here's where the "Info Center" starts...
echo $leftboxbot2. '
<img class="icon" id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), $rightboxbot2 , '
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>', $topbox;
// Remove Recent Posts
Can I replace
// Here's where the "Info Center" starts...
with
echo '<br class="clear" />';
template_ad_position('above_info_center');
// Here's where the "Info Center" starts...
I've attached my BoardIndex.template.php file if the sample code I've posted isn't enough to tell. Any help is GREATLY ppreciated.
Hi!
How can i display my ads on center? ::)
Quote from: Supp3rMario on October 30, 2010, 09:15:56 AM
Hi!
How can i display my ads on center? ::)
<div align="center">
...
...
</div>
;)
Well
Will be RC4 update? :)
Please Update for RC4 also
Quote from: jaisi on November 08, 2010, 11:51:56 AM
Please Update for RC4 also
I have been using simple ads , it is an excellent mod.
Recently upgraded my forum to 2.0 RC4. So when i tried to install simple ads , it had showed me error in index.php.
If you need to install in 2.0 RC4 , just go to index.php,Search for this line
// Do some logging, unless this is an attachment, avatar, toggle of editor buttons, theme option, XML feed etc.
Replace this line
// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
Then you could install the old package.
-------
Additional with the old package, we have a issue which fills the error log almost every visit of forum,
mentioned here - http://www.simplemachines.org/community/index.php?topic=381408.msg2763252#msg2763252So i have fixed this edit and the install issue on smf 2.0 RC4. Tried in my live forum and worked excellent.
Use the downloader i have attached, which is edited by me to sit in latest smf 2.0 RC4 version without any issue.シナン: Removed the attachment.
Hi,
I thought I'd try the free version before paying for the full version to make sure it installed ok.
It said that the install was successful and when I went into the control panel and clicked on the tabs, every screen was blank.
Ideas....?
vintagejetboats.com is the site
A.SK:
Thank you but I'll have to remove the attachment. I don't want different packages floating around. There should be only one, that's via Mod Site. I'll the mod myself.
dsantana:
I guess you are using the other mod. I don't have a paid version of this mod.
Mod is now updated for SMF 2.0 RC4!
Polish language
In attachment files ManageAds.polish-utf8.php and ManageAds.polish.php
Here Modifications.polish-utf8.php:
// SimpleAds
$txt['sa_admin_cat_title'] = 'SimpleAds';
$txt['sa_admin_title'] = 'Reklamy';
$txt['sa_admin_desc'] = 'Tutaj możesz zarządzać reklamami oraz miejscami gdzie mają być wyświetlane.';
$txt['sa_ads_list_title'] = 'Lista reklam';
$txt['sa_ads_add_title'] = 'Dodaj reklamę';
$txt['sa_ads_edit_title'] = 'Edytuj reklamę';
$txt['sa_positions_list_title'] = 'Lista pozycji';
$txt['sa_positions_add_title'] = 'Dodaj pozycję';
$txt['sa_positions_edit_title'] = 'Edytuj pozycję';
Quote from: シナン on December 03, 2010, 06:23:30 AM
A.SK:
Thank you but I'll have to remove the attachment. I don't want different packages floating around. There should be only one, that's via Mod Site. I'll the mod myself.
Dear Admin,
I found this mod is very useful, and seems you are busy. So i made some edits and uploaded.
Anyway you removed the file. And thanks for updating the mod.
PHP Fatal error: Call to undefined function update_ad_impressions() in /public_html/forum/Sources/Subs.php on line 2956
update_ad_impressions();
I found the solution of the problem. Open Portal index.php
// Wireless? We don't support you, yet.
require_once($sourcedir . '/Subs-Ads.php');
// Wireless? We don't support you, yet.
how to display advertisements under the text in the message?
./Themes/default/Display.template.php
$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '</div>
$message['body'], $message['id'] == $context['first_message'] ? '<br />' . template_ad_position('inside_first_post') : '', '</div>
I'm blown outta my mind but were do you find the link to add ads and such the control panel part. I can't seem to find it.
I threw the
),
'ads' => array(
'title' => $txt['sa_admin_cat_title'],
'permission' => array('admin_forum'),
'areas' => array(
'ads' => array(
'label' => $txt['sa_admin_title'],
'file' => 'ManageAds.php',
'function' => 'ManageAds',
'permission' => array('admin_forum'),
'icon' => 'ads.png',
'subsections' => array(
'ads' => array($txt['sa_ads_list_title']),
'addad' => array($txt['sa_ads_add_title']),
'positions' => array($txt['sa_positions_list_title']),
'addposition' => array($txt['sa_positions_add_title']),
),
),
),
Where ever I wanted need to replace like, but I didn't read my bad.
grafitus Thanks for the tip
Can you add support for when an ad is displayed in between posts, that you can set a certain user to be the name? Like vBulletin ads? I have subaccounts mod and use a account, "WelcomeBot" that when a new user registers, that account makes a new topic about them. I would like something like"AdvertisementBot" so I don't get lots and lots of posts with my account.
hi i have installled simpleads for rc4 but after installing i am not seeing any option in admin panel.
i dont know why simpleads option is not seeing in admin panel.
Sinan I have this error on smf RC4:
QuoteUnable to load the 'addAds' template.
Unable to load the 'main' template.
Unable to load the 'settingsAds' template.
Everything is ok on installation but after I have this error.
I have installed Ad management mod, maybe conflict ?
I also use another theme.
Quote from: amko_sa on January 04, 2011, 04:42:58 PM
Sinan I have this error on smf RC4:
QuoteUnable to load the 'addAds' template.
Unable to load the 'main' template.
Unable to load the 'settingsAds' template.
Everything is ok on installation but after I have this error.
I have installed Ad management mod, maybe conflict ?
I also use another theme.
Yes you have to uninstall the ad management mod for this to work perfectly.
Even i had the same issue, which is sorted uninstalling the ad management and install a fresh version of simpleads will work fine.
Quote from: A.SK on January 04, 2011, 05:21:45 PM
Quote from: amko_sa on January 04, 2011, 04:42:58 PM
Sinan I have this error on smf RC4:
QuoteUnable to load the 'addAds' template.
Unable to load the 'main' template.
Unable to load the 'settingsAds' template.
Everything is ok on installation but after I have this error.
I have installed Ad management mod, maybe conflict ?
I also use another theme.
Yes you have to uninstall the ad management mod for this to work perfectly.
Even i had the same issue, which is sorted uninstalling the ad management and install a fresh version of simpleads will work fine.
Tnx man solved :)
How to add ads in to SimplePortal block ?
I create a new position, added new block with PHP (in SimplePortal), pasted template_ad_position('new_position'); but ads are not showing
///
solution:
http://simpleportal.net/index.php?topic=6353.msg36833#msg36833
Interesting mod, thanks for making
I need help, I created a new block and put the code in the error index.template.php
echo '<br class="clear" />';
template_ad_position('top_menu');
I put this code in index.template.php
Error:
Fatal error: Call to undefined function template_ad_position() in /home/xxxxxxx/public_html/forum/Sources/Load.php(2327) : eval()'d code on line 411
Despite the error in ADS works perfectly, the error only happens on my homepage:
http://www.tectonny.com/
Please someone help me, I created a new position, and put in place index.template.php as I needed. Where did I go wrong?
echo '<br class="clear" />';
template_ad_position('top_menu');
Sorry, tectonny, i don't know much about PHP but someone knowledgeable should drop by soon.
I just want to say that this mod is so much better than Ad Management mod. :D Hopefully it will be made compatible with SMF 1.1.12
I want to use to place ads SimpleAds only visitors, but as you can not get this solution to show ads only to visitors:
if($context['user']['is_guest']){
echo '
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><script type="text/javascript"><!--
google_ad_client = "pub-4837076002256195";
/* Dobra 1 */
google_ad_slot = "4877219957";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script> <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
<td><script type="text/javascript"><!--
google_ad_client = "pub-4837076002256195";
/* Dobra 2 */
google_ad_slot = "3497510691";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script> <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>
';
}
Let's wait to see if the author gets a solution, there will not use SimpleAds for this position.
You don't need PHP for that. This mod probably has the most advanced and flexible ad permissions among others. See this:
Quote from: Arantor on May 17, 2010, 12:23:18 PM
X = Disallow, like all other permissions.
A = a group has the permission
X = that group doesn't give the permission, but it doesn't block any other group giving it
D = deny, meaning it makes no difference what other groups grant this permission, the user doesn't have it.
Let's say a member is a Regular Member and Newbie post count group.
Let's say both groups have New topics = A. Means they can post a new topic.
Let's say, now that Regular Member has it as A but Newbie has it as X. The X doesn't block the A granting the permission. (which is the usual state of affairs)
Now let's say we make Newbie D for new topics. Now no matter what other groups they're a member of (except main admin group), they can't have that permission. X doesn't give it, D forces it to go away.
That's sound advice, [SiNaN]. ;)
I am already using it on my SMF 2.0 RC4 forums and i would love to use this on all my SMF 1.1.12 forums as well.
I'm looking forward to see how this mod evolves. It should be interesting though.
Not allowed, already tested in every way and there is like, so I used php to solve my problem.
Quote from: tectonny on January 19, 2011, 03:21:30 PM
Not allowed, already tested in every way and there is like, so I used php to solve my problem.
You could have used a normal ad block to display it only to guests... without any PHP of any kind.
Quote from: Arantor on January 19, 2011, 06:30:02 PM
Quote from: tectonny on January 19, 2011, 03:21:30 PM
Not allowed, already tested in every way and there is like, so I used php to solve my problem.
You could have used a normal ad block to display it only to guests... without any PHP of any kind.
Explains how I could ...
Yes, and in the time you spent crafting that you could have configured it in the admin panel and be off doing something more fun.
I'm from Brazil and I'm using Google to post and did not quite understand what you mean.
That was the only way I found to solve my problem, my knowledge is almost nothing in the lineup. But I'm happy to have another alternative because I wanted the announcement appears to visitors and for some groups, and so I did only appears to visitors or for everybody.
That's why you do it with permissions. You make it visible for some, and use the deny permissions to hide it from others.
Yes, actually I have 8 groups on my forum, I wanted the ads to appear only for visitors and for groups only 3 ...
Yes, so you have to turn on ads by default and use deny permissions for the other groups so they don't see the ads.
How do I do this?
It's just like any other permission set up in the forum.
You select A for most groups. For the groups who must not see it (and remember a user doesn't have to have that group as their only group) select D. Just like the quote Sinan posted from me above. Just like you set permissions generally in the forum.
Arantor you do not understand, I'm done directly on the code index.template.php because SimpleAds is giving error while getting it right on index.template.php see the code I'm using the index.template.php
if ($ context ['user'] ['is_guest']) {
echo '
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<script <td> <type="text/javascript">! -
google_ad_client = "pub-4837076002256195";
/ Dobra * 1 * /
google_ad_slot = "4877219957";
google_ad_width = 300;
google_ad_height = 250;
//-->
</ Script> tipo script <= "text / javascript"
src = "http://pagead2.googlesyndication.com/pagead/show_ads.js">
</ Script> </ td>
<script <td> <type="text/javascript">! -
google_ad_client = "pub-4837076002256195";
/ Dobra * 2 * /
google_ad_slot = "3497510691";
google_ad_width = 300;
google_ad_height = 250;
//-->
</ Script> tipo script <= "text / javascript"
src = "http://pagead2.googlesyndication.com/pagead/show_ads.js">
</ Script> </ td>
</ Tr>
</ Table>
';
}
Yes, I saw the code you used, I'm not going to go through making that support different groups, because the mod should do it.
The Mod does not direct the inde.template.php the error function.
But thank you anyway ...
OK, so where exactly is this new position you added?
Saeger file index.template.php
Search for:
//patrocinio
You will see that I commented the code that had placed the SimpleAds with \ \ to not work
And below is the code manually placed ...
That's interesting... at that point in workflow, ads should have been loaded as far as I remember.
If I release the code until SimpleAds works fine, but the pages where I use ssi the error, as the research and my google homepage
Ah... that's something else. I think you should be able to load the Ads handler after including SSI.php but don't know quite enough to be sure about that.
Hi,
I installed this mod and I got this error message on the admin panel:
An Error Has Occurred!
Unable to load the 'main' template.
Getting the same message in posting reply in my board.
I made a thread in here (http://www.simplemachines.org/community/index.php?topic=418958.msg2927440#new)
I really need help.
Thanks in advance.
Just giving this a little nudge.
I am really desperate to solve my problem.
:'(
I appreciate all the help that I can get.
Thanks in advance for the help..
how to use it i didnt figure out. ad management is easy. how to use this?
how to add ad after first post. please help me.
if there is only 1 post it not showing ad after first post. what to do?
(Merged into one reply. Please use the edit feature instead if nobody has posted a reply to your query instead of posting a new reply every now and then. - (F.L.A.M.E.R) (http://www.simplemachines.org/community/index.php?action=profile;u=148579) did this.)
its the best ad mod i ever seen.
btw can u plz ad support for smf gallery mod. to add ads there too. :)
thank u.
Quote from: Jeet Chowdhury on January 27, 2011, 01:14:04 PM
btw can u plz ad support for smf gallery mod. to add ads there too. :)
You can create new ad position for SMF Gallery.
how to do that for smf gallery? plz guide me.
what is name space name of smf gallery.
plz reply i dont know how to do that.
Jeet Chowdhury, please refrain from doubleposting like that - it is annoying, fills the topic making it hard to read, and doesn't really speed up your support in any way... On the contrary, if you keep doing it, people will rather not help you at all...
sorry lexarma.
is there anyway to detect and blcok users who using ad blocking program?
Quote from: Jeet Chowdhury on January 28, 2011, 04:22:17 AM
is there anyway to detect and blcok users who using ad blocking program?
Not really, no, at least not really that reliably.
thanks arantor, but many people ad blocking program thats why. i think 60% people using ad blocking program this days.
and if i want to put adbrite inline code in forum posts where i need to put the adbrite code?
How do you get the same position to rotate through all the ads? I don't see a setting for it?
Wayyyy off topic Sinan, but i hope you can help .. I want to put a facebook like button above each first post like how you have it in the pic below
http://i40.tinypic.com/29wkcg6.png
Please Help ... I'm using 1.1.12
The Facebook Like code
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="button_count" show_faces="true" width="450"></fb:like>
My Display.Template
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="0" style="border-top:1px solid #e1dfe1;" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';
// Now for the attachments, signature, ip logged, etc...
Search the mod site for "Facebook" and you'll find a mod for that ;)
Quote from: LexArma on January 29, 2011, 01:19:05 AM
Search the mod site for "Facebook" and you'll find a mod for that ;)
I saw that, but it's for 2.0 and puts it below the message and it come in all messages, not just the first.
hi i think there some problem with css or something. see this screenshot. how to fix this?
Is there a way to do multiple actions?
ie {action} =='forum' and {action='contact'}
FYI, don't try using commas!
{action} == 'forum', 'contact' blowed up my forum real good. :)
After rescuing myself with phpmyadmin I thought I'd just ask before trying again. :)
if ($action == 'forum' || $action == 'contact')
(It would be || - or, rather than && - and, since you can't have $action being two different values...)
You can use PHP syntax, like:
{action} == 'contact' || {action} == 'forum'
Or:
in_array({action}, array('contact', 'forum'))
/me got confused, sorry...
Heh. It's a little confusing, I admit. But I guess it's the most powerful that's possible.
Thanks guys.
I just put it on today and I'm liking it. Experimenting can lead to fun and sometimes dangerous things though. :)
Quote from: RustyBarnacle on January 31, 2011, 06:36:58 PM
Thanks guys.
I just put it on today and I'm liking it. Experimenting can lead to fun and sometimes dangerous things though. :)
Hey Rusty .. can you tell me how you got the Facebook like button ??
http://www.yourlocalwateringhole.com/index.php?topic=11.0
Also you have an error at the bottom of your page ... but i guess you are testing...
Fatal error: Call to undefined function update_ad_impressions() in /home/cy4410/public_html/LWHCA/Sources/Subs.php on line 2940[/code/
Thanks for the catch on the error. I'll have to see if I can figure that one out.
The facebook like icon comes with the theme. Lots of Bloc's themes have them.
Quote from: RustyBarnacle on January 31, 2011, 07:44:59 PM
Thanks for the catch on the error. I'll have to see if I can figure that one out.
The facebook like icon comes with the theme. Lots of Bloc's themes have them.
o ok ... cool .. trying to get one on my site
excuse me, hi will u guys plz ans my that css related question? :(
Thanks for a really great mod; I've been wondering how to display ads on my forum. :)
Maybe this question as come up before? I was wondering how to get ads to align right inside the post, so that the text wraps around the ad.
Never mind, figured it out. XD
I have a mistake I become a ADS Template Mistake :( my Forum is not Open Joe becquse this fatal Error
So I installed the mod properly, expanded the database and made sure all the file edits were done but something is still wrong.
I cannot find it in Admin, and when I paste the url manually: (index.php?action=admin;area=ads;sa=addposition)
I get a broken page...
(http://img220.imageshack.us/img220/2415/examplea.jpg)
You are using currently RC2. But (if I'm not mistaken) SimpleAds released on RC3 time. So, may-be incompatible with RC2.
Quote from: grafitus on February 04, 2011, 04:33:55 AM
You are using currently RC2. But (if I'm not mistaken) SimpleAds released on RC3 time. So, may-be incompatible with RC2.
Well that is disheartening
There have been security fixes since RC2 as well.
I installed this MOD on my forum and all the pages went completly black...Ad by blank I mean the header and footer is there but where the content should be theres only the background...
Only the simple portal page working
Quote from: tbk22 on February 08, 2011, 02:16:37 AM
I installed this MOD on my forum and all the pages went completly black...Ad by blank I mean the header and footer is there but where the content should be theres only the background...
Only the simple portal page working
Make sure all the files that were supposed to get edited, did and that it extracted properly. Sometimes I find packages not doing this correctly..
Quote from: Stigmartyr on February 08, 2011, 02:19:50 AM
Quote from: tbk22 on February 08, 2011, 02:16:37 AM
I installed this MOD on my forum and all the pages went completly black...Ad by blank I mean the header and footer is there but where the content should be theres only the background...
Only the simple portal page working
Make sure all the files that were supposed to get edited, did and that it extracted properly. Sometimes I find packages not doing this correctly..
I had to make a DB backup and reinstall my forum from scratch... Im not sure If I will risk again... I prefer this Mod to Ad management but both have caused so many trouble and duplicate issues on my forums
after installing simple portal the ads not showing in forum area. how can i enable ad in forum area like this link,
http://muskilashan.com/index.php?action=forum
Up do rc5. Please :)
Will this install on rc3 ?
I'm trying to use the Custom Display field to get ads to display in custom ares like media (AEVA) and recenttopics (AJAX Recent Topics). Entering in either {action} == 'recenttopics' or {action} == 'media' works individually but I need to be able to enter both into the same ad. I tried {action} == 'recenttopics',{action} == 'media' and {action} == 'recenttopics,media' but neither worked right. Is this possible?
Using SMF 2.0 RC5.
Use PHP "or". Like: {action} == 'x' || {action} == 'y'
Quote from: [SiNaN] on February 15, 2011, 10:58:47 PM
Use PHP "or". Like: {action} == 'x' || {action} == 'y'
Thanks. Works great.
Hi Guys,
If you see this link (http://www.indiamike.com/india/health-and-well-being-in-india-f2/), there are two google adsense ads- one above the first topic and one below the last topic..
Now, with simple ads, I have created two new positions, but I don't know where exactly I should add the code... Can anyone please help?
Thank you!
Quote from: Jeet Chowdhury on February 13, 2011, 08:18:56 AM
after installing simple portal the ads not showing in forum area. how can i enable ad in forum area like this link,
http://muskilashan.com/index.php?action=forum
can anyone plz tell me how to show adzone in board index after installing simple portal??? thank you.
and a little border color missing in left side of the title of adverticing how to fix that.
the body template have a small bug. how to fix it. if i use this code,
<div class="cat_bar">
<h3 class="titlebg">Sponsor Links:</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
a small black come. how to remove it?
Quote from: zorro18 on February 16, 2011, 01:09:50 PM
Hi Guys,
If you see this link (http://www.indiamike.com/india/health-and-well-being-in-india-f2/), there are two google adsense ads- one above the first topic and one below the last topic..
Now, with simple ads, I have created two new positions, but I don't know where exactly I should add the code... Can anyone please help?
Thank you!
I hate to bump.. Any help would be truly appreciated.
Thanks!
Quote from: zorro18 on February 20, 2011, 09:16:25 AM
Quote from: zorro18 on February 16, 2011, 01:09:50 PM
Hi Guys,
If you see this link (http://www.indiamike.com/india/health-and-well-being-in-india-f2/), there are two google adsense ads- one above the first topic and one below the last topic..
Now, with simple ads, I have created two new positions, but I don't know where exactly I should add the code... Can anyone please help?
Thank you!
I hate to bump.. Any help would be truly appreciated.
Thanks!
It should go in the body of the block you created..
See Pic
(http://i43.tinypic.com/6pz5hs.png)
Thank you for the reply. I understand how to add the adsense codes.
I need help with adding the new ad positions. I have created a new position and I got this code.
Quotetemplate_ad_position('AboveTopics');
I want to add the above position, so that the ads can show just as show up in the below image
I don't think that option is available as seen by the 'positions checkboxes in the screenshot' .. you'd have to request it from he mod author
Have you tried to use 'Below Menu' (should be fairly close to above 1st post)
The position 'after last post' already exists
Quote from: aw06 on February 20, 2011, 09:53:35 AM
I don't think that option is available as seen by the 'positions checkboxes in the screenshot' .. you'd have to request it from he mod author
The Mod allows to create new positions.. The code above I gave you has to be inserted into some template based on our need. :) Thanks for the reply though!
Quote
Have you tried to use 'Below Menu' (should be fairly close to above 1st post)
The position 'after last post' already exists
I have already tried Below Menu. Thats not what I am looking for and I am already using after last post..The screen shot illustrates the ads which is the first topic in any board is the ad and the last as well...
Tested and working on RC5. Maybe the developer could add this info to the mod page, so others will know that this mod works with RC5.
I want below menu incenter hows to do that.
Hi,
I installed this earlier and it gave me all black display :(
I reinstalled smf again because I can't uninstall this mod (can't access admin area)
I really really wanted this mod but I don't know how to correctly install this mod
in my forum. Can anyone please help me to install this mod? i would really appreciate
some help. I am very new with smf and I don't have knowledge with php sql thing so
please bare with me.
Regards to all
I'll check the issues and update the mod in a few days. I don't have much time these days.
Looking forward to see the updates.
Good luck SiNaN!
Cheers
Quote from: Jeet Chowdhury on February 20, 2011, 07:53:54 AM
the body template have a small bug. how to fix it. if i use this code,
<div class="cat_bar">
<h3 class="titlebg">Sponsor Links:</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
a small black come. how to remove it?
plz ans me one this problem. :(
how to use custom display?
i want to use this,
{action} == 'forum'
position.
===========================================
ok i got it how to use multiple custom display?
i want to put ads between category.
Quote from: Jeet Chowdhury on February 22, 2011, 07:15:02 AM
how to use custom display?
i want to use this,
{action} == 'forum'
position.
===========================================
ok i got it how to use multiple custom display?
i want to put ads between category.
See http://www.simplemachines.org/community/index.php?topic=381408.msg2955386#msg2955386
if i set custom display then ads not showing in other places which i ticked. why? :S
I think because that it is the way it works. You either use the ad for the standard locations or for custom locations. Not both. I just created two ads. One using the standard locations and the other using the custom locations.
thank yu b4pjoe any idea on that block problem?
i found it it problem with SimpleAds mod. its a bug, the code must be
<div class="title_bar">
<h3 class="titlebg">Sponsor Links:</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
when select titlebg but it use cat_bg thats the problem. :D
Getting Error:
Unable to load the 'adsheaders_above' template.
It has pretty much shut my site down completely.
That sub template is not related to SimpleAds. It's a sub template of Ad Management mod. You probably didn't uninstall that mod properly before installing SimpleAds.
Should I erase the other one from phpmyadmin?
Too late, and it didnt work.
Nope. You need to make sure all changes that mod makes in SMF files are removed.
How?
Get the large upgrade package for 2.0RC5 http://download.simplemachines.org/ (http://download.simplemachines.org/)
Check out Upgrading SMF (http://docs.simplemachines.org/index.php?board=3.0;sort=subject)
What would that do?
Fix your problem
So far my site is back up and its not done adding the upgrade files, thanks a bunch.
That's great to hear ;)
Quote from: Road Rash on February 27, 2011, 03:54:29 PM
Get the large upgrade package for 2.0RC5 http://download.simplemachines.org/ (http://download.simplemachines.org/)
Check out Upgrading SMF (http://docs.simplemachines.org/index.php?board=3.0;sort=subject)
Here is a little trick that i always use when upgrading. Just upload the upgrade zip file to your main forum directory and then if you use cPanel, use the File Manager to extract that package, and so within seconds it should extract and overwrite all old files with new ones from the upgrade package. Now, all you have to do if run the upgrade.php and that's the fastest and also safest way (when manually uploading several files, sometimes the FTP connection is dropped and when it resumes it can corrupt the file).
Please see an attached I have a problem when I edit ads to located on left or right. I have an excess space beside adv. and it make my template confuse. Please resolve it for me. Thanks in advance.
Hello, Is it possible to show ads to visitors from search engines only. I tried doing a search but came up with nothing. WP and VB have a solution but I couldn't find one for SMF. This is much needed since smart pricing is common place now.
Thanks
Quote from: CR Forum on March 20, 2011, 01:34:29 AM
Hello, Is it possible to show ads to visitors from search engines only. I tried doing a search but came up with nothing. WP and VB have a solution but I couldn't find one for SMF. This is much needed since smart pricing is common place now.
Thanks
Hi CR Forum,
Good idea, in wordpress i have a plugin WP Greet Box.
Which popup some information while on google and yahoo search engines and even if visitors are coming from social networking sites.
Hope this is an good idea. SiNaN have to decide it.
does this do the flash ads???
like this forum has where it swaps between 2 or 3 ads?
thanks
Start using and understand it detaily.
While using this plugin, when uses come from Google, they will have google based ad.
When user come from bing, they will have bing based ad.
Same like if some one coming from digg , they will be shown with digg welcome ad.
Finally visitor from any social community will be welcomed according and shown particular ad.
Quote from: smitch6 on April 05, 2011, 01:43:31 PM
does this do the flash ads???
Yep, it does all ads in HTML.
Quote from: smitch6 on April 05, 2011, 01:43:31 PMlike this forum has where it swaps between 2 or 3 ads?
Yes, but position type should be "Rotating".
thats brill Grafitus
any ideas how to do it pls i'm not too keyed up on coding :~ sorry
thanks
Hello...
This is a great mod and is working fine.
I have a very small problem though...
I am using simpleportal and the ads are not displayed in the home page.
How can i fix this ?
Thank you.
Quote from: Yngwiedis on April 11, 2011, 11:10:41 AM
Hello...
This is a great mod and is working fine.
I have a very small problem though...
I am using simpleportal and the ads are not displayed in the home page.
How can i fix this ?
Thank you.
you could use Simple portal to display ads, just use a custom html block
But in this way is not take consideration of the clicks or impressions.
Am i right ?
Also is not using the rotation feature.
Some help please ?
Tried searching but found nothing!
How can i make ads below first post or under last look like posts?
Does simpleAds work with smf 1.1.13 please.
Thanks
Hi,
SimpleAds is a great mod and it is working fine until he hit my Impression Limit (20000).
Clicks = 63
Impressions = 20000
Expires = 27/01/13
Status = Expired
When I put now my impression limit to 100000, nothing happens. :(
Please help
You should delete and after add it again.
Quote from: grafitus on April 26, 2011, 02:17:27 PM
You should delete and after add it again.
Thank you grafitus :)
SimpleAds is the #1 ads mod for SMF, but it's unfortunately only for SMF2. Either way, the future is with SMF2, but i only hope that Sinan doesn't abandon his mod and keeps updating it for SMF2 for a long time to come. :) The alternatives to SimpleAds are nowhere as good. BTW, why hasn't it been updated for SMF2 RC5?
It works fine for RC5 for me.
finally got the other rubbish ad mod off my forum and installed this and got my 1st banner ad active :)
really happy now
1 question if i may pls
can this mod do automated swapping between ads.
ie shows 1 ad on a page, refresh the page and it'll show another ad
hope that make sense lol not sure what its called sorry
Not to worry i found out how to do it :)
i have a portal installed on my forum
http://www.christianstogether.co.uk/forum/index.php
is there any way i can have the banner more to the left of centre and the portal up to the top so the banner sits a little nicer?
instead of the portal starting below the banner
I have installed this mod and following the tips in this thread can display ads from affiliates (banner ads)or plain text no problem. If however I replace these ads with adsense code, nothing appears.
Is there something that disables adsense on multiple sites or do I need to wrap adsense code in anything special to make it visible?
Great Mod - I needed to understand exactly how it works before ads show up, but its sorted now. By reading the first few posts in this thread all the info is there.
Just need to work out the location of the Ad, when it will be displayed (or what pages) and who can see it (permissions) and hey presto - great ad management. Now I have powerfull ad management.
thank you again.
OK - I do have one question.....
I am using the 'inside first post' the add is vertically aligned to the top - http://www.gentlemanscode.com/index.php/topic,14.0.html (http://www.gentlemanscode.com/index.php/topic,14.0.html)
How do I get it to align to the bottom of the ad so it appear underneath the post text?
I have tried to wrap the code in a DIV, but that isn't working. Can anyone assist me get the ad in post align to the bottom of the post not the top?
Thanks in advance
Downloaded this when i already had anotehr ad mod installed and messed up my site... what can i do?
I use the web version of SMF, is this compatible?
Version Information:
Forum version: SMF 1.1.13 (more detailed)
Current SMF version: SMF 1.1.13
PHP version: 5.2.17
MySQL version: 5.1.56-community-log
Server version: Apache
GD version: bundled (2.0.34 compatible)
SMF 1.1.13? Try the other ad mod, this one isn't compatible.
do you know of a way to update SMF, I just downloaded it today and don't know why it's an older version, if 1.1.13 is old?
Yes 1.1.13 is really old. SMF RC5 is the most updated version. But I suggest you stick around until the next week as SMF 2.0 final will be released by that time. Developers have promised that it will be released within this month and you can take their word for it as it was an official announcement.
1.1.13 isnt "old" as it's the most recent version of smf 1
The issue is that this mod was not written to support smf 1 but the other ad mod does
What is the other Ad Mod?
ad management
i see u need at least one reply in order to make "after first post" work
is there an edit to make it show even there is no reply
i tried to mess around with display.template but didn't work
thx
would anyone an html code to make a rotating banner code.
I seem to be getting the following error message on my system error logs. How exactly do I fix this?
[01-Jun-2011 18:22:07] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/superher/public_html/Sources/Subs.php on line 2895
does php work instead of html for the codes
i have a non standard theme template to which i have applied the necessary changes as documented in the parser
/Themes/xxxx/BoardIndex.template.php
Find:
template_info_center();
Replace With:
echo '<br class="clear" />';
template_ad_position('above_info_center');
template_info_center();
And then loading forum index i receive this error
Fatal error: Call to undefined function template_ad_position() in /websites/ns/xxxxxxxx.com/public_html/Themes/Sunshine/BoardIndex.template.php on line 272
Any ideas please as everything else has gone across ok.
I hope SiNAN updates this great mod to be fully compatible with 2.0
I prefer this over the Ad Management mod due to its less-intrusive file changes and lesser number of queries (it would appear).
Actually, Bloc played a non-negligible part to turn me into a fan of this mod when i was discussing this on his (now defunct) blocweb site.
Keep up the good work!
Quote from: Eudemon on May 26, 2011, 05:48:57 PM
i see u need at least one reply in order to make "after first post" work
is there an edit to make it show even there is no reply
i tried to mess around with display.template but didn't work
thx
This will be fixed in the next version.
Quote from: agent47 on June 09, 2011, 11:13:28 AM
I seem to be getting the following error message on my system error logs. How exactly do I fix this?
[01-Jun-2011 18:22:07] PHP Fatal error: Call to undefined function update_ad_impressions() in /home/superher/public_html/Sources/Subs.php on line 2895
Are you sure you are using 1.0.1 version?
Quote from: CrazieGrafix on June 11, 2011, 11:59:26 AM
does php work instead of html for the codes
No, it doesn't support PHP. I think I'll add it with next version.
Quote from: yakyakyak on June 13, 2011, 06:12:07 AM
Any ideas please as everything else has gone across ok.
Make sure you have applied the changes to index.php file correctly.
Quote from: sharks on June 13, 2011, 07:19:17 AM
I hope SiNAN updates this great mod to be fully compatible with 2.0
I'll update it soon.
QuoteThis will be fixed in the next version.
thx, looking forward to it
btw sinan since when did you become a core developer? (don't hit me..
Where were you all this time? Sinan has been a dev for months now.
oh maybe because most of the time i saw/communicated with him is in simple portal site
kinda get used to the way his profile looks in simple portal -.-
Sinan any plans on updating this for SMF 2.0 bud ? If so; mind giving us an ETA ?
Just wanted to let everyone know this works perfectly on SMF 2.0 (no need of even using the emulate feature).
could some one telll me this mod working or not in 2.0 verion ??
I tried to apply the mod to 1.1.14 but got an error code saying "he package you are trying to download or install is either corrupt or not compatible with this version of SMF" please any body with the help of how to do this.
yes i'm also getting some error in version 2.0 so please help me how to fix this error
Personally I created a new position and put directly to use in the index.template.php created a page with SSI SMF forum position works very well, but the page created via ssi.php gave this error:
Fatal error: Call to undefined function template_ad_position() in /home/xxxxxx/public_html/forum/Themes/default/index.template.php on line 340
340 where the line is exactly where I put the following code:
template_ad_position('patrocinio_index');
Please help: i installed the simple ads mod and forum went blank
Good day house, i installed the simple ads mod so as to be able to display html banner on selected board but when i apply the mod under package manager, my forum went blank on www.talkict.com with error message that " Unable to load the 'adsheaders_above' template" please help i have deleted the file, i mean the mod under cpanel of my host in packages folder but still yet no restore, please help
Did you had any errors while installing? And can you try updating your ad templates with the templates from the SimpleAds package?
Quote from: Dr. Deejay on July 02, 2011, 11:13:01 AM
Did you had any errors while installing? And can you try updating your ad templates with the templates from the SimpleAds package?
i never have any error while installing the mod, and how will i update my ad template with the template from SimpleAds when i have even deleted the file from my cpanel but still not working, you can check for yourself at the site on www.talkict.com and see the error.
Just replace your current SimpleAds templates with the templates from the SimpleAds package :)
Quote from: Dr. Deejay on July 02, 2011, 11:23:02 AM
Just replace your current SimpleAds templates with the templates from the SimpleAds package :)
How will i do that when my forum never come and when i log in to my cpanel, the file is not there as i have already deleted it before but the error still persist, please check for yourself at www.talkict.com
Download the mod again, uncompress and replace the SimpleAds templates with the the ones from what you just downloaded.
Quote from: b4pjoe on July 05, 2011, 01:55:41 AM
Download the mod again, uncompress and replace the SimpleAds templates with the the ones from what you just downloaded.
How will i replace the file when i have already deleted the SimpleAds template file itself under my cpanel? or should i just upload the file to the package folder of my cpanel?
i have this mod on smf 2 and it does exactly what it says it will do except show adverts on the forum index
Hi.
I have a problem after installing SimpleAds.
I had it all installed but I put some code in the custom box and now I cant use any admin features, I keep getting ( Unable to load the 'main' template. )
Running smf 2.0
Thanks for any help.
edd.
Any updates due for SMF 2.0 Gold?
Thanks in advance
Maybe i'm doing something wrong here, I've installed simpleads and inputted the code in the add ad area, and nothing is showing anywhere. I've tried going through all the boxes and still nothing. Running 2.0. Is this not compatible? Any help would be great! Thanks.
I too am getting the "Unable to load the 'main' template" error in 2.0 Gold.
Quote from: nCogNeato on July 20, 2011, 11:47:14 PM
I too am getting the "Unable to load the 'main' template" error in 2.0 Gold.
Quote from: b4pjoe on July 05, 2011, 01:55:41 AM
Download the mod again, uncompress and replace the SimpleAds templates with the the ones from what you just downloaded.
I replaced "Ads.template.php" and "ManageAds.template.php", but I'm still gettin the "Unable to load the 'main' template" error in 2.0 Gold.
Are there other templates/files I need to replace?
*Other symptoms I'm experiencing*
- I (lone Admin) can only view the first page of a topic/board. If I try to view any other page, I'm redirected to the first page.
- I cannot log out of the forum. Clicking the "Logout" button gives me the "Unable to load the 'main' template" error.
- None of my forum users seem to be experiencing these issues. When I first attempted to activate SimpleAds, I limited the ads to Admins (only me) and guests just to test it out. Fortunately I didn't choose to test this with all member groups, as they would be having the same problems I'm having.
I went ahead and replaced all files with those in SimpleAds_1.0.1.zip, but the "Unable to load the 'main' template" error continued. So I gave up and just restored my backup since I couldn't go any longer without access to my forum.
I know there are other SMF 2.0 Gold users using SimpleAds without issue, so I'm guessing I either did something wrong with my SimpleAds setting post-installation, or perhaps one of my other mods are conflicting with it.
Here's a list of my mods if [SiNaN] or someone else wants to investigate this issue for future releases.
SMFPacks Shoutbox 1.0.3
Spoiler Tag 0.7.2a
YouTube BBCode 2.6
While tinkering around trying to get SimpleAds to work on my 2.0 Gold, I think I stumbled upon the cause of my problems. Custom Display
If I enter anything in the "Custom Display" box, it basically breaks my site for anyone assigned to see ads. If I leave the Custom Display box empty, everything works as it should (so far).
So hopefully SiNaN can take a look at how Custom Display reacts to the new 2.0 Gold environment for the next release.
Quote from: nCogNeato on July 24, 2011, 12:15:58 AM
While tinkering around trying to get SimpleAds to work on my 2.0 Gold, I think I stumbled upon the cause of my problems. Custom Display
If I enter anything in the "Custom Display" box, it basically breaks my site for anyone assigned to see ads. If I leave the Custom Display box empty, everything works as it should (so far).
So hopefully SiNaN can take a look at how Custom Display reacts to the new 2.0 Gold environment for the next release.
I use custom display and it works fine. What are you putting in there? Here is an example of my custom code for displaying ads on the Recent Topics page and the Media page.
{action} == 'recenttopics' || {action} == 'media'
I have installed this addon on 2.0, it screwed up the forum and I removed all the files it added, I am getting DB errors when trying to access any of my forum... How can I get my forum back? Is there a way to uninstall this mod manually?
I have attempted to restore my database, replaced the backup files and still getting an error :(
http://www.anotheradminforum.com/ anyone got any ideas?
Quote from: Shawn Gossman on August 02, 2011, 09:22:59 PM
I have installed this addon on 2.0, it screwed up the forum and I removed all the files it added, I am getting DB errors when trying to access any of my forum... How can I get my forum back? Is there a way to uninstall this mod manually?
When SimpleAds broke my forum (see my previous posts), I just used the automatic backup (http://www.simplemachines.org/community/index.php?topic=400356.0) to restore my forum to it's pre-SimpleAds state. I never touched my database.
Stupid me, deleted that backup thinking it could be causing the error LOL, so I am using the one before that and seeing if that will help. I suppose if that doesn't, I am screwed...
Nope, doesn't work... :( Any other options?
Edit: I have noticed, this is just in this theme. I went on FF and opened the forum, not logged it, it showed the default SMF theme and all was okay, when I logged in, it went to my theme with the same error
Edit again: Ignore all this, I am an idiot and did something wrong, I fixed it all... sorry for all the posts :p Thanks for the response about the addon backup, your my HERO!!!
I helped someone else? Now that's different. ;D
You're welcome.
Yeah. I would suggest people not use this modification, that was a nightmare lol
There are definitely some compatibility issues with SMF 2.0 Gold. It will work, but when it doesn't it completely breaks the forum.
I'm glad I got it working on my forum, but I look forward to the next release.
i was using SMF 2.0.RC3 and then i did upgraded to the new final version of SMF
while checking all the thing after the update i encounter this problem
when i open any post the contents are not visible instead this is what i am seeing:
Fatal error: Call to undefined function template_ad_position() in /home/doorfree/public_html/Sources/Load.php(2151) : eval()'d code on line 488
i use template Assassin instead of the default template
i was force to put my website to maintenance mode to avoid being criticized by the users
but to give you the idea of what i am talking about this is the link to my site to see what i am seeing (no login required to view it)
:http://www.doorfree.com/index.php/topic,499.0.html
some send me here as they believe it is due to the simpleads mod
please help me in the index page
i am also getting an error instead of showing the footer of smf and the stats or user online and all these stuff in footer
the error: Fatal error: Call to undefined function template_ad_position() in /home/doorfree/public_html/Sources/Load.php(2151) : eval()'d code on line 269
preview : hxxp:www.doorfree.com/ [nonactive]
Woondering if i should try install it in a 2.0 SMF Forum...
But reading this last messages, i don't know :(
SiNaN, will you update this Mod to 2.0 Gold ?!
Thanks.
I want to say that this works fine on 2.0. If your using a custom theme you'll need to do the manual edits to your theme templates.
Does anyone how to track click for flash banner using SimpleAds?
Some of the posts here were scaring me a bit.... so I tried on my test forum first (2.0 Gold).
no problems. 8)
Then.... I tried it on my live (2.0 Gold) forum....
no problems! :) 8)
guests get ads; members do not.
Awesome mod!
i got the message "Unable to load the 'adsheaders_above' template." when installing...please help!! :o
Quote from: btonge on September 05, 2011, 09:09:57 PM
i got the message "Unable to load the 'adsheaders_above' template." when installing...please help!! :o
me either lol
Hi is there a way that the ads will swap automatically
ie after 10 seconds swap to the next ad etc?
i have it set to 'rotating' but it's not doing it :(
i'm running 2.0 RC4
thanks
so any sollution?
adapted to SMF 2.0 and works.but i dont know how to make it package
edit:it does not show the advs
Quote from: btonge on September 05, 2011, 09:09:57 PM
i got the message "Unable to load the 'adsheaders_above' template." when installing...please help!! :o
HELLPP I GOT THISSS
along with the auto change between ads
will this mod allow flash banners?
how i can ads betwwen child boards?
is this thread active?
or is everyone busy :)
2.0 Gold. I'm afraid this mod broke my forum ... (thanks to Illori for the fix advice) http://www.simplemachines.org/community/index.php?topic=400356.0 It's a pity, as it looks to be a very good Mod. I'll be looking and hoping to see it fixed soon.
Hi there!
Sorry for my English once more )
I have one question, can i put this block
QuoteSMF 2.0 | SMF © 2011, Simple Machines
XHTML
RSS
WAP2
Page created in 0.092 seconds with 10 queries.
below overall_footer of SimpleAds?
I can't find what file should i modify and how.
Please, can you help me?
Change the ad from Overall Footer to Above Footer and the ad will appear above the SMF copyright.
Not so easy...
Ad block build with DIV and color scheme - so, i just can show you:
http://i.piccy.info/i7/39310db97b170f49bdc8dbb9508a49e9/1-5-437/49565257/footer.jpg
And i want something like this:
http://i.piccy.info/i7/5150b609e768cf466088f7a05decaea4/1-5-437/50262991/footer2.jpg
is this working with the current smf version? 2.0.1
thanks
I can't get adsense to display with this mod. I can see that the poster above me may be having the same problem.
Is there any support for this mod for 2.0.1?
Unfortunately, I'm no coder and the other ad management mod doesn't work for me as it shows that it fails the test prior to installing it.
If there is no support for this mod, does anybody know how to manually add adsense below the button bar in SMF?
Please, i need your help simpleads mod have blocked my access into the admin section of my smf 2.0.1. After several trial of not displaying my adverts. its response is always "unable to load the main template".
What do i do?
I am using SMF 2.0.2. I installed this mod and it was working altho the rotating portion was not working and it would not post an Ad on the Forum page? I input Forum Index in the custom field and now when I go into the Admin Panel and click on anything it takes me to the Forum Index page!!! HELP!!!
Never mind (F.L.A.M.E.R) fixed my Site!!! 8)
ive uploaded this site and i have had an error
'adsheaders_above' template
manchesterescortguide.co.uk
how do i bring it back to before i uploaded simple ads . ive deleted it from cpanel
what other files do i have to delete
thanks
Quote from: coolestman on November 09, 2011, 11:45:45 PM
Please, i need your help simpleads mod have blocked my access into the admin section of my smf 2.0.1. After several trial of not displaying my adverts. its response is always "unable to load the main template".
What do i do?
Grrrrrrrrrrrrrrrrr.... I now have this same issue.....
Quote from: [SiNaN] on May 17, 2010, 02:42:45 AM
Quote from: amigozone on May 17, 2010, 02:31:07 AM
i'm more confused now.. what is the relation between add position and that custom field...
Using that Custom Display field, you can define on which actions you want the ad to be displayed. Like you may have an ad setup for the Overall Header position. You want to display it on board index, help page and search page but no where else. So you'll use the display options. Most of the time Actions and Boards field will be enough. But if you want to define more complex conditions to display the ad, you can use the Custom Display field.
Quote from: amigozone on May 17, 2010, 02:31:07 AM
hey can u setup ads on my forum.. i can make an account for u with administrative permissions..??
Nope. I don't have time for that. That's something you need to do. I can just help when you can't figure out something with the mod. ;)
Quote from: !RFAN on May 17, 2010, 03:02:00 AM
okay.. i filled the custom field with "all" without commas... but still i cant see any ads.. :S
Searched for long, tried on custom display like media,downloads,etc etc.
Finally all in custom display worked = all
Thanks
Hey Folks,
A little while ago I had installed SimpleAds and everything seemed all good. However I just noticed that my error pages have an error in them and won't render (the irony is delicious). Based on the error message i receive on my error pages, it seems like the problem points to the SimpleAds mod. Specifically it seems like when the error page loads it is unable to find the template_ad_position() function. I've tried to manually include the file Subs-Ads.php in a number of places but it doesn't seem to make any difference.
Wonder if anyone has a fix or knows a workaround, like disabling the SimpleAd block when the page is an error page.
This is the error message:
Fatal error: Call to undefined function template_ad_position() in /home/xxx/Themes/default/index.template.php on line 188
Thanks.
As a temp hack I was able to wrap the smf function call with a conditional statement so that it does not display on the error page. I'm still looking for a more legit fix though. Anyone, anyone? Bueller? ;)
Quoteif($context['page_title'] != "An Error Has Occurred!" && $context['page_title'] != "Login") {
template_ad_position('top_ad');
}
On the homepage ,all the ads stop working. And they works on the topics page.Please help us.
PHP Fatal error: Call to undefined function template_ad_position() in public_html/Sources/Load.php(2271) : eval()'d code on line 301
Any solution..............
Doesn't seem to display adsense for me. Anyone have thoughts?
Quote from: [SiNaN] on May 25, 2010, 06:43:31 AM
Fatal error: Call to undefined function template_ad_position() in /home/uniquez-home/public_html/v2/Sources/Load.php(2458) : eval()'d code on line 394
I have made a custom position so that it shows just above the menu and below the info center.
Please could you help me with this error.
See if this fixes it:
Sources/Errors.php
// Don't bother indexing errors mate...
global $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
load_ads();
// Don't bother indexing errors mate...
[/quote]
Hello! Have same error make replace as you advise but - error still here. Please, can you help me?
Call to undefined function template_ad_position() in /home/***/data/www/***.org/forum/Sources/Load.php(2396) : eval()'d code on line 337
Quote from: [SiNaN] on February 15, 2011, 10:58:47 PM
Use PHP "or". Like: {action} == 'x' || {action} == 'y'
Is "all" == "all" a wild card for all actions or all boards? Not being particularly skillful at php I found it easier to ad "forum," directly to the default _display field in the DB, which seems to work but is harder to manage.
This program is working really well and I have a question regarding ad positioning. I have edited the index.php files to position the add beside the forum banner in the DS-Natural theme with the following code;
<div id="mainarea">
<div id="header" class="wrapper">
<div id="logo">
<a href="'.$scripturl.'" title=""></a>
</div>
<div id="adbanner">';
template_ad_position('PPBanner');
echo '
</div>
</div>';
I was wondering what code I would need to insert to have the template_ad_position('PPBanner') float on the right hand side of the <div id="logo">?
I have seen this CSS code that would work for two static images, could you call the template_ad_position('PPBanner') from the CSS file?
Quote from: Antechinus on November 19, 2012, 02:18:33 PM
..
body {
background: url(../images/custom/charset01.png) 0 100% 0 fixed no-repeat, url(../images/custom/charset02.png) 100% 100% 0 fixed no-repeat, url(../images/custom/mainbg.jpg) fixed;
background-color: #a7a7a7;
font: 13px/150% "Arial", "san-serif", sans-serif;
padding: 30px 0 0 0;
margin: 0;
}
going to install it, hope it still works :)
See if this fixes it:
Sources/Errors.php
// Don't bother indexing errors mate...
global $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
load_ads();
// Don't bother indexing errors mate...
[/quote]
I try that But still getting...............
function template_ad_position() in /Sources/Load.php(2322) : eval()'d code on line 291
[29-Dec-2012 18:06:19] PHP Fatal error: Call to undefined function template_ad_position() in /Sources/Load.php(2322) : eval()'d code on line 291
I use long time this mod. Worked fine so far, but now for some reason the ads aren't displayed above info center.
Installed the 1.0.1 version, without error. Before that i used 1.0 version.
All others place ads are fine.
How can i find why is that so.
Thanks for advise.
it's a good mod but abandoned or neglected.
Uninstalling is a mission.
I cant get this mod to show up images how do you do this ..?
What other mods are easy to do if this one is no longer supported ?
Use HTML code? BBcode?
Hi,
I install the above. modification is all about by. So I press install the installer. Redirects me to the main forum page and my eyes appears above. the message "Unable to load template 'Ads'." Uninstalled manually using the instructions to modify the parser. I can not go to the PA, summarizing the forum contains only one sub. The index.php file and removed the code related to that contained "Ads" but it created a new bug, so reinstated. Any ideas? Hosting supports PHP 3.4 and 5 Translated by Google. SMF 2.0.4 SharkMake Problem solved, I reinstalled forum. Translated by Google.
Regards,
eQuuS
Quote from: eQuuS on March 27, 2013, 04:12:52 PM
Hi,
I install the above. modification is all about by. So I press install the installer. Redirects me to the main forum page and my eyes appears above. the message "Unable to load template 'Ads'." Uninstalled manually using the instructions to modify the parser. I can not go to the PA, summarizing the forum contains only one sub. The index.php file and removed the code related to that contained "Ads" but it created a new bug, so reinstated. Any ideas? Hosting supports PHP 3.4 and 5 Translated by Google. SMF 2.0.4 SharkMake Problem solved, I reinstalled forum. Translated by Google.
Regards,
eQuuS
And I getting this error.. Can anybody know how to fix it?
Session ID
Hi all. Here's an issue I've discovered. Using Firefox or Chrome, if you're logged out and close the browser, the next time you open the browser and select an ad (in this case the ad takes you to a local thread), it adds session ID information to the path. If you go back to the main page (where the ad is located) and select the ad again, the session ID info is no longer added and takes you directly to the href link. Is there any way to avoid the session ID when first accessing the site? There's only the one ad in the right column as shown in the following link.
http://www.ussgrahamcounty.com/graco/index.php (http://www.ussgrahamcounty.com/graco/index.php)
That's not specific to this mod - that's something SMF does to *every* link that's referencing the forum. Changing that has some... interesting... consequences.
I am not sure if this is relevant to anyone's issues that I have read in this thread but I will post a code fix for this mod.
The edit to the /Sources/Subs.php file is missing a require command prior to calling one of the mods function. I noticed this today while fixing someone's forum as their php error log (file) was showing unknown function errors.
I will include a bit of extra code to ensure a proper reference.
File: /Sources/Subs.php
find:
// Ends execution. Takes care of template loading and remembering the previous URL.
function obExit($header = null, $do_footer = null, $from_index = false, $from_fatal_error = false)
{
global $context, $settings, $modSettings, $txt, $smcFunc;
replace with:
// Ends execution. Takes care of template loading and remembering the previous URL.
function obExit($header = null, $do_footer = null, $from_index = false, $from_fatal_error = false)
{
global $context, $settings, $modSettings, $txt, $smcFunc, $sourcedir;
require_once($sourcedir . '/Subs-Ads.php');
Hi [SiNaN] !
Im testing this mod on my website...
Can see this screenshot and tell me if are posible move the ad outside the portal on the right side???
Thanks!!!
Attached screenshot...
Would someone find it in their heart to help me add a profile option for users to enable ads to "support the site"? I currently have ads disabled for users logged in, to keep them happy, but if some want to enable them, I'm not sure where I'd add code.
Please help me. I installed this mod and guess what... I wanna cry. My forum has gone down displaying "Unable to load the 'adsheaders_above' template". I have gone inside the cpanel to delete the simple ads mod, yet the problem persist. Please help me rectify this issue. It is a growing forum with large number of members. forget to backup. Thanks in advance
My site is naijapot.com
Great mod.
Here is the Greek translation.
This is for the existing installation .xml file.
<file name="$languagedir/Modifications.greek.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SimpleAds
$txt['sa_admin_cat_title'] = 'SimpleAds';
$txt['sa_admin_title'] = 'Διαφημίσεις';
$txt['sa_admin_desc'] = 'Σε αυτή την περιοχή μπορείτε να διαχειριστείτε τις διαφημίσεις και τις θέσεις.';
$txt['sa_ads_list_title'] = 'Λίστα διαφημίσεων';
$txt['sa_ads_add_title'] = 'Προσθήκη διαφήμισης';
$txt['sa_ads_edit_title'] = 'Επεξεργασία διαφήμισης';
$txt['sa_positions_list_title'] = 'Λίστα θέσεων';
$txt['sa_positions_add_title'] = 'Προσθήκη θέσης';
$txt['sa_positions_edit_title'] = 'Επεξεργασία θέσης';
]]></add>
</operation>
</file>
This is for a separate installation .xml file that need to be utf-8 encoded.
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SimpleAds
$txt['sa_admin_cat_title'] = 'SimpleAds';
$txt['sa_admin_title'] = 'Διαφημίσεις';
$txt['sa_admin_desc'] = 'Σε αυτή την περιοχή μπορείτε να διαχειριστείτε τις διαφημίσεις και τις θέσεις.';
$txt['sa_ads_list_title'] = 'Λίστα διαφημίσεων';
$txt['sa_ads_add_title'] = 'Προσθήκη διαφήμισης';
$txt['sa_ads_edit_title'] = 'Επεξεργασία διαφήμισης';
$txt['sa_positions_list_title'] = 'Λίστα θέσεων';
$txt['sa_positions_add_title'] = 'Προσθήκη θέσης';
$txt['sa_positions_edit_title'] = 'Επεξεργασία θέσης';
]]></add>
</operation>
</file>
This is to be saved in two files, ManageAds.greek.php and ManageAds.greek-utf8.php
<?php
// Version: 1.0.1; ManageAds
// Important! Before editing these language files please read the text at the top of index.english.php.
// Ads
$txt['sa_ads_name'] = 'Όνομα';
$txt['sa_ads_body_template'] = 'Πρότυπο σώματος';
$txt['sa_ads_body'] = 'Σώμα';
$txt['sa_ads_status'] = 'Κατάσταση';
$txt['sa_ads_click_limit'] = 'Όριο των κλικ';
$txt['sa_ads_impression_limit'] = 'Όριο εμφανίσεων';
$txt['sa_ads_expiration'] = 'Λήξη';
$txt['sa_ads_created'] = 'Δημιουργήθηκε';
$txt['sa_ads_positions'] = 'Θέσεις';
$txt['sa_ads_membergroups'] = 'Ομάδες μελών';
$txt['sa_ads_actions'] = 'Ενέργειες';
$txt['sa_ads_boards'] = 'Πίνακες';
$txt['sa_ads_custom_display'] = 'Προσαρμοσμένη εμφάνιση';
$txt['sa_ads_clicks'] = 'Κλικ';
$txt['sa_ads_impressions'] = 'Εμφανίσεις';
$txt['sa_ads_expires'] = 'Λήγει';
$txt['sa_no_ads'] = 'Δεν έχουν δημιουργηθεί διαφημίσεις.';
// Positions
$txt['sa_positions_name'] = 'Όνομα';
$txt['sa_positions_namespace'] = 'Όνομα χώρου';
$txt['sa_positions_type'] = 'Τύπος';
$txt['sa_positions_notice_title'] = 'H θέση δημιουργήθηκε';
$txt['sa_positions_notice_body'] = '<p>H θέση δημιουργήθηκε με επιτυχία!</p><p>Για να εμφανίσετε τις διαφημίσεις στη θέση που δημιουργήθηκε, προσθέστε την ακόλουθη παράμετρο στο σημείο όπου θέλετε οι διαφημίσεις να εμφανίζονται:<br /><br /><code class="bbc_code">template_ad_position(\'%1$s\');</code></p>';
$txt['sa_no_positions'] = 'Δεν έχουν δημιουργηθεί θέσεις.';
// Generic
$txt['sa_generic_actions'] = 'Ενέργειες';
$txt['sa_generic_continue'] = 'Συνέχεια';
$txt['sa_generic_edit'] = 'Επεξεργασία';
$txt['sa_generic_delete'] = 'Διαγραφή';
$txt['sa_generic_active'] = 'Ενεργό';
$txt['sa_generic_disabled'] = 'Ανενεργό';
$txt['sa_generic_expired'] = 'Έληξε';
$txt['sa_generic_never'] = 'Ποτέ';
$txt['sa_generic_membergroup'] = 'Ομάδα μέλους';
$txt['sa_generic_groups_allow'] = 'Ε';
$txt['sa_generic_groups_disallow'] = 'Δ';
$txt['sa_generic_groups_deny'] = 'Α';
$txt['sa_generic_expire_days'] = 'Ημέρα(ες)';
$txt['sa_generic_expire_months'] = 'Μήνας(ες)';
$txt['sa_generic_expire_years'] = 'Έτος(η)';
$txt['sa_generic_board_index'] = 'Ευρετήριο πίνακα';
$txt['sa_generic_plain'] = 'Απλό';
$txt['sa_generic_rotating'] = 'Περιστρεφόμενο';
// Erros
$txt['sa_error_empty_name'] = 'Αφήσατε το πεδίο ονόματος άδειο.';
$txt['sa_error_empty_body'] = 'Αφήσατε το πεδίο σώματος άδειο.';
$txt['sa_error_empty_namespace'] = 'Αφήσατε το πεδίο ονόματος χώρου άδειο.';
$txt['sa_error_duplicate_namespace'] = 'Το όνομα χώρου που επιλέξατε χρησιμοποιείται. Το όνομα χώρου πρέπει να είναι μοναδικό.';
$txt['sa_error_invalid_namespace'] = 'Το όνομα χώρου μπορεί να περιέχει μόνο γράμματα, αριθμούς και κάτω παύλες.';
?>
This is for Greek translation of stings in database. Save as database.php for package installation.
<?php
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
global $smcFunc;
$default_positions = array(
array(
'name' => 'Στην επικεφαλίδα',
'namespace' => 'overall_header',
),
array(
'name' => 'Στο υποσέλιδο',
'namespace' => 'overall_footer',
),
array(
'name' => 'Κάτω από το μενού',
'namespace' => 'below_menu',
),
array(
'name' => 'Πάνω από το κέντρο πληροφοριών',
'namespace' => 'above_info_center',
),
array(
'name' => 'Πάνω από το υποσέλιδο',
'namespace' => 'above_footer',
),
array(
'name' => 'Αριστερή πλευρά',
'namespace' => 'left_side',
),
array(
'name' => 'Δεξιά πλευρά',
'namespace' => 'right_side',
),
array(
'name' => 'Μετά την πρώτη δημοσίευση',
'namespace' => 'after_first_post',
),
array(
'name' => 'Μέσα στην πρώτη δημοσίευση',
'namespace' => 'inside_first_post',
),
array(
'name' => 'Μετά την τελευταία δημοσίευση',
'namespace' => 'after_last_post',
),
);
foreach ($default_positions as $value)
{
$smcFunc['db_query']('', '
UPDATE {db_prefix}sa_positions
SET name = {text:name}
WHERE namespace = {text:namespace}',
array(
'name' => $value['name'],
'namespace' => $value['namespace'],
)
);
}
if (SMF == 'SSI')
echo 'Database adaptation successful!';
?>
How to decrease distance of ads from link tree as shown in attachment
please guide
2.0.4 default theme
i get "Unable to load the 'adsheaders_above' template" once i install the mod? There are no Test failed errors beforehand. Im using SMF 2.0.4 Any ideas why this is happening?
please i wanted to use simple ad mod to add advert in my forum but after insertin it, it didnt show and now i cant acces some of my admin panel i cant change theme, i cant logout pls am new and i dont want to damage my forum, pls help me. even if it will warant me to drop all my login details both host and admin panel i wil pls
Please guide to put ads inside last post
thanks
Is there a way of adding ads to other posts rather than just last post or first post.
Hi guy's i installed this on 2.0.7 and it was giving errors so i uninstalled it, now none of my avatars appear? if i try to open the link to avatar i get this error?
Unable to load the 'Ads' template.
Thanks. ;D
Hello,
I wanted to know if this was a modification that I can use to run ads on my forum like the one that's on this page that says Advertisement: Get 50% off any hosting plan. Is this a modification that I can use to display ads on my forum? Thanks
Hello,
i have problem with custom add field. After i created custom add position i put this code into index.template.php
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1><div class="topAdds">'.template_ad_position('top_add_field').'</div>';
But it doesn't work... Even if i replace 'top_add_field' with standard position as 'overall_header'...
Hi,
My heartfull thanks for this mod....It's really amazing..
Can any one please help me on how to add images (custom made ones) using this mod.
I am not able to find a solution for this.
Say, I have a client who wants to display his business banner in my website. How will I be able to do it. Will it be possible to do using this mod.
Thanks in advance for your kind help
Regards,
Suresh
Hi,
Any help???
Use a template on 'Body Template:'
Check the A (Allow) you want on 'Membergroups:'
This damn thing broke my whole forum and I will have to struggle like hell to get it back! Screw it!
EDIT: restoring from backup worked but had to install SimpleDesk again and edit it back, any other user back up EVERYTHING before installing this.
Quote from: nikan on May 14, 2014, 02:21:38 AM
Use a template on 'Body Template:'
Check the A (Allow) you want on 'Membergroups:'
I didn't understand, please be more specific....
Clink on 'Add Ad' button and write the html code of your image inside body box like:
<center><img src="URL OF YOUR IMAGE" alt="" /></center>
Then choose the position you want to display the image, the membergroup permissions and on which action and board will be displayed.
i have install this mod on my forum and it was successful you no ads is coming up despite the fact i have added and activated it
my ads look like
<a href="http://googleping.com">googleping.com</a>
<a href="http://www.danasoft.com"><img src="http://www.danasoft.com/vipersig.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Sign by Danasoft - <a href="http://www.danasoft.com">Get Your Sign</a></p></div>
That code will work fine. When you added that to a new ad, did you also make sure to check off a place in positions that you want it to show, allow or disallow certain groups to see it, and also check off one of the options in the "actions" part?
Quote from: br360 on July 28, 2014, 03:00:12 PM
That code will work fine. When you added that to a new ad, did you also make sure to check off a place in positions that you want it to show, allow or disallow certain groups to see it, and also check off one of the options in the "actions" part?
i did all that yet ads not showing
I just put up that new ad on my test site, and it worked. Are you sure that all membergroups have either an "A" or a "D" in the radio buttons?
Where did you try to place it on your forum?
Quote from: br360 on July 28, 2014, 03:24:15 PM
I just put up that new ad on my test site, and it worked. Are you sure that all membergroups have either an "A" or a "D" in the radio buttons?
Where did you try to place it on your forum?
i have being using that same mod on other forum and it work but not working on this particular one
i have uninstall it but its still showing at the footer , how do i correct this ? because if i go ahead to install again , it might end up showing on 2 lines in the footer
What is still showing in the footer; a lingering ad, or a copyright of the mod? This mod doesn't have a copyright link that gets placed on the forum; and after reading your posts on the other ad mod you installed, is it possible it isn't working because you may have lingering code from one or both of the mods; and they are working against each other?
Quote from: br360 on July 29, 2014, 01:21:03 AM
What is still showing in the footer; a lingering ad, or a copyright of the mod? This mod doesn't have a copyright link that gets placed on the forum; and after reading your posts on the other ad mod you installed, is it possible it isn't working because you may have lingering code from one or both of the mods; and they are working against each other?
i did not proceed with installation of the other mod because i saw error in package manager
after uninstalling simple ads my forum footer is still showing
SMF 2.0.8 | SMF © 2014, Simple Machines
SMFAds for Free Forums
That copyright is not from this mod. It's from this one- http://www.simplemachines.org/community/index.php?topic=68632.0
So it looks like you may actually have installed at least some of that mod's files.
i have decided to use smf_2-0-8_upgrade.tar.gz and all mod was uninstall .i.e i now have a fresh file
i just install this same mod now , installation was succesfull yet ads not showing
see screenshot below of how i configure it
dear members,i was able to get this mod to work but my problem is this mod is changing the url of the adcode, example, if the url to redirect to is www dot naijacrux dot com ,the url is changed to naijacrux///www dot naijacrux dot com ,this makes the url to show error when someone click on it.how can i correct this
PHP Fatal error: Call to undefined function template_ad_position() in /home/public_html/Themes/default/index.template.php on line 323
Quote// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
elseif (!empty($context['show_login_bar']))
{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
<input type="text" name="user" size="10" class="input_text" />
<input type="password" name="passwrd" size="10" class="input_password" />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
<div class="info">', $txt['quick_login_dec'], '</div>';
if (!empty($modSettings['enableOpenID']))
echo '
<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '<br class="clear" />';
echo '';
template_ad_position('above_info_guest_center');
echo '
</div>
<div class="news normaltext">
<form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="search" value="" class="input_text" />
';
// Search Focus Dropdown
include_once($settings['default_theme_dir'] . '/SearchFocus.template.php');
echo '
';
I have add template in index.template.php of default theme, ads working ok, but in error_log too many error coming and file of error_log getting bigger and bigger
Please guide
2.0.9
default theme
Please someone cum to my ad i tried installing this mod and i got this error...how can i get it out?
Quote from: swaggaderby on October 17, 2014, 02:48:33 PM
Please someone cum to my ad i tried installing this mod and i got this error...how can i get it out?
You didn't post any error LOL
this error and am so scared because i didnt make a backup
First --> http://wiki.simplemachines.org/smf/Backup there is this if anything else doesn't work ;) so don't panic.
And then please post a decent screenshot of the error, if you want partly censor the path but the way you just did is completely useless. There isn't even the line nor the actual file, how can anybody possibly help you without even knowing what's going on? You didn't even provide an URL to the forum...
Quote from: ♦ Ninja ZX-10RR ♦ on October 17, 2014, 06:13:58 PM
First --> http://wiki.simplemachines.org/smf/Backup there is this if anything else doesn't work ;) so don't panic.
And then please post a decent screenshot of the error, if you want partly censor the path but the way you just did is completely useless. There isn't even the line nor the actual file, how can anybody possibly help you without even knowing what's going on? You didn't even provide an URL to the forum...
Alright thats better link to forum www.derbjobs.com
Quote from: ♦ Ninja ZX-10RR ♦ on May 31, 2014, 04:35:18 PM
This damn thing broke my whole forum and I will have to struggle like hell to get it back! Screw it!
EDIT: restoring from backup worked but had to install SimpleDesk again and edit it back, any other user back up EVERYTHING before installing this.
The thing you posted is basically the reason why I said this in the previous page :(
Quote from: ♦ Ninja ZX-10RR ♦ on October 17, 2014, 07:14:12 PM
Quote from: ♦ Ninja ZX-10RR ♦ on May 31, 2014, 04:35:18 PM
This damn thing broke my whole forum and I will have to struggle like hell to get it back! Screw it!
EDIT: restoring from backup worked but had to install SimpleDesk again and edit it back, any other user back up EVERYTHING before installing this.
The thing you posted is basically the reason why I said this in the previous page :(
Alright just seeing that so right now,what happens to be the way forward right now because i need to fix it?is there away out?
I have 116 mods installed on my forum, when I installed this one it was the only time I had to restore my forum from the backup... Maybe somebody will be able to assist you better but that's what I did... :(
Quote from: ♦ Ninja ZX-10RR ♦ on October 18, 2014, 03:02:01 AM
I have 116 mods installed on my forum, when I installed this one it was the only time I had to restore my forum from the backup... Maybe somebody will be able to assist you better but that's what I did... :(
Thanks Alot for your effort to help i finally did it...
You're welcome even if I feel I didn't do anything special this time... Anyway did you restore the forum from the backup or did you manage to debug the error? If so, how? :)
Quote from: ♦ Ninja ZX-10RR ♦ on October 18, 2014, 08:20:36 AM
You're welcome even if I feel I didn't do anything special this time... Anyway did you restore the forum from the backup or did you manage to debug the error? If so, how? :)
Restored the forum from the backup....and now i have just created a test forum so i dont get so scared when something happens...so i get to test it before trying it on the main forum
Quote from: swaggaderby on October 18, 2014, 08:53:33 AM
Quote from: ♦ Ninja ZX-10RR ♦ on October 18, 2014, 08:20:36 AM
You're welcome even if I feel I didn't do anything special this time... Anyway did you restore the forum from the backup or did you manage to debug the error? If so, how? :)
Restored the forum from the backup....and now i have just created a test forum so i dont get so scared when something happens...so i get to test it before trying it on the main forum
Awesome idea. I have done the same a long while ago ;) I also suggest you to disable the registration there so that you don't get any spambot spoiling your tests and work (and also waste bandwidth). Glad that you sorted it, even if it was the most annoying way :(
Quote from: Jack_Elixir on October 12, 2014, 04:33:35 AM
PHP Fatal error: Call to undefined function template_ad_position() in /home/public_html/Themes/default/index.template.php on line 323
Quote// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
elseif (!empty($context['show_login_bar']))
{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
<input type="text" name="user" size="10" class="input_text" />
<input type="password" name="passwrd" size="10" class="input_password" />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
<div class="info">', $txt['quick_login_dec'], '</div>';
if (!empty($modSettings['enableOpenID']))
echo '
<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '<br class="clear" />';
echo '';
template_ad_position('above_info_guest_center');
echo '
</div>
<div class="news normaltext">
<form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="search" value="" class="input_text" />
';
// Search Focus Dropdown
include_once($settings['default_theme_dir'] . '/SearchFocus.template.php');
echo '
';
I have add template in index.template.php of default theme, ads working ok, but in error_log too many error coming and file of error_log getting bigger and bigger
Please guide
2.0.9
default theme
bump
And, once again, since you (realinfo.tv) have removed your smf copyright... And the copyright of several mods, we will not be providing support to you....
I find it really interesting that people manage to break their forums while trying to install this mod. I understand that some of those are cases in which they try to install it on top of the other ad management mod but it's such an obvious mistake that you don't really need me to point that out for you, or do you?
Quote from: [SiNaN] on October 19, 2014, 12:44:57 PM
I find it really interesting that people manage to break their forums while trying to install this mod. I understand that some of those are cases in which they try to install it on top of the other ad management mod but it's such an obvious mistake that you don't really need me to point that out for you, or do you?
Unfortunately it wasn't my case. It installed "successfully" with no errors on the default theme and broke everything, still clueless about the reasons for it...
With that many mods installed, it's not very unlikely that there was a conflict with a badly coded mod. If you have any logs of the error that you had once you installed the mod, I'd be happy to investigate the matter.
Except at the time I did that I used to have WAY less mods installed than now... And there wasn't any other mod affecting ads, running default theme as well.
I know you are an excellent coder and I know a lot of stuff you did, that's why I was SO surprised when that happened. Anyway no I didn't have ANY error, that was my problem IIRC. The fact is that my forum was just blank, it was a lot of time and posts ago I can't really remember all the details :/ thanks for the willingness to help anyway, I appreciate it :)
Do you remember if the "PHP Fatal error: Call to undefined function template_ad_position: happened while adding something to the Custom Display: box?
I use this mod myself with no issue, but a while back I installed it on a test site (with maybe 2 or 3 other mods) and it was working fine- until I think I added something to the custom display box option.
Sorry I don't have more to go on, but it was a while ago- but the error did happen as soon as I typed something in the custom display box.
Quote from: ♦ Ninja ZX-10RR ♦ on October 19, 2014, 03:10:52 PM
Except at the time I did that I used to have WAY less mods installed than now... And there wasn't any other mod affecting ads, running default theme as well.
I know you are an excellent coder and I know a lot of stuff you did, that's why I was SO surprised when that happened. Anyway no I didn't have ANY error, that was my problem IIRC. The fact is that my forum was just blank, it was a lot of time and posts ago I can't really remember all the details :/ thanks for the willingness to help anyway, I appreciate it :)
It doesn't necessarily need to be a mod relating to ads. Just have a look at your index.php file; the fact that many mod authors aren't careful with how they make code changes should be clear even to untrained eyes. There should have been some kind of error logged. Maybe you just needed to make them visible.
Quote from: br360 on October 19, 2014, 03:24:50 PM
Do you remember if the "PHP Fatal error: Call to undefined function template_ad_position: happened while adding something to the Custom Display: box?
I use this mod myself with no issue, but a while back I installed it on a test site (with maybe 2 or 3 other mods) and it was working fine- until I think I added something to the custom display box option.
Sorry I don't have more to go on, but it was a while ago- but the error did happen as soon as I typed something in the custom display box.
I'm unable to replicate the issue you described. One could technically manage to get that error using custom ad positions and I'm hoping to make that more fail-safe in the future. If you have further information on your case though, I'd be glad to investigate. That would help with preventing issues that other users may have with the mod in the future.
Hi I installed simple ads, created an ad but I don't see it positioned anywhere on my board?
Help please.
So I installed and then uninstalled this and it leaves a fatal error on my main forum's index page
Fatal error: Call to undefined function template_ad_position() in /home/content/m/a/a/maaxseduction/html/viplounge/Sources/Load.php(2151) : eval()'d code on line 273
How do I rid of this, what "code" in what files is causing this?
Thanks
Where can I get help with the Ad Management Mod please?
In the support thread for that specific mod.
Once again, Kindred, Steps please, links.......we've been through this before. Thank you
1- I post, much of the time from a phone... So posting links is a pain
2- every mod has a link to the support thread right on the page where you downloaded the mod.
3- why should everyone hand you everything on a silver platter? You learn more if you are told the correct information and then actually use that to follow up
Hi team,
Need update for smf 2.1
since 2.1 is in beta 1 phase... the author is probably not going to make a release for that....
Hi, how to add custom ad_position here?
Add an Apache Error Handler to SMF
Quote<?php
/**********************************************************************************
* ApacheError.template.php *
***********************************************************************************
* *
* Template file for "Add an Apache Error Handler to SMF" modification. *
* *
* Copyright (c) 2008-2009 by Deprecated (at) Earthlink (dot) net. *
* All rights reserved. Redistribution prohibited except at SimpleMachines.org *
* *
**********************************************************************************/
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings, $sourcedir;
echo '
<table cellpadding="4" cellspacing="0" border="0" align="center" width="80%" class="tborder">
<tr class="titlebg">
<td>
', $context['apache_err_msg'], '
</td>
</tr>
<tr class="windowbg2">
<td style="padding: 10px;">
', $context['apache_err_dsc'], '
</td>
</tr>
<tr class="windowbg2">
<td class="smalltext" style="padding: 10px;">
', $txt['apache_err_rqst_url'], ' <a href="', $context['request_url'], '">', $context['request_url'], ' </a>
</td>
</tr>
</table>
';
}
?>
Installed this mod and I got this error. It shut the entire forum down. What can I do to fix it?
Unable to load the 'adsheaders_above' template.
It suggests that the mod did not fully install and that you probably had some errors during then installation that you ignored, despite the big red warning text...
It didn't say it had any errors during install. How do I fix it.
Any ideas why it doesn't count adsense clicks in 2.0.9? Could be useful as feature to stop counting clicks after x clicks from same IP. Functionality which Click-fraud monitoring plugin for WordPress has, for example.
Adsense clicks can't easily be counted unless you have some kind of javascript that intercepts right before the click on the adsense ad. With adsense you are clicking on google's url and not touching the logging for ad click function.
Nevermind that, I have installed EzPortal and this mod doesn't show ads on forum board index (index.php?action=forum). It's similar thing with SimplePortal because it generates that same url. How to fix it to show it on forum index page too when using portals?
Hello,
I am using the mod simpleadds although when I chose to have the add placed on the right side of the screen it is not fitting properly. The add is a 200x300 banner and when it is placed the placement has a lot of blank space on the right side of it to the end of the screen.
I am willing to use another add plugin although need something super easy to use and that has the ability to have the add auto expire in x amount of time.
It could possibly be the code of the banner. Are you sure that the width of the banner code is actually set to 200px? Have you tried using <center> tags so you can have the banner placed in the center?
Quote from: br360 on February 19, 2015, 06:58:44 PM
It could possibly be the code of the banner. Are you sure that the width of the banner code is actually set to 200px? Have you tried using <center> tags so you can have the banner placed in the center?
Yes positive it is 200px, had used it as an add on another site and worked great. Sadly the site is gone so cant ask what they used :(. Haven't tried the center tag will try and figure how to do that although if it is centered it would then have a large cap on either side unfortunately.
Have you tried testing it with other banners to see if the space exists with those as well?
Hi Guys,
Simpleads works perfectly on my site but there are some adjustments i'd like to make, any help would be appreciated.
Not sure if this has been asked/answered but here goes.
I observed that when Ads are placed "After First Post" they only appear on posts that have replies.
After last post position would help but then i do not wish same content to be duplicated after first post and after last post.
E.g Social Media buttons need to be directly below First post, If no reply to the topic, they don't show.
What do i have to do (copy/paste)
Hi, I installed SimpleAds and than I get message "Unable to load the 'adsheaders_above' template."
What I have to do?
Hi,
Try to install through the package center, but I get this error (see screendump) on ./Themes/default/Display.template.php..
Any help on this one?
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Quote from: Kindred on April 27, 2015, 04:05:17 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Tx, I know that.
But when I change the code manually (see code below) I get a Php error message..(using dreamweaver)
Quote$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '</div>
(editted, first half of the comment was a silly mistake on my part)
Also, don't use dreamweaver. I know it's gotten better over the years, but a pure text editor (like ConText or Notepad++) is your bets bet for editing php and other web files other than plain html
Are you finding-
$message['body'], '</div>
and replacing that with-
$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '</div>
In your display.template.php, do you have any other mod that possible edited any part of $message['body'], '</div> ?
I only finding this:
Quote', $message['body'], '';
So I don't know exactly where to place this
Quote$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '</div>
Between the tags?
And discard the syntaxerror? (What's in dreamweaver) ...
Quote from: usa4all on April 27, 2015, 05:14:10 PM
And discard the syntaxerror? (What's in dreamweaver) ...
Seems like it worked ;-)
Good. Not sure why that first part of your display.template was modified, but glad it worked. Try playing with the mod and make sure that you can get ads you want placed and looking right. I was going to suggest this-
$message['body'], '';
Replace that with-
$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '';
But as long as you got it working and without errors in your logs, you should be ok.
Hmm.
Cheered to early..
When I try to read a post this message appear
Quotesyntax error, unexpected 'id' (T_STRING), expecting ',' or ';'
Even when I try the last suggestion..
Attach your template php file to your next post and we can have a look at it.
Quote from: br360 on April 27, 2015, 05:25:57 PM
$message['body'], '';
Replace that with-
$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '';
Quote from: Kindred on April 28, 2015, 02:44:00 PM
Quote from: br360 on April 27, 2015, 05:25:57 PM
$message['body'], '';
Replace that with-
$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '';
Tried that also.. Same error..
Php file Attachted.. (line 490)
tx..
I can't see that string you were asked to insert...
With modifaction..
add code :
Quote$message['id'] == $context['first_message'] ? template_ad_position('inside_first_post') : '', $message['body'], '';
Seems like
Quote',
Was missed. Get no error now.
Tx
Quote from: br360 on February 20, 2015, 12:22:59 AM
Have you tried testing it with other banners to see if the space exists with those as well?
Hello,
Yes I have tried other banners and they also have a large blank area unfortunately. Here is a link to the site can see the banner. Sadly had it crash due to user error on installing a mod and then became ill so not a lot their. Would love to get the simple add feature down so I can start again.
http://healthysup.com/forums/index.php (http://healthysup.com/forums/index.php)
Just putting this back up, and a thank you to the folks here for the help and the authors for the plug ins.
thanks. this mod help me to much
Quote from: tranhiep_116 on May 05, 2015, 09:01:14 PM
thanks. this mod help me to much
It is a great mod, love the expiration feature on it. Just wish I could get the size issue resolved.
And back up to the top, hoping some one can help.
Any one able to help?
And up we go
And up
Quote from: Ogmodon on May 03, 2015, 12:36:20 PM
Quote from: br360 on February 20, 2015, 12:22:59 AM
Have you tried testing it with other banners to see if the space exists with those as well?
Hello,
Yes I have tried other banners and they also have a large blank area unfortunately. Here is a link to the site can see the banner. Sadly had it crash due to user error on installing a mod and then became ill so not a lot their. Would love to get the simple add feature down so I can start again.
http://healthysup.com/forums/index.php (http://healthysup.com/forums/index.php)
I didn't notice the link you posted to your site at first. I'm guessing you are talking about the gap to the right of the banner? What happens when you try adding a banner at 225px width instead of 200?
i just installed this using 2.0 and it was successful without any red error but while trying to open the admin panel = SimpleAds = Advertisements it just open a blank page
Quote from: br360 on May 24, 2015, 06:05:18 PM
Quote from: Ogmodon on May 03, 2015, 12:36:20 PM
Quote from: br360 on February 20, 2015, 12:22:59 AM
Have you tried testing it with other banners to see if the space exists with those as well?
Hello,
Yes I have tried other banners and they also have a large blank area unfortunately. Here is a link to the site can see the banner. Sadly had it crash due to user error on installing a mod and then became ill so not a lot their. Would love to get the simple add feature down so I can start again.
http://healthysup.com/forums/index.php (http://healthysup.com/forums/index.php)
I didn't notice the link you posted to your site at first. I'm guessing you are talking about the gap to the right of the banner? What happens when you try adding a banner at 225px width instead of 200?
Hello,
I will try the larger size the main draw back to it is that the size I currently have is the size that is being used already by every one, so this would mean they would need to create a banner for this site specifically and not just be able to send their normal banner over.
Unfortunately no luck, making the banner larger still had to much empty space. Not sure how other sites have got theirs to work..
Quote from: Ogmodon on June 06, 2015, 10:50:25 PM
Unfortunately no luck, making the banner larger still had to much empty space. Not sure how other sites have got theirs to work..
Good question. I have installed this mod on quite a few sites and haven't had the issue.
Is this happening on a custom theme or are you using the default one? What is the width of your forum set at? Can you try changing the width in your admin>>Current theme to 95% and see if that makes a difference?
Also, would you mind posting the code to the banner you tried to place on your forum? You can pm me with the code if you would prefer- I just want to add it to a test site to see if there are any issues with the banner code itself.
Hello,
I changed the theme up to %95 and it did not help, it was at %90. I have left it at %95
It is running the default SMF Default Theme - Curve
I am having this issue on a couple sites using different hosting companies.
A huge shout out to br360, they took the time to look at some files and were able to get the issue resolved. This is much appreciated! It is great to finally have a solution to the issue. I will let br360 post the fix so all the credit goes to them. Thank you again for being so willing to help!
Just installed this and it broke my forum!
It says now
"Unable to load the 'adsheaders_above' template."
Where is the file I need to delete to uninstall this MOD?
NB I also have adMod 3.2 installed
I just deleted the ads.Template.php file in Themes/Default and replaced it with the ads.template. from my desktop copy of ad_mod.3.2
I have now uninstalled this SimpleAds Mod
I seem to have lost the admin avatar but everything else looks OK.
Not sure if damage is done though.
I'm trying to install but it do now appear in forum
Quote from: amadeucallow on July 07, 2015, 06:24:06 PM
I'm trying to install but it do now appear in forum
My advice would be don't and uninstall it if you can.
wasted an hour yesterday trying to get my forum back as it was and there wasn't any help here either!
Hello Guys,
been using Simple ads on SMF 2.0.9 smoothly and was able to utilize the Header below_menu and after_first_post ad positions.
I used a 2.0.10 Large upgrade yesterday and reinstalled all mods.
After first post position has now moved to Above first post. Could someone assist by telling me what code to copy / paste (div for after_first_post ) that would move the ad position to be After first post only?
thanks.
Dear everyone,
My forum stopped working after installing the ''SimpleAds'' mod.
Link to the evildoer in question: http://custom.simplemachines.org/mods/index.php?mod=2557
This is the error message that shows up when I try to access my website:
Unable to load the 'adsheaders_above' template.
Nothing else, only that.
Some facts to consider:
1. I was able to install the mod. There was no warning message; the mod was suitable for my version of SMF (2.0.x).
2. I am locked out of the admin section of my forum. Usually, I would simply uninstall (1st step) and delete (2nd step) the mod. That is not possible.
3. I contacted hosting support, but they were not able to do anything. Backups are available, but those backups are 2 days old. I spent the past 2 days building the forum, so using that backup wouldn't be helpful (back to start).
4. I removed the mod from the ''packages'' folder via FTP server / file manager, but that didn't fix it.
So now I hope someone here can help me. How to fix this issue? What is the problem? :)
==
I hope to be hearing from someone soon :).
A quick way to reverse the installation would be:
http://wiki.simplemachines.org/smf/A_mod_broke_my_forum
(which should remind to you to *always* take a backup of your forum before installing new stuff :P )
But the error is odd, I don't see any template call to "adsheaders" in the MOD code :-/
This mod needs some serious troubleshooting by the Cust team if you ask me. It killed my forum as well back in the days, and there are *many* reports of that adsheaders_above thing in this topic, all of them after a successful installation --> not normal.
why does it need troubleshooting by the Customization team?
It is the author's responsibility to update, fix or otherwise improve his/her mod. The customization team is not responsible (and in most cases, not legally entitled) to update mods.
If there is a serious issue with the mod, then report it using the report feature on the mod page and it can be removed from distribution..... unfortunately, removing it also locks this support topic.
Then our search function is messed :P because I searched for "adsheaders" in this topic and got no results. And now only my previous post shows in the same search...
Well because it's not an universal issue, so it doesn't need to be reported in such a bad way (and I for one, won't report a mod by SiNaN, who is SimplePortal developer, with me being on his Support Team), since it doesn't affect *all* forums I can't just say "hey this mod is unsafe remove it".
However, it does have a big problem with some forum configurations, that is very weird. I never said the Cust Team needs to update it, but perhaps help to troubleshoot it, being a potential forum killer in some unknown circumstances.
I honestly tried this mod, it killed my forum (tried twice, both times killed it), but installed successfully on a customer's forum (had warned him about it, though).
As for locking the topic... That's a bit obvious, it wouldn't be much useful I guess ;D
Quote from: margarett on February 12, 2016, 12:24:16 PM
Then our search function is messed :P because I searched for "adsheaders" in this topic and got no results. And now only my previous post shows in the same search...
Had some weird results as well, a few weeks back I couldn't search at all, everytime I tried it was saying that I had done a search less than 30 seconds before. Unfortunately, I cannot post in the relevant section, so I couldn't report it.
I managed to solve the problem manually.
I removed the simple ads template file. After doing this, the forum worked again, but it showed a new error (this time within the theme), about how the ads template file is missing. So what I did was reupload the standard ads template file via file manager. This solved both issues. The site, including admin, was completely accessible again. I uninstalled the simple ads mod, and deleted it from package.
I hope ^^ that makes sense to anyone experiencing the same problem :)
PS; The picture puzzle is annoying, 3rd time that I have to retype it. Can't you make it a bit easier?
Quote from: greatescape on February 12, 2016, 03:45:57 PM
PS; The picture puzzle is annoying, 3rd time that I have to retype it. Can't you make it a bit easier?
Unfortunately, we cannot, as it would make it too easy for more spammers to post here if we did. It will go away away after you have made ten (legitimate) posts :).
Hi All,
Im new to the forum software I am using 2.0.11 and the Exodus reposive theme. I have a small problem with (simple ads) when I setup advertisements on my board I get the advertisements twice instead of just the single ad. I have attached images to show what I mean. Can anyone help or know how I can fix it instead of the same ads doubling up on the board?
Many Thanks
Rob
That means that you apparently installed the mod twice....
the only solution is to MANUALLY edit the code whereever the mod code got duplicated
Are the links in the ads I place dofollow?
Rick
Unless you are specifically using a nofollow tag in the html code for your ads, the links should be dofollow.
Does not seem to be working for SMF 2.0.19. It uninstalls and installs without error. It's still running my ads without issue. However, going to Advertisements in admin creates this error:
Call to undefined function create_function()
I am unable to change any of my ads. What could I possibly be doing wrong?
create_function() is deprecated since PHP 7.2
You would need to manually fix it, but you can also install this mod: https://custom.simplemachines.org/index.php?mod=4300