Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • PawerDesign Friend
    #1038478

    Hi All 🙂

    Im looking to change the the setup of search results in Ja Megafilter frontend results.

    Now it displays 3 articles in top and the preview is to small, i would like 2 articles in the top. How can i change that ?

    I would also like to make the preview bigger, so that viewers could see more of the articles. How do i do that ?

    Now it displays "stars" and "Hits". How can i remove this ?


    1. Skærmbillede-2017-05-31-kl.-15.04.46

    Best Regards

    PawWest

    kastoro Friend
    #1038856

    Hi, I’m not a developer but I try to do similar than you. You can set how many cols and rows are in the assigned menu settings ( Rows Per Page, Columns Per Page).

    I found this to remove Hits and stars. Open /plugins/jamegafilter/content/layouts/default/product-item.php and delete these lines (make a backup).

    <div class="product-reviews-summary short">
                    <div class="rating-summary">
                        {?rating}
                        <div title="{rating} out of 5" class="rating-result">
                            <span style="width:{width_rating}%"></span>
                        </div>
                        {:else}
                        <div title="0%" class="rating-result">
                            <span style="width:0%"></span>
                        </div>
                        {/rating}
                    </div>
                </div>
                <div class="product-reviews-summary short">
                    <div class="hits-summary">
                        {?hit}
                            <span class="file-downloads"><?php echo JText::_('COM_JAMEGAFILTER_HIT');?> : {hit}</span>
                        {:else}
                            <span class="file-downloads"><?php echo JText::_('COM_JAMEGAFILTER_HITS');?> : {hits}</span>
                        {/hit}
                    </div>
                </div>

    I hope it is help for you! Best regards

    PawerDesign Friend
    #1038867

    Thank you 🙂

    now im free from Rating ang Hit 🙂

    and holy c… im blind for not seeing the rows and columns – SORRY !!

    Best Regards

    PawWest

    PawerDesign Friend
    #1038876

    oh i forgot…

    Is there any way to show more text in the preview ?

    I would like my users to see more of text, so the better can decide which one to choose 🙂

    Best Regards

    PawWest

    Luna Garden Moderator
    #1039015

    Hi,

    Our developer is checking your issue, we will answer you right after we have the custom code.

    kastoro Friend
    #1039043

    It’s a good question I am courius too.
    I wrote a post yesterday I asked how I show intro text and intro image. Maybe if I will get answer it will be help for you too.
    Have a nice day

    PawerDesign Friend
    #1039066

    Thank you and you have a nice day to 🙂

    Best Regards

    PawWest

    Mo0nlight Moderator
    #1039498

    Hi.

    If you want to show more intro text.
    Edit the file :
    /plugins/jamegafilter/content/helper.php

    Look for:

                if ($key > 19) {

    around the line : 165

    Change 19 (number of words will be show) to number you want.

    PawerDesign Friend
    #1039626

    Hi Mo0nlight

    Thanks for answering 🙂

    I checked all of the Helper.php and there´s no "$key" anywhere..

    the lines around line 165 are about Ratings..

    Could it be a setting in Joomla backend, that have changed the php file, since the php file dont show anything about a "$key" ?

    If you want, i can send you a copy of the file ?

    NB im a noob, and i dont know if Joomla backend settings has an effect on php files or not 🙂

    Best Regards

    PawWest

    Mo0nlight Moderator
    #1039819

    Hi.

    The code look something like the attachment.

    If you still could not find the code.
    Please send me the file.

    Joomla setting will not have any affect to the php file.


    1. Screen-Shot-2017-06-06-at-10.47.13-AM
    PawerDesign Friend
    #1039960

    Hi Mo0nlight

    Thank you for clarifying that Joomla can’t edit php files, that makes me wiser 🙂

    I can’t find either $desc or something about getDesc..

    so i would like to send you the file, but i can’t find your mail-adress on your profile ?

    Best Regards

    PawWest

    kastoro Friend
    #1039996

    Hi all,

    I try to find what Mo0nlight wrote but I can’t. So I start search and shortly I try searh base of "…" what we see end of the text. I found line 129:

    $item->desc = !empty($baseItem->introtext) ? strip_tags(substr($baseItem->introtext,0,100)).'...' : '';

    Later I figured it out if I delete 100 I get almost perfect result (give us a full intro text). I don’t know is it a correct proceedings but it is work.

    So code looks like this

    $item->desc = !empty($baseItem->introtext) ? strip_tags(substr($baseItem->introtext,0)).'...' : '';

    If you want you can delete also the thee dots (…) but kepp the two ‘ ‘

    $item->desc = !empty($baseItem->introtext) ? strip_tags(substr($baseItem->introtext,0)).'' : '';

    You need also "Index all" before update your site for result.


    1. full-intro
    kastoro Friend
    #1039998
    This reply has been marked as private.
    PawerDesign Friend
    #1040014

    Hi kastoro

    Thank you for a useful answer, good work 🙂

    I can see if you alter the numbers you can decide how much you want to display..

    Im comfortable with 1000 for now 🙂

    Best Regards

    PawWest

    kastoro Friend
    #1040053

    Hi Pawer,

    I’m glad your problem solved. Maybe if Mo0nlight will come correct me if I told something badly. Otherwise as you told first number show the first character where start intro text, and second number the last. But I don’t know why if I set more than 200 to second number I haven’t got any results. But it isn’t interesting for me, I want full intro and I got it 🙂

    Have a nice day

Viewing 15 posts - 1 through 15 (of 15 total)

This topic contains 14 replies, has 4 voices, and was last updated by  kastoro 7 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum