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-30-2005 08:36 AM

EDIT

Ok am back - Its looking good so far - done a few test posts with 1 preview pic and 1 small test rar

The rar wont download if got no credit which is fine but the pic loads fine :)
will do a few more tests to see if its 100% but so far its looking good.

EDIT (again)

Ok can confirm that the code that Death posted does show image files while making people pay a credit to download the attached rar.

add the code in attachment.php

Deaths 03-30-2005 09:13 AM

If you add it to newattachment.php it wont give credits for images, if you add it to attachment.php it wont ask credits for the images :)

Deaths 03-30-2005 09:14 AM

Quote:

Originally Posted by lasto
EDIT

Ok am back - Its looking good so far - done a few test posts with 1 preview pic and 1 small test rar

The rar wont download if got no credit which is fine but the pic loads fine :)
will do a few more tests to see if its 100% but so far its looking good.

EDIT (again)

Ok can confirm that the code that Death posted does show image files while making people pay a credit to download the attached rar.

add the code in attachment.php

Good to hear!
Thanks for testing :).

tnguy3n 03-30-2005 01:50 PM

Sorry, i still ain't able to complete integration with Ushop/Ucash nor pet system or Paypay due to my massive amount of skool work + works. However, I release this version v.1.1 of the hack (as update) to patch some minor bug in previous version. I didn't update instruction(no time), but you can reverse previous version of the hack, then install new one, v.1.1.

fixes in version 1.1.
- system works in assigned forums
- user download their own attachment for no costs
- fix upload stats

TO FIX BUG in inaccuracy of upload stats (multiple attachments), it's recommended to set max allowed upload attachment to 1.


Features will be included in next release v.1.2 (working on it on my localhost now)
- image files will be free to view
- credit system applied to certain file extensions
- Ucash/Ushop integration
- vbpet integration
- paypay integration


v.1.2 expected to be released this weekend. stay tuned.

and thanks Deaths + lasto for great inputs + suggestions. :up:

Deaths 03-30-2005 01:55 PM

If you wish, you may use my uCash integration code (can be found in my addon thread), and the 'Dont show image' (can be found in this thread) :).

You can edit my 'Dont show image' code to apply to other attachment types aswell, just add a new case line ;)

tnguy3n 03-30-2005 02:00 PM

thanks, I might use your uCash integration. for images, i used if statement to check if it's in "credit" array, return false if not. :)

Deaths 03-30-2005 02:01 PM

Thats posible aswell :).

If you don't have any time, just send me a PM, I'll code the addons for you.

tnguy3n 03-30-2005 02:06 PM

thanks, I'll send you the project if I ain't be able to finish it this weekend. I'm pretty busy, skool + work already take away my whole day.

Deaths 03-30-2005 02:17 PM

Ok mate, sounds good.

lasto 03-30-2005 02:20 PM

looking good and cheers


All times are GMT. The time now is 09:15 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.01120 seconds
  • Memory Usage 1,736KB
  • 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)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