Ad Management mod

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

Previous topic - Next topic

vbgamer45

Make sure you are doing it on right database for your forum and right database prefix.
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

virtualdave

OK I did a bit of studying and tried it again with this message as a result.

Quote#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HITS HITS BIGINT NOT NULL default '0'' at line 1

vbgamer45

What's the exact sql query you used?
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

virtualdave

I copied this from the post I quoted and changed the table prefix to match mine as follows:

alter table ice_ads HITS HITS BIGINT NOT NULL default '0';

vbgamer45

Change to
Quote
alter table ice_ads change HITS HITS BIGINT NOT NULL default '0';
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

virtualdave

That did the trick! thanks for your assistance.

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

EvcRo

Hello,

your mod fails on a brand new basic installed 2.0.14

the only other mod present is pretty urls


Code: (Find) [Select]

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


vbgamer45

Yes that changed. Install the mod then make the edit to that line of code manuallly.
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

SMFHacks.com Team

Update!
Fixed so it installs cleanly on SMF 2.0.14 due to login form change.
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

wzol

Thank you for the update! :)

Can I set somewhere to show an ad only to guests? I suppose I need $context['user']['is_guest'] but don't know how to set it up.

Bob Perry of Web Presence Consulting

Quote from: wzol on August 16, 2017, 01:29:44 AM
Thank you for the update! :)

Can I set somewhere to show an ad only to guests? I suppose I need $context['user']['is_guest'] but don't know how to set it up.

Yes, its even easier than what you thought if I read your intent correctly... you would want to go into smf admin options for setting member group permissions, if I understand your intent you need to go into the permissions for the guests group and tick the box regarding the ads module and go into all the other groups you have installed and un-tick the box for ads in those... no code editing necessary
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

wzol

Wow, it sounds so easy, this would be more than I wished for - unfortunately I can't find this at the group permissions. Could you help me with a screenshot about where to find this?

Bob Perry of Web Presence Consulting

Quote from: wzol on August 16, 2017, 02:20:01 AM
Wow, it sounds so easy, this would be more than I wished for - unfortunately I can't find this at the group permissions. Could you help me with a screenshot about where to find this?

In your main menu do you have an option called Admin? under that menu if its set up correctly when you hover your cursor over the Admin option it should display a drop down sub-menu, in that drop down there should be one called "Permissions", that's the one you want... under that you should see a list of the member groups you have set up...

Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

wzol

That is great, found it! Thank you very much!  :)

NeedIt

I have built a test forum that is up to SMF 2.0.13.  The PHP version is currently 5.3.29 sitting on Windows if that matters.

My next goal is to add the Ad Management module and then after that I want to try the Responsive Curve.  When all is said and done, I am hoping that everything looks good and works and then I will try it on my live forum. 

Okay, so I started with trying to add Ad Management.  I did this by downloading the zip and then clicking the Install Now that does the testing phase. Here is what I got:

1.   Execute Code   install.php   
*   2.   Execute Modification   ./index.php   Test successful
*   3.   Execute Modification   ./Sources/Admin.php   Test successful
*   4.   Execute Modification   ./Sources/QueryString.php   Test successful
*   5.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
*   6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
*   7.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test successful
*   8.   Execute Modification   ./Themes/default/index.template.php   Test successful
*   9.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
10.   Extract File   ./Sources/Ads.php   
11.   Extract File   ./Sources/LoadAds.php   
12.   Extract File   ./Themes/default/Ads.template.php   
13.   Extract File   ./Themes/default/languages/Ads.english.php   
14.   Extract File   ./Themes/default/languages/Ads.english-utf8.php

Okay, so far so good, right?  Well, the part below says this:


Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
   Core Theme
   Execute Modification   ./Themes/core/BoardIndex.template.php   Test failed
   1.   Add Before   ./Themes/core/BoardIndex.template.php   Test successful
   2.   Add After   ./Themes/core/BoardIndex.template.php   Test failed
   Execute Modification   ./Themes/core/Display.template.php   Test failed
   1.   Add After   ./Themes/core/Display.template.php   Test successful
   2.   Replace   ./Themes/core/Display.template.php   Test successful
   3.   Replace   ./Themes/core/Display.template.php   Test failed
   Execute Modification   ./Themes/core/MessageIndex.template.php   Test failed
   1.   Add After   ./Themes/core/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/core/MessageIndex.template.php   Test failed
   Execute Modification   ./Themes/core/index.template.php   Test successful
   1.   Add After   ./Themes/core/index.template.php   Test failed (Ignore Errors)
   2.   Add After   ./Themes/core/index.template.php   Test successful

Now to be clear:  I am currently on the default theme and that produced the results above.  So am I okay to do the Ad Management mod now?  And what are the odds that I can add the Responsive Curve mod to it.

Basically, my goal is a responsive forum with the Ad Management module.

vbgamer45

Its ok if you are just using the default theme.

You can add the responsive curve mod as well.
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

NeedIt

Quote from: vbgamer45 on September 03, 2017, 08:28:43 AM
Its ok if you are just using the default theme.

You can add the responsive curve mod as well.

Okay, so, if I understand the messages above, the Ad Mod is saying that it will work with anything "Curve".  I believe Curve is the default theme for SMF I'm good there.  In addition, if I add the Responsive Curve mod, I am also okay, because it is just a mod to the original theme.  Am I looking at that correctly?


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


Advertisement: