Display Age and Location next to posts

Started by Daniel15, January 23, 2007, 03:48:55 AM

Previous topic - Next topic

Daniel15

Link to Mod

This mod will display a member's Location and Age next to their posts.


Based on a request at http://www.simplemachines.org/community/index.php?topic=136893.msg872589#msg872589

Changelog
Version 1.0
- Initial release
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

EdwinK

|| foto-site ||

bigmohi


robotman321

whats a signature without text, WOOT!

jdvarner

Curious... Its displaying age/location twice in the profile next to post? anyone have a fix?

Daniel15

Quote from: jdvarner on January 24, 2007, 09:03:49 AM
Curious... Its displaying age/location twice in the profile next to post? anyone have a fix?
Try looking for the duplicate code in Display.template.php. If the code for age and location is there twice, remove one instance of it.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Ramón Cutanda



Vanz

I'm having a problem with this mod, it's only show location!!! I can't see age of a member, I tray to enter this manually in Display.template.php and it still not working!!! I've have SMF 1.1.2, end when I tray to upload this mod, I allways get the same mistake. He's reporting that the file is corrupted or not for this version of forum!!!!

PLS help

Daniel15

Quote from: Vanz on March 02, 2007, 07:00:12 PM
I'm having a problem with this mod, it's only show location!!! I can't see age of a member, I tray to enter this manually in Display.template.php and it still not working!!! I've have SMF 1.1.2, end when I tray to upload this mod, I allways get the same mistake. He's reporting that the file is corrupted or not for this version of forum!!!!

PLS help
Please download the new package I just uploaded, it should work fine :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Vanz


TEOC2

How can i remove the age bit but retain the location?

// ===== Begin modification - Display Age and Location next to posts =====
// Show the member's age
if (isset($message['member']['age']))
echo '
', $txt[420], ': ', $message['member']['age'], '<br />';

// Show the member's location
if ($message['member']['location'] != '')
echo '
', $txt[227], ': ', $message['member']['location'], '<br />';
// ===== End modification =====

Daniel15

QuoteHow can i remove the age bit but retain the location?
Remove this bit:

// Show the member's age
if (isset($message['member']['age']))
echo '
', $txt[420], ': ', $message['member']['age'], '<br />';


And leave the other bit
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

walkerp

How do I access the above file?  And which file is it?

Thanks!

Daniel15

You mean to remove the age segment? It's in Themes/default/Display.template.php :).
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

walkerp

Thanks!

Slowly learning my way around this world.  Appreciate the tip.

Daniel15

No problem... Glad to see it helped you :D
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

locomotion182


codenaught

Quote from: locomotion182 on May 26, 2007, 05:32:29 PM
its not showing for me = /
If you are using a custom theme you will have to manually apply the theme edits. The code you need to add is shown on the mod page for the mod.
Dev Consultant
Former SMF Doc Coordinator

kill3r


goaskanna

Works absolutely perfectly in 1.1.5, and the change to remove the age was simple as pie!

Thank you!

Anna

v3rax

I am using a custom them.

I applied the mod and can see that it added the code to my "defauly" display.template.php,

However, I do not know how to ass the code manually to my custom theme becasue there is NO "display.template.php" file in any folders for the theme I am using.

is there anothe PHP file I should insertt the code in since this theme doesnt have that file?

DadL


redmisthunter

age doesn't show for 1.1.5, is there any plan on updating to cover this version?

jayc7176

#24
Age- 24
Location-Cloud9
                                                               


Is is posssible to show  like this ----->> in the Post?
I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

Xarcell


Kimmie


Morrell

I just installed it in 1.1.8 and it works great!

juvebalkan

Is this working for SMF 2.0 RC2 and how to set it up ?

Kimmen

I also wonder about this ? Anyone that can update it?

Kays

This is a very basic mod and not to difficult to install manually.

Please see: Manual Installation of Mods

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Kimmen

Very basic or not, i failed ! I tried to follow the parse manager, but no luck on that one  :-[ I would really need someone to tell me what code to replace and where.


Greets
Kimmen

lazylivin

Any chance getting this updated for SMF 2 RC?  :)

Advertisement: