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

vbgamer45

Try to find a similar area on your theme code that is similar
Community Suite for SMF - Grow your forum with 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

smp420

Quote from: irtiza104 on March 07, 2010, 11:57:00 AM
I installed it in the default theme without any problem. but i can not install it in the custom theme (overviewlight) because i can not find the codes required in the index.template.php

the codes which are missing

1. <div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

2. template_menu();

3. <div id="content_section"><div class="frame">
      <div id="main_content_section">';

4. echo '
      </div>
   </div></div>';

That means i can not find any of the codes in index.template.php.

What should i do?


Don't search for all of the code just search for parts of it and it even helps if you look at where that is on the default theme. It wont be on the same line or anything just compare the code around it.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

irtiza104

I tried to search small parts of them. but i couldnt find them either. What should i do? i am not good at php or html coding...

attaching the index.template.php if that helps.


henryjesus

Im using RC2, when I activate the ad, it shows up twice , on the reports , it generates the ads / shows the ads two times, anyone having this problem ? I'm trying another theme to see if its still the same.

Arantor

henryjesus: Generally means you pressed the install button twice.
Holder of controversial views, all of which my own.


vbgamer45

Updated for SMF 2.0 RC3!
Community Suite for SMF - Grow your forum with 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

smp420

"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Arantor

smp420: vbgamer had access to the code and would have been able to test them beforehand, but most mods will work just fine from RC2 -> RC3.
Holder of controversial views, all of which my own.


smp420

Didnt think about that but its good that this mod is actually being supported now.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Kat9119

I was trying to restore my database via phpmyadmin. I imported the database and got the following error:

QuoteError

SQL query:

-- -- Dumping data for table `smf_ads` -- INSERT INTO `smf_ads` (`ADS_ID`, `NAME`, `CONTENT`, `BOARDS`, `POSTS`, `CATEGORY`, `HITS`, `TYPE`, `show_index`, `show_board`, `show_threadindex`, `show_lastpost`, `show_thread`, `show_bottom`, `show_welcome`, `show_topofpage`, `show_towerright`, `show_towerleft`, `show_betweencategories`, `show_underchildren`) VALUES (1, 'google', '
\r\n
', '', '1,8', '', 586025, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (10, 'Google Txt & Img', '

So...the import stops and I can't continue. There are dropped tables in this that I need very badly. Can anyone help with this? I have no idea what to do...

I have SMF 1.1.11

smp420

Quote from: irtiza104 on March 08, 2010, 01:31:42 AM
I tried to search small parts of them. but i couldnt find them either. What should i do? i am not good at php or html coding...

attaching the index.template.php if that helps.
Try this if it gives you any errors let me know where and use the one you attached.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

irtiza104

Can anyone please look at my problem mentioned above?

smp420

/\  Read the post I made right before yours. /\
l                                                                     l
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

irtiza104

Opps! thanks.

BTW, is it the index.template file of my theme...edited? 

vika.vedy

Quote from: vbgamer45 on March 08, 2010, 08:03:14 PM
Updated for SMF 2.0 RC3!

Still don't see code for including «Welcome Ads» into templates in install.xml file.

vbgamer45

Welcome ads? I don't think that is supported
Community Suite for SMF - Grow your forum with 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

smp420

Quote from: irtiza104 on March 09, 2010, 01:37:20 AM
Opps! thanks.

BTW, is it the index.template file of my theme...edited?
Yes it is.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

shadowcrews

where is the version 2.6.3.1 ? i only see 2.6.3.1 in mod download page

vbgamer45

? That should be it the latest version.
Community Suite for SMF - Grow your forum with 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

vika.vedy

Quote from: vbgamer45 on March 09, 2010, 10:11:41 AM
Welcome ads? I don't think that is supported

But  included files LoadAds.php and Ads.php both has functions and variables related to "welcome ads":

Ads.php
186: //Display this ad in the welcome area
187: if (isset($_POST['show_welcome']))
188: $adsUpdate[] = 'show_welcome = ' . ($_POST['show_welcome'] ? '1' : '0');

295: $adsUpdate[] = 'show_welcome = ' . (empty($_POST['show_welcome']) ? '0' : '1');

LoadAds.php
45: 'show_welcome' => $row['show_welcome'],
99: function show_welcomeAds()
100: {
101: return showAds('show_welcome');
102: }

 
Advertisement: