Advertisement:

Author Topic: Ad Management mod  (Read 1714110 times)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7680 on: July 16, 2017, 08:07:48 PM »
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

Offline virtualdave

  • Jr. Member
  • **
  • Posts: 121
Re: Ad Management mod
« Reply #7681 on: July 16, 2017, 08:29:33 PM »
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

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7682 on: July 16, 2017, 08:32:07 PM »
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

Offline virtualdave

  • Jr. Member
  • **
  • Posts: 121
Re: Ad Management mod
« Reply #7683 on: July 16, 2017, 08:34:14 PM »
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';

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7684 on: July 16, 2017, 08:58:26 PM »
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

Offline virtualdave

  • Jr. Member
  • **
  • Posts: 121
Re: Ad Management mod
« Reply #7685 on: July 16, 2017, 09:03:20 PM »
That did the trick! thanks for your assistance.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7686 on: July 16, 2017, 09:40:59 PM »
glad to help
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

Offline EvcRo

  • Newbie
  • *
  • Posts: 1
Re: Ad Management mod
« Reply #7687 on: August 14, 2017, 03:18:02 AM »
Hello,

your mod fails on a brand new basic installed 2.0.14

the only other mod present is pretty urls

Code: [Select]
Code: (Find) [Select]

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


Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7688 on: August 14, 2017, 08:27:50 AM »
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

Online SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 329
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Ad Management mod
« Reply #7689 on: August 15, 2017, 03:13:58 PM »
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.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline wzol

  • Semi-Newbie
  • *
  • Posts: 21
Re: Ad Management mod
« Reply #7690 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.

Offline Bob Perry of Web Presence Consulting

  • Sr. Member
  • ****
  • Posts: 936
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: Ad Management mod
« Reply #7691 on: August 16, 2017, 01:39:06 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

Offline wzol

  • Semi-Newbie
  • *
  • Posts: 21
Re: Ad Management mod
« Reply #7692 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?

Offline Bob Perry of Web Presence Consulting

  • Sr. Member
  • ****
  • Posts: 936
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: Ad Management mod
« Reply #7693 on: August 16, 2017, 02:26:50 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

Offline wzol

  • Semi-Newbie
  • *
  • Posts: 21
Re: Ad Management mod
« Reply #7694 on: August 16, 2017, 04:07:47 AM »
That is great, found it! Thank you very much!  :)

Offline NeedIt

  • Jr. Member
  • **
  • Posts: 307
Re: Ad Management mod
« Reply #7695 on: September 03, 2017, 12:43:32 AM »
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.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7696 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.
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

Offline NeedIt

  • Jr. Member
  • **
  • Posts: 307
Re: Ad Management mod
« Reply #7697 on: September 03, 2017, 10:15:18 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?


Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,210
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7698 on: September 03, 2017, 10:35:39 AM »
Yes
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

Offline NeedIt

  • Jr. Member
  • **
  • Posts: 307
Re: Ad Management mod
« Reply #7699 on: September 03, 2017, 12:10:29 PM »