Page 1 of 11
Forum moderator: bigblog 
uCoz Community » For Webmasters » Custom Solutions » Wildcard for URI ID pages
Wildcard for URI ID pages
Clyde
Posts: 165
Reputation: 0

Message # 1 | 6:15 PM
I have added a header to a section of the forum that is different than the main one by using <?if($URI_ID$='frForum')?>

It shows up fine in the section... but when entering a thread in that section the main header shows.

Is there a wildcard or global code that can be used inside the (if $URI_ID$) that would include all under that forum section ?

Ucoz Website Since 2009
Paradox
Posts: 3275
Reputation: 145

Message # 2 | 10:22 AM
Clyde, I don't quite understand your request unfortunately. Are you wanting to target specific forums once inside a thread? Or all forums rather than a specific forum?

If the latter; why not create a <?if(!$FORUM_ID$ == "X")?> condition if you only want the main header to show for an individual forum?

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

Message # 3 | 5:07 PM
Paradox,

We have a hidden subforum.

The subforum's URI is 'frForumx'.

I have added a different header to <?if($URI_ID$='frForumx')?>

It works @ frForumx - the new header shows up fine @ that address.

But when entering a 'thread' in that subforum (frForumx), the main forum header (which is different) is in view. (ie. frForumx-217 and etc.)

My question:
Are there any 'variables' that can be added to '?if' statement that would include all threads under 'frForumx' so that the new header created for that subforum is viewed @ also all threads of that subforum ?

Added (2017-01-11, 5:07 PM)
---------------------------------------------
the <?if(!$FORUM_ID$ == "X")?> you posted above does not work.

the <?if($URI_ID$='frForum')?> that I am using works only @ the main page of the subforum - not threads tho. I need for it to work @ the 'subforum's' threads too.

Ucoz Website Since 2009
Post edited by Clyde - Wednesday, 2017-01-11, 5:39 PM
Kasach
Posts: 31
Reputation: 6

Message # 4 | 9:19 PM
Hey Clyde,

unfortunately, you can't unless you make it for every created thread.
Because the thread pages are using other IDs, here is a example how the IDs do look like for the threads.

URI_ID => frTread1
PAGE_ID => threadpage
MODULE_ID => forum

Unless you find a nice way with javascript..

Sincerly,
Kasach

You can find me on the unofficial uCoz Discord :)
Post edited by Kasach - Wednesday, 2017-01-11, 9:19 PM
VZ
Posts: 189
Reputation: 3

Message # 5 | 1:14 AM
Clyde, instead of URI try $CUR_SECTION_NAME$
Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them.
Clyde
Posts: 165
Reputation: 0

Message # 6 | 1:51 PM
Quote VZ ()
Clyde, instead of URI try $CUR_SECTION_NAME$


No that did not work - what worked was $CUR_FORUM_NAME$ biggrin

Thanks VZ - your suggestion led me to the solution wink

Ucoz Website Since 2009
uCoz Community » For Webmasters » Custom Solutions » Wildcard for URI ID pages
Page 1 of 11
Search: