Zero next to Search box

GK User
Sun Oct 28, 2012 1:04 pm
Hi.
1. I have esport template and Joomla 2.5.7. I have search box in top and there is "0" visible? What is it, please? See attach.

2. When looking for something that can not be found, blank screen is showing. You can see it: http://test.darkyzlasky.cz

Thanks for your help.
User avatar
Fresh Boarder

teitbite
Mon Oct 29, 2012 11:55 am
Hi

Both issues looks like there are some language file missing or there is no translations for some elements. Please check the code in core files for search results and search module. You will find uppercased text which needs to be added to language files and translated.
User avatar
Moderator

GK User
Fri Dec 14, 2012 11:43 pm
Hi I have the same issue..
Already look in the language files, but didn't find the solution.

Can somebody point me in the right direction?

Thank you

regards

J!
User avatar
Fresh Boarder

GK User
Sat Dec 15, 2012 1:24 pm
Hi.
Problem with zero is in file templates/gk_esport/html/mod_virtuemart_search/default.php

My solution:
I was deleted rows from 9 to 36.

But blank screen? I dont know, where is problem.
User avatar
Fresh Boarder

teitbite
Sat Dec 15, 2012 6:06 pm
Hi

Please try update template and VM to the latest version and let me know if problem will persists.
User avatar
Moderator

GK User
Sat Dec 15, 2012 10:53 pm
Hi,

Thnx for your responses...
I have the latest version of the template and off VM -> but the problem still persists!

Any ideas?

Thnx

J!
User avatar
Fresh Boarder

teitbite
Tue Dec 18, 2012 1:41 am
Hi

Please try manually copy/override a language file from template installation and VM to /languages/en-GB/ folder.
User avatar
Moderator

GK User
Wed Dec 19, 2012 11:26 am
I can confirm the same problem too.
Latest version of template and joomla but "0" still there.

Can you please name the language file that we should copy.

I am working on greek language and maybe the problem is not on /en-GB but on some other language folder.
User avatar
Senior Boarder

teitbite
Wed Dec 19, 2012 10:39 pm
Hi

I was thinking about this file: en-GB.tpl_gk_esport.ini Please try to replace it and if this will not work try also virtuemart lang file.

And if it's non from above please send me an access to ftp I'll see what's going on than.
User avatar
Moderator

GK User
Wed Dec 19, 2012 11:42 pm
Hi,

I downloaded the latest template file from gavickpro.. Overwrote the lang EN_GB -> file tpl_gk_esport.ini
But WITHOUT succes...

Is it possible to tell us which file in specific we need to change?

Thnx for the help

Cheers

G!
User avatar
Fresh Boarder

teitbite
Thu Dec 20, 2012 1:44 am
Hi

This is the file I was thinking about, which means the problem is somewhere else. Please send me an access to ftp and I'll check what is wrong.
User avatar
Moderator

teitbite
Fri Dec 21, 2012 1:33 am
Hi

To @parasite studio

I got Your ftp access, but I do not know Your site's url so I cannot see if what I do makes a difference. Please send this url so I'll be able solve this problem.
User avatar
Moderator

GK User
Fri Dec 21, 2012 1:41 am
Hi teitbite..

A big thnx for your help already.
Sended you a PM with the ftp credentials.

Cheers

J!
User avatar
Fresh Boarder

teitbite
Fri Dec 21, 2012 1:48 am
Hi

Ok. @g_men01 was faster with url and ftp access, but looks like my IP is blocked :)
User avatar
Moderator

teitbite
Sat Dec 22, 2012 2:58 am
Hi

Thanks to @parasite studio who send me all access details I've found out that this is some button glitch. Looks like when button is disabled it shows a "0" instead. To fix it please remove this code from /html/mod_virtuemart_search/default.php

Code: Select all
         switch ($button_pos) :
             case 'top' :
                $button = $button.'<br />';
                $output = $button.$output;
                break;

             case 'bottom' :
                $button = '<br />'.$button;
                $output = $output.$button;
                break;

             case 'right' :
                $output = $output.$button;
                break;

             case 'left' :
             default :
                $output = $button.$output;
                break;
         endswitch;
User avatar
Moderator

GK User
Fri Dec 28, 2012 1:46 pm
hi,

if i remove the code, i get a blanck page?!




teitbite wrote:Hi

