- Posts: 16
- Thank you received: 0
Kunena 6.0.8 Released (17 Jan 2023)
The Kunena team has announce the arrival of Kunena 6.0.8 [K 6.0.8] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0.
Question When using firebug to look at code, how can you tell which php file the code is located in?
For an example, the image reference below is apparently keeping the search box on the categories page from aligning all the way to the right, so I'd like to delete it (if I can without deleting the other expand/collapse buttons). How can I tell which file it's located in?
<img alt=""src=" azmatters.com/components/com_kunena/temp...s/english/shrink.gif " class="hideshow" id="BoxSwitch_topprofilebox__topprofilebox_tbody">
Hopefully the question makes sense. Thanks in advance.
EDIT: Ok now I see there's an expand/collapse button actually there that's invisible presumably b/c of the color. I still want to get rid of it if I can, but either way I'd still like help with the general issue of finding files.
How would you like it if the database tables, their locations and passwords were suddenly available for everyone to see? Well, of course, that's why we use PHP (or some other CGI tool). Firebug can't see it.
Think about it in these terms: when you buy milk at the shop what do you get? You get milk. But, even though you can analyse the milk to determine the percentage of fat, water, lactose and whatever else goes into making the milk, you can't find out the details of which cow in the world was responsible for producing the raw ingredients, can you?
The same thing applies with server side scripting. At the client/browser end, you can't tell what, specifically, was responsible for producing the raw HTML that was transmitted to you via the internet. The only way you can do that is to examine what is going on at the server. Firebug can't do that.
As for finding the name of the file that contains a certain piece of text, if you don't know which file it's in then, I'm sorry, you'll have to search all of them (or at least, start by knowing where to search). If the text is generated by Kunena, there's a good chance that it will be in the ../components/com_kunena folder (or one of its subfolders) somewhere (unless someone else knows where what-you're-looking-for is). What were you looking for again? :S
I'm trying to remove the expand/remove button just to the right of the search box on the categories page in default_ex (provided it can be easily done w/out deleting all the other expand/remove buttons). The html for the button reference per FB is in the OP. It's not a big deal...I mostly asked b/c it involved the more general question about php files which had come up in a few other instances. Thx for that answer, even though I don't like what it is.
You have decided, for some reason , that this object doesn't is (apparently) "keeping the search box on the categories page from aligning all the way to the right" So, let me ask you a simple question: look at this page: is there something wrong with the way this page is laid out? If you can answer that question, then maybe we need to look at ways to redesign Kunena?
I still don't know the technical answer to your problem. I mean, it could take me a couple of hours to find every place where the shrink.gif is referenced and to isolate which parts of those files you should change and which parts you should not change. But, are we only talking conserving the 10 lousy pixels of space? :dry:
I'm not going to worry about the button any longer. The reason I wanted to move the search box over in the first place is that the expand/collapse button is invisible on my page due to its color, and hence I thought it was just blank space there between the search box and the border (such as due to padding). I probably wouldn't have cared even then except that I right-justified the advanced search link in the profile box under the search box and hence it'd be just a bit cleaner if they were aligned with one another. Again, not a big deal...and certainly no need to spend any time investigating.
Perhaps, though, that could be something to consider for future versions if it's not been addressed already. FWIW from a newb, it seems to me the other links in the profile box would be better as just additional tabs above (Announcements of course is already in both places).
Well, easy problem: change the image! Use a contrast colour for the image.
I run into this problem sometimes because I have to find where particular code is "hidden" also. This is how I do it:
1) Use firebug and highlight the element you want to find the code to.
2) look in the HTML for a class or ID.
3) Use windows search or some other tool to search all files in that folder for that class or ID - you should find the accompanied PHP in whichever files that show.
Alternatively if you just don't want it to display you would just use firebug to find the css element and add a "display:none;" to it, assuming no other element shares the same class or ID.
Joomla Extension Templates: extensiontemplates.com