 | Writing a MOD |  |
Posted: 06/15/2007 9:44 AM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 5:17 AM
|

|
|
|
|
 |
I'm going to attempt to write my first MOD. I think it would be good for me since I'm going to be writing most of my site scripts in PHP.
But I was wondering if there is anywhere on the internet where there are tutorials for writing MOD's?
The MOD I want to write is for the members Coaster Count. I want the there to be a Coaster Count option in the users profile settings and when they register they can input it.
And, I want it to show up where it displays the user word count and posts etc.
I think I can write the MOD, I think I know enough about PHP to write the MOD, but I just need to know what files to create...and how to get it to work with EasyMOD..
Thanks in advance for any help I recieve. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/15/2007 1:50 PM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 5:17 AM
|

|
|
|
|
 |
Ok, I think I've found a few of the files I need to edit...
root/templates/*/viewtopic_body.tpl
root/templates/*/profile_viewbody.tpl
root/viewtopic.php
root/includes/usercp_viewprofile.php
root/includes/usercp_register
root/profile.php
root/language/lang_english/lang_main.php
Are there any others that I may need to edit? And which files should I edit first, or does it matter?
And are there any files that I need to create to pull this MOD off? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 12:34 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:17 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, you will also need to modify the profile_add_body.tpl and profile.php files if you want to give them an option to adjust the settings in their Profile. I see no reason to create totally new files for this since it will probably be a fairly small MOD...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 5:00 PM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 5:17 AM
|

|
|
|
|
 |
Writing a MOD is harder than I thought...
I know a little bit about PHP, but I don't know how to go about doing this... |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 6:39 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:17 AM
Location: St Pete, FL
|

|
|
|
|
 |
If you know what changes you want to make to the code, I can help you to write the MOD script if that is the problem...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 6:41 PM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 5:17 AM
|

|
|
|
|
 |
| I think I might know what changes I need to make, but I'm not sure where to make them... |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 6:52 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:17 AM
Location: St Pete, FL
|

|
|
|
|
 |
What did you have in mind???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 8:35 PM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 5:17 AM
|

|
|
|
|
 |
Actually, I was messing around with some of the files today, and I came to the conclusion that I have absolutely no idea what I'm doing...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 9:29 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:17 AM
Location: St Pete, FL
|

|
|
|
|
 |
LOL The only way to figure out what you are doing is to jump in with both feet and get your hands dirty...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Writing a MOD |  |
Posted: 06/16/2007 10:23 PM |
|
|
|
|
|
| Dove |
| Posts |
76 |
| Word Cnt. |
5,619 |
| BDay |
N/A |
| Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 5:17 AM
|

|
|
|
|
 |
^ I haven't given up yet...I'm determined to do this!
One thing though, do you know where I can find anything that will help tell me what some of the coding is for? I think I need a file telling me a little bit about what it does... |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|