Informers
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 10:09 AM
# Informer Samples #

Informers serve to display entries of particular modules on any pages of any sites. For example, you can output the latest forum threads or most commented photos right on the main page. This helps to make your site more interesting and handy for the visitors.

To create an Informer:

1. Go to Informers section on the main page of the Control Panel.

2. Press Create informer.

3. Select necessary module in the field with the pop-down list. (Additional options will appear depending on a module).

4. Set parameters of the options Number of entries and Number of columns.

5. Press Create.

6. Insert the obtained code of the type

Code
$MYINF_id$
where you need.

7. Informer appearance and the information for output can be edited in informer template. Type of information (uCoz codes) depends on the source module. List of codes, available for a certain informer, is under the form for editing template.

With the help of the informer, you can output information both on pages of your website and on any other site in the internet.

There are no explanations for the codes, used in informer template. This is because informers are a serious thing and you should not edit informers without good knowledge of HTML and uCoz system.



Question-answer

Where should I put the code of informer?
Control Panel -> Design -> Design management(templates).

***
How can I find out ID of an entry?
View list of entries or categories and you’ll find their IDs.

***
Is it possible to output entries in random order?
Yes, when you select a type of entries sorting you can choose the item "In random order".

***
Is it possible to make $ID$ code in the informer with Photo Album, because photos often have no names?
Do not output a name at all.

***
How can I output an image, belonging to the news entry, in the informer?
Edit informer template and insert a variable that will display the image.

***
Is it possible not to output in the news informer the news entries that are on the main page?
No.

***
Is it possible to do the following: the informer starts to count users’ messages form a certain time and does not take into account earlier messages?
No.


I'm not active on the forum anymore. Please contact other forum staff.
Prem6260
Posts: 10
Reputation: 0

Message # 211 | 6:54 PM
Quote (Dartz)
ay, website isn't uCoz's therefore features differ.

Prem6260,

Quote
<?if($ADD_ENTRY_LINK$)?><div style="text-align:right;padding-bottom:3px;">[ <a href="$ADD_ENTRY_LINK$">Add news entry</a> ]</div><?endif?>$LAST_NEWS$ <br>$MYINF_1$

OR

Quote
$MYINF_1$<br><?if($ADD_ENTRY_LINK$)?><div style="text-align:right;padding-bottom:3px;">[ <a href="$ADD_ENTRY_LINK$">Add news entry</a> ]</div><?endif?>$LAST_NEWS$

Thats for the news posts, i need it for the forums latest topics, but have it appear on the homepage.(on the sides, like how the statistics or poll is placed)

Dartz
Posts: 1931

Message # 212 | 9:51 PM
You gave me code, I placed it. Not my fault you went off-road.
As for the forum, where exactly you want it to be placed? If at
side then you must modify template, that's again by number.

[... With uCoz since December 2 2007 ...]
Prem6260
Posts: 10
Reputation: 0

Message # 213 | 6:04 PM
Quote (Dartz)
You gave me code, I placed it. Not my fault you went off-road.

Actually i stated ive made a forum activity informer, and i need to put in the homepage.
Quote (Dartz)
where exactly you want it to be placed?

hvs-network.ucoz.com inbetween entries archive and site poll on the right.

Added (2010-05-07, 12:04 PM)
---------------------------------------------
bump

Dartz
Posts: 1931

Message # 214 | 6:21 PM
You can insert it either above entries archive or below. Not in the middle.
[... With uCoz since December 2 2007 ...]
Sunny
Posts: 9296
Reputation: 456

Message # 215 | 12:03 PM
Prem6260, add a new block via Builder ( http://forum.ucoz.com/forum/5-5862-1 ) and paste the informer's code as its content.
I'm not active on the forum anymore. Please contact other forum staff.
BBVEG-Brenda
Posts: 15
Reputation: 0

Message # 216 | 8:21 PM
Quote
There is a link "Informer template" near each Informer. There you can see all the codes that will work in this informer, such as $TIME$ $AUTHOR$ etc.

Where can I find an explanation for each of these codes? Some of the modules are more difficult to experiment with--for example, the "Counters for users" module, since the results are dependent on site activity.

If there is no handy explanation, would you please explain the group codes for the "Counters for users" Module?
$GROUP_1$
$GROUP_2$
$GROUP_3$
$GROUP_4$
$GROUP_251$

Also:

Quote
And you must remember that informers display only the entries that are available for guests (not only registered users).

Does this apply to the "Counters for users" module? If so, how?

Many thanks!

Post edited by BBVEG-Brenda - Thursday, 2010-05-27, 8:23 PM
Sunny
Posts: 9296
Reputation: 456

Message # 217 | 9:20 AM
Quote (BBVEG-Brenda)
If there is no handy explanation, would you please explain the group codes for the "Counters for users" Module?
$GROUP_1$
$GROUP_2$
$GROUP_3$
$GROUP_4$
$GROUP_251$

Numbers in those codes are group IDs.

Quote (BBVEG-Brenda)
Does this apply to the "Counters for users" module?

I think no.


I'm not active on the forum anymore. Please contact other forum staff.
BBVEG-Brenda
Posts: 15
Reputation: 0

Message # 218 | 2:14 PM
Quote (Sunny)
Numbers in those codes are group IDs.

Ah ha, and those group ID's can be found in: Main » Users » User groups

This is fun when everything starts "coming together" biggrin

Thanks Sunny!

hoangquynhvu
Posts: 5
Reputation: 0

Message # 219 | 8:56 AM
How I can output an image, belonging to the news entry, in the informer? What code to output image?
Sunny
Posts: 9296
Reputation: 456

Message # 220 | 11:42 AM
hoangquynhvu, see all available codes under the informer template.
I'm not active on the forum anymore. Please contact other forum staff.
yoo
Posts: 40
Reputation: 1

Message # 221 | 8:39 PM
Code
$IMG_SMALL_URL1..10$
here is your problem:

The number in the end of this code ($IMG_SMALL_URL1..10$) should be appropriate.. It means that you must leave '1' or any other number you need.. For example: $IMG_SMALL_URL1$.. I hope I explained it clearly smile


kanat07
Posts: 28
Reputation: 0

Message # 222 | 0:17 AM
Code
<div>$TITLE$</div> <div>$MESSAGE$</div>

I put the code above in 'Appearance of entries', and it works fine.
But, when I put it into the informer template, $MESSAGE$ fails to work.

(Yes, it says$MESSAGE$ is available under the informer template, and I'm using the correct id)

What is the problem?

Sunny
Posts: 9296
Reputation: 456

Message # 223 | 9:17 AM
kanat07, http://forum.ucoz.com/forum/37-457-1325-16-1232701512
I'm not active on the forum anymore. Please contact other forum staff.
kanat07
Posts: 28
Reputation: 0

Message # 224 | 5:26 PM
Sunny, Yes, I knew that. But I don't have "$BRIEF$" in this case, I make a short description by using $CUT$.
Post edited by kanat07 - Tuesday, 2010-08-10, 5:27 PM
Sunny
Posts: 9296
Reputation: 456

Message # 225 | 10:54 AM
kanat07, then I am afraid you won't be able to use $MESSAGE$ in the informer template. With $BRIEF$ it works without any problems.
I'm not active on the forum anymore. Please contact other forum staff.
Search: