Can I make an ad sticky

john saleeby Posted in General Discussion 4 years ago

Can I fix it so that an ad always appears first on the ad display?

Replies
us Zeigh Knuph Replied 3 years ago

Thanks Theyadora. That was a simple fix.
I did what you suggested and it worked perfectly.
I think z-man didn't understand the question.

us Theyadora Leeper Replied 4 years ago

Hey John, I dont know what the answer z-man gave means.
There is a simple way to do what you want. BUT It involves a rapid single word edit of the OssnAds core file.
components/OsnAds/classes/OssnAds.php
edit line 69 .... change '$random=true' to '$random=false' thats it.
This will cause the JS to pull the first image in your list as the start and scroll through them from there, REMEMBER THO. that JS starts at zero-0 so the first image pulled will be the SECOND one ( 1 ) on your list.

hope it helps.

us John saleeby Replied 4 years ago

Thank you, I'll check it out

German Michael Zülsdorff Replied 4 years ago

Sure.
If you're not happy with Ossn's default look and feel (colors, placement of elements, etc.) you may develop your own custom theme as explained in How to develop a new theme
https://www.opensource-socialnetwork.org/wiki/all?offset=2