Changing the Filter Tab
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
As far as I can see the only issue is I am not getting the red text
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
As far as I can see the only issue is I am not getting the red text
Re: Changing the Filter Tab
Just to clarify.
In the tableview the "Filter" is replaced by "Search" in red.
In the detailview the links to the other tables dissapear ?
Do you have a Town-dv.js file?
In the tableview the "Filter" is replaced by "Search" in red.
In the detailview the links to the other tables dissapear ?
Do you have a Town-dv.js file?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
I want "Filter" to say "Search" on all tables. The links are now visible in all the tables but none are red. I re-named my Town-dv.js file because I thought the code in the footers-extra file was meant to replace it.
Re: Changing the Filter Tab
correct, if you want to have it for all tables use
in the footer-extras.php
Code: Select all
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search'));
</script>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Changing the Filter Tab
sorry it was there something miss in code
please try use this
please try use this
Code: Select all
<?php
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'cust_view.php'){
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</b></font>'));
</script>
<?php
}
?>
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
The links are all working but the text doesn't change colour.
Re: Changing the Filter Tab
can you post the code you have now.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
<?php
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'town.php'){
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</b></font>'));
</script>
<?php
}
?>
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'town.php'){
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</b></font>'));
</script>
<?php
}
?>
Re: Changing the Filter Tab
last code work and there are color
<?php
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'cust_view.php'){
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</b></font>'));
</script>
<?php
}
?>
<?php
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'cust_view.php'){
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</b></font>'));
</script>
<?php
}
?>
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Sorry, the links still say Filter, they don't say Search, I missed that when I saw they showed up.
Re: Changing the Filter Tab
Can you just try in the footer-extras.php
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</font></b>'));
</script>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</font></b>'));
</script>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Here is what I get.
- Attachments
-
- no-colour.jpg (34.13 KiB) Viewed 4236 times
Re: Changing the Filter Tab
what is the code you use?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Is that the code in your footers-extra file? I am not seeing any difference between yours and mine except for the PHP
Re: Changing the Filter Tab
please send me your code
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
YES YES That is working, I took out the PHP. You have helped my so much Sir, thank-you.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
I am so thankful for the help on this issue, thanks very much