Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Google Adsense add-on for Vanilla 1
This discussion has been closed.
Comments
As far as the page it uses... If you go to
papertrade.us/index.php?Page=vote
, you get the same thing as what you linked... but index.php is already in the list.So my best guess for now is you need to get the notice collector into PageManager some how.
EDIT: for anybody else with this problem, change this line:
GetUrl($Configuration, 'people.php', '', '', '', 'PostBackAction=ApplyForm').
ToGetUrl($Configuration, 'people.php', '', '', '', '', 'PostBackAction=ApplyForm').
have a nice day
$Panel->AddString('Google code', 10);
where 10 is the position in the panel you want it to show up. Higher numbers position lower in the panel.
I just may give this a shot myself.
if ( in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "post.php", "account.php", "settings.php")) ) { $Panel->AddString(' ---Google Code goes here --- ', 10); }
In the adsense for search options, I set the search box to length of 10 characters, and it seems to fit OK. This will show the box for both signed on members and guests, since it is outside the first if statement.
Two questions though (sorry!) - how do I place it at the very bottom (below the Gig Calendar) and then also place a header of 'Search Google' or similar?
Cheers!
$Panel->AddString('<h2>Search Google</h2> --- Google Code goes here --- ', 500)
You might need some other number than 500, the trick is to make it larger than the number in the gig calendar, and then it will appear below it.
.Notice { background: url(notice.gif) left center no-repeat #FFFECC; border: 1px solid #FAEBB1; font-size:13px; padding: 8px 8px 8px 30px; margin-bottom: 20px; color: #D57D00; line-height: 150%; }