vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Faking Thread and Post Counts... (https://vborg.vbsupport.ru/showthread.php?t=44521)

pelicanparts 10-11-2002 08:50 PM

Faking Thread and Post Counts...
 
I searched the archives, and couldn't find anything on this.

I just started a new section of my board, and I would like to fake the thread and post counts on the forum display pages. I would like the forum to look bigger at first glance than it really is. Desciptive, yes, but it may help a little not to scare people off.

Is there an easy way to set thread and post counts for each forum to a specific number?

Thanks in advance!

-Wayne

N!ck 10-11-2002 09:38 PM

imo, just multiply the variable in index.php.

pelicanparts 10-11-2002 10:13 PM

I thought about that, but I couldn't find the individual thread / post count displays in index.php?

-Wayne

N!ck 10-11-2002 11:21 PM

in index.php, find:

PHP Code:

        eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 

replace with:

PHP Code:

      $forum[replycount]=$forum[replycount]*2.5;
      
$forum[threadcount]=$forum[threadcount]*2.5;

        eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 

Replace 2.5 with whatever factor you want to multiply the thread/reply counts by.

pelicanparts 10-12-2002 12:04 AM

Hey, I replied to the email, but it didn't show up here? Anyways, thanks that worked. For those who want to know, I did this:

// WAYNES CODE TO MAKE BMW SITE LOOK BIGGER
if (preg_match("/BMW/", $forum[title]))
{
$forum[replycount]=$forum[replycount]*9+1112;
$forum[threadcount]=$forum[threadcount]*4+112;
}
// END WAYNES CODE

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";");

This will increase the count for all forums with BMW in the title...

Thanks!

-Wayne

N!ck 10-12-2002 12:44 AM

You could also do:

// WAYNES CODE TO MAKE BMW SITE LOOK BIGGER
if ($forum[forumid]=="xx")
{
$forum[replycount]=$forum[replycount]*9+1112;
$forum[threadcount]=$forum[threadcount]*4+112;
}
// END WAYNES CODE

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";");

pelicanparts 10-12-2002 01:29 AM

Right, I thought of that too, but I have about 15 BMW forums that I want to 'fake' the post counts on. Here is the finished product for those who care:

http://forums.pelicanparts.com

I have about 11,000 members and 500,000 posts on the Porsche side, but I'm looking to give the impression that we have more BMW posts than are really there. You know, if you see a lame forum, you immediately leave...

Thanks again,

Wayne

FleaBag 10-13-2002 05:39 PM

Or just edit the templates and take our the variables and hard code it. :)


All times are GMT. The time now is 01:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01153 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete