PDA

View Full Version : Importing Variables Made Easy


Caerydd
01-10-2007, 10:59 PM
Well, I wish I could make it easier ;) I've tried doing the custom.php method to get welcomeheaders and quick account switch to work in the drupal environment. Maybe my code was funky, but all I did was get a blank white page at my site, or the page loading more slowly, or bugger all.

However, looking around at the threads of these hacks, getting them to work in those poor, pathetic CMS substitutions is extremely easy. They input these variables into a box in the admin panel, and the CMS calls them.


So, my suggestion: You just put the variable you want into a list in ?q=admin/ section, or in vbulletin options, and 'ta da', its called.

I was wondering if such a feature/module/plugin would be useful and or possible? If drupal is so superior, then it should be easy to implement, at least for defaultangy. If not that, then a sample copy of custom.php

Matafleur
01-11-2007, 12:16 PM
Hi, I'm assuming that Alleria is your vBDrupal site, so correct me if I'm wrong. :)

To get a similar effect to your welcome header, you wouldn't need to use custom.php at all, you only need to create a new block with the appropriate title and text, and then place it in the "header" section in the defaultangy theme. It does look like you are already doing this, however.

As for quick account switch, I'm not too sure what you mean by that. Maybe if you elaborate a little I might be able to assist you.

Caerydd
01-11-2007, 07:59 PM
Yeah, I'm not talking about replicating welcome headers. I know drupal on its own pretty well, and use a number of php visibility snippets, hacks and modules.

I'm sure I could figure out custom.php eventually, but I thought making this easy would be a good selling point for vbdrupal.

http://www.vbulletin.org/forum/showthread.php?t=132741 <-- quick account switch. My users love it. It shows up on drupal pages in the navbar, but linked accounts are not shown. It isn't really a big deal, but I need to get it working some how.

(there is a method suggested in that thread wherein a url is changed in the product, but I never got a straight answer from him, merely a 'you need to import the variable $switchbit in order for it to work in cms software'

That is easy for some of the systems others use, because all they have to do is input them in a box in the admin panel. My specific suggestion is we add this as a feature, to make integrating simple hacks easier.