1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rename Resource Manager?

Discussion in 'XenForo Pre-Sales Questions' started by Tiki Tiki, Aug 10, 2015.

  1. Tiki Tiki

    Tiki Tiki Active Member

    Is it possible to rename the Resource Manager? More specifically, anywhere the word 'Resource(s)' appears (e.g., Resources tab, Featured Resources, Add Resource)? I am asking because I only intend to have a single type of 'resource,' and I would prefer to use a more descriptive name for it (e.g., Widgets tab, Featured Widgets, Add Widget). What about replacing 'resources' in the friendly URLS (e.g., /community/widgets/doohickey.1)?

  2. batpool52!

    batpool52! Well-Known Member

    You can edit the phrases to change it.

    Can be done via route filters found in ACP.
  3. Tiki Tiki

    Tiki Tiki Active Member

  4. FredC

    FredC Well-Known Member

  5. Tiki Tiki

    Tiki Tiki Active Member

    Great! I am assuming this would require overwriting my entire list of phrases, however, which would destroy any other modifications I might have done. This tool has allowed me to very quickly determine how many different phrases would need to be changed, though, by searching for 'widget' in the .xml file. Answer: 161.

    I am wondering if changing every instance of 'resource' in Resource Manager's php code before installing might make more sense. Then, even its internal mechanisms would get renamed (e.g., search/&type=resource_update becomes search/&type=widget_update). Any thoughts?

    Thanks so much, guys!

    P.S. I am a long time IPB administrator who is, at this time, about 80% convinced I need to jump ship for xenForo. IPB 4.0 is looking like a real dog to me. My only outstanding problems right now are: a.) finding a replacement for IP.Blogs (the one solution I found here appears to do nothing more than create the equivalent of a new group of forums—why wouldn't I just do that on my own?); and b.) something that presents a nice stylized list of front page news stories, including images and links to comments, pulled from various forums, for which I have been using IP.Pages' 'articles' database.
  6. Jake B.

    Jake B. Well-Known Member

    Nope, it only replaces phrases that contain the 'resource' text.

    No, absolutely not. You should never edit source code. This will definitely break any update to the resource manager.
  7. Tiki Tiki

    Tiki Tiki Active Member

    Good to know!
    Yes, of course. I realize that I would need to make the same changes to the code any time an update comes along. Not a terribly big deal... unless the Resource Manager is composed of 11,297 separate files. ;)
  8. Jake B.

    Jake B. Well-Known Member

    Editing source files is almost on the level of dividing by zero. Just don't do it :|
  9. Tiki Tiki

    Tiki Tiki Active Member

    It's okay. :cool: I used to divide by zero (write code) for a living. :sneaky:
  10. Jake B.

    Jake B. Well-Known Member

    Yes, but if you just indiscriminately replace 'resource' with 'widget' in the code you will also rename the database tables. If you do this no add-ons will work out of the box with the resource manager.
  11. Tiki Tiki

    Tiki Tiki Active Member

    Yes, that is a good point. I guess it would depend on what kind of add-ons might be affected. Are you talking third-party add-ons to the Resource Manager, itself? I don't foresee the need to add to its capabilities. I suppose I could revert back to the original code / table names if I ever discovered a broken bridge along my path. It would probably be easier to just rewrite the phrases, though. :D

Share This Page