Actualización gadget myDashboardReStart
Actualizo: Ahora también se muestran el número de tags
Seguramente si has actualizado wordpress a la versión 2.3, te aparece en el dashboard el siguiente error:
WordPress database error: [Table 'blog.wp_categories' doesn't exist]
SELECT COUNT(*) FROM wp_categories
Este fallo se debe a que han cambiado la estructura de la base de datos1- Descarga de nuevo el paquete de gadgets:
Pasos para actualizar:
- Descarga de nuevo el paquete de gadgets:
- Descomprime el fichero mydashboard4-gadgets-pack.rar
- Sube el fichero:
myDashboardReStart.php
en la carpeta de plugins:
wp-content/plugins/ - Si te pregunta por remplazar el fichero, acepta
Disculpen las molestias y mil gracias a Rick por avisarme
Un placer, pero el caso es que Anieto ha descubierto una manera más guapa:
$numcats = wp_count_terms('category');
$numtags = wp_count_terms('post_tag');
Tambien tengo por aquí un default.php modificado para hacerlo compatible con el WP2.3, separar track/pingback y que añade un gadget para el Google Blog Search.
http://code.jinlabs.com/files/default.phps
No tiene dificultad ninguna (ya lo habias echo tu y Anieto) pero estaba yo hacendoso
PD: Que durá es la vida de desarrollador de plugins, eh? siempre actualizando y eso…
gracias de nuevo Rick
he actualizado a la manera que tu dices, pero el problema de utilizar wp_count_terms(‘category’) es que en versiones inferiores a la 2.3 aparece el error:
Fatal error: Call to undefined function: wp_count_terms()
De momento he dejado las 2 maneras para que funcione con todas las versiones
sobre utilizar Google Blog Search yo de momento me quedo con Technorati, el fallo que tiene google es que mezcla los enlaces internos con los externos
pero esta muy bien, el trabajo que has hecho, tenia pensado hacerlo pero veo que ya no hace falta
P.D. ya ves!! ie y las frecuentes actualizaciones de wordpress me hacen las vida imposible
No, claro, yo decia de utilizarla para cuando hubiera tags, en caso contrario dejar la llamada a la bbdd.
Si, a mi el GBS tampoco me convence, pero como con los gadgets puedes tener los 2 a la vez…
Jojojojo, de peeelos!
Esperaba la actualizacion para cuando termine el theme, ojala le guste a los visitantes
Graias Gafeman nuevamente!
Saludos!
yeah! gracias por la actualizacion
Hi all, I went to malta on the 1st July 20, 2010 for 2 weeks and it was fantastic, they deserve praise so I promised I would spread the word. Enjoy and pm me if you have questions
Malta is a unique and exciting destination, with a large choice of venues, activities and attractions in a close proximity.
The Maltese archipelago is full of fascinating things to see and do. The largest island is also it’s best developed and the centre of most activity whilst the smaller islands are known for their breathtaking beauty and village charm. With its unique topography, lovely weather and clear Mediterranean seas, Malta will always attract people to its shores. However, it is the intricate heritage and historical attractions that are a revelation to visitors willing to explore what these splendid sun soaked islands have to offer.
The capital city Valletta is filled with honey-coloured streets and architectural wonders dating back several centuries. Mdina is a rare gem, a medieval walled town situated on a hill in the centre of the island.
The islands provide a stunning backdrop to a variety of activities, from beach soccer and volleyball to diving, rock climbing and mountain biking. The clear sea, sandy and rocky beaches are very popular with the locals, guests and tourists alike. It is therefore not surprising that most activities especially in the summer time are organized by the sea.Malta has a great selection of nightlife options. There are abundant bars, pubs, discos and clubs playing live music or hosting big-name DJs such as Tiesto, Moby and Deadmau5. Established dance music brands include Creamfields, Ministry of Sound and MTV for the busy summer festival months.
Characterized by superb value with most of the numerous discos, pubs and bars offering free entrances and quality beverages at very attractive prices, it is no wonder that everyone make it a point to include a number of nights out when they visit. For those interested in culture, there are traditional feasts, a number of theatres in Valletta and restaurants offering a great selection of local and international cuisine.
I used NSTS who offer a fantastic weekly programme with a mix of activities they can also come up with tailor made individual or group programmes. I strongly recommend them. You can find them at http://www.nsts.org .If you do go there note your experience there too. It’s a little piece of paradise :