Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2009, 09:32 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Only your first post counts in section

Although the title could mislead you, i will explain what i want.

I have a section in my forum, the Presentation one, in witch i want just the first post of any user to be valid in post counts, i.e., even if you answer someone else's thread that answer does not count, even if you start a new thread does not count also.
All that counts is your first post in that section.

Confused ? Imagine me trying to implement this, eheheheh

Well, hope someone could help me in this quest.

KK
Reply With Quote
  #2  
Old 10-03-2009, 09:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um..... why would you want to implement something like this? Perhaps there is a better way to go about your goal. Right now you are talking about a query happening after every post is made to see if the user has made any other posts in that forum. Not really a good thing. So, maybe there is a better way to achieve your goal if you tell us what it is.
Reply With Quote
  #3  
Old 10-03-2009, 09:46 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, i will try.

Wen you register in my forum, just to sections are visible, the one with the rules and a presentation one where you must present yourself before seeing the complete forum. That's the first step to it and i have made it using forum promotions, so quite simple.

Subsequently i have some sections in the forum, just visible after a certain number of posts, using Cyb - Advanced Permissions Based on Post Count hack, does trying to make the users contribute more to the forum and just not everything there for them to take.

Well, if i have the posts counting in the Presentation section, witch i must have for the first step to be accomplished, what i have are users answering others presentation just to get more posts and so the ability of seeing the all forum.

That is why i was thinking that a good way of doing it was to count just the first post in a section.

Of course, i will be more than happy if you, or someone else, can solve this in a simpler way as i tend to make things complicated.
Reply With Quote
  #4  
Old 10-06-2009, 08:20 AM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas ?
Reply With Quote
  #5  
Old 10-06-2009, 02:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you want to count post count at all in that one forum - does it serve a purpose to give them one post count in there? (In other words, why not just turn it off in that forum.)
Reply With Quote
  #6  
Old 10-06-2009, 03:16 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As i said, i think i said, the idea is to obligate them to present themselves and just after to see the rest of the sections on the forum.
Reply With Quote
  #7  
Old 10-06-2009, 03:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I understand that they are supposed to post in that forum before they see the rest of the sections. But, that doesn't answer the question of post counts. Do you need to count posts in that forum?

Also, I have no idea how that modification works that you are using. You may want to ask the developer for help setting things up how you want.
Reply With Quote
  #8  
Old 10-06-2009, 05:36 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, now i understand your question.

But if i don't count the posts in that section how do i open the rest of the forum to them after that post ? How do i sense, get, the feeling that they post there if no post count is active ?
Reply With Quote
  #9  
Old 10-06-2009, 07:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I said, I don't know that mod you are using. Do you need one post before something happens? Does the post have to be a thread? I know I have a plugin that does *something* when a user makes a new thread in a particular forum. Just turn off post counts in that forum and then put in a query to add a single post if they make that new thread:

hook location - newthread_post_complete
PHP Code:
if (in_array($foruminfo['forumid'], array(x,y,z))) { 
    
$db->query_write(write your query to add one to the post count); 

Reply With Quote
  #10  
Old 10-06-2009, 08:07 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bravo,

i will test your idea and post the results here along with the complete code...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04123 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete