uCoz twitter
You logged in as Guest
Username/E-mail:
Recent messages · Members · Forum rules · FAQ · SEARCH Registration · Log in

Page 3 of 5«12345»
uCoz Community » uCoz System management and tuning » Design Customization » Global Block (Instruction and Questions - Answers)
Global Block
SunnyDate: Friday, 2008-12-19, 8:04 Am | Message # 1
Fortune-teller
Group: Administrators
Messages: 2563
Awards: 171
Reputation: 175
Status: Offline
Global blocks are blocks available in all other templates of your website. By means of global blocks you can optimize the design of your website, having spitted it into common parts: e.g. HEADER – common top part, FOOTER – common bottom part etc. With the help of common blocks you can update the design on the whole website by means of editing only one block template.

Where to create a global block in the Control Panel:

Mail » Customize Design » Global blocks

Block name must contain only upper case Latin letters, max length is 10 characters. This name will serve as the $code$ of the given global block in templates.

Max number of global blocks is 10, including $GLOBAL_FRIENDS$.

Note: If you are going to edit templates you must have basic knowledge of HTML and CSS.



There is one default global block - Site Friends.

Example of the block code:

Code
<ul class="uz">
<li class="menus"> <a target="_blank" href="http://www.ucoz.com/"><img src="http://money.ucoz.com/img/logo.gif" border="0" width="101" height="50" title="Create a site with uCoz" alt="Create a site with uCoz"></a></li></ul>
<div align="center">Forums</div>
<ul class="uz">
<li class="menus"><a href="http://www.forum.ucoz.com/" target="_blank" class="noun">English</a></li>
<li class="menus"><a href="http://www.forum.ucoz.de/" target="_blank" class="noun">German</a></li>
<li class="menus"><a href="http://www.forum.ucoz.es/" target="_blank" class="noun">Spanish</a></li>
</ul>

This is how it looks in templates:

Code
<table border="0" cellpadding="0" cellspacing="0" class="boxTable"><tr><td class="boxTitle"><b>Site friends</b></td></tr><tr><td class="boxContent">$GLOBAL_FRIENDS$</td></tr></table>


Question-Answer

How can I add global block in global block?

You can't... we don't support global blocks nesting.

New global block! How can I add one?

1. add global block
2. fill it with content.
3. add the code $GLOBAL_ANYWORD$ to the templates you want that block to be shown in.
Don't forget about the feature "Quick substitution of template parts" and try to examine the feature "Templates builder" in Design tab of the Control Panel.

I’ve noticed the global block $GLOBAL_SOANDSO$ will not run inside $CONTENT$ area.
Correct me if am wrong!

You are right. Global blocks work in templates only

Just 10 global blocks?

10 is the limit, you can't create more global blocks.


I'm not "man", "sir" or whatever. I'm female!
About signatures, screenshots etc...
 
KronDate: Wednesday, 2009-04-08, 6:15 PM | Message # 31
uCoz Admin
Group: Administrators
Messages: 168
Awards: 6
Reputation: 47
Status: Offline
Quote (noredtape)
please help me how to add some ads on my global blocks..huhuhu..

use copy/paste function using your mouse or keyboard smile
 
noredtapeDate: Wednesday, 2009-04-08, 6:15 PM | Message # 32
Newbie
Group: Users
Messages: 2
Awards: 0
Reputation: 0
Status: Offline
After copying Admin i will paste it in my global blocks in visual HTML editor?
 
KronDate: Wednesday, 2009-04-08, 6:15 PM | Message # 33
uCoz Admin
Group: Administrators
Messages: 168
Awards: 6
Reputation: 47
Status: Offline
noredtape, make a try
 
PurpleBischDate: Sunday, 2009-06-14, 10:51 PM | Message # 34
Curious
Group: Checked
Messages: 31
Awards: 0
Reputation: 0
Status: Offline
How can i make a global block on viewable to members who have logged in?
 
SunnyDate: Monday, 2009-06-15, 2:45 Am | Message # 35
Fortune-teller
Group: Administrators
Messages: 2563
Awards: 171
Reputation: 175
Status: Offline
PurpleBisch, use conditional operators - http://forum.ucoz.com/forum/37-471-1

