Multiplying the no. of topics/posts x 2 -- possible?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
SimboSmith
Registered User
Posts: 22
Joined: Fri Jul 06, 2007 7:36 pm

Multiplying the no. of topics/posts x 2 -- possible?

Post by SimboSmith » Sun Jun 22, 2008 4:26 pm

i've got the same problem as most people who start out -- attracting visitors to an empty board. I've tried all the usual things, like talking to myself for a week, but business is still slow.

so now i want to artificially inflate the number of topics and posts on main index, to make it look a little bit busier.
i don't want to go messing around with the database or anything like that -- i was hoping i could just amend the template a little bit. and then when business picks up, i can change it back to how it was in the first place.

so instead of this...

Code: Select all

<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
is there a way of multiplying {L_TOPICS} by two? just with a simple sum, or maybe by adding some php?

any help appreciated!

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50811
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by stevemaury » Sun Jun 22, 2008 8:19 pm

It all comes from the database. The only way to do it with files would be to hardcode it, and then it wouldn't increment.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69353
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by KevC » Sun Jun 22, 2008 8:23 pm

And as soon as they open the forums they'll see you have nothing like the number of topics in the stats. It's a false economy. Get some mates to sign up and post some replies and check out the long topic in general discussion on getting new members.

http://www.phpbb.com/community/viewtopi ... 6&t=362219
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by MartectX » Sun Jun 22, 2008 9:51 pm

OPEN index.php

FIND

Code: Select all

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts	= $config['num_posts'];
$total_topics	= $config['num_topics'];
$total_users	= $config['num_users'];
REPLACE WITH

Code: Select all

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts	= 2 * $config['num_posts'];
$total_topics	= 2 * $config['num_topics'];
$total_users	= 2 * $config['num_users'];

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17059
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by DavidIQ » Sun Jun 22, 2008 10:01 pm

I've never gone and signed up for a forum just because their user count or post count is high :roll:

I only sign up if it's a topic that interests me or that I'm involved with. If your forum deals with a boring or uninteresting topic I seriously doubt increasing your counts is going to change the volume of traffic.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

SimboSmith
Registered User
Posts: 22
Joined: Fri Jul 06, 2007 7:36 pm

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by SimboSmith » Mon Jun 23, 2008 7:52 pm

i found an easy way to do...
just change

Code: Select all

{forumrow.TOPICS}
to

Code: Select all

<script type="text/javascript">document.write ( {forumrow.TOPICS} * 2 );</script>

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by MartectX » Mon Jun 23, 2008 10:50 pm

You'll be in big trouble when someone turns off browser scripts and notices your trick. Won't make a good impression. :?

User avatar
jimdunn
Registered User
Posts: 1570
Joined: Tue Mar 25, 2008 11:49 am
Location: Australia

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by jimdunn » Mon Jun 23, 2008 11:11 pm

The real trouble, IMHO, is that what you are basically doing is misrepresenting your forum's content.

There are any number of ways that people might notice this, and if they do, they will conclude either that your forum doesn't work properly, or that it is deliberately misleading. Neither of those conclusions will leave your forum in a particularly good light.

As has been said before, it would be a better idea to channel all this ingenuity into attempts to generate some genuine quality content, (again IMHO.)

As has also been said, you're unlikely to get people to sign up because your forum says it has 30 topics rather than 15. People usually sign up to a forum if they are genuinely interested in the content they see there.

danielbutler
Registered User
Posts: 21
Joined: Tue Jun 03, 2008 1:44 pm

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by danielbutler » Tue Aug 19, 2008 3:07 pm

MartectX wrote:OPEN index.php

FIND

Code: Select all

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts	= $config['num_posts'];
$total_topics	= $config['num_topics'];
$total_users	= $config['num_users'];
REPLACE WITH

Code: Select all

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts	= 2 * $config['num_posts'];
$total_topics	= 2 * $config['num_topics'];
$total_users	= 2 * $config['num_users'];
It increase total post count
Can any one explain me how can I increase topics count in a forum under category :? hope you got it :idea:

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69353
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by KevC » Tue Aug 19, 2008 3:47 pm

But as soon as someone opens a forum and sees that you don't actually have that many topics it'll look stupid.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17059
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by DavidIQ » Tue Aug 19, 2008 3:55 pm

I'd be upset...
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

itguy
Registered User
Posts: 120
Joined: Thu Jul 03, 2008 2:29 pm
Location: Stevenage, Herts, UK.

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by itguy » Tue Aug 19, 2008 4:03 pm

I can see why he is doing this, as some people (not me) wonder why so little posts, so little members, can't be that interesting.

But I also agree with what's been posted. So, create 4-5 extra accounts and post from them and make the place look a little busier. I have done this before and it seems to work. But that was just to get things started...

danielbutler
Registered User
Posts: 21
Joined: Tue Jun 03, 2008 1:44 pm

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by danielbutler » Wed Aug 20, 2008 7:18 am

Kevin Clark wrote:But as soon as someone opens a forum and sees that you don't actually have that many topics it'll look stupid.
I know that But I want to know How to do this :?: Can any one help me

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by MartectX » Wed Aug 20, 2008 7:47 am

OPEN includes/functions_display.php

FIND

Code: Select all

			'TOPICS'				=> $row['forum_topics'],
REPLACE WITH

Code: Select all

			'TOPICS'				=> 2 * $row['forum_topics'],

danielbutler
Registered User
Posts: 21
Joined: Tue Jun 03, 2008 1:44 pm

Re: Multiplying the no. of topics/posts x 2 -- possible?

Post by danielbutler » Wed Aug 20, 2008 10:44 am

MartectX wrote:OPEN includes/functions_display.php

FIND

Code: Select all

			'TOPICS'				=> $row['forum_topics'],
REPLACE WITH

Code: Select all

			'TOPICS'				=> 2 * $row['forum_topics'],


:D Thanks mate its working IF I want to increase topics only in a specific forum under category subforum
how its done reply soon ;)

Locked

Return to “[3.0.x] Support Forum”