Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Hints and Tips on design (Bg, font-colour, box, flash clock, legends, img, tables etc.)
Hints and Tips on design
osmanys
Posts: 56
Reputation: 1

Message # 196 | 7:32 PM
It is possible to code my own informer??? I want to create a dynamic informer that display data depending on the user's request. For example: My blog is open to everyone to post, so my users might want to know his own top entries, this means, his/her most readed, commented or voted entry in the blog. I know that with the informers of uCoz it's impossible, but, can I program my own informer??????
Sunny
Posts: 9296
Reputation: 456

Message # 197 | 12:02 PM
osmanys, you can use custom scripts on your website, so yes, you can definitely try and code an informer you need. Though I'm not sure it will be possible to get and display the mentioned data.
I'm not active on the forum anymore. Please contact other forum staff.
osmanys
Posts: 56
Reputation: 1

Message # 198 | 1:15 PM
Sunny, may I have access to the code of the standard uCoz informer? to get an example on how to code mine...

And thanks for your guide
Sunny
Posts: 9296
Reputation: 456

Message # 199 | 11:40 AM
osmanys, I cannot provide more than you can see yourself through the source code on a uCoz website smile
I'm not active on the forum anymore. Please contact other forum staff.
osmanys
Posts: 56
Reputation: 1

Message # 200 | 1:21 PM
SOS PLEASE HELP ME

I have a group of informers to display data like top blogs, top ads, and so on. Also I have informers especific for each module, for example: in the module blog there is an informer that show the users with more entries, the same with the others modules.

So in the global block "first container" or something like that (the aside!) I put the code:

<?if($MODULE_ID$='blog')?>show informer of users with more entries<?else?>show informer with top entries<?endif?>

perfect!! It works perfect, but now my aside section duplicates all of the informers. I've look into the modules template and what I found??: besides the code $GLOBAL_CLEFTER$ there is again the same code that there is in the global block.

I can remove the extra code, of course, but it appears again. What I'm doing wrong?

Here is the whole code in my GLOBAL_CLEFTER:

Code
<?if($USER_LOGGED_IN$)?>
<div class="block">
     <h1 class="blocktitle"><!-- <bt> --><!--<s3163>-->Menú de usuario<!--</s>--><!-- </bt> --></h1>
     <div class="blockcontent"><div align="center"><!-- <bc> -->$NMENU_2$<!-- </bc> --></div></div>
</div>
<div class="block-bottom"></div>
<?else?>
<div class="block">
     <div class="blockcontent">
  <div align="center">
      $LOGIN_FORM$
  </div>
     </div>
</div>
<div class="block-bottom"></div>
<?endif?>

$GLOBAL_SCFACEBOOK$

<?if($MODULE_ID$='blog')?>
<?if($MYINF_12$)?>
<div class="block">
     <h1 class="blocktitle">
  Usuarios con más historias
     </h1>
     <div class="blockcontent">
  $MYINF_12$
     </div>
</div>
<div class="block-bottom"></div>
<?endif?>
<?else?>
<?if($MYINF_4$)?>
<div class="block">
     <h1 class="blocktitle">
  Entradas más comentadas
     </h1>
     <div class="blockcontent">
  $MYINF_4$
     </div>
</div>
<div class="block-bottom"></div>
<?endif?>
<?endif?>

<!-- <block877> -->
<?if($MYINF_8$)?>
<div class="block">
     <h1 class="blocktitle"><!-- <bt> -->Anuncios más visitados<!-- </bt> --></h1>
     <div class="blockcontent"><!-- <bc> -->$MYINF_8$<!-- </bc> --></div>
</div>
<div class="block-bottom"></div>
<?endif?>
<!-- </block877> -->

<!-- <block877> -->
<?if($MYINF_11$)?>
<div class="block">
     <h1 class="blocktitle"><!-- <bt> -->Artículos más populares<!-- </bt> --></h1>
     <div class="blockcontent"><!-- <bc> -->$MYINF_11$<!-- </bc> --></div>
</div>
<div class="block-bottom"></div>
<?endif?>
<!-- </block877> -->


And here is my aside code in the tamplate of blog:

Code

