Posts Change to Views?
mistix 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Posts Change to Views?
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Posts Change to Views?
You could edit the number of views for each thread with phpMyAdmin: thread_views in table esselbach_st_forumsthreads
You could edit the number of views for each thread with phpMyAdmin: thread_views in table esselbach_st_forumsthreads
1 Re: Posts Change to Views?
mistix
OP
0
From: -
From: -
Posts Change to Views?
If i wanted to change it to a certain number, how would i do it?
If i wanted to change it to a certain number, how would i do it?
1 Re: Posts Change to Views?
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Posts Change to Views?
Open template forum_boardtitle and add after:
the following:
Then replace "Posts" with "Views" in templates forum_overview_header
Open template forum_boardtitle and add after:
<?php
global $insert;
the following:
$views_count = 0;
$query = DBQuery("SELECT thread_views FROM esselbach_st_forumsthreads WHERE thread_forum = '$insert[forum_id]'");
while(list($views) = mysql_fetch_row($query))
{
$views_count = $views_count + $views;
}
$insert[forum_posts] = $views_count;
Then replace "Posts" with "Views" in templates forum_overview_header
1 Re: Posts Change to Views?
mistix
OP
0
From: -
From: -
Posts Change to Views?
I want to change the forums from posts to views on the main front, what do i need to edit?
I want to change the forums from posts to views on the main front, what do i need to edit?
1 Re: Posts Change to Views?
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Posts Change to Views?
Other => Websites in cadmin
What would you like to do?
How can I change the email for submit news and all the other contenet?
Other => Websites in cadmin
Also, where would the post counting be kept? In what .php?
What would you like to do?
1 Re: Posts Change to Views?
mistix
OP
0
From: -
From: -
Posts Change to Views?
How can I change the email for submit news and all the other contenet?
Also, where would the post counting be kept? In what .php?
How can I change the email for submit news and all the other contenet?
Also, where would the post counting be kept? In what .php?
1 Re: Posts Change to Views?
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Posts Change to Views?
It should be possible with a code modification. However, this will cause some higher CPU load after the script need to count all views for all topics in the forum.
It should be possible with a code modification. However, this will cause some higher CPU load after the script need to count all views for all topics in the forum.
In the forums, when you look at the main directory, you can see posts on the right, would it be possible to change this to the views of all the forums, instead of the total amount of posts ?