View Full Version : End-User Options - AJAX as User Option
sabret00the
11-26-2006, 10:00 PM
I needed this and put in a request, weeks later i was like "nobody cares" and bumped it, Psionic Vision kindly reminded me that i was an Advanced Coder and told me i should do it myself. I went to sleep, woke up, had ten minutes and viola i filled my own request. Moral of the story? <insert moral later>.
OK SO WHAT DOES THIS DO? it's a nifty little do-dad that makes AJAX a user option.
WHY WOULD ANYONE WANT THAT? some of my users have problems with AJAX, i dunno why, i dunno where but i'm the admin so i have to care.
WHY NOT JUST DISABLE AJAX? i done that, it was boring, not to the extent i'm going to go out and adopt a demon child named AJAX, nurture it into my own little cuddly bubble of happy happy joy joy and integrate it into all my hacks from now on but yahhhhhh, i kinda liked the features in which AJAX has brought to me, not to mention the whole AJAX cron thing that Code Monkey made.
SO THAT'S IT? yup
CAN WE SEE A SCREEN SHOT? yes, unfortunately however, you'll have to get an American to do it as firearms are illegal in this country and monitors are expensive, not to mention i'm not really sure how i'd cope with having put a huge hole in my only monitor.
DID YOU KNOW YOU NAME DROPPED TWICE IN THIS RELEASE? yes, i'm a huge fan of The Game, i wanna be just like him.
SO WE'RE DONE? Absolutely.
EVEN THOUGH YOU KNOW THAT NO ONE WILL CARE FOR THIS? yup
OK BYE THEN? ttfn.
sabret00the
11-27-2006, 09:01 AM
reserved.
abramelin
11-27-2006, 09:22 AM
you are the man! this is very good. did you tested on 3.6.4?
sabret00the
11-27-2006, 09:25 AM
it works on 3.6.1 - 3.6.4 flawlessly.
abramelin
11-27-2006, 09:47 AM
i think this must be default in the new versions of vbulletin. thanks for the hack. installed.
Masiello
11-27-2006, 12:30 PM
Installed, thank you.
Masiello
11-27-2006, 12:53 PM
Using IE7, vB version 3.6.7, no default style: Browser Crash sometimes after savind editing message.
Feature: Enabled from User options
Smoothie
11-27-2006, 01:10 PM
Using IE7, vB version 3.6.7, no default style: Browser Crash sometimes after savind editing message.
Feature: Enabled from User optionsDid I miss something? When did vB version 3.6.7 come out?
da420
11-27-2006, 03:05 PM
I assume he means 3.6.4...... the 7 key is right above the 4 key so that sounds to me what he meant.... I will have to check this out, thanks sabret00the!
da420
11-27-2006, 06:23 PM
or he meant 3.5.7?
That could be too....
sabret00the
11-27-2006, 06:34 PM
Using IE7, vB version 3.6.7, no default style: Browser Crash sometimes after savind editing message.
Feature: Enabled from User options
make sure that in your admincp => vBulletin Options => General Settings => Disable AJAX Features is set to enabled by default.
that aside, if IE7 on your pc doesn't like the vBulletin AJAX by default then that's why you would've installed this. sadly i don't have IE7 to be able to test. you can try settings your admincp => vBulletin Options => General Settings => Disable AJAX Features to 'Disable Problematic AJAX Features'.
Masiello
11-27-2006, 07:03 PM
Yes I mean 3.6.4, the 7 key is above the number 4 key, bad digits :)
Okay sabret00the, done and it now seems to be works fine!
P.S. dont be crash anymore, just after installation
Great Hack!
sabret00the
11-27-2006, 07:51 PM
Yes I mean 3.6.4, the 7 key is above the number 4 key, bad digits :)
Okay sabret00the, done and it now seems to be works fine!
P.S. dont be crash anymore, just after installation
Great Hack!
glad it's all working :)
akanevsky
11-27-2006, 08:35 PM
Bleh. Couldn't you make a real database field? Custom fields are for private use only.
Masiello
11-27-2006, 08:43 PM
Bleh. Couldn't you make a real database field? Custom fields are for private use only.
Hello, what's the real problem for the hack for that?
sabret00the
11-27-2006, 08:44 PM
Bleh. Couldn't you make a real database field? Custom fields are for private use only.
Considered it, decided against it. table alterations on such a scale for such a small mod seems overtly pointless to me.
akanevsky
11-27-2006, 08:56 PM
Hello, what's the real problem for the hack for that?
They require setting up and altering the code, which might confuse novice users.
akanevsky
11-27-2006, 08:59 PM
They require setting up and altering the code, which might confuse novice users.
For your information, creating a custom field creates an extra column in the profile field table. Therefore, the result is the same except the field name is not static.
sabret00the
11-27-2006, 09:09 PM
For your information, creating a custom field creates an extra column in the profile field table. Therefore, the result is the same except the field name is not static.
indeed, however i'm sure there are a million ways in which this could've been done. i simply done what i felt was the most graceful way of achieving the task. feel free to release your own version though, we compare methods over a cup of tea at which point we'll both realise sharing less than ten lines worth of code really doesn't require scrutinisation of successful methods to achieve simple tasks. if users get confused over adding profile fields they really shouldn't be here in the first place.
akanevsky
11-27-2006, 09:27 PM
indeed, however i'm sure there are a million ways in which this could've been done. i simply done what i felt was the most graceful way of achieving the task. feel free to release your own version though, we compare methods over a cup of tea at which point we'll both realise sharing less than ten lines worth of code really doesn't require scrutinisation of successful methods to achieve simple tasks. if users get confused over adding profile fields they really shouldn't be here in the first place.
No, it's ok, not that important. Just my own preference, but your solution is good too. :)
Hornstar
11-28-2006, 06:48 AM
yeah something like this should be vb default, it will be useful for those members who do have problems. thanks.
Masiello
11-28-2006, 03:18 PM
Thanks for yours comment
yoyoyoyo
12-06-2006, 02:00 PM
Thanks sabret00the - I wish you would release more hacks just so I can read your info posts- very funny. great hack, also.
This seems to be a great idea. I love giving peeps as many options as possible to make their stay more enjoyable. So this is the right direction.
But I can't seem to find anywhere to administer this mod.
Your directions say:
Options:Yes
No
Default: No
Display Order: 25
Field Required: No
Field Editable by User: Yes
Private Field: Yes
Field Searchable On Members List: No
Show on Members List: No
I really have no idea what all that means. Is there somewhere in the admincp for setting this?
I have installed but I don't see any new settings in the usercp for AJAX.
What am I missing?
Antivirus
01-13-2007, 10:45 PM
Nice work Sabretooth.
But I can't seem to find anywhere to administer this mod. Is there somewhere in the admincp for setting this? What am I missing?
In addition to importing the product xml, you also have to manually create the custom user profile field within your AdminCP (as stated in the install instructions which Sabretooth included in the zip file)...
Go to your AdminCP => User Profile Fields => Add New User Profile Field, and enter the details in the instructions. If your custom field ends up having an id other than 'field28', just change the field# in your xml to match. :)
In addition to importing the product xml, you also have to manually create the custom user profile field within your AdminCP (as stated in the install instructions which Sabretooth included in the zip file)...
Go to your AdminCP => User Profile Fields => Add New User Profile Field, and enter the details in the instructions. If your custom field ends up having an id other than 'field28', just change the field# in your xml to match. :)
Thank you for your reply Antivirus :)
What kind of what field type do I use?
Single-line text box?
multiple-line text box?
single-selection radio button?
Thanks again!
Antivirus
01-14-2007, 01:20 PM
use Single-Selection Radio Buttons
the_ace
09-12-2009, 05:02 PM
Thanks for this mod. You're a life saver!
Oh, this works fine with VB 3.8.3 as well :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.