<?if(!$HIDE_CLEFTER$)?>
       <aside>
    <div class="content">
        $GLOBAL_CLEFTER$
         
        <!--<?if($MODULE_ID$='blog')?>-->
        <?if($MYINF_12$)?>
        <div class="block">
     <h1 class="blocktitle">
         Usuarios con más historias
     </h1>
     <div class="blockcontent">
         $MYINF_12$
     </div>
        </div>
        <div class="block-bottom"></div>
        <?endif?>
        <!--<?else?>-->
        <?if($MYINF_4$)?>
        <div class="block">
     <h1 class="blocktitle">
         Entradas más comentadas
     </h1>
     <div class="blockcontent">
         $MYINF_4$
     </div>
        </div>
        <div class="block-bottom"></div>
        <?endif?>
        <!--<?endif?>-->
         
        <!-- <block877> -->
        <?if($MYINF_8$)?>
        <div class="block">
     <h1 class="blocktitle"><!-- <bt> -->Anuncios más visitados<!-- </bt> --></h1>
     <div class="blockcontent"><!-- <bc> -->$MYINF_8$<!-- </bc> --></div>
        </div>
        <div class="block-bottom"></div>
        <?endif?>
        <!-- </block877> -->
         
        <!-- <block877> -->
        <?if($MYINF_11$)?>
        <div class="block">
     <h1 class="blocktitle"><!-- <bt> -->Artículos más populares<!-- </bt> --></h1>
     <div class="blockcontent"><!-- <bc> -->$MYINF_11$<!-- </bc> --></div>
        </div>
        <div class="block-bottom"></div>
        <?endif?>
        <!-- </block877> --><!--/U1CLEFTER1Z-->
         
    </div>
       </aside>
       <?endif?>


Any idea?
Sunny
Posts: 9296
Reputation: 456

Message # 201 | 3:08 PM
osmanys, the part starting from was added automatically?
I'm not active on the forum anymore. Please contact other forum staff.
osmanys
Posts: 56
Reputation: 1

Message # 202 | 3:49 PM
Post textSunny, Yes, and I don't know why.
nhjlopez
Posts: 1
Reputation: 0

Message # 203 | 3:32 AM
Hey all, can someone private message me?

I am looking for a way to add a click to enter page before visitors see the site.

I also need a way to make my home page my eCommerce page to advertise my merch.

Thanks all! Please private message me!
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 204 | 7:14 AM
nhjlopez, please do not post the same post in multiple locations.

As to what you're asking - there's no need for someone to PM you regarding your questions, they can all be answered easily here on the forums. Perhaps try and use search before asking questions next time. smile

1) In what manner are you trying to add this click-to-enter page? Are you simply wishing it to be a landing page? If so refer to this tutorial on how to do that here: http://forum.ucoz.com/forum/5-2540-1

2) You can change what module displays as the home page of your uCoz website by navigating to Control Panel > Settings > Common Settings, scroll down until you find the option When opening the home page, redirect to. Change this to E-Shop.

Good luck. wink

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

Message # 205 | 3:49 PM
Is there any way to modify the form for adding/editing ads? I need to provide some textual guide for each of the form fields. I'm triyng with jquery but it's not working.

This is an example code of what I'm triyng to do:
Code

                      <script type="text/javascript">
     $(document).ready(function(){
        var cont = $(document.createElement('<tr><p>Este es el párrafo del div dinámico</p></tr>'));
        $('#bdM61').before(cont);}
               )
       </script>


The element with the id:bdM61 is the first row of the table inside the form
Ed05
Posts: 556
Reputation: 7

Message # 206 | 2:39 AM
Can someone help me, i wan to replace code $MESSAGE$ and instead of it put $BRIEF$, the problem is that i used message code long time and there is some description of enteries with it, is there a way to replace it with condititional operators or some script but keep content from message and use Brief code? The reason why i want to remove 1st one is in fact that i dont need big field for smal brief of enteries. biggrin
!
Post edited by Ed05 - Tuesday, 2015-07-28, 2:41 AM
osmanys
Posts: 56
Reputation: 1

Message # 207 | 1:10 PM
Ed05, can you explain how the entry's description is related with $MESSAGE$

Quote Ed05 ()
the problem is that i used message code long time and there is some description of enteries with it


I don't understand what exactly yo want to do, please provide more details
Ed05
Posts: 556
Reputation: 7

Message # 208 | 6:00 PM
Quote osmanys ()
can you explain how the entry's description is related with $MESSAGE$

they are related bu the fact that $MESSAGE$ is used for entry description, brief code also. But brief is smaler or "short sescription of an entry"
So i need to remove message code from html and replace with brief, but like i say so i will lost entry description previosly entered in "message" code. I dont know is it posibile to replace them so text entered in "message" code will stay even there is now Brief code..With some script, maybe its imposibile. Not hurt to ask smile

!
Sunny
Posts: 9296
Reputation: 456

Message # 209 | 1:45 PM
Ed05, maybe just try

Code
<?if($MESSAGE$)?>$MESSAGE$<?else?>$BRIEF$<?endif?>


and then use only the brief field for new entries? If I understand correctly what you want to do.

I'm not active on the forum anymore. Please contact other forum staff.
Ed05
Posts: 556
Reputation: 7

Message # 210 | 2:29 PM
Sunny, hah, shame on me.I dont know what was i thinking. tnx biggrin
!
uCoz Community » For Webmasters » Design Customization » Hints and Tips on design (Bg, font-colour, box, flash clock, legends, img, tables etc.)
Search: