Global Block - Design Customization - uCoz System management and tuning - uCoz Community
You logged in as Guest
Username/E-mail:
Recent messages · Members · Forum rules · FAQ · SEARCH Registration · Log in


We are in the second round! Let's keep voting!

Page 1 of 512345»
Forum moderator: Dartz 
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
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
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...
 
HetorDate: Saturday, 2009-01-03, 12:34 Pm | Message # 2
Constant
Group: Banned
Messages: 129
Awards: 6
Reputation: 0
Status: Offline
I have a question, why doesn't they work in gb entry appearance template? I could replace my avatar display code in comments & gb with simple &GLOBAL_AVATAR&.

I am bored.
 
SunnyDate: Monday, 2009-01-05, 5:38 Am | Message # 3
Haunter
Group: Administrators
Messages: 2016
Awards: 121
Reputation: 139
Status: Offline
Hetor, because global blocks are not needed in entry appearance templates. E.g. we have 1000 entries and one single template for all of them - so this template is in fact global. Hope you understand what I mean.

I'm not "man", "sir" or whatever. I'm female!
About signatures, screenshots etc...
 
shioanDate: Wednesday, 2009-01-07, 8:15 Pm | Message # 4
Newbie
Group: Checked
Messages: 10
Awards: 0
Reputation: 1
Status: Offline
Is it possible to make a global block appear on selected Site Pages only?

I have a previous inquiry here regarding creating a submenu. I followed Armaros instructions so now I have a new box for the submenu (yay! :D), in which I made use of a global block. but I want this submenu to appear only when I click on the corresponding main menu item. is that possible?


Read on @ DreamBelt.

Visit my compendium @ Inclined Horizon.

Message edited by shioan - Wednesday, 2009-01-07, 8:34 Pm
 
AbleDate: Wednesday, 2009-01-07, 8:45 Pm | Message # 5
Newbie
Group: Checked
Messages: 9
Awards: 0
Reputation: 2
Status: Offline
Quote (shioan)
Is it possible to make a global block appear on selected Site Pages only?

yes its possible

[]lllllllllllllllllllllllllllllllllllllllllllll SCHOOL : 0%
llllllllllllllllllll[]lllllllllllllllllllllllll LOVE : 50%
lllllllllllllllllllllllllllllllllllllllllllll[] FUN : 100%
 
shioanDate: Thursday, 2009-01-08, 1:07 Am | Message # 6
Newbie
Group: Checked
Messages: 10
Awards: 0
Reputation: 1
Status: Offline
Quote (Able)
Quote (shioan)
Is it possible to make a global block appear on selected Site Pages only?

yes its possible

yipeee!!! so how do you do it?

[EDIT]

okay, never mind... happy

*scrolls up*

[/EDIT]

Added (2009-01-07, 11:34 Pm)
---------------------------------------------
okay, my first submenu is up. biggrin thanks! this forum rocks!

one more question though...

is it possible to make a different global block appear on a different set of selected pages? in other words, i want to make a second submenu under a new different item on the main menu.

Added (2009-01-08, 1:07 Am)
---------------------------------------------
hehe, silly me. that makes it NOT global anymore... dry


Read on @ DreamBelt.

Visit my compendium @ Inclined Horizon.

Message edited by shioan - Wednesday, 2009-01-07, 10:13 Pm
 
kolten101Date: Monday, 2009-01-19, 2:15 Pm | Message # 7
Newbie
Group: Users
Messages: 1
Awards: 0
Reputation: 0
Status: Offline
thnaks this helped because i have never really messed with mine due to lack of knowledge ty

Check out the site http://filez101.com/
 
sugarfreeDate: Thursday, 2009-02-19, 10:07 Pm | Message # 8
Newbie
Group: Checked
Messages: 10
Awards: 1
Reputation: 0
Status: Offline
whew.. thanks for this im also wondering wat global block stand for...
 
smokingunzzDate: Sunday, 2009-02-22, 3:03 Pm | Message # 9
Newbie
Group: Checked
Messages: 18
Awards: 0
Reputation: 0
Status: Offline
Is it possible to remove the site friends block and how???
 
ArmarosDate: Sunday, 2009-02-22, 3:50 Pm | Message # 10
Haunter
Group: Checked
Status: Offline
smokingunzz,

CP -> Customize Design -> Global blocks (Top-Right) ->

smokingunzzDate: Sunday, 2009-02-22, 5:36 Pm | Message # 11
Newbie
Group: Checked
Messages: 18
Awards: 0
Reputation: 0
Status: Offline
Quote (Armaros)
CP -> Customize Design -> Global blocks (Top-Right) ->

it says "You don't use any global blocks." But the Site Friends is still there??

www.AngerManagementClan.com

Message edited by smokingunzz - Sunday, 2009-02-22, 5:37 Pm
 
ArmarosDate: Sunday, 2009-02-22, 5:49 Pm | Message # 12
Haunter
Group: Checked
Status: Offline
smokingunzz,

CP -> Customize Design -> Site Pages -> Find $GLOBAL_FRIENDS$

Quote (Remove whole code. Whole code look like this)
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="196">
<tr><td height="24" align="center" style="background:url('http://s16.ucoz.net/t/881/10.gif') #000000;color:#FFFFFF;"><b>Site friends</b></td></tr>
<tr><td style="padding:5px;">$GLOBAL_FRIENDS$</td></tr>
</table>
<!--/-->
smokingunzzDate: Sunday, 2009-02-22, 7:57 Pm | Message # 13
Newbie
Group: Checked
Messages: 18
Awards: 0
Reputation: 0
Status: Offline
Worked perfect! Thank you very much!
 
zerors2Date: Friday, 2009-02-27, 11:09 Am | Message # 14
Newbie
Group: Users
Messages: 1
Awards: 0
Reputation: 0
Status: Offline
hello, my english isn't very good, but iguess u can understand me.

I hawe the problem with the global blocks. id like to add stuff in there but how? in here it just teaches how to add urls and theese are opening a new window. i m sorry if u guys don't understand me

 
PilotDate: Friday, 2009-02-27, 11:12 Am | Message # 15
Experienced
Group: Checked
Messages: 683
Awards: 29
Reputation: 77
Status: Offline
You can add content to them through:

CP > Customize Design. There click on the global block you want to add content to.



 
uCoz Community » uCoz System management and tuning » Design Customization » Global Block (Instruction and Questions - Answers)
Page 1 of 512345»
Search: