vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Gah no one can answer this >.> (https://vborg.vbsupport.ru/showthread.php?t=194475)

m4x3vo 10-25-2008 01:30 AM

Gah no one can answer this >.>
 
Basically I run a forum that is mostly for downloading PSD's. PSD's are photoshop documents. The photoshop art is seperated by rank, each rank has its own forum. Im looking to know how I would do the following. I will need a mysql query that will check in one of the tables for if a user has made a topic in either of the forums. It will then count all the topics made by the user in the rank forums, i will need to specify forumid's in the query too... Each topic will represent a PSD since users are only allowed to submit 1 psd per topic. When they submit the topic, it will be added to something in the postbit, which I would want called "PSD's submitted:". In order to access the better ranked forums, they will have to have submitted a certain amount of psds, and so on. So when a user who has 0 psds tries to access the semi-professional artwork section filled with psd's, if they have lets say 10 psds submitted in the lower forums, they can access it. If not, they get an error. How and where would I go about forming a query to count the topics made by a user in the forum id's i specify?, and from there how can I get the topics made displayed in the postbit?

Thanks,
M4x

p.s. ive tried everything and cant seem to find a solution.

--------------- Added [DATE]1224947264[/DATE] at [TIME]1224947264[/TIME] ---------------

dangggg.

Marco van Herwaarden 10-28-2008 01:59 PM

What is your experience? Do you know how to code in PHP? Any MySQL experience?


All times are GMT. The time now is 10:07 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.00994 seconds
  • Memory Usage 1,707KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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