Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-13-2007, 12:12 AM
The Equivocate The Equivocate is offline
 
Join Date: Sep 2004
Location: Chicago
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Is This Possible? Different referrers, different skins

I'm opening a forum that will act as the "central" forum for a bunch of different sites. As I don't own most of these other sites, we're going to split the revenue based on what sites are referring. Ideally, I'd like to have different preset referrers/domains. Then, based on where the visitor comes from, they get the skin branded with that referrer/domain.

However, this only is half the idea, because I also need a way to associate returning members/posters with where they came from. So, if Visitor comes from Affliliate A and signs up, and then a few weeks later they visit the forums from Aff. B, Aff A still gets the credit for the page views (and then the ensuing ad revenue). The ads themselves seem easy to do as each affiliate will have their own skin anyways, so just put the adcode associated with that affiliate in that specific skin.

The only question I have is how to force a skin on a user based on their referrer, and force them to keep it. That would be the easy way, but I'd also like to be able to sort members by referrers. Possibly put them in groups, but then if I have 20 different regular member groups, it's going to get annoying, especially with permission-based adjustments.

Basically I want to make sure each referring affiliate is getting the credit and getting their share of the profits based on how much traffic they're sending.
Reply With Quote
  #2  
Old 01-13-2007, 12:58 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use the styleid of the referrer maybe in their incoming links for starters maybe. Of course styles have to be selectable and that means if one is nice, people are gonna switch.

You can add a variable to the links at the referrer sites and process it in a hook too. Passing the style and referrer is easy. It's your post processing that is gonna be key.

Assuming they are gonna have to register the first time, you can grab the referrer var and process in register.php hooks to put them in a group.

I'm thinking out loud. I hope it sounds as good on paper.
Reply With Quote
  #3  
Old 01-13-2007, 11:14 PM
The Equivocate The Equivocate is offline
 
Join Date: Sep 2004
Location: Chicago
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll have to look into that.. but as I said, I wish I didn't have to have usergroups for each referrer, but that looks like the best/easiest option.

Any other ideas anyone?
Reply With Quote
  #4  
Old 03-10-2007, 12:34 AM
The Equivocate The Equivocate is offline
 
Join Date: Sep 2004
Location: Chicago
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thought I'd bump this as I'm still looking for ways to do this. Does anyone else have some ideas of what to do and how I can implement it?
Reply With Quote
  #5  
Old 03-10-2007, 01:16 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, this is possible. Do you have knowledge of PHP?
Reply With Quote
  #6  
Old 03-10-2007, 08:53 PM
The Equivocate The Equivocate is offline
 
Join Date: Sep 2004
Location: Chicago
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eh, not too much... enough to get me by when it comes to making minor modifications to my forums. I was hoping there were some previous stuff out there that could help me out with this.
Reply With Quote
  #7  
Old 03-11-2007, 02:35 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would have to catch the referrer at global_start or similar and change the styleid so it loads a different style.
Reply With Quote
  #8  
Old 03-11-2007, 07:25 PM
The Equivocate The Equivocate is offline
 
Join Date: Sep 2004
Location: Chicago
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
You would have to catch the referrer at global_start or similar and change the styleid so it loads a different style.

Okay, so this would display the skin based on where they just came from. However, what if they don't register right away? Although I guess I *could* force guests to register but that would probably harm this particular forum.

The other problem is I don't want to have to put them into specific usergroups, but again that's probably the easiest option. I'm not sure, but is it possible to force specific skins on specific usergroups?
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:56 PM.


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.04033 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete