Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Global Blocks (tutorial and FAQ)
Global Blocks
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 2:04 PM
Global blocks are blocks available in all templates of your website. By means of global blocks you can optimize the design of your website, having splitted it into common parts. 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:


Go to Customize Design -> Global blocks.



Click New block.



Enter a block name (let it be LINKS in our case) and click Add.



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


A new block will be added to the list. In our case it is $GLOBAL_LINKS$.



Go to Control Panel -> Customize Design and find the block template on the list of templates under Global blocks.



Add any code you need to the template, save it, and paste its $code$ (e.g. $GLOBAL_LINKS$) into the templates where you want it to be displayed.

Max number of global blocks is 10, including the 4 default blocks ($GLOBAL_AHEADER$, $GLOBAL_BFOOTER$, $GLOBAL_CLEFTER$, $GLOBAL_DRIGHTER$). The number of default blocks differs in different designs, some templates have only 3.

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


Question-Answer


How can I add a global block in a global block?

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

I've noticed the global block $GLOBAL_SOANDSO$ will not run inside the $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.
Attachments: 1514136.png (26.8 Kb) · 8639095.png (22.1 Kb) · 7644645.png (25.3 Kb) · 4539422.png (26.7 Kb) · 3073300.png (25.9 Kb)

I'm not active on the forum anymore. Please contact other forum staff.
Armaros
Posts: 1424

Message # 16 | 6:49 PM
brightway, you tell us step by step what you are doing.
Mich
Posts: 57
Reputation: 2

Message # 17 | 12:09 PM
Aint this guid kinda old now?
Better known as Mr_Smith or Chris-Erik Fotland.
Armaros
Posts: 1424

Message # 18 | 12:10 PM
Quote (Mich)
Aint this guid kinda old now?
Everything will be updated after bugs will be fixed.
Mich
Posts: 57
Reputation: 2

Message # 19 | 12:14 PM
Quote (Armaros)
Everything will be updated after bugs will be fixed.

Got it.


Better known as Mr_Smith or Chris-Erik Fotland.
Mazeris
Posts: 2
Reputation: 0

Message # 20 | 1:04 PM
hi i want to change text color in $SMENU_1$ how to do this ?

Quote
<TABLE class=boxTable cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD class=boxTitle><B><!-- <bt> --><SPAN style="COLOR: #000000">Navigacija<!-- </bt> --></SPAN></B></TD></TR>
<TR>
<TD class=boxContent><!-- <bc> -->$SMENU_1$<!-- </bc> --></TD></TR></TBODY></TABLE><?endif?><!-- </block1> --><!-- <block2> --><?if($LOGIN_FORM$)?>
Post edited by Mazeris - Monday, 2009-04-06, 1:05 PM
Armaros
Posts: 1424

Message # 21 | 1:59 PM
Mazeris,

First, this got nothing to do with Global Blocks. Second, edit CSS.
Third, if you don't have enough of knowledge - don't touch CSS.

Mazeris
Posts: 2
Reputation: 0

Message # 22 | 2:06 PM
maybe you can help where is in CSS $SMENU_1$ text color ? becouse i cant find i only find its Font size..

at these line i can change its size but not color...

Quote
td, body {font-family:verdana,arial,helvetica; font-size:8pt; color:#000000}
form {padding:0px;margin:0px;}
Armaros
Posts: 1424

Message # 23 | 2:10 PM
Mazeris, you have problem reading? This is about Global Block.
CSS counts as custom, if you lack of knowledge - your problem.
webbox
Posts: 5
Reputation: 0

Message # 24 | 4:13 AM
Quote (brightway)
hi could anyone help me please with pictures because i keep do the thing you say and it won't come up please

By brightway.

To post an imiage on your website using url use this code:
<img src="http://picture url" alt="" border="0">

example:
<img src="http://www.cinemablend.com/images/reviews/407/main.jpg" alt="" border="0">

To put a ticture that you uploaded to your File Maneger use this code:
<img src="picture name" alt="" border="0">

example:
<img src="rockets.jpg" alt="" border="0">

Post edited by webbox - Tuesday, 2009-04-07, 4:15 AM
Armaros
Posts: 1424

Message # 25 | 11:57 AM
You don't need alt="" in code.
adminwiinews
Posts: 43
Reputation: 1

Message # 26 | 1:04 AM
Hey! How i create a new global block?? WIth the ultimate update, i didn't see the option to create a new global block
I'm here for help you!
Armaros
Posts: 1424

Message # 27 | 1:18 AM
Quote (adminwiinews)
Hey! How i create a new global block?? WIth the ultimate update, i didn't see the option to create a new global block
It's in same place: CP -> Customize Design -> Global Blocks -> New block.

Make sure you didn't reach the limit. Limit is 10 Global Blocks.

adminwiinews
Posts: 43
Reputation: 1

Message # 28 | 0:14 AM
Thank you very much Armaros!
I'm here for help you!
noredtape
Posts: 2
Reputation: 0

Message # 29 | 0:15 AM
please help me how to add some ads on my global blocks..huhuhu..
Kron_old
Posts: 117
Reputation: 52

Message # 30 | 0:15 AM
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
uCoz Community » For Webmasters » Design Customization » Global Blocks (tutorial and FAQ)
Search: