vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - vBulletin Raffles (https://vborg.vbsupport.ru/showthread.php?t=265536)

nhawk 11-25-2013 08:48 PM

Quote:

Originally Posted by Xanlamin (Post 2463707)
By default it is adding the BBcodes

I got it now where if I put in a direct link it will show an image. But with a default blank entry box is when the issue arises. somewhere in your code you have it adding the BBcode I would imagine.

There is no BBcode used for the image. It's a regular <img...> HTML tag.

Adderz 02-18-2014 06:30 PM

Is there any way that it can be changed from a minimum Required posts to a minimum Posts Per Day

The problem with minimum posts is that users post like hell to reach the minimum post requirement then stop posting.

If it was set to look up the posts per day, this would encourage people to keep posting ?

Adderz 02-18-2014 06:35 PM

Quote:

Originally Posted by Adderz (Post 2482198)
Is there any way that it can be changed from a minimum Required posts to a minimum Posts Per Day

The problem with minimum posts is that users post like hell to reach the minimum post requirement then stop posting.

If it was set to look up the posts per day, this would encourage people to keep posting ?

Or even better, if you could set it to x amount of posts in the last y amount of days

nhawk 02-18-2014 06:46 PM

Quote:

Originally Posted by Adderz (Post 2482198)
Is there any way that it can be changed from a minimum Required posts to a minimum Posts Per Day

The problem with minimum posts is that users post like hell to reach the minimum post requirement then stop posting.

If it was set to look up the posts per day, this would encourage people to keep posting ?

Quote:

Originally Posted by Adderz (Post 2482201)
Or even better, if you could set it to x amount of posts in the last y amount of days

I think you missed this in the description of this add-on..

NOTE: Except for bug fixes, this mod is no longer being updated. I strongly suggest upgrading to vB 4.

todd222222 02-20-2014 05:20 PM

Hi - I have Raffles setup and they are working fine. People are able to enter and the drowning happens as planned -

but when I pull up the raffle page with all entries it takes about 20 seconds to load- we currently have one active and 3 completed raffles.

When pulling up the individual raffles the pages takes about 5 seconds to load:

http://www.dfwareamoms.com/forums/ra...do=raffle&id=5

We have a large board with over 2 million posts but running on a dedicated server and everything else on the site is fast....

Running VB V 3.8.7
Running Raffles V 1.1.2

any thoughts?

Thanks in advance.

nhawk 02-20-2014 05:44 PM

If you have a large number of entries for a raffle, the raffle must take the time to compile the list for the template. That is what is taking the time. I'd suggest not allowing people to view who has entered.

Also, to reduce the size of the table in the database, I'd delete all entries for old raffles.

Nelson58 03-01-2014 01:21 PM

I would like to have people BUY tickets for the raffle on PayPal.

Can this be done?

If so, can you tell me how?

Thanks,

Nelson

nhawk 03-05-2014 10:27 AM

Quote:

Originally Posted by Nelson58 (Post 2484440)
I would like to have people BUY tickets for the raffle on PayPal.

Can this be done?

If so, can you tell me how?


Thanks,

Nelson

Sorry, was out of town for a few days. I see you have solved the problem on my site.

Nelson58 03-09-2014 03:31 PM

Not exactly.....

I created a currency in VBCredits II named "Raffles". You go to PayPal to buy that currency. Then you should have it in your VBCredits II account.

You set your Raffle mod to accept "Raffles" instead of "Credits" as payment (some phrases need to be edited in the phrase section to replace "Raffles" with "Credits").

However- here is the problem.

I tested it a few times. The Raffle mod does not subtract the amount of the Raffle you joined from the amount you have in your account, so you can keep buying raffles indefinitely.

Yes, I want members to be able to buy as many Raffle chances as they want (revenue for the site), but I want what they buy subtracted from their account.

Can you help please?

Thanks!

Nelson

nhawk 03-09-2014 05:14 PM

Quote:

Originally Posted by Nelson58 (Post 2486041)
Not exactly.....

I created a currency in VBCredits II named "Raffles". You go to PayPal to buy that currency. Then you should have it in your VBCredits II account.

You set your Raffle mod to accept "Raffles" instead of "Credits" as payment (some phrases need to be edited in the phrase section to replace "Raffles" with "Credits").

However- here is the problem.

I tested it a few times. The Raffle mod does not subtract the amount of the Raffle you joined from the amount you have in your account, so you can keep buying raffles indefinitely.

Yes, I want members to be able to buy as many Raffle chances as they want (revenue for the site), but I want what they buy subtracted from their account.

Can you help please?

Thanks!

Nelson

Your problem is that you didn't completely set up the 'Raffles' currency.

You need to set up an 'Adjust' action for the 'Raffles' currency.

Just make it identical to the 'Credits' currency 'Adjust' action.

Nelson58 03-09-2014 10:55 PM

I looked, and cannot find an "adjust action" in VbCredits. Can you tell me where that is?

Thanks.

Nelson

Nelson58 03-09-2014 11:34 PM

Found it! It worked! Thanks a lot!!

Nelson58 03-10-2014 03:52 PM

I changed the name of the "currency" to "tickets" so as not to cause a problem with PayPal. I made the adjustment for the currency in the action screen.

I made the cost of each ticket $3 and the raffle takes 1 ticket each. It is working very nicely.
People can buy the tickets from a link on their postbit in their posts, profile, transactions page, etc., and then take a chance.

Thanks for the very nice mod!

If you ever work on this again- a suggested upgrade- allow people to specify how many tickets must be sold before the raffle is closed, so that it is the period of time specified OR the number of tickets sold, whichever is first. So that, for example, if you want to raise $600 by doing the raffle, they could specify to keep the ticket selling period open for a week or until 200 tickets are sold at $3 each.

nhawk 03-10-2014 04:14 PM

Quote:

Originally Posted by Nelson58 (Post 2486228)
I changed the name of the "currency" to "tickets" so as not to cause a problem with PayPal. I made the adjustment for the currency in the action screen.

I made the cost of each ticket $3 and the raffle takes 1 ticket each. It is working very nicely.
People can buy the tickets from a link on their postbit in their posts, profile, transactions page, etc., and then take a chance.

Thanks for the very nice mod!

If you ever work on this again- a suggested upgrade- allow people to specify how many tickets must be sold before the raffle is closed, so that it is the period of time specified OR the number of tickets sold, whichever is first. So that, for example, if you want to raise $600 by doing the raffle, they could specify to keep the ticket selling period open for a week or until 200 tickets are sold at $3 each.

I'm not sure if you're using the vB3 or vB4 version since here you post in the vB3 section and on my site, you post in the vB4 section.

The vB3 version will not be updated with new functions.

Also, I'd be VERY careful about selling tickets. It is not legal to do that in most places. Check your local laws.

CheS06 03-13-2014 01:02 PM

i installed this on my 2 forum and its worked well,

but i installed this in my one forum,same vb version, but everytime i upload the files on my file manager,then i extract it, its ok, but when i try to import the xml file at admincp > plugin & products, i got this message "Before installing, please upload all of the files that came with the Raffles addon!" even if i uploaded the files correctly..

and when i try to view the raffles.php "mysite/forum/raffles.php i got database error.

Database error in vBulletin 3.8.7:

Invalid SQL:

SELECT raffleadminperms
FROM administrator
WHERE userid = 39;

MySQL Error : Unknown column 'raffleadminperms' in 'field list'

PLS HELP :(

nhawk 03-13-2014 01:10 PM

You need to upload the 'CONTENTS' of the upload folder to your server. Not the actual upload folder.

Then try installing.

CheS06 03-13-2014 01:18 PM

yes thats whats i actually did.. actually i made this wonderful add-on working on my two other forums...

but when i try in my one ftp, even i uploaded it correctly, i keep getting that error.

"Before installing, please upload all of the files that came with the Raffles addon!" :(

CheS06 03-13-2014 01:22 PM

i check the files one by one on their desired location, and all files are there...

but when i import the xml its looks like the files are not in my forum :(

nhawk 03-13-2014 01:29 PM

Quote:

Originally Posted by CheS06 (Post 2486930)
i check the files one by one on their desired location, and all files are there...

but when i import the xml its looks like the files are not in my forum :(

Then one or more of the files is not where it belongs.

Did you rename your admincp folder to something other than admincp? If so, the contents of the admincp folder for raffles need to go into the renamed admincp.

CheS06 03-13-2014 01:33 PM

my admincp folder is still the same foldername sir..


i viewed the zip wich i upload and extracted and this is the contain files..

Code:

Archive:  upload.zip
  Length    Date  Time    Name
 --------    ----  ----    ----
        0  10-05-11 11:18  images/
        0  10-05-11 11:18  images/raffles/
    20303  03-31-11 16:12  images/raffles/default.gif
    1000  05-02-11 10:55  images/raffles/raffle.png
        0  10-05-11 11:18  includes/
        0  10-05-11 11:18  includes/cron/
    11386  10-06-11 15:27  includes/cron/raffledraw.php
      601  10-06-11 15:26  includes/functions_raffles.php
        0  10-05-11 11:18  includes/xml/
      242  04-28-11 16:29  includes/xml/bitfield_raffles.xml
      718  10-06-11 15:22  includes/xml/cpnav_raffles.xml
      876  10-04-11 18:00  includes/xml/hooks_raffles.xml
    25375  10-06-11 15:26  raffles.php
        0  10-05-11 11:18  admincp/
    30250  10-06-11 07:32  admincp/raffleadmin.php
 --------                  -------
    90751                  15 files


nhawk 03-13-2014 01:41 PM

That is where all of the files should be.

But when you get the error you're receiving, that means one or more files are not where they belong.

There's nothing more to it. I wish I could help, but to my knowledge that error is not something that has gone wrong.. ever.

CheS06 03-13-2014 01:45 PM

when i look for this url

www.mysite/forum/raffles.php

i got this database error

Code:

Database error in vBulletin 3.8.7:

Invalid SQL:

                SELECT  raffleadminperms
                FROM administrator
                WHERE userid = 39;

MySQL Error  : Unknown column 'raffleadminperms' in 'field list'
Error Number  : 1054
Request Date  : Thursday, March 13th 2014 @ 12:57:09 PM
Error Date    : Thursday, March 13th 2014 @ 12:57:09 PM
Script        : http://www.mysite.com/forum/raffles.php
Referrer      :
IP Address    : 112.198.64.12
Username      : +Boss_Bing+
Classname    : vB_Database
MySQL Version : 5.5.36-cll


but im sure the raffles.php is on my forum folder

nhawk 03-13-2014 01:47 PM

You're getting the database error because the install stops when it doesn't find all of the files and the database doesn't get created/updated.

Most likely, one or more of the other files (not raffles.php) isn't in the location it belongs in.

CheS06 03-13-2014 01:52 PM

would you help me? try to install the files inside may FTP if you dont mind..

heres my Facebook, please add me www.facebook.com/BossBing

nhawk 03-13-2014 02:07 PM

Quote:

Originally Posted by CheS06 (Post 2486938)
would you help me? try to install the files inside may FTP if you dont mind..

heres my Facebook, please add me www.facebook.com/BossBing

I don't do Facebook.

Send me a PM with your FTP info and a temporary admin username and password to your site. Make sure the temporary admin has the permissions to install add-ons.

CheS06 03-14-2014 06:49 PM

problem solved thanks nhawk.

another questions, how can i change the background color of raffle page?
and how can i place the price image preview on center of the page? its keep showing on right side of the page...

thanks, more power!

nhawk 03-14-2014 06:56 PM

The color of the page is tied directly to the style you're using for your site.

To change anything you would need to edit the raffle templates in vBulletin.

Nelson58 03-18-2014 07:49 PM

Quote:

Originally Posted by nhawk (Post 2486230)
Also, I'd be VERY careful about selling tickets. It is not legal to do that in most places. Check your local laws.

It's illegal. We scraped the mod.


All times are GMT. The time now is 01:34 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.01474 seconds
  • Memory Usage 1,819KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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