vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I am sure this is about but i cant find it (https://vborg.vbsupport.ru/showthread.php?t=39919)

freeshares1 06-16-2002 08:37 AM

I am sure this is about but i cant find it
 
I know that there are hack to PM / email on birthday's or number of posts and also reward schemes.

But i can seem to find anything that does thread starters.

What i am after doing is rewarding users that Start threads ONLY. (say 10 threads in one forum) I would want to send them a PM.

Cheers

phil :rolleyes:

Logician 06-16-2002 09:15 AM

This can be achievable by making some modifications in my Greet Users X posts hack:

First apply the hack to only newthread.php (not to newreply.php). Then find the part:

PHP Code:

greeteduserposts=$bbuserinfo[posts]+1

Before that add:

PHP Code:

  $userthreaddb=$DB_site->query_first("SELECT count(*) as threadnum FROM thread WHERE forumid=X AND postuserid=$bbuserinfo[userid]");
  
$userthreadnumber=$userthreaddb['threadnum']; 

(Replace X with your forumid)

Replace line:
PHP Code:

$greeteduserposts=$bbuserinfo[posts]+1

AS:

PHP Code:

$greeteduserposts$userthreadnumber+1

And make text editing in the 3 templates of the hack. They greet Xth posts, correct them to greet Xth thread.

This should do the trick. Please notice: I have NOT tested this modification and writing it on the fly. I believe it will work but please apply to a test board before using it in your original board if you are intended to use it.

Logician

freeshares1 06-17-2002 04:46 AM

Thanks i will give it a try later and let you know if it works.

Phil


All times are GMT. The time now is 02:36 PM.

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.00986 seconds
  • Memory Usage 1,722KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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