Thanks to @parasite studio who send me all access details I've found out that this is some button glitch. Looks like when button is disabled it shows a "0" instead. To fix it please remove this code from /html/mod_virtuemart_search/default.php

Code: Select all
         switch ($button_pos) :
             case 'top' :
                $button = $button.'<br />';
                $output = $button.$output;
                break;

             case 'bottom' :
                $button = '<br />'.$button;
                $output = $output.$button;
                break;

             case 'right' :
                $output = $output.$button;
                break;

             case 'left' :
             default :
                $output = $button.$output;
                break;
         endswitch;
User avatar
Gold Boarder

teitbite
Fri Dec 28, 2012 2:58 pm
Hi

Means You have removed too much or not all of it. I've already done it on @parasite website, so I'm sure it works. If You will have problems please send me an access to ftp.
User avatar
Moderator

GK User
Mon Jan 28, 2013 2:18 am
teitbite wrote:Hi

Thanks to @parasite studio who send me all access details I've found out that this is some button glitch. Looks like when button is disabled it shows a "0" instead. To fix it please remove this code from /html/mod_virtuemart_search/default.php

Code: Select all
         switch ($button_pos) :
             case 'top' :
                $button = $button.'<br />';
                $output = $button.$output;
                break;

             case 'bottom' :
                $button = '<br />'.$button;
                $output = $output.$button;
                break;

             case 'right' :
                $output = $output.$button;
                break;

             case 'left' :
             default :
                $output = $button.$output;
                break;
         endswitch;


Hi there. I am having the same issue. However, you fix does not work for me. When I remove the code, zero stays there. Any ideas why that happens?

Thank you in advance.
User avatar
Gold Boarder

teitbite
Mon Jan 28, 2013 10:31 am
Hi

I believe everything depends of position choosen for button. Try to change this, so my code should work. Also it has to be in a right file :) Please check if You have modified an override stored in /html/mod_search folder (if exists) and not module itself.
User avatar
Moderator

GK User
Tue Jan 29, 2013 5:51 am
teitbite wrote:Hi

I believe everything depends of position choosen for button. Try to change this, so my code should work. Also it has to be in a right file :) Please check if You have modified an override stored in /html/mod_search folder (if exists) and not module itself.

Oh, I see. I was in the wrong directory. My bad. It worked!! Thank you very much.
User avatar
Gold Boarder

teitbite
Tue Jan 29, 2013 11:53 am
Hi

No problem. I do the same mistake all the time :)
User avatar
Moderator

GK User
Fri Feb 07, 2014 3:05 am
I recently had the same problem after updating Joomla to version 3.2.2 (I'm using Appsprotech), and found this post while trying to fix the problem. However, I wanted to keep the code for the search button (in case I enabled it in the future). To do that add the following if statement around the code (instead of deleting it).
Code: Select all
if($button):

....

endif;


Hope it helps someone in the future!

teitbite wrote:Hi

Thanks to @parasite studio who send me all access details I've found out that this is some button glitch. Looks like when button is disabled it shows a "0" instead. To fix it please remove this code from /html/mod_virtuemart_search/default.php

Code: Select all
         switch ($button_pos) :
             case 'top' :
                $button = $button.'<br />';
                $output = $button.$output;
                break;

             case 'bottom' :
                $button = '<br />'.$button;
                $output = $output.$button;
                break;

             case 'right' :
                $output = $output.$button;
                break;

             case 'left' :
             default :
                $output = $button.$output;
                break;
         endswitch;
User avatar
Fresh Boarder

teitbite
Mon Feb 10, 2014 10:15 pm
Hi

Thanks for postiong this. I'm sure someone will benefit from it.
User avatar
Moderator

GK User
Wed Feb 26, 2014 8:10 pm
Having the same issue - read all the posts but cannot find the following files?

/html/mod_virtuemart_search/default.php
/html/mod_search folder (if exists)

I like the search in the search position, but I'm not using virtuemart.

Where exactly is this located?

My website - http://www.pmfsa.co.za/testing/

Thanks for your time :D
User avatar
Expert Boarder

teitbite
Thu Feb 27, 2014 9:16 pm
Hi

If there is no overide in template folder /html than create it /html/mod_search and copy file from /modules/mod_search/tmpl/default.php than perform an action mentioned in this thread.
User avatar
Moderator


cron