remove "views" and "date added" from knowledgebase

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

remove "views" and "date added" from knowledgebase

Post by Lurking »

Hesk Version 2.2

Can the "VIEWS" and "DATE ADDED" be removed from the knowledgebase? I don't need those for my application.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove "views" and "date added" from knowledgebase

Post by Klemen »

Delete this from the knowledgebase.php

Code: Select all

    <tr>
    <td><?php echo $hesklang['dta']; ?>: </td>
    <td><?php echo hesk_date($article['dt']); ?></td>
    </tr>
    <tr>
    <td><?php echo $hesklang['views']; ?>: </td>
    <td><?php echo (isset($_GET['rated']) ? $article['views'] : $article['views']+1); ?></td>
    </tr>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

Re: remove "views" and "date added" from knowledgebase

Post by Lurking »

Hi, I deleted the code from knowledgebase.php, but views and dates still show (no change at all). Is there an associated language line I need to remove also ? Thanks, Larry


<tr>
<td><?php echo $hesklang['dta']; ?>: </td>
<td><?php echo hesk_date($article['dt']); ?></td>
</tr>
<tr>
<td><?php echo $hesklang['views']; ?>: </td>
<td><?php echo (isset($_GET['rated']) ? $article['views'] : $article['views']+1); ?></td>
</tr>
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove "views" and "date added" from knowledgebase

Post by Klemen »

Can you post a link to your article with the code removed?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

Re: remove "views" and "date added" from knowledgebase

Post by Lurking »

!
Last edited by Lurking on Sun Feb 06, 2011 4:42 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove "views" and "date added" from knowledgebase

Post by Klemen »

The instructions I gave you should remove views and date added from the CUSTOMER side only - did you check that?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

Re: remove "views" and "date added" from knowledgebase

Post by Lurking »

Yes, the customer side (when enabled) still shows these items.
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

Re: remove "views" and "date added" from knowledgebase

Post by Lurking »

NOTE: If I delete the knowledgebase.php page from the support/ folder on server, nothing happens (like there is a duplicate page, but I cannot find one)?? The page is found in the /support/knowledgebase.php as described earlier. Thanks, Larry
Last edited by Lurking on Wed Feb 01, 2012 6:03 am, edited 3 times in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove "views" and "date added" from knowledgebase

Post by Klemen »

This is why it's important to say EXACTLY what and where you want things done. The instructions I gave you will remove view and date from the knowledgebase, but you are looking to remove them from the main (index) page.

So, delete these lines from the index.php file.

Code: Select all

<td style="text-align:right"><i><?php echo $hesklang['views']; ?></i></td> 

Code: Select all

<td valign="top" style="text-align:right" width="200">'.$article['views'].'</td>

Code: Select all

<td style="text-align:right"><i><?php echo $hesklang['dta']; ?></i></td>

Code: Select all

<td valign="top" style="text-align:right" width="200">'.hesk_date($article['dt']).'</td>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lurking
Posts: 32
Joined: Sun Nov 28, 2010 4:57 am

Re: remove "views" and "date added" from knowledgebase

Post by Lurking »

Worked perfect, thanks!
Post Reply