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 


Wential 04-25-2005 11:54 AM

The bad news with my add-on is it doesn't stop people from viewing the Gallery files after the credits fall to zero. Can anyone improve it to do that?

spiceman 04-26-2005 02:22 AM

Quote:

Originally Posted by Wential
The bad news with my add-on is it doesn't stop people from viewing the Gallery files after the credits fall to zero. Can anyone improve it to do that?

Is there a way of making it so that users can only view certain forums if they have a certain amount of credit...cause thats what i want to use it for...

Skyline_GT 04-26-2005 11:11 PM

Quote:

Originally Posted by Skyline_GT
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

anyone has any thoughts?

Wential 04-26-2005 11:36 PM

Sorry, no clue. This hack works great on a NON-hacked board, but other hacks could be your problem.

MixMakers 05-05-2005 03:18 PM

Great hack! I was wondering if it'd be possible to give the points the attatchment costs to the uploader of the file. So if 10 people download a 10pt attatchment, the uploader would receive 100 pts. I think that would be a great addition.

shiva 05-07-2005 12:34 AM

err. I have a big problem. No settings are showing in the options, just the download credit header and save.

Maybe it's a bug with phrases, have to be reset or something, but double and triple checked everything. Anyway I can manually set it untill someone helps on this?

Lionel 05-07-2005 12:52 AM

Quote:

Originally Posted by MixMakers
Great hack! I was wondering if it'd be possible to give the points the attatchment costs to the uploader of the file. So if 10 people download a 10pt attatchment, the uploader would receive 100 pts. I think that would be a great addition.

I posted a way to do that in the other thread where you originally requested it.

shiva 05-07-2005 12:57 AM

I had to remove it. Serves me right really, the author has disappeared, but it does work in that it totally restricts everyone from downloading anything at least. :)

In the meanwhile, the phrases are still there, so if someone can tell me how to get the settings in my admincp options to actually appear, appreicate it.

lebanon 05-11-2005 01:40 PM

i have installed this along with death addon , and when i go to vb options
i only see
save and cancel button with nothing else !
what possibly could be wrong ?

CrazyLady 05-11-2005 02:25 PM

A suggestion? Can we somehow add this?

When a member downloads a file and spends the 25 or 50 points to view the file the points spent go to the member who posted the file.

So if I spend 50 points to view a file "member A" uploads he gains the 50 points I spent.

thoughts?

VBUsers 05-11-2005 04:15 PM

Quote:

Originally Posted by lebanon
i have installed this along with death addon , and when i go to vb options
i only see
save and cancel button with nothing else !
what possibly could be wrong ?

are you sure you did the right edits the the admincp/index ? check it as well as your template edits.

shiva 05-12-2005 03:01 AM

I get the same thing, I thing maybe it's not VB 3.07 I am using, as the text file is wrong in one of the instructions for a template edit. I've redid it 3 times, and get the same problem. Doesn't help there's two installation files as well.
Anyway, I gave up and removed it. (Thank goodness for backups) but still have the phrases there.

Don't you mean admincp/user.php, and not index.php? There's nothing I see for that file. Wish the author will show up and answer some questions, this is vital to my sites health, as not being able to limit downloads by user group is one of those "must fix" things in VB

lebanon 05-12-2005 11:09 AM

Quote:

Originally Posted by lowandloudinc
are you sure you did the right edits the the admincp/index ? check it as well as your template edits.

I must agree with shiva as i see /user.php edits, i did suppose there is some for index , when i edited the user.php i read the code and ofcourse it was related to its right place.
If there is an index.php edit as i supposed then u probably missed it ?
If not then i missed something else which why am asking here ...

thesatman 06-04-2005 03:24 PM

I've just installed this great hack but i have 1 small problem, if you have no credits and click the attachment link i receive the error screen for no credits... thats OK

BUT if you right click the attachment and click "save target as" It allows you to save the attachment to your PC!! even with no credits!!!

What i'd like to do is edit the postbit_attachment template so if the user as no credits the attachment link is replaced with "You have insufficient credits" I'm sure this ca be done using the If & Else tags in the postbit_attachment template but not sure how to do it :(

Any help please ?

Cheers
Chris.

bryan09 06-10-2005 08:28 AM

Quote:

Originally Posted by Deaths
I've created this addon for the hack:
[Addon]Download Credit System with uCash

Enjoy :)

Anywat to change the

Total Upload: 3541 KB
Total Download: 76 KB

From KB to MB?

Rover416 06-13-2005 07:06 PM

Hi.

I installed this hack and i set it to give members 5 credits for each upload.

The only thing is it is giving amounts,one user uploaded a attachment and it gave them 16 credits instead of 5.

Anyone know were i went wrong. :confused:

Thanks

bryan09 06-16-2005 05:15 PM

Quote:

Originally Posted by bryan09
Anyway to change the

Total Upload: 3541 KB
Total Download: 76 KB

From KB to MB?

Upz!

Skyline_GT 06-21-2005 04:48 AM

are there gonna be any updates?

Skyline_GT 06-21-2005 07:05 AM

what you need to do so it will give new users 10 points for a start?

ushkand 06-24-2005 05:09 AM

What am I doing wrong? I did all the modifications, ran the installer but I don't see any options in admincp.

Skyline_GT 06-24-2005 09:30 AM

Quote:

Originally Posted by ushkand
What am I doing wrong? I did all the modifications, ran the installer but I don't see any options in admincp.

the query that you ran has some problems... that's why it doesn't show.. just go to your phpmyadmin and fix it there...

ushkand 06-24-2005 03:13 PM

Quote:

Originally Posted by Skyline_GT
the query that you ran has some problems... that's why it doesn't show.. just go to your phpmyadmin and fix it there...

Thanks. For some reason my settings columns are not in the same order and hence had to manually change the values. But its working now. Thanks again.

Adam21 07-07-2005 03:59 PM

Ran into the following errors when editing the postbit_legacy template.after i click "save",this comes out
************************************************** ********
The following error occurred when attempting to evaluate this template:

Quote:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/myforum/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 201

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
************************************************** ********

So,i did a check on the "/includes/adminfunctions_template.php",this is what is put in the file

This is on line 3096
Code:

eval('$devnull = "' . $template . '";');
This is on line 201
Code:

UPDATE " . TABLE_PREFIX . "style
After i ignore,and go ahead and save this template,i tried to upload a attachment.All i see is the words in red "Need 5 credits to download" .Did not see user's own credits,posts to dates and others.however,i still can view my own attachment.
Can someone who have successfully uploaded this hack,or anyone with this problem before or just about anyone,can help me solve this problem please?

bryan09 07-14-2005 05:37 AM

If I want to uninstall this script, what are the proper ways to do so?

csidlernet 07-20-2005 09:13 AM

thanks. exactly what i've been looking for!

johnmmichael 07-28-2005 12:23 AM

I installed the hack is showing ,everything ok but do Ineed to put tags or something like that ?

bryan09 08-01-2005 05:21 PM

If I want to uninstall this script, what are the proper ways to do so?

Xalibur 08-05-2005 10:30 AM

anyone done a port for this to 3.5 yet ?

xtreme-mobile 08-05-2005 05:30 PM

haveing small probelm here

if i download an attachment ot create a thread etc its awarding or taking credits away from all my members not just me, any ideas how to fix this lol

regards

dean

xtreme-mobile 08-05-2005 05:34 PM

also it still allows you to download even though you have no credits


All times are GMT. The time now is 11:42 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.01313 seconds
  • Memory Usage 1,824KB
  • 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
  • (11)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
  • (40)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