Username:
Password:
 Log me on automatically each visit
 
Aeroion.Ru
Форумы сервера Aeroion.Ru
Welcome

Aeroion.Ru Forum Index
  » Технические форумы
   » Поддержка и моды для phpBB2
    » Мод Points per download (File attachment Mod with Points system)
   скачивание файлов за пойнты
printer-friendly view
AuthorМод Points per download (File attachment Mod with Points system)
suende

Участник


Joined: 14 Nov 2008
Posts: 5
Last Visited: Thu 27 Aug, 2009 12:53
Кредиты: 48
Reputation: 0
Age: 29
Zodiac: Aries Dog

hi sergey. I want to set a point limit to reach the attachments like 150 point. İf you don't have 150 point you cant reach any attachments at my site. You have to collect 150 point to start to download attachments.

I have installed your mod an it will be this mod's add-on. I'll give you an example. Its a file like xx.rar and its download amount is 50 point. If you have 50 point you could download the attachment file. But I wanted that if user have 50 point he couldn't start to download this attachment because I have set an general amount for start to download like 150 point. If you haven't got 150 point you won't start the download any attachment first you have to collect and earn 150 point then start to download any attachment. I hope I have explained correctly my issue. Confused
Back to topOffline View user's profile
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Hi, suende.
I have understood your issue. Try thus.
Code:
#
#--- [OPEN] -------
#
download.php

#
#--- [FIND] -------
#
    if ($userdata['user_points'] < $attachment['fileprice'])

#
#--- [BEFORE, ADD] -------
#
    if ($userdata['user_points'] < $attach_config['price_file_default'])
    {
        $message = $lang['Sorry_auth_view_attach'] . '.<br /><br />' . sprintf($lang['You_points'], $userdata['user_points'], $board_config['points_name']);
        $message .= '.<br /><br />' . sprintf($lang['Download_point_minimum'], $board_config['points_name']) . ' - ' . $attach_config['price_file_default'];
        message_die(GENERAL_MESSAGE, $message);
    }

#--- [OPEN] -------
#
language/lang_english/lang_main_attach.php

#
#--- [FIND] -------
#
?>

#
#--- [BEFORE, ADD] -------
#
$lang['Download_point_minimum'] = 'Minimum quantity of %s for download of files';
 

Once you have done those:
Go to Administration Panel -> Attachments -> Management -> Attachment Options and assign "Points for download of files".

_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
suende

Участник


Joined: 14 Nov 2008
Posts: 5
Last Visited: Thu 27 Aug, 2009 12:53
Кредиты: 48
Reputation: 0
Age: 29
Zodiac: Aries Dog

price_file_default

sergey, I can't explain my addon to you correctly. My users can't download anything if they don't have 150 point. If you have 149 point you won't start any attach files. If the file price is 10 point you can't download it because you have got 149 point and you have to earn 1 point first. And after 1 point earn you could download this attachment and lose 10 point of your total point.

I have set 5 point at all attachments and my users can change the file prices at their attachment upload screen like 10-50 point. My users could change the points. If I have set 150 point like this all the attachments will be 150 point first. I don't want this 150 point is the minimum point to start to download the attachments.


I have said that before but I want to repeat it again. You want to download a file and it's cost is 10 point. But you don't download it because i set a 150 point for start to download any files. If you have 151 point you can download the file. But after download the file your point will decrease(down) to the 141 point. If you want to download other file like 15 point you can't download any attachment file again because you have to reach 150 point first Smile. I hope I have explained correctly my issue at this time.
Back to topOffline View user's profile
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Версия мода 1.0.1
Добавлено:
- включение/выключение снятия пойнтов с пользователя при скачивании файлов;
- установка общего минимального количества пойнтов для скачивания файлов;

Файл обновления находится в каталоге contrib.

MOD is updated to version 1.0.1
Added:
- lock/unlock of decrease of points for a user at downloading files;
- setup of general minimum amount of a points for start to downloading files;

The file of update is at the directory contrib.

_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
Wertos Gender:Male

Участник


Joined: 26 Feb 2009
Posts: 6
Last Visited: Sat 11 Jun, 2011 18:55
Кредиты: 64
Reputation: 0
Age: 33
Zodiac: Libra Horse

Тут как я понял, уже готовые файлы ? А нет ли описания инсталяции в attachment mod ? Ну т.е.
find... after add ? Дело в том что у меня torrentpier и соответственно простой пеерезаливкой файлов ну никак не обойтись Sad Points Mod я переделал кое как ! Хотелось бы и это поставить Smile
Back to topOffline View user's profile
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Я не делал инструкцию к пропатчиванию файлов attachment mod'а, во-первых откровенно лень было, во-вторых инструкция получилась бы слишком громоздкой и сложной. Тема разбухла бы от тупых вопросов, ой, а где я накосячил . Сравните оригинальные файлы мода с отредактированными в какой-нибудь проге вида WinMerge, сразу увидите, какие строки надо добавлять или редактировать.

_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
Wertos Gender:Male

Участник


Joined: 26 Feb 2009
Posts: 6
Last Visited: Sat 11 Jun, 2011 18:55
Кредиты: 64
Reputation: 0
Age: 33
Zodiac: Libra Horse

