remove "views" and "date added" from knowledgebase
Moderator: mkoch227
remove "views" and "date added" from knowledgebase
Hesk Version 2.2
Can the "VIEWS" and "DATE ADDED" be removed from the knowledgebase? I don't need those for my application.
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
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 
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


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
Re: remove "views" and "date added" from knowledgebase
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>
<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
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 
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


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
Re: remove "views" and "date added" from knowledgebase
!
Last edited by Lurking on Sun Feb 06, 2011 4:42 am, edited 1 time in total.
Re: remove "views" and "date added" from knowledgebase
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 
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


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
Re: remove "views" and "date added" from knowledgebase
Yes, the customer side (when enabled) still shows these items.
Re: remove "views" and "date added" from knowledgebase
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.
Re: remove "views" and "date added" from knowledgebase
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.
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 
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


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
Re: remove "views" and "date added" from knowledgebase
Worked perfect, thanks!