News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

Kindred

Not the pages....    In the php source and template files
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Realinfo

Quote from: maihannijat on December 10, 2010, 08:01:26 AM
Almost done installing this in custom Theme.

But only one code is left to insert it in index.template.php, I have tried but don't know where this code falls.

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







And attached is my index.template.php


Thanks in Advance.



By this way

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

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

echo '



I able to get ads in welcome area............. 2.0.2 Default theme thanks.

NikShiP

I added the ad and my forum width reduced..

What wrong m i doing? :(

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

NikShiP

Quote from: vbgamer45 on May 12, 2012, 05:24:37 PM
Link?
I uninstalled the mod..
Revived the forum

www.gizmolord.net

Forum width is set to be 1250 px n it was reduced to 1250-768=482px
768px is the width of the ad.
m trying to integrate google addsense

Please guide me.. :)

SMFHacks.com Team

Not sure can't see what was wrong since it is no longer running.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Realinfo

I need to have ads inside first post, as possible in GoogAd Mod http://custom.simplemachines.org/mods/index.php?mod=2565

But I want to do by this Ad Management mod in 2.0.2 Deafult theme............. as in Ad Management mod I can put ads in some particular boards........... Please help.................

NanoSector

Hi Realinfo!

Can you attach your theme's Display.template.php in your next post, please?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Realinfo

Quote from: Yoshi2889 on May 13, 2012, 05:58:45 AM
Hi Realinfo!

Can you attach your theme's Display.template.php in your next post, please?

This is my Display.template.php.........  how you can help?

Khurram Abbasi

Quote from: Khurram Abbasi on May 16, 2012, 02:29:47 AM
QuoteHello,

We are contacting you because we noticed that the database 'database_com' is generating large queries. This causes issues with both server performance and the disk space. It is against our Terms of Service due to this we have suspended website and CGI functionality of your account. To revoke the suspension, you need to look into this database and take necessary steps.

I have pasted the SMF application is generating queries as show below.
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_log_activity
UPDATE smf_sessions
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
UPDATE smf_topics
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
UPDATE smf_topics
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions
UPDATE smf_log_online
INSERT INTO smf_log_errors(`id_member`, `log_time`, `ip`, `url`, `message`, `session`, `error_type`, `file`, `line`)
UPDATE smf_log_activity
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_ads
UPDATE smf_sessions

If you have any further questions, please update the Support Console.

Sincerely,

Adella Kelly
Support Specialist


i use ipage.com hosting , please tell me what to do with database so that dont suspend my site ,

thanks


Quote from: Storman on May 16, 2012, 04:00:45 AM
Looks like the Ad Management mod is responsible.

Do you have anything in your error log ? Also, do you have the latest version of this mod installed ?

Of course, uninstall the mod and your issue will go away, or maybe post your issue in the mod's topic and see what the author says.

vbgamer45

Turn on cachcing and make sure you are not having a lot of errors in the error log for SMF.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Khurram Abbasi

QuoteDelma Karl: This query is not getting updated in table 'smf_ads' . Hence generates an error log and gets updated in table 'smf_log_errors'. This results filling up heavy records in the table. At present, the table 'smf_log_errors' has more than 4,50000 of records.
QuoteDelma Karl: Also, We can't check your database for errors or anything. The application may be outdated so some spammers may be there, we can't check your entire forum. Hence, you need to contact your developer about the issue.


this is i told by ipage support , 

Khurram Abbasi

Quote from: vbgamer45 on May 16, 2012, 11:07:25 AM
Turn on cachcing and make sure you are not having a lot of errors in the error log for SMF.

and how to do this , how to empty error log automatically


SMFHacks.com Team

There is a setting to disable error logging under edit features and options i think.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Khurram Abbasi

i disable the error log , and now its looks ok to me


admin -> security and moderation -> uncheck enable error logging

NanoSector

I don't recommend you to disable your error log though, it may still gain valuable information about your forum's status. Although if you are getting crazy by what is reported better leave it off :P

Also @realinfo: Haven't got time to look into this, sorry, I'll keep this on my to-do list.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

dooie

I have Ad Management Ver. 2.3 installed but the one place I want the ads I can not get working. I want the ads placed in the welcome user area. I am using version 2.0.2 and am running the default theme - Curve.

What do I need to do to get my ads in the Welcome User area?

Cheers.

akbora

Simpleads mod of Sinan is installed in my forum. Also I want to install this ad management mod. Is it  possible that? Thanks
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Arantor

Quote from: akbora on May 22, 2012, 03:19:37 PM
Simpleads mod of Sinan is installed in my forum. Also I want to install this ad management mod. Is it  possible that? Thanks

They both do the same job, why would you install both together?

akbora

Quote from: Arantor on May 22, 2012, 04:09:49 PM
Quote from: akbora on May 22, 2012, 03:19:37 PM
Simpleads mod of Sinan is installed in my forum. Also I want to install this ad management mod. Is it  possible that? Thanks

They both do the same job, why would you install both together?
Yes you're right that both have same job but for example ad management accepts php or html, include different areas in forum, but simpleads has expired day and time, (only html) that is job is same but method of application is different
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Advertisement: