Matthew Shempert Hey what is this code about ? newsfeed or topic post ? in wich file is this ?
it interests me to know where to reduce size of thumbnails
textpos: "below",
imagewidth: 150,
Michel Well, both. At first I was trying to just have it put into the newsfeed, but then thought I’d have to do it manually every time for it to work so I was trying to put it into a topic post, which would get into the newsfeed. The code is given to me by Bidvertiser, I am suppose to add it into the website code for their ads to show.
I’ve been looking for the actual file in moosocial that controls the newsfeed, where I couid possibly patch in this code to have it spawn ads IN THE NEWSFEED at the set intervals. I think I may have found it, because when I added this code to it, when ever I tried to post a newsfeed post, it posted the ad instead. Obviously not the result I wanted. Lol. Let me look and see where that file was and I’ll let you know.
Michel
Ok so...app/View/Activities/ajax_share.ctp. When I add the code to the very bottom of the file, it ads the ad EVERY time someone post in the newsfeed. I’m guessing one of the files in this folder would control the rules to how often this happen, or how often the ad would allow itself to be posted.
Update: As it is now, the ad is only viewable to the one who uploaded the post into newsfeed. Others only see the newsfeed itself, until they post into newsfeed then they see the ad under THEIR post.
Then it seems to disappear when they refresh their screen.
Thank's Matthew Shempert I replace the file with an older version to see if I get video posts without API but of course it would have been too easy lol, not working .
Your welcome. Hope you get it. I'm running a test server at my house and I'm going to figure out how to alter more stuff inside it. Seems better that way.
<div id="ntv_1991008"></div>
<script type="text/javascript">
(function {
var params =
{
bvwidgetid: "ntv_1991008",
bvlinksownid: 1991008,
rows: 1,
cols: 1,
textpos: "below",
imagewidth: 150,
mobilecols: 1,
cb: (new Date()).getTime()
};
params.bvwidgetid = "ntv_1991008" + params.cb;
d.getElementById("ntv_1991008".id = params.bvwidgetid;
var qs = Object.keys(params).reduce(function(a, k){ a.push(k + '=' + encodeURIComponent(pa... more