Deprecated: Return type of DrupalCacheArray::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/baterii24/public_html/includes/bootstrap.inc on line 362

Deprecated: Return type of DrupalCacheArray::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/baterii24/public_html/includes/bootstrap.inc on line 369

Deprecated: Return type of DrupalCacheArray::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/baterii24/public_html/includes/bootstrap.inc on line 381

Deprecated: Return type of DrupalCacheArray::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/baterii24/public_html/includes/bootstrap.inc on line 388

Deprecated: Return type of DatabaseCondition::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/baterii24/public_html/includes/database/query.inc on line 1700

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 596

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 674

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593
Sfaturi pentru compunere | Baterii24
office@baterii24.ro 0730.596.750 Luni-Vineri:09-17

Sfaturi pentru compunere

Mesaj de eroare

  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in drupal_environment_initialize() (line 695 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in drupal_environment_initialize() (line 696 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in drupal_environment_initialize() (line 697 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in drupal_environment_initialize() (line 700 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in drupal_environment_initialize() (line 702 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in include_once() (line 300 of /home/baterii24/public_html/sites/default/settings.php).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in include_once() (line 301 of /home/baterii24/public_html/sites/default/settings.php).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in include_once() (line 309 of /home/baterii24/public_html/sites/default/settings.php).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in include_once() (line 316 of /home/baterii24/public_html/sites/default/settings.php).
  • Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in drupal_settings_initialize() (line 819 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: session_name(): Session name cannot be changed after headers have already been sent in drupal_settings_initialize() (line 831 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Deprecated function: Return type of DatabaseStatementBase::execute($args = [], $options = []) should either be compatible with PDOStatement::execute(?array $params = null): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 2244 of /home/baterii24/public_html/includes/database/database.inc).
  • Deprecated function: Return type of DatabaseStatementEmpty::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 2346 of /home/baterii24/public_html/includes/database/database.inc).
  • Deprecated function: Return type of DatabaseStatementEmpty::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 2346 of /home/baterii24/public_html/includes/database/database.inc).
  • Deprecated function: Return type of DatabaseStatementEmpty::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 2346 of /home/baterii24/public_html/includes/database/database.inc).
  • Deprecated function: Return type of DatabaseStatementEmpty::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 2346 of /home/baterii24/public_html/includes/database/database.inc).
  • Deprecated function: Return type of DatabaseStatementEmpty::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 2346 of /home/baterii24/public_html/includes/database/database.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) in _drupal_bootstrap_page_cache() (line 2706 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in drupal_session_initialize() (line 242 of /home/baterii24/public_html/includes/session.inc).
  • Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in drupal_random_bytes() (line 2268 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: session_id(): Session ID cannot be changed after headers have already been sent in drupal_session_initialize() (line 266 of /home/baterii24/public_html/includes/session.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) in drupal_send_headers() (line 1505 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) in drupal_send_headers() (line 1505 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) in drupal_send_headers() (line 1505 of /home/baterii24/public_html/includes/bootstrap.inc).
  • Deprecated function: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated în url() (linia 2349 din /home/baterii24/public_html/includes/common.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) în drupal_send_headers() (linia 1505 din /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) în drupal_send_headers() (linia 1505 din /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) în drupal_send_headers() (linia 1505 din /home/baterii24/public_html/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /home/baterii24/public_html/includes/bootstrap.inc:320) în drupal_send_headers() (linia 1505 din /home/baterii24/public_html/includes/bootstrap.inc).
  • Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated în url_is_external() (linia 2393 din /home/baterii24/public_html/includes/common.inc).
  • Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated în url_is_external() (linia 2395 din /home/baterii24/public_html/includes/common.inc).
  • Deprecated function: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated în url() (linia 2311 din /home/baterii24/public_html/includes/common.inc).

Text Formats

Filtered HTML

  • [style:class_name]Content[/style] - Insert a div with a defined class name.
  • Adresele de situri web şi adresele de e-mail se transformă automat în linkuri.
  • Folosire de cod PHP personalizat

    Codul PHP personalizat poate fi încorporat în unele tipuri de conţinut ale site-ului, inclusiv în postări şi blocuri. Încorporarea codului PHP în interiorul unui post sau bloc este o caracteristică puternică şi flexibilă, atunci când este utilizată de către un utilizator de încredere cu experienţă în PHP, prezintă risc seminifcativ de securitate și este periculos atunci când este utilizat necorespunzător. Chiar şi o mică greşeală atunci când postaţi codul PHP, poate accidental, compromite site-ul dumneavoastră.

    Dacă nu sunteţi familiarizat cu PHP, SQL sau Drupal, evitaţi utilizarea codului personalizat PHP în posturi. Experimente cu PHP pot corupe baz de date, site-ul dumneavoastră devenind inoperabil la randare sau compromite semnificativ securitatea site-ului.

    Note:

    • Nu uita să verifici cu atenţie fiecare linie după erori de sintaxă sau logică înainte de a salva.
    • Fiecare declaraţie trebuie terminată cu punct şi virgulă.
    • Variabilele globale folosite în codul PHP îşi păstrează valorile după execuţia scriptului.
    • register_globals este dezactivată. Dacă aveţi nevoie să utilizați formulare, învățați să utilizați funcţiile API de formular pentur Drupal.
    • Utilizați instrucțiunile print sau return în cod pentru afișare conținut.
    • Dezvoltați și testați codul PHP folosind un script de test și o bază de date separată înaintea implementării pe un site de producție.
    • Luaţi în considerare includerea codului dumneavoastră PHP personalizat într-un modul specific de pe site, sau în fișierul template.php, în loc să-l încorporați direct într-un post sau bloc.
    • Țineți cont că abilitatea de a încorpora cod PHP în cadrul conţinutului se face prin modulul PHP Filter. Dacă acest modul este dezactivat sau șters, atunci, blocurile şi posturile cu cod PHP încorporat pot afişa codul PHP mai degrabă decât al executa.

    Un exemplu simplu: Crearea unui bloc "Bun venit!" care întâmpină vizitatorii cu un simplu mesaj.

    • Add a custom block to your site, named "Welcome" . With its text format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:

      print t('Welcome visitor! Thank you for visiting.');
      
    • To display the name of a registered user, use this instead:

      global $user;
      if ($user->uid) {
        print t('Welcome @name! Thank you for visiting.', array('@name' => format_username($user)));
      }
      else {
        print t('Welcome visitor! Thank you for visiting.');
      }
      

    Drupal.org oferă unele exemple de fragmente PHP, sau puteţi crea propriile fragmente dacă aveți ceva experiență în PHP și cunoștințe despre sistemul Drupal.

  • ShortCodes usage

    1. [quote (class="additional class" | author="author name")]text[/quote] Formats the text like as a quote.

      Sample css:

      .quote { display:block; float:left; width:30%; margin:20px; margin-left:0; padding:5px 0 5px 20px; font-style:italic; border-left:3px solid #E8E8E8; line-heigh:1.5em; font-size:14px; letter-spacing: 1px; word-spacing: 2px; } .quote.right{ float:right; margin-right:0; margin-left:20px; }

       

    2. [img src="image.jpg" (class="additional class"|alt="alt text")/] Inserts an image based on the given image url.

    3. [highlight (class="additional class")]text[/highlight] Inserts span.highlight around the text.

      Sample css:

      span.highlight{ background-color:red; } span.highlight2{ background-color:cyan; }

       

    4. [button path="path" (class="additional class")]text[/button] Inserts a link formatted as a button. Use the url parameter for the link.

    5. [dropcap (class="additional class")]text[/dropcap] Makes dropcap from the text.

      Sample css:

      .dropcap { display:block; float:left; font-size:38px; line-height:38px; vertical-align:baseline; padding-right:5px; }

       

    6. [item (class="additional class"|id=item id|type=div,d,span,s)]text[/item] Inserts an html item (type parameter = div or span) around the given text.

      Additional class names can be added by the class parameter. The id parameter gives the html an unique css id.

       

    7. [clear (class="additional class"|id=item id|type=div,d,span,s)]text[/clear] Inserts a float-clearing html item (type parameter = div or span) around the given text. Use the simple [clear /].

      Additional class names can be added by the class parameter. The id parameter gives the html an unique css id.

       

    8. [link path="the Drupal path"]link text[/link] Inserts aliased Drupal path around the link text.

      If you omit the text and the closing [/link] tag, you get back the URL only.

      Additional parameters for the link:
      • title for link title. Default value is the link text. Use <none> to disable.
      • class for CSS classes.
      • style for additional CSS rules.
      • id for unique HTML id. (No need to use # sign.)
      Parameters for the URL:
      • html If true, enables HTML in the text. Default is false.
      • absolute Provides absolute URL if true. Default is false.
      • fragment The fragment of the URL.
      • alias If false, it disables aliased URL. Default is true.
      Samples:
      • Simple link with title: [link path="node/5" title="My little title"]link text[/link]
      • Link with class, style, no title: [link path="node/5" title="<none>" class="button my-button" style="text-transform: uppercase;" id="my-button"]button text[/link]
      • Absolute path with fragment: [link path="node/6" absolute="true" fragment="jump-to-content" /]

       

    9. [random (length="8") /] Inserts a random text with the given length.

       

    10. [embed_content nid=nodeid (class="additional class")][/embed_content] Embed a node by nid into the text. Additional class names can be added by the class parameter.

  • Liniile şi paragrafele sunt recunoscute automat. Tag-urile <br /> line break, <p> paragraf şi </p> închide paragraf sunt inserate automat. Dacă paragrafele nu sunt recunoscute adaugă doar câteva linii goale.

Plain text

  • Etichetele HTML nu sunt permise.
  • Adresele de situri web şi adresele de e-mail se transformă automat în linkuri.
  • Liniile şi paragrafele sunt recunoscute automat. Tag-urile <br /> line break, <p> paragraf şi </p> închide paragraf sunt inserate automat. Dacă paragrafele nu sunt recunoscute adaugă doar câteva linii goale.
Scroll to Top

Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/baterii24/public_html/includes/unicode.inc on line 593