We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Here is how you fix the special page oxwall logo image newsfeed issue | Forum

dave Leader
dave Oct 2 '16
When you create a special page under pages. And then you add a link to that page via the news feed.  What you get instead of the image is the oxwall logo.  IE OXWALL SOFTWARE.. 


Try it and you will see... you will get something that looks like this... i did not save the real page so i made a sample here. 




so you can see the OXWALL SOFTWARE logo there. 


Here is how to add your own logo so you dont have to use the OX logo. 


First make you an image in PS or whatever and make it 100x100  then add that file to your theme images folder.  You can also add it to the static themes theme images folder or just refesh the cache and its there. 


Now we need to edit the code, yes i know i hate to edit the core too but until there is an option via admin or plugin we have to do it this way. 


so edit the file  ow_plugins/newsfeed/views/formats/image_content.html


and you will see this code 


<a href="{if !empty($vars.url)}{$vars.url}{else}javascript://{/if}">     <img src="{$vars.thumbnail}" alt="{$vars.title|escape}" /></a>


now what your going to do is save the img tag part as the original code so you can put it back if you need to. 


    <a href="{if !empty($vars.url)}{$vars.url}{else}javascript://{/if}">    



<!-- original code -->

<!-- <img src="{$vars.thumbnail}" alt="{$vars.title|escape}" /></a> -->


and then make your own img tag. 


<img src="{$site_url}ow_static/themes/YOURTHEME/images/IMAGENAME.png" alt="{$vars.title|escape}" /></a>


so the final code should look like this 



    <a href="{if !empty($vars.url)}{$vars.url}{else}javascript://{/if}">    <img src="{$site_url}ow_static/themes/YOURTHEME/images/IMAGENAME.png" alt="{$vars.title|escape}" /></a>


     <!-- original code -->    

     <!-- <img src="{$vars.thumbnail}" alt="{$vars.title|escape}" /></a> -->


refresh your cache and thats it your all done.  :)


and the results... 




enjoy :)

The Forum post is edited by dave Oct 2 '16
Mitchell Thornton
Mitchell Thornton Apr 4 '23
You should mainly superior together with well-performing material, which means that see it: Hampton Residential Cleaning Experts
Mitchell Thornton
Mitchell Thornton Apr 4 '23
On my website you'll see similar texts, write what you think. Green cleaning Harrisonburg
Mitchell Thornton
Mitchell Thornton Apr 4 '23
I read this article. I think You put a lot of effort to create this article. I appreciate your work. Leesburg move-in cleaning
Mitchell Thornton
Mitchell Thornton Apr 4 '23
This is exciting, nevertheless it is vital for you to visit this specific url: Eco-friendly cleaning Lynchburg
Mitchell Thornton
Mitchell Thornton Apr 4 '23
Interestingly you write, I will address you'll find exciting and interesting things on similar topics. Carpet cleaning Manassas
Mitchell Thornton
Mitchell Thornton Apr 4 '23
Interesting and interesting information can be found on this topic here profile worth to see it. Move-in cleaning Newport News
Mitchell Thornton
Mitchell Thornton Apr 4 '23
I've proper selected to build a blog, which I hold been deficient to do for a during. Acknowledges for this inform, it's really serviceable! Affordable cleaning services in Norfolk
Mitchell Thornton
Mitchell Thornton Apr 4 '23
Your texts on this subject are correct, see how I wrote this site is really very good. Deep cleaning Richmond
Mitchell Thornton
Mitchell Thornton Apr 4 '23
These things are very important, good think so - I think so too... Deep cleaning Roanoke