vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Facades Resurrection - Run multiple unique sites with one VB database (BETA) (3.7-4) (https://vborg.vbsupport.ru/showthread.php?t=251149)

TheLastSuperman 12-01-2010 10:17 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2128116)
I'm not qualified to post this? Really? Maybe you could point me to the test I need to take before I have your blessing to post things?

Seriously... What does it say in my initial post... let me paste it here:



Nothing would make me happier than a better coder than I take over this mod and post it here for the community to enjoy. Besides the "re-usable code" I give explicit permission- nay, explicit encouragement for someone to further develop this mod.

I didn't post this for any other reason then to energize interest in development of this mod. Who knows who might come across this and get that coder's "itch" to take it and run with it.

I just don't get your anger over why this was posted- are you mad you didn't think to post it so now you're not getting credit for the 7 "marked as installed" credits? Because if you want to post it and offer your expert support in your own thread, please do, I will even post a link to it in the top post here directing people to your thread.

I've never heard the term "Script Kiddie" but I can deduce it's a derogatory name more advanced programmers give to those not so advanced... so I guess I am...



I don't know where I stack up in the scheme of things in terms of my vbulletin coding abilities- I'm a self admitted jack of all trades and master of none. Does this put me in the top 50% of coders here or the top 90%, I don't know, I don't usually get into d!ck measuring contests, frankly I know I'll lose. All I know is every week I help many people on this forum, I get lots of thank yous in posts and PMs and I know me being here has helped a large number of people use and enjoy their forums better than had I not been here- and that's all the thanks I need- although the occasional donation is appreciated.

I really have no idea about the VB Class error in question because it's a result of vBulletin 4.x code and I currently have _zero_ desire to learn or support vB4 besides the occasional porting of my own mods.

The reference to being a "Coder/Designer on vb.org" was a joke in another thread. I really don't know who decides who is a Member, Contributor, Coder, Designer, or Coder/Designer... I released a couple of BB Codes and gave some basic PHP help, then I made some graphics to help someone else and I login one day to see I've now been deemed a Coder/Designer... I found it funny at the time... Since then though I have released real mods, template edits, and the like so I guess I grew into it.

What is wrong with the quality of my releases? How have they failed to meet your superior standards?

I'm not a professional coder, I don't claim to be- I don't read journal articles on the pros and cons of new search algorithms. When I make a mod I have Google working overtime searching this site and php.net and anywhere else I can find answers. I'm sorry if you think that doesn't qualify me to release products on this site, but the ~480 installs I do have marked on legitimate mods I'm sure would disagree with you.

I guess you can't please everyone...

Well that's a known fact (pleasing everyone lol) and realize by my statement below to Alfa in terms of how I meant things following your read here. In short they are just a bunch of template edits, if your not interested in learning vB4 then why browse the 4 mod releases and take code you admitted just now to knowing and caring little about and try to convert for 3.x with a unsupported flag waving around above your head then offer support?

Quote:

Originally Posted by Alfa1 (Post 2128122)
If BirdOPrey wouldn't have posted it here, it would not be around. He checked with the staff and with the author. Where is the problem?

Would it be better if a developer with higher qualifications takes this over and support it? Sure.
Are you nominating yourself Superman?

Alfa,

Not saying some of the things he is implying and simply pointing out the obvious on a few key subjects many people here overlook daily... why install something re-released by someone with less experience than the original developer? It's silly to do things like that, it's too often I run across contradictory statements by others that make me question their capabilities, motives, and other... It's bad enough we have had others blatantly release mods without permission, now we have those with less ability with the original author re-releasing, all I'm saying is that should not be allowed and it's asking for trouble. Is it a rule? No, should it be? IMO yes, will that change? Perhaps or perhaps not that is not my call however as I have seen with many here before me including staff it's also perfectly fine to speak your mind within reason so I'm not going to come back here and post again and derail the thread in the least but I will always maintain my position of not touching a free modification released in this manner and I urge others to do the same, be careful what you install from who and do your homework before installing a modification.

I'm certainly not nominating myself as I have a business to run and three children to make laugh on a daily basis - my support is on my own time and terms, not at the discretion of others who assume that by speaking my mind I'm some sort of righteous guru in the least and that by such assumptions they also assume I should defend myself, well I have but to what point? It's so simple, I before becoming "In the know" simply knew it was not my place to release something I was not 100% familiar with supported or not, I've always been fortunate to realize my current skill level and only offer what I know, others simply p*ss in the wind and hope to stay dry while counting money or installs, if it had anything to do with 480+ installs proving anything contradictory to my statement as noted above then we could continue with this but sadly I must now exit this conversation before it becomes a thread blown completely out of proportion with two who don't understand why I say these things ;).

Edit: I realize a lot of things. I see the post below but it still falls back to imo, I can speak my mind and still don't agree with it being released this way whether Anders was happy or not, you decided to poke and prod, I initially only poked. I understand you don't get me at all, that's been evident from your ramblings about a measurement contest above and 480+ installs. - Just to be clear, I want others to have what they "want" and no doubt there will be many who use this, comment in the thread just like Alfa but that was never my point, it's how you released it, permission or not that simply does not sit well with me.

