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)

Skyline_GT 04-18-2005 09:45 PM

Quote:

Originally Posted by MarcoH64
You must be running a hack that has modified your setting table then.

I wonde what can I do?

Marco van Herwaarden 04-19-2005 03:31 AM

What MySQL version are you running?

Skyline_GT 04-19-2005 03:51 AM

4.0.23-standard

Marco van Herwaarden 04-19-2005 03:57 AM

Could you post which fields are in your setting table?

Skyline_GT 04-19-2005 05:06 AM

settingid settinggroupid title varname value description optioncode displayorder grouptitle defaultvalue advanced volatile

if you mean fields in the setting table.

Marco van Herwaarden 04-19-2005 06:00 AM

Yes this is what i mean.

The first 3 fields are NOT standard vB fields. They have been added by you or some hack that you have installed, and are the cause of this problem. I am afraid that this modification to the table will be causing you a lot of problems. Anyway you can figure out where these fields come from, and what they are used for?

Skyline_GT 04-20-2005 07:02 AM

arg.... this is not good.. I wonder is it possible to make it work for my table?

Skyline_GT 04-20-2005 07:06 AM

also, they have nothing there.
the title colume are all blank and the settinggroupid are all 0 and the settingid starts from 3154 to 3984

Wential 04-24-2005 04:36 PM

Great job Tnguy3n! I just installed this and it's exactly what I needed to encourage posting. Big favor though? Is there any way to integrate this with PhotoPost to subtract credits when someone views a file and adds credits when they upload? I would willingly compensate you for this add-on, just PM me the details.

Wential 04-24-2005 09:28 PM

I got the credit system to remove credits for PhotoPost showphoto. I'll show you what I did and you guys can perfect it. My version only removes 1 credit per photo/file view.

In ShowPhoto.php find

// end pages/nav ###

Add the following after it (on mine it's line 948)
PHP Code:

// Begin credit download reduction
{
                                
$DB_site->query_first("UPDATE vb3_user
                                        SET credits = credits - 1
                                        WHERE userid = 
$bbuserinfo[userid]
                                "
);
                        }
// End credit download reduction 



All times are GMT. The time now is 01:09 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.01083 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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