Customizing SMF > Modifications and Packages

Age And Location

(1/2) > >>

SSimple Team:
Link to Mod


Age And Location
Developed by 4kstore for SMFSimple.com
SMF 2.0

El soporte oficial de los desarrolladores de nuestros mods lo encontraras en SMFSimple.com

Description:
Add information of location and age on the profile in posts

Descripcion:
Agregar informacion de ubicacion y edad en el perfil de cada usuario en los posts

Language Support | Lenguajes Soportados
- English
- Spanish_latin


Age And Location
Copyright 2011 | SMFSimple.com

Lean:
Great work 4k!

4Kstore:

--- Quote from: Lean on November 19, 2011, 05:21:52 PM ---Great work 4k!

--- End quote ---

Thanks lean! ;)

Hey Arnold!:
Yo instalé este mod pero solo sale traducido la edad, se les olvidó traducir location

Aparece así:

Edad:
location:

Pueden corregirlo :)

rickmastfan67:
4Kstore, just thought I would pass this code to ya if you want to add in support for the built in "Core" theme.  So, here's the code to get this working correctly in the "Core" theme.  Otherwise, it doesn't pass when trying to install it on that theme since the coding for that area is different from the "default/Curve" theme.


--- Code: ---<file name="$themes_dir/core/Display.template.php" error="skip">
       <operation>
<search position="before"><![CDATA[ <li>', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
]]></search>
<add><![CDATA[
if(!empty($message['member']['age_text']))
echo '
<li>', $txt['user_age'], ': ', $message['member']['age_text'], '</li>';

if(!empty($message['member']['location']))
echo '
<li>', $txt['location'], ': ', $message['member']['location'], '</li>';
]]></add>
</operation>
</file>


--- End code ---

Just thought I would help out anybody using this mod that is still using the "Core" theme for their forum. ;)

Navigation

[0] Message Index

[#] Next page

Go to full version