Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Visit sponsor for points version 1.1- Lesane store addon Details »»
Visit sponsor for points version 1.1- Lesane store addon
Version: 1.00, by GeorgeofCS GeorgeofCS is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-28-2002 Last Update: Never Installs: 27
 
No support by the author.

New Version 1.2

Added feature to restrict members from visiting sponsors once per day. Download is below with instructions on how to upgrade

This hack was request not too long ago by someone. I don't know who, but I decided to alter my original working on this so that other vb site's could use it.

Essentially this allows member to visit sponsors of your choice to earn points toward whatever your site may use points for. You can control how many hits a sponsor can have to their site, etc. It was designed to work with the Lesane store hack and credit must be given to eiSecure for alot of the back bone behind this hack. I originally designed this to work with his contest add-on hack. So that websites could sponsor contests. But after seeing a request for this type of hack I decided to finish a stand alone version. So some of the coding is from the contest hack.

This hack should install pretty simply. It has been tested and functions properly. However if you have any problems I'll be more than happy to help.

Also feel free to PM me with any ideas or suggestions. Like everything with me I still deem it as work in progress.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-08-2002, 10:05 PM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya
I hope you can figur out a way asap
ya maybe they can use their points to buy a space at the sponsors page for a certain amount of time or for a certain amount of impressions.
Reply With Quote
  #13  
Old 10-08-2002, 10:31 PM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done I've updated the coding to allow members to visit a sponsor only once per day.

I'm still working on a few more options. I'll be honest I'm still attempting to figure out how to do some of these things. I'll probably release a better updated script shortly as my members begin using it regularly.
Reply With Quote
  #14  
Old 10-08-2002, 11:28 PM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great
what's next?
Reply With Quote
  #15  
Old 10-09-2002, 12:13 AM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm working on a time requirement to viewing the sponsor before getting the points. So say the member has to stay at the sponsor for 30 seconds before getting the points, etc. I'm still taking ideas for future releases
Reply With Quote
  #16  
Old 10-09-2002, 03:29 AM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool
possible for a member to pay points to post a banner on the sponsor.php for a certain amount of time or impressions?
?
Reply With Quote
  #17  
Old 10-15-2002, 11:21 PM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed a bug in the sponsor.php file. It appeared to work fine originally, but it seemed to get the last visit of a sponsor stuck. So it's been updated and works fine now
Reply With Quote
  #18  
Old 10-19-2002, 11:55 PM
bensonfactor bensonfactor is offline
 
Join Date: May 2002
Location: Mass, USA
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting errors when attempting to visit sponsor.

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT lastvisit FROM sponsor_visit WHERE userid='17' AND sponid='1'
mysql error: Table 'benson_forums.sponsor_visit' doesn't exist

mysql error number: 1146

Date: Saturday 19th of October 2002 05:06:10 PM
Script: http://forums.bluegoop.net/sponsor.p...onsee&sponid=1
Referer: http://forums.bluegoop.net/showthrea...6&pagenumber=2
Reply With Quote
  #19  
Old 10-20-2002, 02:34 AM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm seems that the readme file along the way was replaced by an old one. There's a couple of steps missing. Give me until the morning and I'll have it fixed. Along with a few additions.
Reply With Quote
  #20  
Old 10-20-2002, 01:49 PM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I'm still making sure that the new code is working fine and trying to add a few things.
bensonfactor

do this query

PHP Code:
CREATE TABLE sponsor_visit (
  
userid int(10NOT NULL default '0',
  
sponid int(10NOT NULL default '0',
  
lastvisit int(10NOT NULL default '0'

then make a template called

error_alreadyvisited

and add

You have already visited this site today. You are allowed to visit this site once every day.

I've rewritten the code some and added some features to allow you to choose how long between visiting sponsors, etc. I'm still testing these options and I'm going to attempt to add a few more things. So it will take a little bit longer before I have the updated bits.
Reply With Quote
  #21  
Old 02-02-2003, 05:25 AM
AsedaH AsedaH is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did this ever get fixed?

just wondering
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06431 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete