Advertisement:

Recent Posts

Pages: 1 ... 8 9 [10]
91
SMF 2.0.x Support / Re: How do I change the default font size from 10pt to 11pt
« Last post by Antechinus on April 20, 2017, 08:57:27 PM »
Easiest way is to open index.css and then search for everywhere it says font-size. You can then change them one at a time and note the effects.

The code br360 quoted is the most basic setting, but there are other settings for specific elements, if you need them.

Oh and mistakes in the CSS won't crash your forum. The worst they can do is make it look a bit weird. They're easy to reverse too, so don't worry.
92
SMF Coding Discussion / Re: Call a custom function from anywhere on the forum
« Last post by MobileCS on April 20, 2017, 08:51:30 PM »
Better question: why does it need to be a cookie or go into a cookie .. Can't it go into $_SESSION ?

$_SESSION expires after 1440 seconds and I'm trying to track how many visitors visit my website/forum (combined) per day. I can just have the cookie expire at midnight, clear the database and start fresh at 12am each day. This is for a PHP project I am doing, I'm not trying to reinvent Google Analytics :)

Quote
this means every single request to and from the server - every JS file, every image etc. - will send the cookie too?

All static files are delivered via EdgeCast CDN - so the cookie is never attached.
93
SMF Coding Discussion / Re: Genders
« Last post by Linkjay on April 20, 2017, 08:29:28 PM »
Nice fix.  Can you get the mod updated?

8 years. Unlikely.

Hopefully someone will come in and make the edits and re-release.
94
Español (Spanish) / Re: Web castigada
« Last post by Gluz on April 20, 2017, 08:12:57 PM »
Reemplazar:
http://www.megaupload.com/?d=JWSFBD4T

Con:
http://www.tuforo.com/redirect.php?d=JWSFBD4T

Tiene el mismo resultado para Google, son enlaces no válidos, y a menos que pongas redirección para que no se marque como error 404, eso de reemplazar no ayuda con la penalización de Google.

En el post dice de eliminar los enlaces que son de varios sitios de descarga directa y no solo de Megauload y Rapidshare, y eliminarlos es lo mejor, ya que si no va a ningún lado, es mejor no tener enlace a tener uno que no sirve de nada, pero para hacer esto no hay herramientas tan automatizadas.

Lo que se podría hacer es que si tiene todos los enlaces inválidos en algún archivo de texto, que ese se procese para que vaya eliminando de la tabla de mensajes esos enlaces, de uno por uno y no todos juntos, ya que lo que se hace es reemplazar el texto exacto por nada o por algún texto que avise que el enlace era inválido. Esto se puede programar directamente en SQL para ejecutar en PHPMyAdmin si es que se tienen los conocimientos, de otro modo, se puede en PHP usando las funciones del foro para el manejo de la base de datos.


Lo del censurador de palabras, es mínima la carga adicional que supone si son cosas simples, pero es algo adicional que se ejecuta cada vez que se escribe un mensaje o cada vez que se previsualiza, y dependiendo del número de enlaces totales que tenga de cada servidor, puede tardar un poco en reemplazar todo en todos los mensajes. No es tanto como para sobrepasar el límite de memoria o el tiempo de ejecución, pero sumado a otras cosas que se tenga, es tiempo y carga en el servidor que se pueden optimizar de otra forma mejor.

Yo mencionaba las extensiones, porque esas sirven para ver que enlaces funcionan y cuáles no, ya que Google no le va a dar todos los enlaces que no funcionan, le manda los que va descubriendo según va indexando el foro, pero las partes no indexadas se quedarían sin revisar de eliminar solo lo que está en la lista.
95
SMF Coding Discussion / Re: Call a custom function from anywhere on the forum
« Last post by Arantor on April 20, 2017, 07:22:34 PM »
Better question: why does it need to be a cookie or go into a cookie given that this means every single request to and from the server - every JS file, every image etc. - will send the cookie too? Can't it go into $_SESSION ?
96
SMF 2.0.x Support / Re: Upgrade from 2.0 RC4 to 2.0.13
« Last post by obladi-oblada on April 20, 2017, 07:08:20 PM »
upgrade.php should make any necessary changes to get the RC4 database to 2.0.13.  I'm not seeing a missing table error, just the generic db error message.  Can you post the error from your error log?
Code: [Select]
http://78.108.68.135/index.php?topic=330326.0
Database Error: Unknown column 'mem.karma_good' in 'field list'
File: /var/www/xxx/Sources/Load.php
Line: 1039
97
SMF 2.0.x Support / Re: Upgrade from 2.0 RC4 to 2.0.13
« Last post by Sir Osis of Liver on April 20, 2017, 06:42:29 PM »
upgrade.php should make any necessary changes to get the RC4 database to 2.0.13.  I'm not seeing a missing table error, just the generic db error message.  Can you post the error from your error log?
99
SMF 2.0.x Support / Re: Odd problem with subscription system
« Last post by Bob Perry on April 20, 2017, 06:23:43 PM »
That's a new one.  Sounds like you may have a problem with the scheduled task that updates subscriptions once per day by default.  Anything in your error log?


No error log entries, have not checked the host log though... back about two weeks ago PayPal was sending me messages that it wasn't communicating with the subscriptions.php correctly, and before I actually fixed it via PayPal, I did some tinkering with changing the time of the scheduled task... I also changed the active/finished status and expiration dates of the customer profiles too... I also found a problem with the one module I have that affects subscriptions directly, its an old one that allows you have one time lifetime subscription payments, uninstalled manually and reinstalled, fixed that...haven't put much effort into tracking down the email problem after fixing the actual transaction process part of it, the delete key works just fine lol...
100
SMF 2.0.x Support / Re: Upgrade from 2.0 RC4 to 2.0.13
« Last post by obladi-oblada on April 20, 2017, 06:12:12 PM »
Looking at your link, I'm getting database errors when clicking on a topic.  Have you run repair_settings.php on that install?
No, haven't run this, database errors appears because there is no column karma_good in table smf_members, there was no this column in 2.0 RC4, but in 2.0.13 - yes, and upgrade script does not add new columns to database
Pages: 1 ... 8 9 [10]