• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » $CID$ in $MYINF_NUMBR$
$CID$ in $MYINF_NUMBR$
FOF
Posts: 19
Reputation: 0

Message # 1 | 8:35 PM
Hi. I have made 25 categories. ID starting from 1 to 25. Also, i made 25 informers which shows all the added entries in this specific category.

Is there anyway i can use $CID$ to add the number to $MYINF_NUMBR$ ?
For example:
if $CID$ = 4
then $MYINF_4$ must be displayed.

Thanks.
Post edited by FOF - Tuesday, 2014-09-02, 8:36 PM
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 8:12 AM
FOF, no, it is not possible to assign custom informer IDs in any way, they are assigned by the system automatically. The only thing you can do is create informers in the same order as the categories. But please note that if you delete an informer, a new informer with the same ID cannot be created, e.g. if you create $MYINF_4$, then delete it, the next informer you create will be $MYINF_5$.
I'm not active on the forum anymore. Please contact other forum staff.
FOF
Posts: 19
Reputation: 0

Message # 3 | 4:41 PM
Sunny, i have already done that. I just don't know how to expose the specific myinf. I need a code, probably js.

Example, if http://www.smotrisimpsoni.ru/load/14_sezon/ is open then $MYINF_14$ is supposed to be shown there.

The number should work from 1 to 25.
If $CATEGORY_NAME$ is 10_sezon ($CID$ = 10), then there should be $MYIF_10$ shown. I want to use it on open entry page, so if i am watching "Season 10 episode 1" then next to that episode would be $MYINF_10$, which would show all the episodes in exact category.
http://www.smotrisimpsoni.ru/load....1-0-211

Thanks.
Post edited by FOF - Monday, 2014-09-08, 4:42 PM
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 9:06 AM
FOF, why don't you just do it manually once for each informer and category?

Code
<?if($CID$=10)?>$MYIF_10$<?endif?>
<?if($CID$=11)?>$MYIF_11$<?endif?>

and so on...

I'm not active on the forum anymore. Please contact other forum staff.
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 5 | 10:07 AM
Sunny, good idea biggrin

Code
<?if($CID$=10)?>$MYINF_10$<?else?>   
<?if($CID$=11)?>$MYINF_11$<?else?>
<?if($CID$=12)?>$MYINF_11$
<?endif?><?endif?><?endif?>


* You have to write <?endif?> many times you see <?if(....)?> smile

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
FOF
Posts: 19
Reputation: 0

Message # 6 | 1:49 PM
oh, that easy. biggrin Thank you.
uCoz Community » For Webmasters » Custom Solutions » $CID$ in $MYINF_NUMBR$
  • Page 1 of 1
  • 1
Search: