RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message | ||
|---|---|---|---|
|
WebMaster9000 Nucleus Disciple Joined: 17 Jan 2005 Posts: 241 Location: Brooklyn, NY |
I want to add in each post that I publish a square 250x250px ad from my ad server, sort of like a template mod, only I think this need to be done at the core level since i didn't see any place to do it at the skins or templates. Any help on how to go about this? |
||
|
|
|||
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 6313 Location: Massachusetts |
Put the PHP code in a file, called something like myads.php, in the folder for your skin (i.e. skins/default/ for the default skin). Then in the template where you want the ad to be displayed, insert this code <%phpinclude(myads.php)%> _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
||
|
|
|||
|
WebMaster9000 Nucleus Disciple Joined: 17 Jan 2005 Posts: 241 Location: Brooklyn, NY |
Thanks frank, but I had something like this in mind: http://tinyurl.com/ydbu6bz Basically the ad should be inside the post body and the text should wrap around it. Is it possible? This is the page itself: http://tinyurl.com/y8kojnr That site is based off wordpress to the best of my knowledge. |
||
|
|
|||
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 6313 Location: Massachusetts |
I think you would do this in the template used for displaying the Item pages (like default/item or whatever your skin uses). Like this:
_________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
||
|
|
|||
|
WebMaster9000 Nucleus Disciple Joined: 17 Jan 2005 Posts: 241 Location: Brooklyn, NY |
I tried that, and it worked. BUT. I usually only put one paragraph in the beginning of each post and the rest in the extended body, what I was looking for was a way to have it display at least 4 more paragraphs down. I guess the best way to do it is with CSS? have the div class force it down lower? |
||
|
|
|||
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 6313 Location: Massachusetts |
If you can get the wrapping right doing it with CSS, then sure. _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
||
|
|
|||
|
rekk1986 Nucleus Newbie Joined: 05 Jan 2010 Posts: 5 |
You can check the CSS file, i think this errors rise from this area. |
||
|
|
|||
|
|
|||
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|||