This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Posts Change to Views?


avatar
mistix 0
From: -
Posts Change to Views?

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 ?

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?
avatar
Administrator
1342
From: Austria
Posts Change to Views?

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?
avatar
OP 0
From: -
Posts Change to Views?

If i wanted to change it to a certain number, how would i do it?
1 Re: Posts Change to Views?
avatar
Administrator
1342
From: Austria
Posts Change to Views?

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?
avatar
OP 0
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?
1 Re: Posts Change to Views?
avatar
Administrator
1342
From: Austria
Posts Change to Views?

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?
avatar
OP 0
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?
1 Re: Posts Change to Views?
avatar
Administrator
1342
From: 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.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.