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 02-26-2014, 11:46 PM
Vaporman87 Vaporman87 is offline
Member
 
Join Date: Feb 2014
Posts: 32
Gender: Male
Credits: 6,454
Vaporman87 is on a distinguished road
Default Changing... or "masking" existing URLs

One thing I am curious about, is if there is any simple way to "rename" or "mask" some of the URLs for the script, without having to rename them in every relevant file using that particular URL path.

For instance, I might like for mysite.com/pound to appear in the browser as mysite.com/hall of honor.

Can something like this be accomplished via the .htaccess file?

Thanks for any input!
Reply With Quote
  #2  
Old 02-27-2014, 10:58 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 110,667
Kyttias is on a distinguished road
Default

Hmm... well, this might be worth a read? I have no experience in this, myself.
Reply With Quote
  #3  
Old 02-28-2014, 04:49 PM
Vaporman87 Vaporman87 is offline
Member
 
Join Date: Feb 2014
Posts: 32
Gender: Male
Credits: 6,454
Vaporman87 is on a distinguished road
Default

Quote:
Originally Posted by Kyttias View Post
Hmm... well, this might be worth a read? I have no experience in this, myself.
I've tried various .htaccess rewrites like this, and nothing works. The only thing that shows up in the browser bar is what is listed in the database table adopts_links. Sure, I can change the URL in that table to what I like, but then that link will only ever redirect you to the index page.

If there were a way to create another column in the database called linkname, that would function to be what is displayed by the browser in the address bar, that would be great. So you would have the existing column linkurl, and the partner column linkname. One acting to gather the content, and one to display in the browser. Is this possible maybe?

Last edited by Vaporman87; 02-28-2014 at 04:57 PM.
Reply With Quote
  #4  
Old 02-28-2014, 03:50 AM
squiggler's Avatar
squiggler squiggler is offline
Squiggling since 1995
 
Join Date: Jul 2013
Posts: 185
Gender: Unknown/Other
Credits: 9,773
squiggler is on a distinguished road
Default

I believe you have to rename the file in your host's file manager? I'm not a coder though.
__________________
Avatar courtesy of Doll Divine.
Reply With Quote
  #5  
Old 02-28-2014, 05:59 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 20,887
IntoRain is on a distinguished road
Default

The name of the php files give the name to the page. But what's the problem with modifying the file names instead? In 1.3.4 it's just two files to change I believe?

By the way, the links in the database don't actually create the page, they are just used to display the links in the correct place. As long as you have 2 files (one as controller and another as view) with the index() function they will become a page (as well as all other public functions contained in the same files) even if they aren't in the database, from what I've seen. So I don't really know if that would work out
__________________


asp.net stole my soul.

Last edited by IntoRain; 02-28-2014 at 06:02 PM.
Reply With Quote
  #6  
Old 03-02-2014, 06:25 PM
Vaporman87 Vaporman87 is offline
Member
 
Join Date: Feb 2014
Posts: 32
Gender: Male
Credits: 6,454
Vaporman87 is on a distinguished road
Default

I figured there were several files that contained code which depended on the predetermined names for the php files as paths to certain things. Is this not the case?
Reply With Quote
  #7  
Old 03-03-2014, 07:08 PM
Nieth's Avatar
Nieth Nieth is offline
Aspiring
 
Join Date: Dec 2012
Location: North Carolina
Posts: 154
Gender: Male
Credits: 12,500
Nieth is on a distinguished road
Send a message via MSN to Nieth
Default

In my understanding, there are other files in the script that reference other files, so I would assume that if you changed the file name it would break that part of the script. I may be completely wrong but I'm not sure.

What you can do though, is mask the entire site with the same URL using your host's Domain masking and then change the names of the the links that you click on in the nav bar, so then the users would have no idea what the URL really is, so they'd just assume that its whatever the link name is.

..That may not be what you'd like to do, but seeing as I'm no avid coding professional its the only suggestion that I can provide. Hope it helps.
Reply With Quote
  #8  
Old 03-03-2014, 08:10 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 20,887
IntoRain is on a distinguished road
Default

It doesn't break anything as long as you do this:

1) There are two files you need to change the name of. Let's take the /adopt link as an example. If you want to change /adopt to /capture you'll need to go to the main folder and change adopt.php to capture.php. Open the file edition and change AdoptController to CaptureController.
2) Then change adoptview.php to captureview.php. Edit the code and change AdoptView to CaptureView
3) Change the respective lang's file name (lang_adopt.php to lang_capture.php) if there is a need.
4) And of course change all previous links that had the old name (for example menu ones), which might be what takes more time depending on what you are changing. I guess this is what you meant and were trying to avoid, so sorry about that xD
__________________


asp.net stole my soul.
Reply With Quote
Reply


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
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) bobbybig Templates and Themes 3 07-18-2018 07:54 PM
Removing of prefix "class", "abstract", "interface" Suggestions FounderSim Suggestions and Feature Requests 3 10-05-2014 06:35 PM
"Nicnack Shop" by Bobbybighoof (mysidia v1.3.3) bobbybig Templates and Themes 5 04-15-2013 04:11 PM
[Updated] AJAX Sortable Adoptables on "myadopts.php" Page fadillzzz Mys v1.2.x Mods 57 05-29-2012 03:16 AM
A php question about changing the "level up" section coffeeaddict Questions and Supports 6 02-26-2011 12:08 PM


All times are GMT -5. The time now is 03:46 AM.

Currently Active Users: 820 (0 members and 820 guests)
Threads: 4,081, Posts: 32,029, 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