vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post Quality Points System! [megahack] (https://vborg.vbsupport.ru/showthread.php?t=48991)

007 02-17-2003 06:36 AM

Great thanks! I will install this tomorrow morning :) Is there a max number of points you can get or does it keep going?

I plan to use this with THIS :)

Should be pretty sweet.

:banana:

N9ne 02-17-2003 07:50 AM

Quote:

Originally posted by squawell
nice hack...

but i have a problem....

if quote someone's post and the post text over the setting

it will count the point...how to make it only count own post even

u quote someone's post......

any idea?Thankz

I'm aware of this, i'm looking for a way to fix it.

Dean C 02-17-2003 03:58 PM

Sounds good n9ne :)

- miSt

N9ne 02-17-2003 08:09 PM

Would people be interested in an addon for this hack to, alongside the posts column in the memberlist, be a quality points column?

ethics 02-18-2003 02:28 AM

N9ne,

Can this be integrated in to Lesane's Store point system? Don't mean to be an ass and rain on your great system, but just curious. :)

Great job btw. :)

N9ne 02-18-2003 09:34 AM

I'm sure it can, so you'd like it so there isn't separate points for quality, but just they get added on to their store points? If so, no problemo...

ethics 02-18-2003 01:43 PM

Quote:

Originally posted by N9ne
I'm sure it can, so you'd like it so there isn't separate points for quality, but just they get added on to their store points? If so, no problemo...
Yes yes. :)

I love the concept of quality posts. I run political forum, so quality is much more important than quantity. But to have the quality rules for the store would be awesome.

Thanks again!

N9ne 02-18-2003 03:08 PM

Unfortunately, I don't have enough time to create the integration with the store hack today, as i'm leaving tomorrow early morning, on a one week trip to Germany. It's quite simple to integrate it though, I will be able to release the integration once I get back in one week.

If you can't wait that long and know your way around some of the files and you have already installed this hack,

Replace every instance of qualitypoints to storep.
- Delete the qualitypoints field created in the database.

Really, all you should need to do is re-do the steps in newreply and newthread.php but with storep written instead of qualitypoints.

This is not tested as I don't have the store installed, and I'm just going off the top of my head with this, but it should work.

Dan_UPC 02-25-2003 05:04 AM

If you dont want quoted text to be counted towards the post length when awarding points then do the following...

In the install file replace all occurences of

Code:

$message
with

Code:

preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $message)
That should do the trick.

MartynJ 02-25-2003 06:04 PM

Um, I have a problem. If I load up member.php, I get "Unexpected T_ELSE at line 499." and the script dies.

Here's the code it's talking about:

PHP Code:

// Allow titles if Posts are ok OR JoinDate is ok
           
if ( ($bbuserinfo[posts] >= $ctPosts) or ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) 
           {
              
$ctShowTitle 1;
           }
           }
        } else {
// Allow titles if Posts AND Joindate is ok
           
if ( ($bbuserinfo[posts] >= $ctPosts) and ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) {
              
$ctShowTitle 1;
           }
        }
     } 

It's that } else { in the middle that's doing it. I wouldn't be surprised if I've made an error somewhere, this hack has an awful lot of manual file changes to be made. Though I really want this to work, it seems great.


EDIT: I'm an ass, I haven't even modified any templates yet. I'll let you know if I'm still having this problem after that.

2nd EDIT: Now all the templates are in place I'm still getting that error. I get the feeling maybe that the if/elseif above it was closed, and this leaves an else on it's own with no if to support it?


All times are GMT. The time now is 02:47 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.01133 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete