Page 1 of 11
uCoz Community » uCoz Modules » Site News & Blogs » Last News preview
Last News preview
IoCiScommetto
Posts: 42
Reputation: 0

Message # 1 | 11:53 AM
Hi,
is it possible to create a preview for the news, that shows a picture and the title of the article.

My idea is something like this
Code
http://www.tuttosport.com/


With the last new (big picture) and on the right the past news..

And when i publish another news it updates automatically.

Thank you!
Sorry for my english

My site about betting: http://scommesse.ucoz.com
Paradox
Posts: 3276
Reputation: 145

Message # 2 | 12:23 PM
IoCiScommetto, You can create an informer to collect and process the information. More info can be found here: http://forum.ucoz.com/forum/37-457-1

To show the preview from what I know can only be achieved using custom coding. We do not provide support with custom coding here.

Hope this helps happy

Developer, Designer, Communicator.
Been here for 6 years and counting.
Visit me at alexmoloney.me.
IoCiScommetto
Posts: 42
Reputation: 0

Message # 3 | 12:32 PM
Thanks for your answer, i already use informer, but i'd like to add an image and a particular style..

i try to search something on google..

if someone has an idea, write me!

Thanks!

My site about betting: http://scommesse.ucoz.com
Natashko
Posts: 3366
Reputation: 171

Message # 4 | 3:39 PM
IoCiScommetto, to output the image you need to use codes:
Code
$IMG_URL1..10$
or
Code
$IMG_SMALL_URL1..10$
in the template of the Informer.
IoCiScommetto
Posts: 42
Reputation: 0

Message # 5 | 6:16 PM
If I have a news with an image how can i show it in the informer?

That's the code i use now:

<table border="0" cellpadding="2" cellspacing="1" width="100%" class="infTable"><tr><td width="50%" style="font:7pt">[$DATE$]</td><td nowrap align="right" style="font:7pt"><?if($CATEGORY_NAME$)?>[<a href="$CATEGORY_URL$">$CATEGORY_NAME$</a>]<?endif?></td></tr><tr><td class="infTitle" colspan="2"><a href="$ENTRY_URL$">$TITLE$</a> <span title="Comments">(<a href="$COMMENTS_URL$"><b>$COMMENTS_NUM$</b></a>)</span></td></tr></table>

If I want to add the image how should I do?
Thank you for help!

My site about betting: http://scommesse.ucoz.com
Natashko
Posts: 3366
Reputation: 171

Message # 6 | 2:45 PM
IoCiScommetto, embed this in the place you want the image to be displayed. You can set up your own width
Code
<?if($IMG_URL1$)?><?if($IMG_SMALL_URL1$)?><img src="$IMG_SMALL_URL1$"  width="80" /><?else?><img src="$IMG_URL1$" width="80" /><?endif?><?endif?>
IoCiScommetto
Posts: 42
Reputation: 0

Message # 7 | 4:37 PM
Thank you!

Last question: what's the differences between IMG and IMG SMALL?

My site about betting: http://scommesse.ucoz.com
Natashko
Posts: 3366
Reputation: 171

Message # 8 | 12:17 PM
IoCiScommetto,
Code
$IMG_URL1$
is a link to the image itself and
Code
$IMG_SMALL_URL1$
is a link to its re-sized version (if it exists)
Crypter4991
Posts: 4
Reputation: 0

Message # 9 | 5:11 PM
I inserted the code in the "Entry Page with Full Text and Its comments", but the images in the blog are not reduced. Why?

Code
<table border="0" width="95%" cellspacing="1" cellpadding="2" class="eBlock">
<tr><td width="90%"><div class="eTitle"><div style="float:right;font-size:9px;">$ADD_TIME$ $MODER_PANEL$</div>$ENTRY_NAME$</div></td></tr>
<tr><td class="eMessage">$MESSAGE$ <?if($ATTACHMENTS$)?><div style="text-align:left;" class="eAttach"><!--<s3172>-->Allegati<!--</s>-->: $ATTACHMENTS$</div><?endif?></td></tr>
<tr><td class="eDetails">

<!--  ======================== I inserted this code ======================== -->
    
<?if($IMG_URL1$)?><?if($IMG_SMALL_URL1$)?><img src="$IMG_SMALL_URL1$"  width="80" /><?else?><img src="$IMG_URL1$" width="80" /><?endif?><?endif?>
      
<!--  ======================== I inserted this code ======================== -->

<?if($RATING$)?><div style="float:right"><?$RSTARS$('12','/.s/img/stars/3/12.png','1','float')?></div>
<?endif?><?if($CAT_NAME$)?><!--<s3179>-->Categoria<!--</s>-->: <a href="$CAT_URL$">$CAT_NAME$</a> |<?endif?>
<!--<s3177>-->Visto<!--</s>-->: $READS$ |
<!--<s3178>-->Aggiunto da<!--</s>-->: <a href="$PROFILE_URL$">$USER$</a>
<?if($TAGS$)?> | <!--<s5308>-->Tags<!--</s>-->: $TAGS$<?endif?>
<?if($RATING$)?>| <!--<s3119>-->Voto<!--</s>-->: <span id="entRating$ID$">$RATING$</span>/<span id="entRated$ID$">$RATED$</span><?endif?></td></tr>
</table>
Natashko
Posts: 3366
Reputation: 171

Message # 10 | 2:38 PM
Crypter4991,
Quote (Crypter4991)
I inserted the code in the "Entry Page with Full Text and Its comments", but the images in the blog are not reduced. Why?

Please provide a website name as well as the screenshot of the problem.
uCoz Community » uCoz Modules » Site News & Blogs » Last News preview
Page 1 of 11
Search: