• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Desabilitar opcion usuario de Short-url

Status
Not open for further replies.

izam2

Chevereto Member
Bueno , el punto es el siguiente.
existe la posibilidad que la opcion de short-url se agregara automaticamente y asi sacar el box de preferencias, ya que siento que es un paso mas que mucha gente no ve.

saludos
 
Por defecto esto es por opcion de usuario por que si permites que todos los uplodads pasen por el acortador te podrias encontrar con un uso demasiado alto y podrian bloquear tu dominio. Por ejemplo. bitly barias veces bloqueo la demo por acortar demasiadas URL.

Ahora, para responder tu pregunta. Si, se puede hacer con un ligero tweak. Asumiendo que estas usando el tema por defecto (Peafowl):

1. Abre /content/themes/Peafowl/view.php y busca:
PHP:
<?php if(is_config_short_url() && is_user_preference_short_url()) : ?>

Y remplazalo por:
PHP:
<?php if(is_config_short_url()) : ?>

2. Abre /content/themes/Peafowl/index.php y busca:
Code:
<div id="upload-tools">
                <a id="preferences"><?php show_lang_txt('button_upload_preferences'); ?></a>
                <div id="upload-params">JPG PNG BMP GIF <span>MAX. <?php show_max_upload_size(); ?></span></div>
            </div>

Y remplazalo por:
Code:
<div id="upload-tools" style="display: none;">
                <a id="preferences"><?php show_lang_txt('button_upload_preferences'); ?></a>
                <div id="upload-params">JPG PNG BMP GIF <span>MAX. <?php show_max_upload_size(); ?></span></div>
            </div>

O simplemente elimina todo ese codigo.

;)
 
Perfecto
mil gracias, aun estoy con la version 1.9 en mi sitio y descubriendo todo lo nuevo de la 2.0 en un sitio test para lanzarlo con todo.
 
Status
Not open for further replies.
Back
Top