Archive - read only |
uCoz Community » Archives » Archive » Update of 01.09.2009 |
Update of 01.09.2009 | ||||||||||||||||||||||||
I'm not active on the forum anymore. Please contact other forum staff.
| ||||||||||||||||||||||||
Tag Board
Those who used Tag Board by a direct link now need to create a page in Page Editor and enable the option "Apply personal template to the page". Then delete all unnecessary code from the template except the skeleton and tag board code:
Code <html> <head> <title>Tag Board</title> </head> <body style="margin:4px;padding:0;background:#EFEFEF;"> <div align="center"> $CHAT_BOX$ <?if($LOGIN_LINK$)?><br><a href="$LOGIN_LINK$">Login</a><?endif?> <br><br>$POWERED_BY$ </div> </body> </html>
LightBox For those who have this effect not working in their Photo Albums – it means that you have a modified "Appearance of photo entries" template. You need to edit it or restore the default. Control Panel -> Customize Design – Appearance of photo entries - replace $PHOTO_URL$ by $PHOTO_LIGHTBOX_URL$ (just the second one is enough). I'm not active on the forum anymore. Please contact other forum staff.
| ||||||||||||||||||||||||
$TIMESTAMP$ and $LASTMOD$ or How to make a custom appearance of entry date
Paste the following script into the first global block (e.g. Top part of the website): Code <script type="text/javascript"> function convertTS(timestamp){ var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; var dtm=[];var d=new Date();if (typeof timestamp=='string' && timestamp.length>5){timestamp=parseInt(timestamp);}if (typeof timestamp=='number' && !isNaN(timestamp)){d.setTime(timestamp*1000);}var cday=d.getDate();if(cday<=9){cday='0'+cday};var cmin=d.getMinutes();if(cmin<=9){cmin='0'+cmin};var csec=d.getSeconds();if(csec<=9){csec='0'+csec};var chour=d.getHours();if(chour<=9){chour='0'+chour};var mon=d.getMonth()+1;if(mon<=9){mon='0'+mon};var month=months[d.getMonth()];var year=d.getFullYear(); dtm['month'] = month; dtm['year'] = year; dtm['mon'] = mon; dtm['day'] = cday; dtm['hour'] = chour; dtm['min'] = cmin; dtm['sec'] = csec dtm['time'] = chour+':'+cmin+':'+csec; return (dtm); } </script> Paste the following script into "Appearance of entries" template (at the very beginning) of a necessary module: Code <script type="text/javascript">var dtm=convertTS('$TIMESTAMP$');</script> Paste one of the following codes (depending on your needs) in the same "Appearance of entries" template into the place where you want the date to be displayed:
Code <script type="text/javascript">document.write('<b>'+dtm['month']+'</b>')</script>
Code <script type="text/javascript">document.write(dtm['year']+'/'+dtm['mon']+'/'+dtm['day'])</script>
Code <script type="text/javascript">document.write(dtm['time'])</script>
Code <script type="text/javascript">document.write(dtm['hour']+'.'+dtm['min']+'.'+dtm['sec'])</script> I'm not active on the forum anymore. Please contact other forum staff.
| ||||||||||||||||||||||||
$IMGS_ARRAY_JS$ - JavaScript array for images
Code <script type="text/javascript"> //['link to an original image','width of the original image','height of the original image','link to a demo image','width of the demo image','height of the demo image'] var allEntImgs$ID$=[ ['http://your_site/_sf/2/3600419.jpg',530,398,'http://your_site/_sf/2/s3600419.jpg',150,112], ['http://your_site/_sf/2/4248139.jpg',530,398,'http://your_site/_sf/2/s4248139.jpg',150,112], ['http://your_site/_sf/2/6979480.jpg',530,398,'http://your_site/_sf/2/s6979480.jpg',150,112] ]; </script> You can see an example in the entry template of "Online Games" module.
Star rating Is implemented by means of the code: Code <?$RSTARS$('12','http://src.ucoz.net/img/stars/3/12.png','0','float')?> Parameters: The list of default sets:
Available dimensions in each set: 12.png 20.png 30.png 46.png I'm not active on the forum anymore. Please contact other forum staff.
| ||||||||||||||||||||||||
Spoiler
Looks as follows: With a custom text: Code [spoiler=Title of the spoiler]Any text goes here...[/spoiler] Its appearance can be customized via CSS. Examples and appearance of spoilers after CSS editing:
Why has the tick for line breaking disappeared from Template Editor? Because Template Editor is being improved and the work hasn’t been finished yet...
I have some strange 'characters' instead of Cyrillic letters The problem that caused this has been fixed. Unfortunately we can’t restore the 'characters' automatically You will have to restore the templates where you have this problem or replace the words manually (which is very inconvenient but nothing can be done about this). Accept our apologies for this situation.
Security code in Tag Board You can now disable security code for Users in Tag Board. This option has been added to Control Panel -> Tag Board -> Module settings -> Use security code for "Users" group. I'm not active on the forum anymore. Please contact other forum staff.
| ||||||||||||||||||||||||
Quote (Sunny) '12','http://src.ucoz.net/img/stars/3/12.png','0','float')?> Change the link indicated in Blue to the links Sunny provided. I think you can by changing the link $PHOTO_URL$ with $PHOTO_LIGHTBOX_URL$ (Use Quick Replacement) There was once a man named Lee. He used to love taking a ***, then he found THIS!
Post edited by Leekinz - Wednesday, 2009-09-02, 9:28 PM
| ||||||||||||||||||||||||
Quote (heysupp) Why wasn't the Online Games module just called "/media" instead of "/stuff" ? So that the module can be used for other things, instead of just media (for example - posting articles, blog posts and so on). Post edited by Pilot - Thursday, 2009-09-03, 1:28 PM
| ||||||||||||||||||||||||
Quote (Sunny) A new module - "Online Games" – has been added. It can be automatically filled with games when installing it. The database contains both online and downloadable games. A website owner can add new games and delete/edit default games. If you want to use the module for your own needs – you are welcome, just install it empty and use it for any content you like. Does this module update itself too? I mean does uCoz add games to this every so often and it updates the module on our sites automaticly? Sorry if this has been asked/answered before I didn't see it | ||||||||||||||||||||||||
jackass, there is a suggestion board for this purpose.
Mistory, there is an option for automatic update... as far as I remember it can be checked when installing the module. I'm not active on the forum anymore. Please contact other forum staff.
| ||||||||||||||||||||||||
Quote (Leekinz) Quote (Sunny) '12','http://src.ucoz.net/img/stars/3/12.png','0','float')?> Change the link indicated in Blue to the links Sunny provided. I think you can by changing the link $PHOTO_URL$ with $PHOTO_LIGHTBOX_URL$ (Use Quick Replacement) I'm sorry, but I don't understand where should be this code/link (I looked into "Page with full-sized photo" and "Appearance of photo entries" and "Page with photo rating..." Didnt found:/ Martin
www.martinphoto.ucoz.com | ||||||||||||||||||||||||
| |||