Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at
forum.joomla.org
Question When using firebug to look at code, how can you tell which php file the code is located in?
14 years 2 months ago #118658
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: When using firebug to look at code, how can you tell which php file the code is located in?
As I have previously stated in this topic, one cannot examine server-side scripts using a tool like Firebug because Firebug only sees the results of what has been executed. In order to see what PHP code is being run, one needs to have an knowledge (or use educated guesswork) of how the PHP application is held together.
I have, on many occasions, made the comment that I am not a developer and I do not have an intimate knowledge of what PHP scripts (written for Kunena) affect certain areas or the whole functioning of Kunena. Just like anyone else, I could spend a few hours - and, trust me, I have spent many hours - guessing my way through those areas of Kunena that I think may be involved in handling different functions of Kunena.
I guess that answering these kinds of questions would be fairly easy for someone who has developed Kunena or who has an intimate knowledge of the product. But, I would remind you, everyone's time is precious. The people who work on developing Kunena have real lives, families to look after, incomes to secure and other interests outside of Kunena.
My role, as a moderator, is not to answer these questions (or find out the answers for you if I don't know them) but to point people in a direction that allows them to find the answers themselves and - one would hope - post the answer on the forum for others who follow later. I have already said that it would probably take me a little while, fumbling in the dark, before I would get a handle on what part(s) of Kunena addresses the particular problem that modernmagic has asked. I would also like to read 20 other questions posted on the forum in that time. My advice, therefore, is either to wait patiently for someone to address the technical aspects of the question you asked Add Text next to Locked Icon , educate your readers to use better accessibility techniques to overcome some visual impairment issues that these people may have, or use this time yourself to search for the place where the PHP code handles the matter you're interested in.
I have, on many occasions, made the comment that I am not a developer and I do not have an intimate knowledge of what PHP scripts (written for Kunena) affect certain areas or the whole functioning of Kunena. Just like anyone else, I could spend a few hours - and, trust me, I have spent many hours - guessing my way through those areas of Kunena that I think may be involved in handling different functions of Kunena.
I guess that answering these kinds of questions would be fairly easy for someone who has developed Kunena or who has an intimate knowledge of the product. But, I would remind you, everyone's time is precious. The people who work on developing Kunena have real lives, families to look after, incomes to secure and other interests outside of Kunena.
My role, as a moderator, is not to answer these questions (or find out the answers for you if I don't know them) but to point people in a direction that allows them to find the answers themselves and - one would hope - post the answer on the forum for others who follow later. I have already said that it would probably take me a little while, fumbling in the dark, before I would get a handle on what part(s) of Kunena addresses the particular problem that modernmagic has asked. I would also like to read 20 other questions posted on the forum in that time. My advice, therefore, is either to wait patiently for someone to address the technical aspects of the question you asked Add Text next to Locked Icon , educate your readers to use better accessibility techniques to overcome some visual impairment issues that these people may have, or use this time yourself to search for the place where the PHP code handles the matter you're interested in.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
- modernmagic
-
- Offline
- Senior Member
-
14 years 2 months ago #119028
by modernmagic
We focus on creating, managing and optimizing Joomla websites so you can focus on your own business
modernmagic.com
Replied by modernmagic on topic Re: When using firebug to look at code, how can you tell which php file the code is located in?
CheechDogg replied with the answer but I it appears that it was removed from this topic.
So here it is again:
Find the following file:
flat.php
It should be located in the following directory location:
components/com_kunena/template/default/threads
Look for the following in the flat.php file:
if ($leaf->locked != 0) {
echo CKunenaTools::showIcon ( 'ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC') );
}
and replace it with:
if ($leaf->locked != 0) {
echo CKunenaTools::showIcon ( 'ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC') ); echo JText::_('This topic is locked');
}
So here it is again:
Find the following file:
flat.php
It should be located in the following directory location:
components/com_kunena/template/default/threads
Look for the following in the flat.php file:
if ($leaf->locked != 0) {
echo CKunenaTools::showIcon ( 'ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC') );
}
and replace it with:
if ($leaf->locked != 0) {
echo CKunenaTools::showIcon ( 'ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC') ); echo JText::_('This topic is locked');
}
We focus on creating, managing and optimizing Joomla websites so you can focus on your own business
modernmagic.com
Please Log in or Create an account to join the conversation.
- modernmagic
-
- Offline
- Senior Member
-
14 years 2 months ago #119029
by modernmagic
We focus on creating, managing and optimizing Joomla websites so you can focus on your own business
modernmagic.com
Replied by modernmagic on topic Re: When using firebug to look at code, how can you tell which php file the code is located in?
CheechDogg,
Is there a method you used to search the files on the host to find the flat.php?
Is there a method you used to search the files on the host to find the flat.php?
We focus on creating, managing and optimizing Joomla websites so you can focus on your own business
modernmagic.com
Please Log in or Create an account to join the conversation.
- CheechDogg
-
- Offline
- Premium Member
-
14 years 2 months ago #119032
by CheechDogg
Find me on Facebook.
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Replied by CheechDogg on topic Re: When using firebug to look at code, how can you tell which php file the code is located in?
Pure brain power modernmagic.
Since I am pretty familiar with most of the files for kunena now I can pretty much take a guess where something might be.
Remember what you are looking at, if you are trying to modify something say in profile, the obvious would be to look in files that might be named or have something to do with profile.
In this case with the flat.php file , it was obvious to me that I should probably look in the "threads" folder of the default template.
Most of the php files you will use to modify stuff like this will mostly always be in the default template folder.
That is pretty much the only advise I can give you. Hope this helps you out.
Since I am pretty familiar with most of the files for kunena now I can pretty much take a guess where something might be.
Remember what you are looking at, if you are trying to modify something say in profile, the obvious would be to look in files that might be named or have something to do with profile.
In this case with the flat.php file , it was obvious to me that I should probably look in the "threads" folder of the default template.
Most of the php files you will use to modify stuff like this will mostly always be in the default template folder.
That is pretty much the only advise I can give you. Hope this helps you out.
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Please Log in or Create an account to join the conversation.
- modernmagic
-
- Offline
- Senior Member
-
14 years 2 months ago #119113
by modernmagic
We focus on creating, managing and optimizing Joomla websites so you can focus on your own business
modernmagic.com
Replied by modernmagic on topic Re: When using firebug to look at code, how can you tell which php file the code is located in?
Well thank you Cheechdogg for your knowledgable help.
I wonder why I can't search for "ktopiclocked" in the cpanel file manager to find the flat.php file?
I wish there was a way other then having to be so familiar with all the 204 files in the kunena install.
I wonder why I can't search for "ktopiclocked" in the cpanel file manager to find the flat.php file?
I wish there was a way other then having to be so familiar with all the 204 files in the kunena install.
We focus on creating, managing and optimizing Joomla websites so you can focus on your own business
modernmagic.com
Please Log in or Create an account to join the conversation.
- CheechDogg
-
- Offline
- Premium Member
-
14 years 2 months ago #119114
by CheechDogg
Find me on Facebook.
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Replied by CheechDogg on topic Re: When using firebug to look at code, how can you tell which php file the code is located in?
On line 111 you will see it.
I don't use cPanel's file manager I use filezilla and open files with Notepad++, try that instead modernmagic.
I don't use cPanel's file manager I use filezilla and open files with Notepad++, try that instead modernmagic.
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
The following user(s) said Thank You: Jiminimonka
Please Log in or Create an account to join the conversation.
Time to create page: 0.207 seconds