hi i would to know how to add ads to my plugin header only not site
i tried using the code below
<?php
{
echo elgg_view('mod/moneyagames/ads/banner');
} ?>
but i can't see ads
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- moneya@sociabie
moneya - 0 likes
- moneya@sociabie
moneya - 0 likes
- Sathish Kumar@rubon
Sathish Kumar - 0 likes
- Dries@driesdk
Dries - 0 likes
- moneya@sociabie
moneya - 0 likes
You must log in to post replies.that's likely not a correct view name
'ads/banner' would map to /mod/<pluginname>/views/default/ads/banner.php
so i should try it like this
/views/default/ads/
banner.php');
} ?>
i mean
<?php
{
echo elgg_view('mod/moneyagames/
views/default/ads/banner.php');
} ?>
you need to add your page
/mod/moneyagames/views/default/ads/banner.php
Elgg looks for the view in the views/default directory
Like Matt already explained:
Your mod will have the dir structure: /mod/<pluginname>/views/default/ads/banner.php
So your actual view is in: /mod/<pluginname>/views/default/ads/
Then you could use:
elgg_view('ads/banner');
thanks