|
uCoz Community uCoz Modules Site News & Blogs Site News Problem |
Site News Problem |
Hi
I install module Site news on my website,and I want ,in url www.mysite.ucoz.com/news,add a FB status(all groups can add facebook status)but,how I can disable that this FB status doesn't appear on my homepage ,only on www.mysite.ucoz.com/news ? Sorry for my bad English |
belmo996, try to use conditional operators, e.g.:
Code <?if($MODULE_ID$='news')?>Facebook status<?endif?> I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, on url www.mysite.ucoz.com/news not on homepage :D,I'll try this
Added (2012-07-31, 2:05 PM) |
belmo996, if you put the facebook status code within the code I provided:
Code <?if($MODULE_ID$='news')?>Facebook status code<?endif?> it will be displayed only in /news and won't be displayed on the home page. I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, I use this code in appearance of entries:
Code <fieldset style="background:#282828;border:1px solid black;border-radius:10px;color:white;font-weight:bold;font-size:14px;"> <img src="http://download-baza.ucoz.com/statusi/facebook_button.png" style="float:left;"/> $MESSAGE$ <script src="http://connect.facebook.net/hr_HR/all.js#xfbml=1"></script><fb:like href="$ENTRY_URL$" send="false" show_faces="false" width="550" font="" colorscheme="dark"></fb:like> </fieldset> Where now put your code with this my in Top Part of website,bottom part,site pages...where ? |
belmo996, you can use the code where you want it to be displayed, just add before the code and after it. I am not sure it will work in "Appearance of entries" but must be ok in "Top part of the website".
I'm not active on the forum anymore. Please contact other forum staff.
|
belmo996, do the following:
add this code in 'Appearance of entries" instead of $MESSAGE$ Code <div id="newsonly"> <fieldset style="background:#282828;border:1px solid black;border-radius:10px;color:white;font-weight:bold;font-size:14px;"> <img src="http://download-baza.ucoz.com/statusi/facebook_button.png" style="float:left;"/> $MESSAGE$ <script src="http://connect.facebook.net/hr_HR/all.js#xfbml=1"></script><fb:like href="$ENTRY_URL$" send="false" show_faces="false" width="550" font="" colorscheme="dark"></fb:like> </fieldset> </div> and add this to 'Top part of the website' (any place): Code <?if($MODULE_ID$='news')?><style type="text/css">#newsonly {}</style><?else?> <style type="text/css">#newsonly {display:none}</style><?endif?> I'm not active on the forum anymore. Please contact other forum staff.
|
| |||
| |||