BirdOPrey5 12-01-2010 10:59 PM

Quote:

Originally Posted by TheLastSuperman (Post 2128142)
Well that's a known fact (pleasing everyone lol) and realize by my statement below to Alfa in terms of how I meant things following your read here. In short they are just a bunch of template edits, if your not interested in learning vB4 then why browse the 4 mod releases and take code you admitted just now to knowing and caring little about and try to convert for 3.x with a unsupported flag waving around above your head then offer support?

"Jjust" template edits? You realize it's more efficient to make a template edit than a mod, right? You understand that directly editing a template brings better performance than making a PHP plugin which in turn injects HTML or evaluates yet another template, right? So all things equal a template edit to do X is better than a mod to do X... yeah it might not be easier for the admin but it's better for performance... so maybe you will rethink the expression "just a template edit." Also I did recently release my first "real" mod (AKA product installable mod) and will be releasing another one shortly.

I didn't take the VB4 code for this mod, this was a 3.8 mod and the 4.0 mod improves upon it and in doing so it loses 3.x compatibility. I was just curious if the mod would work on 3.8... I don't ever even browse the 4.0 forums usually, but I saw it specifically linked from a thread I was active in on vb.com so it caught my interest. I'm very interested in seeing this mod further developed... if it means someone develops it on 4.x then so be it- maybe someone will come along and downgrade it to 3,x later on. I'm just covering all my bases.

Support flag waving? So you're mad I'm offering support even though it's unsupported? I don't get you at all... I haven't even offered any real support- I just answer questions I think I may know the answer to, no matter who the thread is by or what the mod is marked.

The bottom line is if I didn't release this mod no one would have and a lot of people who otherwise would have had access to it would have missed out. ALSO the original author of this mod was HAPPY to see it re-released. To be quite frank there are forces involved here you don't understand, but you shouldn't need to understand them- you should see this and be happy.

Instead you make the "good" the enemy of the "perfect."

BirdOPrey5 12-01-2010 11:11 PM

Listen I don't want to argue... I use my own forum for arguing.. I see you said you want out of this conversation... fine.. let's just agree to disagree on this... You don't think I should have released this mod, I do, and I did, so it's done. Lets go on our merry ways...

TheLastSuperman 12-01-2010 11:38 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2128158)
Listen I don't want to argue... I use my own forum for arguing.. I see you said you want out of this conversation... fine.. let's just agree to disagree on this... You don't think I should have released this mod, I do, and I did, so it's done. Lets go on our merry ways...

Agreed, not my style to derail a thread and no sense saying we won't cross paths in the future on a subject we both agree on :D, we simply don't see eye to eye on this subject as you said ;). Enjoy the rest of your night, I'm off to give the kids a bath myself Mr. Bubble anyone?

Anatole 03-05-2011 07:27 AM

Any news regarding the further development?

BirdOPrey5 03-05-2011 11:36 AM

Quote:

Originally Posted by Anatole (Post 2169763)
Any news regarding the further development?

It's unlikely there will be any further development of this mod, especially for 3.8. The 4.x version is here.

Amenadiel 03-06-2011 12:49 PM

I'm using my own version of Facades in 4 forums. I haven't seen this mod's code, instead I use just three plugins.

