Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Mods > Topic : Add Location to Post Info

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team



Threaded Mode | Print  

 Add Location to Post Info (4 Replies, Read 4192 times)
Fire@enemy225
Group: Member
Post Group: Newbie
Posts: 7
Status:
This is my first mod everyone. It feels good to be able to learn to make mods when i just started using this forum software. This is also my first mod install tutorial, so bare with me lol. Also all of my mods have only been tested on the default AEF theme.

Step 1: Go to this file:
\themes\default\posts_theme.php

You can open in Notepad, or any text editor. I use Notepad++ for all of my coding.

Step 2: Locate this line inside the file:
PHP Code

 ' . (!empty($post[$p]['posts']) ? '<div class="pisub">' . $l['prefix_posts'] . ' ' . $post[$p]['posts'] . '</div>' : '') . ' 



Step 3: Under that line add this line:

PHP Code

 ' . (!empty($post[$p]['location']) ? '<div class="pisub">Location' . $post[$p]['location'] . '</div>' : '') . ' 



Step 4: Save the file, and go to a post. The users location should be there, if they have one. Otherwise it will not show up.

It should look like the image in the attachments

That is all.

Please give me feedback of what you think of it. I know it is a basic mod, but I am learning :).

Thanks!
Fire

Edited by Fire@enemy225 : July 17, 2012, 3:54 am

-----------------------
Proud Supporter of the Armed Forces

Brazilian Jui-Jitsu Fighter

Future Cop

Board Image
IP: --   

Add Location to Post Info
nexgenforum
Group: Member
Post Group: Working Newbie
Posts: 65
Status:
nice try bro.  I also made major changes to my forum with help of other members. Visit my forum

-----------------------
DOMAINS HOSTING SSL WEBSITES
All in one place with Affordable prices
IP: --   

Add Location to Post Info
Fire@enemy225
Group: Member
Post Group: Newbie
Posts: 7
Status:
Nice man. I have done a lot of modifications to my forum. I am actually working on this huge mod right now for it. Which it will be a surprise when i release it. but it will be a couple of days.

-----------------------
Proud Supporter of the Armed Forces

Brazilian Jui-Jitsu Fighter

Future Cop

Board Image
IP: --   

Add Location to Post Info
nexgenforum
Group: Member
Post Group: Working Newbie
Posts: 65
Status:
which forum version u r using? And what is url ? If u want to keep it secret then just pm me

-----------------------
DOMAINS HOSTING SSL WEBSITES
All in one place with Affordable prices
IP: --   

Add Location to Post Info
Fire@enemy225
Group: Member
Post Group: Newbie
Posts: 7
Status:
I'm using 1.0.9. And even if I wanted to share, i couldn't. Because all my modifications I do, are on my localhost.

-----------------------
Proud Supporter of the Armed Forces

Brazilian Jui-Jitsu Fighter

Future Cop

Board Image
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Members who read this topic
kumarullal, storm, cristrixy, Knele, Sammael, nexgenforum, liquidbroadcast123, Fire@enemy225, Digger, antros


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is September 21, 2019, 3:04 am.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.053