• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Ads on homepage...

Started by ASDF,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ASDFTopic starter

Hey Mario...i am trying this from last two days, then realized i might end in creaing new problems for you....
i searched forum but nothing helped.
What i want is ads on homepage and i have marked the areas...and i do believe/feel most of the phpvibe members are looking for this....
  •  

ASDFTopic starter

  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

Hey Mario....unable to create ad spot... :-\.
Can you please give me the codes...exactly for both the ad spots.
  •  

Marius P.

There is no exact code, the exact code is generated in your admin panel.

You create an ad, you place it in a new spot, you get the code from the ads list, you paste it in the template file.
As simple as that.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

Thank you...finally it worked, but generated a problem too.
can you tell me what's wrong.
  •  

Marius P.

You really can't tell what's wrong from your code being all printed instead of executed?

Maybe a "?>" in plus would be a best guess :)


show me the code around the ad call function.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

  •  

Marius P.

remove the ?> after the ad call, you have php after without an opening tag...
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

And what about this....showing half ad below video?..... :( ;D ;D.
  •  

Marius P.

I can't guess what's going on there, what type of ad it is. What kind of css wrapper you did for the ad call...
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

Sorry...but i just copied the the same ad code which i used for homepagead...and named the ad spot....nothing else......now i know the spot,,,can you tell me the code....please.
  •  

Marius P.

The ads do not have any styling, so you may want to wrap them in a div.

<div class="block">
//ad here
</ div>



smf strips close div, so I had to add an extra space, don't copy paste.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

Hwy Mario...please can you give me exact codes for the ads to be displayed below video....
Thank you  :D.
  •  

Marius P.

How am I suppose to figure out what's the name you've choose for your spot and so on?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

The ad spot is...below video...and i want to display ad just below the video :D...
  •  

Marius P.

Holly crap, you really don't get that ads system do you?

You create a new ad and you place it in a new named spot.
That also creates the spot.
Once the spot is created, you can put it in the template with that function it shows on the list ads.
The ad spot is touched by near cms, so you may want to wrap it into another div to not be cut or anything else, just like normal coding of div spots.


I think I'll change the admin panel, something so simple turns out so hard to understand.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ASDFTopic starter

Hey Mario... i do not code or say i don't know coding, wrapping ads in a div and all.....went over my head....but i took the alternative, as much i understood by only looking at the codes...i some how managed to put the ad below the title of video...i don't know exactly if you were able to do it or not, as this is a CMS by you...but instead of yelling at me and writing a paragraph, you should have given me the codes.

Anyways
Thank you Mario for this wonderful CMS.... :D :D :D .
  •  

Marius P.

I don't yell at you (sorry if you believed so), I'm actually gathering all this stuff and considering how to simplify things.

Using the ads system is very personal, meaning it generates your own custom code, this is why I cannot give you an global solution.

But, let's try

You say the ad prints in the zone, right?

And your ad code looks like

<?php echo _ad('0','bla bla bla') ?>



then just wrap it like:



<div class="block">
<?php echo _ad('0','bla bla bla') ?>
<>



and worst case scenario

<div class="block" style="height:90px">
<?php echo _ad('0','bla bla bla') ?>
<>





You can change 90 to fit you.


Make sure you add an close div instead of <> since smf strips it, to be clear </ div> without the space before the "d".
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)