Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Daniel15 on January 23, 2007, 03:48:55 AM

Title: Display Age and Location next to posts
Post by: Daniel15 on January 23, 2007, 03:48:55 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=638)

This mod will display a member's Location and Age next to their posts.
(http://www.dansoftaustralia.net/images/screenshots/smfmods/AgeLocationOnPosts.png)

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

Changelog
Version 1.0
- Initial release
Title: Re: Display Age and Location next to posts
Post by: EdwinK on January 23, 2007, 09:01:12 AM
Great mod, as always with your mods :)

Title: Re: Display Age and Location next to posts
Post by: bigmohi on January 23, 2007, 07:29:29 PM
yes,perfect mod, thx alot man!!
Title: Re: Display Age and Location next to posts
Post by: robotman321 on January 23, 2007, 11:30:41 PM
NICE i love it been looking for this !!
Title: Re: Display Age and Location next to posts
Post by: 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?
Title: Re: Display Age and Location next to posts
Post by: Daniel15 on January 24, 2007, 08:55:22 PM
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.
Title: Re: Display Age and Location next to posts
Post by: Ramón Cutanda on January 25, 2007, 05:46:59 PM
Thanks!
Title: Re: Display Age and Location next to posts
Post by: buhaychat.com on January 28, 2007, 02:59:43 AM
Easy install, great mod! Thanks :)
Title: Re: Display Age and Location next to posts
Post by: 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
Title: Re: Display Age and Location next to posts
Post by: Daniel15 on March 02, 2007, 07:36:03 PM
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 :)
Title: Re: Display Age and Location next to posts
Post by: Vanz on March 03, 2007, 09:54:44 AM
Thanks!
Title: Re: Display Age and Location next to posts
Post by: TEOC2 on March 11, 2007, 09:22:37 AM
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 =====
Title: Re: Display Age and Location next to posts
Post by: Daniel15 on March 11, 2007, 11:04:52 AM
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
Title: Re: Display Age and Location next to posts
Post by: walkerp on April 21, 2007, 10:45:19 PM
How do I access the above file?  And which file is it?

Thanks!
Title: Re: Display Age and Location next to posts
Post by: Daniel15 on April 22, 2007, 01:52:04 AM
You mean to remove the age segment? It's in Themes/default/Display.template.php :).
Title: Re: Display Age and Location next to posts
Post by: walkerp on April 22, 2007, 09:17:54 AM
Thanks!

Slowly learning my way around this world.  Appreciate the tip.
Title: Re: Display Age and Location next to posts
Post by: Daniel15 on April 23, 2007, 05:03:45 AM
No problem... Glad to see it helped you :D
Title: Re: Display Age and Location next to posts
Post by: locomotion182 on May 26, 2007, 05:32:29 PM
its not showing for me = /
Title: Re: Display Age and Location next to posts
Post by: codenaught on May 26, 2007, 05:36:12 PM
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 (http://custom.simplemachines.org/mods/index.php?mod=638) for the mod.
Title: Re: Display Age and Location next to posts
Post by: kill3r on August 16, 2007, 07:55:57 AM
great mod. thanks :)
Title: Re: Display Age and Location next to posts
Post by: goaskanna on May 15, 2008, 01:13:06 PM
Works absolutely perfectly in 1.1.5, and the change to remove the age was simple as pie!

Thank you!

Anna
Title: Re: Display Age and Location next to posts
Post by: v3rax on June 15, 2008, 04:06:38 AM
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?
Title: Re: Display Age and Location next to posts
Post by: DadL on June 16, 2008, 10:06:15 PM
just installed! thanks  :D
Title: Re: Display Age and Location next to posts
Post by: redmisthunter on July 01, 2008, 02:06:49 AM
age doesn't show for 1.1.5, is there any plan on updating to cover this version?
Title: Re: Display Age and Location next to posts
Post by: jayc7176 on July 01, 2008, 06:24:46 AM
Age- 24
Location-Cloud9
                                                               


Is is posssible to show  like this ----->> in the Post?
Title: Re: Display Age and Location next to posts
Post by: Xarcell on July 23, 2008, 11:58:12 PM
Update for the beta?
Title: Re: Display Age and Location next to posts
Post by: Kimmie on February 15, 2009, 10:11:18 AM
anyone tried this on 1.1.8 yet?
Title: Re: Display Age and Location next to posts
Post by: Morrell on February 18, 2009, 09:50:49 AM
I just installed it in 1.1.8 and it works great!
Title: Re: Display Age and Location next to posts
Post by: juvebalkan on December 01, 2009, 09:35:26 AM
Is this working for SMF 2.0 RC2 and how to set it up ?
Title: Re: Display Age and Location next to posts
Post by: Kimmen on January 09, 2010, 07:06:27 PM
I also wonder about this ? Anyone that can update it?
Title: Re: Display Age and Location next to posts
Post by: Kays on January 09, 2010, 07:40:44 PM
This is a very basic mod and not to difficult to install manually.

Please see: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: Display Age and Location next to posts
Post by: Kimmen on January 09, 2010, 10:34:49 PM
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
Title: Re: Display Age and Location next to posts
Post by: lazylivin on August 27, 2010, 10:00:11 PM
Any chance getting this updated for SMF 2 RC?  :)