I'm not "man", "sir" or whatever. I'm female!
About signatures, screenshots etc...
 
PurpleBischDate: Monday, 2009-06-15, 8:21 Am | Message # 36
Curious
Group: Checked
Messages: 31
Awards: 0
Reputation: 0
Status: Offline
I can make it so the block says different things for if they are logged in or not, but i can't seem to make the box disappear if they aren't logged in
 
ArmarosDate: Monday, 2009-06-15, 4:16 PM | Message # 37
Haunter
Group: Checked
Status: Offline
"Box" ? As in? The Block or Global Block?
PurpleBischDate: Monday, 2009-06-15, 8:18 PM | Message # 38
Curious
Group: Checked
Messages: 31
Awards: 0
Reputation: 0
Status: Offline
yea. I want the global block to appear only when a user is logged in.
 
ArmarosDate: Monday, 2009-06-15, 8:18 PM | Message # 39
Haunter
Group: Checked
Status: Offline
PurpleBisch, as Sunny said, use Conditional Operators - http://forum.ucoz.com/forum/37-471-1
PurpleBischDate: Monday, 2009-06-15, 10:33 PM | Message # 40
Curious
Group: Checked
Messages: 31
Awards: 0
Reputation: 0
Status: Offline
It only tells me how i can change the text, i need to change the global block so its viewable only by members logged in >.<
 
SunnyDate: Tuesday, 2009-06-16, 3:38 Am | Message # 41
Fortune-teller
Group: Administrators
Messages: 2563
Awards: 171
Reputation: 175
Status: Offline
PurpleBisch, it tells you all you need.

Code
<?if($USER_LOGGED_IN$)?>$global_block_code_here$<?endif?>


I'm not "man", "sir" or whatever. I'm female!
About signatures, screenshots etc...
 
PurpleBischDate: Tuesday, 2009-06-16, 8:49 Am | Message # 42
Curious
Group: Checked
Messages: 31
Awards: 0
Reputation: 0
Status: Offline
>.< somehow i skipped over that part. Thankyou smile
 
kibaweDate: Tuesday, 2009-06-16, 8:49 Am | Message # 43
Newbie
Group: Checked
Messages: 14
Awards: 0
Reputation: -2
Status: Offline
ive noticed the global block $GLOBAL_SOANDSO$ will not run inside $CONTENT$ area.

correct me if am wrong!!!


http://kibawe.my1.ru | http://marawi.ucoz.net (Under Cons) | nFormers
 
KronDate: Tuesday, 2009-06-16, 8:49 Am | Message # 44
uCoz Admin
Group: Administrators
Messages: 168
Awards: 6
Reputation: 47
Status: Offline
Quote (kibawe)
correct me if am wrong!!!

you are right. global blocks work in templates only.
 
donmariusDate: Saturday, 2009-07-25, 8:20 PM | Message # 45
Newbie
Group: Users
Messages: 6
Awards: 0
Reputation: 0
Status: Offline
hi, i redesign the logo for my site and i put the code in a global block, but when i tried to import the global block into my template nothing happened, it works only with the code, with global block nothing :(.

Code

<!-- <header> -->

$LOGOBIG$

<!-- </header> -->

Could be this because i use also in the gb this kind of code:

Code

$WDAY$, $DATE$, $TIME$<br>
<?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?>
Esti <a href="$PERSONAL_PAGE_LINK$" title="Profilul tau"><b>$USERNAME$</b></a> | Grup: <u>$USER_GROUP$</u>
| <a href="$LOGOUT_LINK$"><b>Logout</b></a>
<?else?>
Buna <b>$USERNAME$</b><br>
$LOGIN_FORM$
<?endif?><?endif?>


Site-ul meu: http://eworld.ucoz.com

Message edited by donmarius - Saturday, 2009-07-25, 8:21 PM
 
uCoz Community » uCoz System management and tuning » Design Customization » Global Block (Instruction and Questions - Answers)
Page 3 of 5«12345»
Search:


Powered by uCoz