News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Recent posts

#51
Temas y Diseño (Themes) / Re: quitar flash de carga
Last post by Diego Andrés - Today at 12:23:39 AM
Prueba quitando esto del index.template.php
<div id="global-loader"></div>
#52
En el index.template.php tienes que eliminar/comentar lo siguiente:
<div class="styleselect">
<a class="red" href="', $scripturl, '?variant=red" title="'.$txt['colorred'].'"></a>
<a class="blue" href="', $scripturl, '?variant=blue" title="'.$txt['colorblue'].'"></a>
<a class="green" href="', $scripturl, '?variant=green" title="'.$txt['colorgreen'].'"></a>
<a class="purple" href="', $scripturl, '?variant=purple" title="'.$txt['colorpurple'].'"></a>
<a class="turquoise" href="', $scripturl, '?variant=turquoise" title="'.$txt['colorturquoise'].'"></a>
</div>

No lo he probado, pero igual si necesitas ayuda puedes adjuntar el archivo.
#53
Temas y Diseño (Themes) / poner borde y nombre de usuari...
Last post by Anah - Yesterday at 08:12:54 PM
En mi tema deforo trae el nombre y borde rojo de administradora
donde copio y pego esos codigos y edito para los que son usuario?
#54
SMF Coding Discussion / Re: Making homepage different ...
Last post by Julius_2000 - Yesterday at 08:01:08 PM
Quote from: Shram Vandreen on April 06, 2024, 07:39:29 AMHey guys,

I have a HTML page that serves as a homepage, my forums is the /smf section. I tried to make my homepage different on phones, but it did not work. What did I do wrong?

Here is the code:

Quote<style media="all">
.mobile-display{display:none}
.desktop-display{display:block}
@Media (max-width :800px){
._desktop-display {display:none}
._mobile-display {display:block}
}
</style>

You made a couple of small mistakes I marked red above. You left space between the second pair of css display classes and their dots and also missed the media query designator for your display size. Also, the "member" code looks out of place (BBcode perhaps?) there and maybe shouldn't be in a style code (at least once removed, and the corrections applied, it worked then). And there were colons missing from the css values.

This is how it should work
Quote<style media="all">
    .mobile-display{display: none;}
    .desktop-display{display: block;}
@ Media (max-width: 800px) { /*no space between @ symbol and media*/
    .desktop-display {display: none;}
    .mobile-display {display: block;}
}
</style>

Edit: Seems like SMF's auto correction confused the @ media code with a member from this board :), because when I use this line @Media (spaces between equal sign for demonstration), it creates @Media instead.

So, bottom line is: Spaces between the dots for the classes were the culprits.

Also: You may want to consider adding this meta tag to the head while optimizing for mobile devices. That way browsers could handle various screen sizes better:
<meta name="viewport" content="width=device-width, initial-scale=1">
#55
SMF 2.1.x Support / Re: cron job error
Last post by puravida47 - Yesterday at 06:48:52 PM
Looks problem solved by Hosting company.
Since they adjusted the Firewall, no more errors.

thanks for your help here.
I just installed another forum and same issue with the cron. So I will get the host to adjust my account for that domain too.  They have some settings tight, and they ate always on it when I ask them.
#56
SMF 2.1.x Support / Re: personal message attachmen...
Last post by barry1947 - Yesterday at 05:15:25 PM
Hi there vbgamer45 and Sir Osis of Liver,
Many thanks for the information and the link.
It is nice to know that I am not completely cracking up.
Best regards and thanks once again,
Barry.
#58
SMF 2.1.x Support / Re: personal message attachmen...
Last post by vbgamer45 - Yesterday at 04:29:40 PM
Requires an addon/modification not built into SMF.
#59
SMF 2.1.x Support / personal message attachments
Last post by barry1947 - Yesterday at 04:28:36 PM
Hi Team,
Do personal message attachments work and if so how do I turn them on please.
Many thanks in advance. I do not see anything about PM's in Attachment Settings for this.
Best regards,
Barry.
#60
Yes, unless you change the settings. There is a setting for that.
Advertisement: