Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2015, 12:52 AM
MikiHeart's Avatar
MikiHeart MikiHeart is offline
Premium Member
 
Join Date: Apr 2009
Posts: 187
Gender: Female
Credits: 20,333
MikiHeart
Default Changing Filenames/urls

I want to customize my script and relabel a lot of things. Like the "myadops" url and page becomes "mypets"

As far as I can tell, I would have to change the file names, the class controller, class view, and classes as well so that they all match.

But I'm wondering how hard it would be? or if there's an easier way?

Some examples that I want to change are like the following:

myadops to mypets
promo to redeempet
adopt to aquirepets
Reply With Quote
  #2  
Old 01-19-2015, 06:01 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,583
Hall of Famer is on a distinguished road
Default

Well changing these names wont really be very difficult, although you also need to make sure to change the link url for dropdown menu, which can be done through ACP.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 01-19-2015, 06:48 AM
MikiHeart's Avatar
MikiHeart MikiHeart is offline
Premium Member
 
Join Date: Apr 2009
Posts: 187
Gender: Female
Credits: 20,333
MikiHeart
Default

Most of them should be easy, but I worry about the 'adopt' one, because there are so many classes to go with it. I don't want things to go wonky.
Reply With Quote
  #4  
Old 01-19-2015, 11:54 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 86,991
Kyttias is on a distinguished road
Default

I suggest making a copy of myadopts and viewmyadoptsview.php first, but -

Three easy steps, only edit two lines of code, change no class files:

1) Open myadopts.php. Save it as your new name, in my case, yournovu.php. At the very top of the page, change "class MyadoptsController extends AppController" to "class YournovuController extends AppController". Save.

2) Open view/myadoptsview.php. Save it as your new name to match the above, in this case, yournovuview.php. At the top of the page, change "class MyadoptsView extends View" to "class YournovuView extends View". Save.

3) Go into the lang folder, find lang_myadopts.php, and rename the file to match your changes. In this case, it becomes lang_mynovu.php.

Done. You'll immediately be able to visit your new page in your browser. Don't forget to change the links!**

*There are also links inside that page. Open up what was myadoptsview.php and change all instances of the word 'myadopts' to your new page name. There are also many other pages on the site that may link there, such as poundview.php's "Nevermind" option.

I suggest getting a nice text editor/IDE like Sublime Text. It's capable of making 'Projects' that can contain entire folders of files, then, 'search all files' will let you search them all for a specific word or line. Windows is also capable of searching through all files for text, but it's not enabled by default.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-19-2015 at 02:12 PM.
Reply With Quote
  #5  
Old 01-19-2015, 10:43 PM
MikiHeart's Avatar
MikiHeart MikiHeart is offline
Premium Member
 
Join Date: Apr 2009
Posts: 187
Gender: Female
Credits: 20,333
MikiHeart
Default

Thank you Kyttias, you're such a big help *.*
I use php designer for coding. The search feature is really good. I can search an entire document, or every single one open and get multiple results. It's how I went through the lang files to change 'adoptsables' to 'pets' There's also a replace feature, but I wanted to make sure it was done right, and not replace things that weren't meant to be replaced.
Reply With Quote
  #6  
Old 01-19-2015, 11:12 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 86,991
Kyttias is on a distinguished road
Default

Good! I'm glad you've already got something fancy like that. I feel bad for people who don't. There are around 30 occurrences of 'myadopts' across 13 files, from what my editor is telling me.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-19-2015 at 11:14 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing... or "masking" existing URLs Vaporman87 Questions and Supports 7 03-03-2014 07:10 PM
Signature Image Urls Not Working? Hwona Questions and Supports 4 10-28-2013 01:54 PM
The urls henley421 Questions and Supports 6 04-09-2013 06:35 PM
seo urls powerchaos Feedback and Suggestions 1 12-05-2012 05:17 PM
Help with changing css MaximumRide Questions and Supports 5 04-25-2012 12:37 AM


All times are GMT -5. The time now is 06:05 PM.

Currently Active Users: 456 (0 members and 456 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636