El Dorado

A full-stack community web application written in Ruby/Rails
adsense and hiding certain pages « El Dorado « almost effortless
 
Wed, 11 Jun 2008, 8:54am #1
gnovena
Member
Registered: Jan, 2008
Last visit: Mon, 11 Aug 2008
Posts: 14

I had a crumby idea that maybe if I logged in as Admin and inserted some Adsense code into the Announcement field, it would magically start posting adsense ads. Instead it just displays page cannot be found. Any pointers???

I'm sure it's out of scope but others may be interested too in how adsense or any form of advertising might be incoporated into ED.

Second question: Suppose I didnt want the Headers or Chat pages to be functional in ED. How could I turn those off? Also, suppose I wanted to add a plain old content page in replacement of those pages, might there be an easy way to do that?

Offline
Wed, 11 Jun 2008, 9:18am #2
gnovena
Member
Registered: Jan, 2008
Last visit: Mon, 11 Aug 2008
Posts: 14

wow, i just needed to add html and body tags and it started working. NICE! now to figure out how to get the adsense to show up in between posts in a thread. anyone?

Offline
Wed, 11 Jun 2008, 9:30am #3
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 2 hours ago
Posts: 198

You can hack up any views you want, so the tabs are here, I believe:

app/views/shared/tabs

and adding Google Adsense would probably best be done here:

app/views/topics/show

Offline