Page 1 of 1
remove "views" and "date added" from knowledgebase
Posted: Sat Dec 04, 2010 6:46 am
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.
Re: remove "views" and "date added" from knowledgebase
Posted: Sat Dec 04, 2010 7:08 pm
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>
Re: remove "views" and "date added" from knowledgebase
Posted: Sun Dec 05, 2010 2:56 am
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>
Re: remove "views" and "date added" from knowledgebase
Posted: Sun Dec 05, 2010 5:53 pm
by Klemen
Can you post a link to your article with the code removed?
Re: remove "views" and "date added" from knowledgebase
Posted: Mon Dec 06, 2010 3:41 am
by Lurking
!
Re: remove "views" and "date added" from knowledgebase
Posted: Mon Dec 06, 2010 4:47 pm
by Klemen
The instructions I gave you should remove views and date added from the CUSTOMER side only - did you check that?
Re: remove "views" and "date added" from knowledgebase
Posted: Tue Dec 07, 2010 2:24 am
by Lurking
Yes, the customer side (when enabled) still shows these items.
Re: remove "views" and "date added" from knowledgebase
Posted: Tue Dec 07, 2010 2:41 am
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
Re: remove "views" and "date added" from knowledgebase
Posted: Tue Dec 07, 2010 8:09 pm
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>
Re: remove "views" and "date added" from knowledgebase
Posted: Thu Dec 09, 2010 2:10 am
by Lurking
Worked perfect, thanks!