Sergey, тут дело в другом... attache mod в torrentpier основательно переделан. Может есть другая возможность ээээ... "посмотреть" инструкцию, дабы компенсировать "лень" ? Wink
Back to topOffline View user's profile
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Ну с torrentpier ничем не могу помочь. Единственно, могу повторить: берём оригинальные файлы attachment mod, сравниваем с отредактированными в WinMerge или TotalCommander или в чём-то другом сравнивающем, и добавляем нужные строки.

_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
Wertos Gender:Male

Участник


Joined: 26 Feb 2009
Posts: 6
Last Visited: Sat 11 Jun, 2011 18:55
Кредиты: 64
Reputation: 0
Age: 33
Zodiac: Libra Horse

Sergey, неосилил.... с uacp.php вообще засада Sad
Back to topOffline View user's profile
suende

Участник


Joined: 14 Nov 2008
Posts: 5
Last Visited: Thu 27 Aug, 2009 12:53
Кредиты: 48
Reputation: 0
Age: 29
Zodiac: Aries Dog

Мод Points per download (File attachment Mod with Points system)

hi sergey i have installed the old one of this mod ..and my users set the points for files that whatever they want like 5 to 1000 point ..but i want to set a maximum point limit for files ..like 10 ...my users can't change this limit like 10 ..they won't set the files 11..they can set 10 or 9 but not 11 ...

how could i edit my files for this modification..it is so important for me ..Because my users set whatever they want to set like 1000 ..i have to editall the files like this it's so boring Sad

i will send your old ''points per download '' mod ..which files will be change and how ?

if u send the new (edit) files for modification i will be so happy.. thanks for all your help ..


http://tinyurl.com/opogat
Back to topOffline View user's profile
suende

Участник


Joined: 14 Nov 2008
Posts: 5
Last Visited: Thu 27 Aug, 2009 12:53
Кредиты: 48
Reputation: 0
Age: 29
Zodiac: Aries Dog

thanks for reply sergey . i have sent the message at the forum too

http://forum.aeroion.ru/s.....php?p=1676


Sergey, i want this modification like ..my users change the points whatever they want like 1000 point..i want to set the maximum amount like 10 points ..the users cant set the point 11 -1000 .the limit will be 10 .

But the moderators,admins ..can change and set the points whatever they want ..like 50-100 point but normal users cant set amounts like what ever they want..

I Want set the maximum amount limit for users like 10
Back to topOffline View user's profile
Sergey Gender:Male


Местный босс - администратор


Joined: 06 Jan 2005
Location: Оренбург
Posts: 1127
Last Visited: Today at 01:43
Кредиты: 3594
Reputation: 47
Age: 41
Zodiac: Aquarius Pig

Unfortunately, due to time constraints, I can't be engaged in this problem. I may come back to development when time allows me too.

_________________
Профессионал - это тот же дилетант, только знающий где ошибется. Генератор db_update.php для phpBB2 с некоторыми удобствами.
Как ставить моды. Что такое [SQL] и с чем его едят | Как правильно задавать вопросы и получать адекватные ответы | Правила форума
Бесплатная техподдержка только на форуме! Не надо стучаться в аську, слать емайлы, пытаться писать в приват. Спасибо за понимание.
Please do not PM, ICQ or email me for support help - you won't get any reply. If you have a question or issue, post it in the appropriate forum/topic. Thanks!
Back to topOffline View user's profile Skype Name
suende

Участник


Joined: 14 Nov 2008
Posts: 5
Last Visited: Thu 27 Aug, 2009 12:53
Кредиты: 48
Reputation: 0
Age: 29
Zodiac: Aries Dog

ok sergey i will be waiting for this modification (edit),it's important for me .i will bookmark this topic and also watch too ..
Back to topOffline View user's profile
Display posts from previous:   

Summary Rating For >> Мод Points per download (File attachment Mod with Points system)
Average Rating: 5.00 :: Min Rating: 5 :: Max Rating: 5 :: Number of Ratings: 3
Choose Rating: 1   2   3   4   5  


Similar Topics
Topic Author Forum Replies Last Post
No new posts Мод Points System add-on: Edit User's...
изменение количества пойнтов админист...
Sergey Поддержка и моды для phpBB2 0 Tue 08 Nov, 2005 15:46 View latest post
Sergey
No new posts Возможно ли объединить моды Points sy... smart2008 Поддержка и моды для phpBB2 1 Wed 20 Aug, 2008 10:46 View latest post
Sergey
No new posts Мод Points System ver 1.0.0
исправление глюков при редактировании...
Sergey Поддержка и моды для phpBB2 1 Tue 31 May, 2005 20:50 View latest post
Sergey
No new posts Мод Advanced Points System Russian 2.1.4
Система пойнтов (мод оплаты за сообще...
Sergey Поддержка и моды для phpBB2 65 Wed 16 Dec, 2009 14:51 View latest post
Begemot
No new posts File Attachment Mod - проблемы Техно червь Поддержка и моды для phpBB2 40 Tue 02 Aug, 2011 14:33 View latest post
Sergey




All times are UTC + 3 Hours
All times are synchronized with the forum server time
Users browsing this topic:
Registered Users: None

Jump to:   
printer-friendly view
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum