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.
rys3r
Posts: 179
Reputation: 5

Message # 421 | 3:52 PM
How can I show the last entries (blog, board, dir, etc.) of a user in their profile page?
Post edited by rys3r - Tuesday, 2014-10-21, 3:53 PM
Eriko
Pokémon Master
Posts: 962
Reputation: 34

Message # 422 | 4:03 AM
rys3r, do you mean their own blogs? DIR? etc?
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 423 | 1:45 PM
rys3r, at the current moment there's no standard system feature to achieve this, however, from what I've seen and done during past development it's best achievable using the user entry listings as iframes. It can be buggy at the best of times depending on how well programmed it is and how the server's feeling but it's the most viable regular solution I've found to date.

I haven't considered an API/PHP solution yet, however, I believe it may be possible depending on your experience with server side languages, the uCoz system, and the appropriate programming concepts.

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
rys3r
Posts: 179
Reputation: 5

Message # 424 | 0:45 AM
Eriko, Yes. Something like you have on your website in profile pages.

Added (2014-10-23, 11:45 PM)
---------------------------------------------
Paradox, thanks for the advice.

Eriko
Pokémon Master
Posts: 962
Reputation: 34

Message # 425 | 0:49 AM
I use jQuery:
Code

<div class="PhotoEntries">Loading...</div>
<script>
$(function(){
     $(".PhotoEntries").load("$_PHOTO_ACTIVITY_URL$ .photof_ProfileCall");
});
</script>


For the code above I'm calling the class photof_ProfileCall from the $_PHOTO_ACTIVITY_URL$.

For more information about .load function:
http://api.jquery.com/load/
rys3r
Posts: 179
Reputation: 5

Message # 426 | 4:06 PM
Eriko, can you tell me how to apply the code to get it working in one module (ex. board module)?
I really appreciate your help.
boooutheghost
Posts: 9
Reputation: 0

Message # 427 | 6:17 PM
I was wondering how could i post an Informer with enetrys from publisher to have images on? Can someone explain this and please don't answer "edit your template code" if i known that i wouldn't ask.
joexyz
JOE-vascript
Posts: 1768
Reputation: 78

Message # 428 | 6:19 PM
boooutheghost, you have to use $IMG_URL1$ variable in this format:

Code
<img src="$IMG_URL1$" />

hey i'm joe and i do not work for the company anymore, please contact tech support for help!

sometimes i lurk here
themarchello
Posts: 1
Reputation: 0

Message # 429 | 7:18 PM
Hi UCOZ comunity, I'm having problems with INFORMERS & GROUP PERMISSIONS.

Somehow INFORMER "Latest updated threads (FORUM)" stopped working when changing USER GROUP PERMISSIONS! Which CHECKBOX in all permissions is responding on displaying this module for different user groups?

Anyone have any idea on this?
Post edited by themarchello - Sunday, 2015-02-01, 7:33 PM
joexyz
JOE-vascript
Posts: 1768
Reputation: 78

Message # 430 | 7:33 AM
Quote themarchello ()
stopped working

What do you mean exactly by this? The informer will be not displayed to that user groups who have not access to view the Forum module.

hey i'm joe and i do not work for the company anymore, please contact tech support for help!

sometimes i lurk here
kankukong
Posts: 95
Reputation: 0

Message # 431 | 5:35 AM
about problem informer section forum


sorting mode, I think more should be part sorted by most view threads

or admin can perform this script please guide me
Korijs
Posts: 267
Reputation: 5

Message # 432 | 7:54 AM
untill now I don't understand why uCoz informers are so limited - just 30..

it's in order to avoid overload or what?

it could be great to give at least +10 more informers, but as I see my suggestion some years ago in suggestion thread did not receive approval

there are 19 kind of informers + tens of other options in the most of informers (comments, views, loads etc.)
Post edited by Korijs - Tuesday, 2015-02-10, 7:57 AM
osmanys
Posts: 56
Reputation: 1

Message # 433 | 4:38 PM
Sunny,
Quote Sunny ()
Informer data is being cached, it's not refreshed immediately


Who long takes an informer to update its content? And, how, if is possible, can I change this time?
Ed05
Posts: 556
Reputation: 7

Message # 434 | 8:58 PM
I dont know why but when i create informer to display enteries in random order its always display the same enteries.
Another problem is that we need option when create informer to chose list of section IDs.
In that way owners of websites will have option to oputput certain section, now its hard cause we must enter category id's .Its hard for us who have more than 30 categories in section.Not to mention that informer is limited on smaler number when adding category IDs.

!
Post edited by Ed05 - Sunday, 2015-07-05, 9:07 PM
Sunny
Posts: 9296
Reputation: 456

Message # 435 | 9:30 AM
Quote Ed05 ()
I dont know why but when i create informer to display enteries in random order its always display the same enteries.


Please provide the link to the page with the informer.

I'm not active on the forum anymore. Please contact other forum staff.
Search:
Support
Need help? Contact our support team via the contact form or email us at support@ucoz.com.