vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - Download Credit System (https://vborg.vbsupport.ru/showthread.php?t=78953)

lasto 03-29-2005 01:32 PM

yeah u can alter credit for any user just by going to admincp and looking up that user -there is a new box there under the reputation which says how mucj they got.You can give or take at will.

But hack still has serious flaws to it at moment.


https://vborg.vbsupport.ru/showpost....6&postcount=18

Julie 03-29-2005 01:58 PM

Hm, it's not so important about the attachments... I was thinking of kinda using this in a RPG setting, where the credit points can be used it a shop f.ex :) But thanks for the reply! :)

tnguy3n 03-29-2005 02:18 PM

I'll release updated version of this hack later of the nite.
@ lasto: don't use space between commas and forumids, just commas.

Julie 03-29-2005 03:00 PM

Okies, I have a question... It seems that every user on my board (or at least the ones I looked at) had the same points as me (admin account). Even if I altered one user's account to have 8 points, it still displayed 4 points, which my account has (4 points)...

Any idea how to fix this? Thanks,

Edit in: Apparently only I (Superadmin) can view the credit points... The other usergroups (even other admins) can't...

Julie 03-29-2005 03:15 PM

Quote:

Originally Posted by NitroMan
has anyone else had this problem
the post count not showing up or the credits
help if u can thanks

I have the problem that only I can see them, but did you add the code in the postbit_legacy template? At first I just added it in the POSTBIT template, but that didn't work.... Added it in postbit_legacy and it worked :)

lasto 03-29-2005 03:45 PM

Quote:

Originally Posted by tnguy3n
I'll release updated version of this hack later of the nite.
@ lasto: don't use space between commas and forumids, just commas.

look forward m8 to the update and thanks

as for the forumids there was`nt any spaces as on that line all i had was

2

nothing else yet every other forum still wanted creidt to view a pic or attachment.

tbh im not really bothered about all forums have a price to download an attachment as can get round that by only allowing certain forums to be allowed to have attachments but the main problem is the jpegs and gifs
Need these to get around the problem and ill be happy.

PixelFx 03-29-2005 11:58 PM

Looks like a good hack, if you can add admincp to exclude specific files or images it from the credit / points system would be worth installing. also if you could make a phrase to change the name from credits to anything that would be cool. of if your using ucash system to have it take on the name points.

Deaths 03-30-2005 07:04 AM

I've created an addon for it to work with uCash, find it here: https://vborg.vbsupport.ru/showthread.php?t=79000

Deaths 03-30-2005 08:15 AM

Ok, this *might* work, I guess it's worth the try.

Find:
PHP Code:

// Begin Download Credit System 

BELOW, add:
PHP Code:

 $extension strtolower(file_extension($attachmentinfo['filename']));
 switch(
$extension)
 {
    case 
'gif':
    case 
'jpg':
    case 
'jpeg':
    case 
'jpe':
    case 
'png':
    case 
'bmp':
                 
        
$vboptions['credit_mode']=0;
        
$cmpt++;
                        
    break;



lasto 03-30-2005 08:26 AM

what file ??

newattachment or attachment ?

in fact will try both

BRB


All times are GMT. The time now is 04:18 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.01270 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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