I'd like to add advertising in the form of HTML at the bottom of each blog post. How can I do this? Please advice
I'd like to add advertising in the form of HTML at the bottom of each blog post. How can I do this? Please advice |
You can do this with the page builder in the admin; go to blog post view (or close to that) in the drop down selector for editing pages. You can then add an html block to hold the advert and it will accept javascript code. Geeks, making the world a better place |
Thank you. I know it. I mean, that blog post was concluded advertisement. I do not want to create a new block of html. Is it possible? You can do this with the page builder in the admin; go to blog post view (or close to that) in the drop down selector for editing pages. You can then add an html block to hold the advert and it will accept javascript code.
|
Thank you. I know it. I mean, that blog post was concluded advertisement. I do not want to create a new block of html. Is it possible? You can do this with the page builder in the admin; go to blog post view (or close to that) in the drop down selector for editing pages. You can then add an html block to hold the advert and it will accept javascript code.
OK, language barrier time I guess. Let's say you are using one of the advert sites that gives you a javascript code to insert in the page. You go to the page in the builders "Blog Post View", drag up an html block at the bottom and drop it in, click on it, and then toggle the html mode and paste in your code, hit save, done. That is how you do it. Now, it if is a static advert; one that does not change, just a graphic or something, you still do it the way I outlined except you paste in your image. This is the easy way to do it. If you want to fool around with templates etc, then go ahead. Geeks, making the world a better place |
Thanks for the advice but not quite what I meant :)
Thank you. I know it. I mean, that blog post was concluded advertisement. I do not want to create a new block of html. Is it possible? You can do this with the page builder in the admin; go to blog post view (or close to that) in the drop down selector for editing pages. You can then add an html block to hold the advert and it will accept javascript code.
OK, language barrier time I guess. Let's say you are using one of the advert sites that gives you a javascript code to insert in the page. You go to the page in the builders "Blog Post View", drag up an html block at the bottom and drop it in, click on it, and then toggle the html mode and paste in your code, hit save, done. That is how you do it. Now, it if is a static advert; one that does not change, just a graphic or something, you still do it the way I outlined except you paste in your image. This is the easy way to do it. If you want to fool around with templates etc, then go ahead.
|
you want "in the bloc" advertising for example google adsense? Merci pour le conseil , mais pas tout à fait ce que je voulais dire :)
Je vous remercie. Je le sais. Je veux dire , que blog a été conclu publicité . Je ne veux pas créer un nouveau bloc de html . Est-il possible ? Vous pouvez le faire avec le créateur de la page dans l'admin, allez sur le blog voir le post (ou proche de celle) dans le menu déroulant pour les pages d'édition. Vous pouvez ensuite ajouter un bloc html pour tenir l'annonce et il va accepter le code javascript.
OK, le temps de barrière de la langue, je suppose. Disons que vous utilisez l'un des sites annonce qui vous donne un code javascript à insérer dans la page. Vous allez à la page dans les constructeurs "Blog Post View", faites glisser vers le haut un bloc html dans le bas et déposez-la dans, cliquez dessus, puis basculer le mode html et coller dans votre code, appuyez sauver, c'est fait. C'est la façon dont vous le faites. Maintenant, si une annonce statique; celui qui ne change pas, juste un graphique ou quelque chose, vous le faites encore la façon dont je l'ai souligné, sauf que vous collez dans votre image. C'est le moyen facile de le faire. Si vous voulez faire l'imbécile avec des modèles, etc, alors allez-y.
|
Yes in the block 'post view' I would like to put ad code html for example such as in the picture. How can I do it? |
Unless you posted the code in every single blog posting, there is no way of having the advertisement to 'automatically' be inserted into the content box.
If you notice, when you click to add a blog posting, the content box is blank. It is up to the member to add the content. It cannot be 'prefilled' with something already. You will need to take the suggestion made by GG. Nothing to see here |
This was asked once before, maybe many months ago. I gave an answer then but will repeat it. To do this you will need to edit the code that generates the blog post view and have it to add the HTML/Javascript code block for the advert (floated right). Yes, this can be done but it means editing the blog module code to insert it automatically. This is a special job request. If you want it where you illustrate, then it will overwrite the attach image part of the Dolphin code; you may want to just remove the attach image part of the blog post editor. Or it may be possible to keep the attach image; you will need to decide on that. Again, this is going to be a special job as the core files of the blog post view will need to be changed. This is not just something you can drop in. Now, it is possible to just drop in an HTML block ABOVE the blog post view and insert the ad code there. It will be just as prominent as putting it inside of the post body. Geeks, making the world a better place |
If I understand you correctly, you can add html/ads to blog posts but are you using adsense or another service to generate the ads? If so you can add the javascript to: modules/boonex/blogs/templates/base/blogpost_unit.html Whatever you add will show on blogs/home/ and blogs/entry/ pages. To show only on each actual blog/entry/ page, I'm currently using javascript but when I find some time I will figure out a better solution. Not sure if this is what your looking to do. |
If I understand you correctly, you can add html/ads to blog posts but are you using adsense or another service to generate the ads? If so you can add the javascript to: modules/boonex/blogs/templates/base/blogpost_unit.html Whatever you add will show on blogs/home/ and blogs/entry/ pages. To show only on each actual blog/entry/ page, I'm currently using javascript but when I find some time I will figure out a better solution. Not sure if this is what your looking to do. For what this person wants to do you need to go in and change the code that grabs the post data (the html and text) from the database and creates the post view block and have it to insert the advert code. I think putting an html block above the post view block is a better solution and less likely to cause problems. Geeks, making the world a better place |
For what this person wants to do you need to go in and change the code that grabs the post data (the html and text) from the database and creates the post view block and have it to insert the advert code. I think putting an html block above the post view block is a better solution and less likely to cause problems. From the image they posted, I think he is looking to add an ad to the bottom of each post under blog content. If so, they can add adsense code to that page if they wanted it to display there. I do think adding another block above or below is a better method so there is no changing of core files. Not sure what you mean by "need to go in and change the code that grabs the post data (the html and text) from the database and creates the post view block and have it to insert the advert code" Adding the adsense to that page in the proper location will generate the ad under post content automatically. |
Thanks for all posts and advice were very helpful! Especially, I found the solution by post 'rhimpr'! :) In modules/boonex/blogs/templates/base/blogpost_unit.html I add html ad code after __post_description__ And I have this now: But on the blogs pageads shows up in every post. It's not a bad thing, but I would nonetheless avoid this now. How can I do this? |
anyone know how to skip ads on the home page of the blogs? I'd like ads only in the blog post. |
There are some "if" for "brief" and "full" views:
<bx_if:full> .... </bx_if:full>
just enclose your banner code with these tags (don't put between existing ones, but copy them to re-use just for your code) and you should have it only on "full" view type:
<bx_if:full> ... your banner code goes here .... </bx_if:full> http://boonexpert.com |