Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: I think I need help to edit some code...

I think I need help to edit some code... 1 year 1 month ago #45644

www.examiner.org

As a newspaper we have a "download" menu item where our subscribers can log in and download the online edition of our paper.

When someone who is not logged in tries to go to the "download" page, a message pops up stating that...

"You are not authorised to view this resource."

It was just pointed out that authorised is misspelled. How can I edit this to correct the spelling?

I have firebug and thought I could edit it there. But it doesn't save.

I cannot figure out where I need to go to edit this. I went into my hostgator and did a search for "You are not authorised to view this resource." and it said "No records found."...
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45647

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3105
  • Thank you received: 7
  • Karma: 0
Hi lsidders,

Take a look at this tutorial and let us know if it helps.

www.ostraining.com/blog/joomla/languge-manager/

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45650

Thanks Ed, but if you look at my site we are not using 2.5
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45658

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4032
  • Thank you received: 138
  • Karma: 10
Hi Lsidders,

Which extension is this in? Or is it in Joomla by itself? I might install it and find the code for you.
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45661

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3105
  • Thank you received: 7
  • Karma: 0
The language file is where the constant/value pair is kept for this type of notice. The script that calls it will have a constant like "login_error" or something somewhat descriptive (that's just an example, I don't know what your constant is). The corresponding language file will have an entry like

login_error="You are not authorised to view this resource."

In 1.5 they didn't have a built-in utility so you have to manually edit the language file.

Try searching for the string in /languages/en-GB. all of the language files are in there for Joomla.

If it's a plugin or module that generates the string, there may be an additional language file in the plugin's or module's directory. It will also be in a folder called language/en-GB.

Let me know if that helps track it down.

Ed
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45673

I'm sorry. This doesn't make any sense to me.

I'm attaching the firebug screen shot...
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45674

Here is a better/fuller screenshot...
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45677

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3105
  • Thank you received: 7
  • Karma: 0
You won't find the answer in Firebug. This is not a problem with design or css. You have to fix the spelling mistake in the core program.

Using FTP or a file manager, go to public_html/languages/en-GB or whatever the path is to the languages folder for your Joomla installation on your server. The file you need to edit is in the language folder. en-GB is the folder that contains the English language for all the messages that are generated.

You will see long list of files with the extension .ini You need to search these files for the misspelled word and correct it there. It could be in any one of them.

Let us know if you can't find it there. We'll tell you where else it might be.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45679

Yes, I did open the en-GB folder and saw all the .ini files. So I should open them all and search through them all...
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45682

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3105
  • Thank you received: 7
  • Karma: 0
If you have dreamweaver or some type of editor that will search multiple files, you could download them and search them all at once from the editor. I think windows will search for a word inside a file. I don't use it that much, but a mass-search would be a big help.

They aren't very big files, there's just a lot.

ed
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45726

Yes, a mass search would be helpful. Thanks Ed. I will look through them today when I finish my morning!
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45773

I FOUND IT! AND I FIXED IT! :D It's the small victories!~
Please become a member of OSTraining to reply to this post.

I think I need help to edit some code... 1 year 1 month ago #45775

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3105
  • Thank you received: 7
  • Karma: 0
CONGRATULATIONS!

Believe it or not, helping someone solve a problem makes me as happy as they are.

Nice persistence,
Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Copyright 2013 Open Source Training, LLC. All rights reserved.