One for global_start (overruling config.php data depending on the host I'm being visite from)
One for style fetch (forcing a style depending on the host, redirecting if someone tries to visit a thread or forum that belongs to another host)
One for cache_preordered_forums (hiding subforums not belonging to current domain).

You can see the result at

http://www.chw.net/foro/
http://www.mobilecloseup.com/foro/
http://www.niubie.com/foro/
http://www.fayerwayer.com/foro/


That's for the basic stuff. I've had to perform little tweaks to add some extra functionality, like forcing the same avatar and signature on every domain (NFS mounting of those folders), disabling vbseo for domains other than the main (I just couldn't make it work and I'm not installing a nulled to try otherwise) and tinkering with the sitemap plugin to exclude different subforums depending of the host from which it's being ran.

EddyMaxx 03-06-2011 01:09 PM

Thanks for posting this Joe. You're the man!!!

BirdOPrey5 03-06-2011 03:27 PM

Quote:

Originally Posted by Amenadiel (Post 2170146)
I'm using my own version of Facades in 4 forums. I haven't seen this mod's code, instead I use just three plugins.

One for global_start (overruling config.php data depending on the host I'm being visite from)
One for style fetch (forcing a style depending on the host, redirecting if someone tries to visit a thread or forum that belongs to another host)
One for cache_preordered_forums (hiding subforums not belonging to current domain).

You can see the result at
....

If I read what you're saying, you mention different hosts... does this mean each domain has it's own database? If so that's very different then what this mod does. There is a lot of demand for stuff like this, you should consider releasing your code either way- you'd be a hero to many. :D

Quote:

Originally Posted by EddyMaxx (Post 2170159)
Thanks for posting this Joe. You're the man!!!

No prob but once again I didn't make nor do I support this mod. All praise goes to the original developer.

Amenadiel 03-07-2011 07:50 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2170218)
If I read what you're saying, you mention different hosts... does this mean each domain has it's own database? If so that's very different then what this mod does. There is a lot of demand for stuff like this, you should consider releasing your code either way- you'd be a hero to many. :D

Just one DB, the config.php file is the same, but I overwrite some settings in a global_start plugin (bb title, main site adress) and yes, I have 4 licences (as if 3.8 licences were worth something these days). Also, the 4 of them update from the same svn repo. This is just in order to keep every mod syncd.

The problem with releasing this as a product is I lack experience to do that. Most of the code is in the plugins and some conditionals on the templates. In those plugins my 4 hosts are hard coded.

The style for each host and the redirection if you're in the wrong domain (plugin in style_fetch hook)

Code:

$domain=$_SERVER['HTTP_HOST'];
$uri=$_SERVER['REQUEST_URI'];
$arrayfw=array(114, 5,10,224,52,51,115);
$arraychw=array(13,3,4,152,8,9,11,36,20,7,15,199,221);
$arraynb=array(6,120,381,81,237);
$arraymcu=array(273, 270,272,274,275,295, 321,317);

if  (in_array($forumid, $arrayfw) || in_array($foruminfo['parentid'], $arrayfw))  {
 if ($domain!='www.fayerwayer.com') header("Location: http://www.chw.net$uri",TRUE,301);
 } else if (in_array($forumid, $arraynb) || in_array($foruminfo['parentid'],$arraynb))  {
 if ($domain!='www.niubie.com') header("Location: http://www.niubie.com$uri",TRUE,301);
 } else if ( in_array($forumid, $arraychw) || in_array($foruminfo['parentid'],$arraychw)) {
  if ($domain!='www.chw.net') header("Location: http://www.chw.net$uri",TRUE,301);
 } else if (  in_array($forumid, $arraymcu) || in_array($foruminfo['parentid'],$arraymcu)) )  {
 if ($domain!='www.mobilecloseup.com')  header("Location: http://www.mobilecloseup.com$uri",TRUE,301);
 }


switch ($_SERVER['HTTP_HOST']) {
  case 'www.fayerwayer.com':
    $styleid=87;
    break;
  case 'www.niubie.com':
    $styleid=89;
    break;
  case 'www.chw.net':
    $styleid=81;
    break;
  case 'www.mobilecloseup.com':
    $styleid=88;
    break;
}

Which forum is shown in each host: a plugin in the cache_ordered_forums hook:

Code:

if (THIS_SCRIPT=='index')  {

switch ($_SERVER['HTTP_HOST']) {
  case 'www.fayerwayer.com':
$excludeforumid=array(6,10,13,3,4,152,8,9,11,36,20,7,15,199,221,263,259,248,242,273, 270,272,274,275,295, 321);
  break;
       
  case 'www.niubie.com':
        $excludeforumid=array(5,114,10,13,3,4,152,8,9,11,36,20,7,15,199,221,224,273, 270,272,274,275,295, 321);
  break;

  case 'www.chw.net':
        $excludeforumid=array(263,248,242,273, 274,275, 321);
  break;

  case 'www.mobilecloseup.com':       
  $excludeforumid=array(5,6,114,10,13,3,4,152,8,9,11,36,20,7,15,199,221,224,263,259,248,242);
  break;
 }
foreach ($excludeforumid AS $forumid) 
 {
$vbulletin->forumcache["$forumid"]['displayorder'] = 0;
}

}


and a change in config to display the right title and url (global_start hook)

Code:

switch ($_SERVER['HTTP_HOST']) {
  case 'www.fayerwayer.com':
$vbulletin->options['homeurl']='http://www.fayerwayer.com/';
$vbulletin->options['hometitle']='FayerWayer';
$vbulletin->options['bburl']='http://www.fayerwayer.com/foro';
$vbulletin->options['bbtitle']='FW Foros';
    break;
  case 'www.niubie.com':
$vbulletin->options['homeurl']='http://www.niubie.com/';
$vbulletin->options['hometitle']='Niubie';
$vbulletin->options['bburl']='http://www.niubie.com/foro';
$vbulletin->options['bbtitle']='Niubie Foros';
    break;
  case 'www.mobilecloseup.com':
  $vbulletin->options['homeurl']='http://www.wayerless.com/';
$vbulletin->options['hometitle']='Wayerless';
$vbulletin->options['bburl']='http://www.mobilecloseup.com/foro';
$vbulletin->options['bbtitle']='MobileCloseUp Foros';
    break;
 
  }

(I don't need to change anything for chw.net since it uses the default config.php values)
And that's pretty much everything.


All times are GMT. The time now is 05:31 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.01452 seconds
  • Memory Usage 1,803KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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