ads on newly created pages

Proposez ici vos templates, vos plugins ou demandez en un.
Tous les tutoriels disponibles pour Arfooo Annuaire sont disponible dans cette rubrique

ads on newly created pages

Messagede keneso » Mer 28 Déc 2011 18:49

Hi,

I have created new pages thanks to Angra-Mainyu's kind help, now I have a follow-up question:
how do I add advertisment on the new pages?
I did this:

I added this
Code: Tout sélectionner
<li><a href="{'/admin/ad/in/faq'|url}">FAQ</a></li><!-- testing -->

to
\arfooo\admin\templates\arfooo\menu\menuleft\menuleftAdsense.tpl
and of course the link appears in the left side menu, and naturally it gives error, when clicking on it.
After that I added this (line 56)
Code: Tout sélectionner
$pages = array("news", "topHits", "topNotes", "topRank", "topReferrers",
         "search", "contact", "error404", "allcategories", "predefineCategory",
         "predefineSite", "predefineKeyword", "predefineTag", "index", "faq");//faq added as new page

and this (line 93)
Code: Tout sélectionner
case "faq"://added for the new faq page

to
F:\siti\bblisting\arfooo\admin\controllers\AdController.php

Now when I click on the "faq" page link, I get to choose to enable ad on the new page, on "header" "left", and "right", I enable the ad, I pick the ad from drop down in all three, but when I view the faq page, nothing is displayed.

Ad works fine in the default arfooo pages.

Thank you
Using v. 2.0.2
keneso
 
Messages: 15
Inscription: Jeu 15 Déc 2011 20:47


Re: ads on newly created pages

Messagede Angra-Mainyu » Mer 28 Déc 2011 19:22

Hi,
i don't know how work the ads in the script but take a look in the database for the table "arfoooprefix_ads"
and check if you have something inside for the faq.

Perhaps you have to add and enable your ads from the admin area like the others.
Angra-Mainyu
 
Messages: 455
Inscription: Dim 14 Sep 2008 23:37

Re: ads on newly created pages

Messagede keneso » Mer 28 Déc 2011 20:58

Thank you.
I checked, and it appears to be the same as the other pages, i.e. index, news, etc.
It is not so vital, as I can put the ad directly into the page, and or the sidebar; hopefully Arf will give us some explanation.
keneso
 
Messages: 15
Inscription: Jeu 15 Déc 2011 20:47

Re: ads on newly created pages

Messagede Angra-Mainyu » Jeu 29 Déc 2011 01:12

Did you add something like that in you tpl faq file?

Code: Tout sélectionner
{displayAd place="faq"}
Angra-Mainyu
 
Messages: 455
Inscription: Dim 14 Sep 2008 23:37

Re: ads on newly created pages

Messagede keneso » Jeu 29 Déc 2011 12:17

No, I haven't, as I want the ad in the left sidebar, and in menuleft.tpl the {displayAd place="leftMenu"} is there, indeed it does show in arfooo's "default" pages.
I will try to add the {displayAd place="faq"} on the faq.tpl to see what happens.

I will be back january 9, meanwhile I wish you a happy new year, and a great 2012.

update/edit
I just noticd a strange beahviour, maybe a bug:
I have the ad set to display in right, and left sidebar in all pages, but the submit page, it's a specific ad I created, and it has an image in it, well, it shows fine in all pages but the search page, in the search page the box is shown, but the image does not show??!!
keneso
 
Messages: 15
Inscription: Jeu 15 Déc 2011 20:47

Re: ads on newly created pages

Messagede keneso » Lun 9 Jan 2012 19:32

I'm back.
I found another strange behaviour, which I think has the same source, of the advert, it has to do with the image management.
I put an image as my logo in the header, and now on some pages it doesn't display; the wierd thing is it does display on one of the created pages, but not on another, and it does not display in the search, and terms of use pages either!

== edit ==
Ok, nevermind the image display issue, I found the reason, I had this:
Code: Tout sélectionner
<img src="templates/CUSTOM/images/logo.png" />

I changed it to
Code: Tout sélectionner
<img src="/templates/CUSTOM/images/logo.png" />

I did the same in the advert html code.

Now I have to find how to put the advert in the added pages.
keneso
 
Messages: 15
Inscription: Jeu 15 Déc 2011 20:47


Retourner vers Templates, plugins et tutoriels

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités

 
Copyright © arfooo.com  2007 - 2011  -  Tous droits réservés  -  Partenaires de confiance
Sites du groupe: petites annonces gratuites   voyance en direct - tirage tarot   Consultant en référencement
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | phpBB SEO Traduction par: phpBB-fr.com
cron