Welcome to Geeklog Tuesday, June 25 2019 @ 09:41 pm EDT

Geeklog Forums

Need hack for centerblock staticpage


Status: offline

orfilms

Forum User
Regular Poster
Registered: 02/08/05
Posts: 70
I'm looking for a hack which would allow me to put an advertisement after 3 or 4 articles. It doesn't need to be a static page centerblock but I was thinking that would be the easiest.

Anyone know how to do this?

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
You would have to modify index.php, since there are no hooks to inject something between stories.

bye, Dirk

Status: offline

orfilms

Forum User
Regular Poster
Registered: 02/08/05
Posts: 70
I know a little about php but not much. I've taken a look at the index file and have no idea what I'm looking at. Is there anyone who could help me out with this hack? It would be greatly appreciated!

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Near the end of the file, there are 2 calls to STORY_renderArticle(). The first one is for the featured story, the second one is in a while loop and displays the other stories. You would have to add a counter there and inject your code after the 3rd story (or something like that).

HTH

bye, Dirk

Status: offline

orfilms

Forum User
Regular Poster
Registered: 02/08/05
Posts: 70
It's now officially confirmed that I don't know what the hell I'm doing... and I don't really have the time to learn unfourtunately...

So if ANYONE could create this hack code for me I'll paypal you 20 bucks.

Status: offline

beewee

Forum User
Full Member
Registered: 05/08/03
Posts: 969
Location:The Netherlands, where else?
Would it be OK if the add would be placed between the first and second article?
Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net

Status: offline

orfilms

Forum User
Regular Poster
Registered: 02/08/05
Posts: 70
No I need an ad after the 3rd and 6th articles, same code. Either by pulling a static page or by entering the html into the code somehow.

All times are EDT. The time is now 09:41 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content