Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
How to place ads in 5.0?
Avatar
violent23
Member
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2012 - 8:29 pm

I was looking at the wiki and it says to use hooks that are located here "simple-forum/forum/problem-with-post-edit-buttonooks/sf-hook-template.txt" this does not exist in 5.0. Where are the hooks, and how do I put advertisements in Simple Press?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2012 - 8:37 pm

see http://codex.simple-press.com for the 5.0 codex... unfortunately not fully populated yet... but the list of hooks and filters is there... you just need to find the one you want...

or of course, you can just add the ad code it to your sp theme whereever you want it to display

Avatar
violent23
Member
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2012 - 8:42 pm

"or of course, you can just add the ad code it to your sp theme whereever you want it to display"

 

So how would one go about this?

Avatar
Dave
Member
sp_UserOfflineSmall Offline
Jan 20, 2012 - 1:17 am

I'll tell you what I do as an example...

I use the Ad Injection plugin for WP. It automatically inserts ads into posts and pages based on criteria and positions that you set, but it also gives you code that you can insert anywhere. So I insert the code for random ads - if (function_exists('adinj_print_ad')){adinj_print_ad('random'); } - in the spTopicView.php file directly before the post loop. This gives me an ad at the top of each topic.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 20, 2012 - 5:06 am

Neat. Good to know that someone has tried such a thing and successfully.

Thanks for the input and the information.

andy-signature.png
YELLOW
SWORDFISH
Avatar
violent23
Member
Free Members
sp_UserOfflineSmall Offline
Jan 20, 2012 - 6:41 am

What Dave is saying is jiberish to me. I do not know what this even means - if (function_exists('adinj_print_ad')){adinj_print_ad('random'); } -. How does this code have anything to do with a code generated by a plugin that has my aDsense ads in it? What is a "post loop?

 

So far it looks like all this work was done to build this great forum, yet there is now way to place ads into it unless you know how to code? Why was this not built in the new 5.0 update? I have no idea what "hooks are, and apparently they do not apply anymore to 5.0? Basically I can not find any real information on how to place ads in the 5.0 forums. Has anyone successfully added advertisements into their forums? If you have could you actually explain it so it makes sense. I in no way know css and just a little html. A cut and paste tutorial would be highly helpful in this situation.

 

@Mr. Papa I am not sure why everyone here assumes that anyone knows what anything inside of this means. http://codex.simple-press.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 20, 2012 - 8:29 am

Well here's the thing - WordPress websites are built using php, HTML, CSS and JavaScript. These are the building blocks.

People can supply WP themes and WP plugins and they mostly do this for no payment and use up their own free time. There is no magic wand - you just work with the tools that are available.

And if you want to  change something - then you may well need a basic understanding of at least 2, if not 3 of the basic tools.

What us two people did here with SP V5 took over a year of our lives - freely given and with no real reward - with the specific aim of making it as easy as possible for end-users to customise and change what we give them. Does the end-user need to have a little knowledge? Yes. Common sense and a willingness to discover for themselves how to do things? Yes. And, as to your question - does SP give the simple opportunity to place ads anywhere in the forum display? Yes it does.

Why 'was this not built into the new update'? It is. That's the whole point. Actually - what Dave offered you was a very neat and simple solution but you do need to put a little effort into things. f you are not willing to do that and you don't like what we are offering then I would strongly suggest you look elsewhere.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dave
Member
sp_UserOfflineSmall Offline
Jan 20, 2012 - 8:54 am

violent23 said

What Dave is saying is jiberish to me. I do not know what this even means - if (function_exists('adinj_print_ad')){adinj_print_ad('random'); } -. How does this code have anything to do with a code generated by a plugin that has my aDsense ads in it? What is a "post loop?

If you open the file named spTopicView.php from the theme that you have chosen to use and insert the code if (function_exists('adinj_print_ad')){adinj_print_ad('random'); } into the file right before it specifically says # Start the Post Loop (around line 175 in DreamWeaver) you will get a random ad based on your settings in the ad injection plugin.

So far it looks like all this work was done to build this great forum, yet there is now way to place ads into it unless you know how to code?

This is a BETA. If you don't know a little bit about the code then you should not even be trying to use it. For that matter, maybe you should look at wordpress.com - it's a little more automated and user friendly.

Why was this not built in the new 5.0 update?

Because not everyone wants ads on their forum and there is NO way for ANY software to include all the features that everyone wants.
Fortunately the authors have included the ability for this to be added through plugins utilizing the "hooks" you speak of. At some point in time someone will create a plugin that does exactly what you want.

Basically I can not find any real information on how to place ads in the 5.0 forums.

I've provided it twice.

Has anyone successfully added advertisements into their forums?

Yes! 

@Mr. Papa I am not sure why everyone here assumes that anyone knows what anything inside of this means. http://codex.simple-press.com

Because anyone who uses a beta product should have a rough idea of how the system works, or at least be able to get their hands dirty.

Avatar
violent23
Member
Free Members
sp_UserOfflineSmall Offline
Jan 20, 2012 - 9:10 am

If you take a second to get down off of your high horse you might notice that you did not actually answer my question. Only one person gave a real explanation and when I asked for a more detailed summery all I get is your talk down service.

 

If you build a plugin that is billed as "highly customizable, completely integrated and fully scalable" you might want to not leave out of the UI a way to place ads. Considering that this is a plugin for Wordpress which is a blogging platform. The majority of Wordpress users place ads to monetize their sites. Why you choose to exclude this from your front end is beyond me.

 

Implying that I have no "Common sense and a willingness to discover" is frankly very rude, and I am now understanding why all comments on your forum need approved before posting.

 

"does SP give the simple opportunity to place ads anywhere in the forum display? Yes it does."

 

REALLY? then why is it no one has yet to actually explain this simple process?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 20, 2012 - 9:13 am

Dave H: Wow - that was harsher than I was 🙂

violent23: We don't moderate posts from members. Interestingly - the only reason your posts keep going into moderation is because Akismet keeps marking them as spam.

I think both Dave H (an ordinary member by the way and not a team member) and I have really answered the question.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626