Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Skin Displayed Based on REFERER Details »»
Skin Displayed Based on REFERER
Version: 1.00, by Sketch Sketch is offline
Developer Last Online: May 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-19-2003 Last Update: Never Installs: 10
Is in Beta Stage  
No support by the author.

I run a support forum for a company that is now 2 companies merged. In order to provide customer peace of mind and offer a sense of stability and familiarity, we wanted implement a familiar skin for each set of customers. As of version 1 if you visit through remote sites and are redirected then you will not be able to change the style. However if you log straight in you can. This is a bug I need to fix as I want all users to be able to select other skins should they want.


DEMO LINKS:
Default site: http://www.hostingtechs.com
http://forum.hostareus.com
http://forums.barefooting.com

I am not offering support for this, but I am entertaining suggestions, comments and feedback.

This can be used with no credit (I don't believe in tooting my horn), but if you enhance it I'd like to know so that I can consider using an enhanced vesion for myself.

Cheers, people. Now play nice.

Aaron Brazell

Show Your Support

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

Comments
  #2  
Old 01-20-2003, 08:42 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, we love this hack
Reply With Quote
  #3  
Old 01-20-2003, 11:10 PM
Da`Nacho Da`Nacho is offline
 
Join Date: Mar 2002
Location: Fort Worth, Texas
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This could DEFINATELY be useful!
Reply With Quote
  #4  
Old 01-21-2003, 01:43 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You Sketch !

Clicking Installed!

Destee
Reply With Quote
  #5  
Old 01-21-2003, 01:55 AM
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if i fire up my browser and go to http://forum.hostareus.com/forumdisplay.php?&forumid=6 ?
Or this one http://forums.barefooting.com/forumd...php?&forumid=6 ?
Reply With Quote
  #6  
Old 01-21-2003, 02:00 AM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well unfortunately we got some DNS wires crossed right now that we're trying to sort. I'll address that when we get back online with our forum....
Reply With Quote
  #7  
Old 01-21-2003, 01:09 PM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm, yeah, you've got a point. Unless I wanted to do a redirect of all pages or unless mod_rewrite was installed at every redirect location. That's way too many if's.

I guess the next release is going to putt all the detection in global.php like I had originally intended. I was just going to do a:
PHP Code:
if ( stristr $_SERVER['HTTP_REFERER'], 'forums.barefooting.com' ) ) {

    
$bbuserinfo['styleid'] = 3;

}

if ( 
stristr $_SERVER['HTTP_REFERER'], 'forum.hostareus.com' ) ) {

    
$bbuserinfo['styleid'] = 1;


but that didn't seem to work effectivley. (It would not detect the style on the first load, but refresh and it would....)

So anyways, thanks for the tip...

Aaron
Reply With Quote
  #8  
Old 01-21-2003, 05:45 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea buddy

- miSt
Reply With Quote
  #9  
Old 01-23-2003, 01:34 PM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow fantastic idea!
Reply With Quote
  #10  
Old 01-25-2003, 04:35 AM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Completely altered code. Now there is only one bit of code to paste into ./global.php

Much easier. Much more reliable.

Cheers.
Aaron
Reply With Quote
Reply


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:45 AM.


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.05495 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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