My question is more theoretical, because I am not sure what is wrong. Here is my goal:
I have a password protected forum. I have a script that runs once a week and it is a simple statement:
mysqli_query($con,"UPDATE vb_forum SET password=$password WHERE forumid='28'");
That changes the password for the forum in the database; however, when a user goes to that forum and enters the new password - it doesn't work. I have to go to admincp and edit that forum (the password field is already filled in with the updated password.) Without changing anything I hit save and then the new password takes effect.
I am wondering what is it that vbulletin does that I don't in my code?
Any hints are appreciated!
Figured it out after doing a search on the entire database. It appears I have to update value in the vb_datastore table as well
Related
I'm completly new at this and trouble is that I got to keep Office97 compatibility. My friends call me "Ctrl+C - Ctrl+V coder", so sorry if that's a stupid question.
I've got this timestamp event runing, but it can't put value in protected sheet. I can't turn off protection while file is shared. I found AllowEditRange VBA command, so i can put timestamp in the field, but can't protect it back. I can make workaround with hidden sheet, but it's not as tidy, as "re-protection".
ActiveSheet.Protection.AllowEditRanges.Item(1).Unprotect "Password"
Is there any way to make this line work just for 1 modification, but every time i call it? Or only for VBA modifications, and not user interface? Documentation leaves no hope. I've spent way to much time on looking it up on forums.
I have an excel file with roughli 25 oracle connections that I have to refresh. Each one prompts a usn and password input. I would like a vba that prompts for a usn and password once and inputs it in all following prompts.
I have been searching for a way to do this but can not find a suitable solution.
Thank you all in advance.
"First of all I would like to know if this is even possible."
In short, yes It all comes down to the connection string. How you go about creating and using that string is up to your requirements and your imagination.
"I have been searching for a way to do this but can not find a suitable solution."
Anecdotal evidence suggests a person suffering from this condition failed to do one it more of the following:
ask the right question
recognize the right answer
to have patience or persistence
overcome laziness
access Google
But seriously, I don't know what to tell you, the answer is in comments of the the second link I gave you, Specifically, the third and fourth comment. The third points vaguely toward the connection string and the forth takes you to more helpful commentary.
Refresh a connection in Excel to SQL Server (with password) using VBA
Can I use VBA to "pass" a password to an external database connection in Excel?
I password protected my VBA Editor with:
Tools > VBAProject Properties > Protection
Clicked "Lock project for viewing"
Added a password.
What I need to have happen is that when this password prompt is accepted, It needs to run a Sub I've already written.
The answer I'm looking for and can't find in the three books on my desk is:
Is this action a Workbook Event? Or something else? And what syntax can make this happen.
Thanks!
Potential solution from MSDN:
https://msdn.microsoft.com/en-us/library/office/aa165442(v=office.10).aspx
This won't work for for what I'm trying to do. I wrote a script that asks for a key delivered weekly to authorized users via another program. What I wanted is a Sub to run which deletes all of my sensitive data if the user enters an incorrect password while attempting to get to the code.
Looks like this is not possible in Excel VBA... I'll keep learning and searching for a way to do this. If I do I will revisit this post.
i'm totally new to this kind of practices so maybe i'm going to ask a stupid question, mostly because i couldn't find anything googling around.
I'm using Firefox 36 and i modified it so that it saves my passwords without asking me any time and this works.
But I have a problem with the autofill: I would like Firefox to autofill only the email field if it has a stored password, but that it does not autofill also the password field, so that it behaves like it doesn't have the password stored.
This is because my computer is being used by other people from my house and i don't want them to access my website when i'm not around, but i also want to have my passwords stored in my browser so that i don't have to look here and there to find them if i forget them (and it happens often :P ).
For now I just managed to totally avoid the autofill (setting to false the variable signon.autofillForms), but i want the email/usernames field suggested to me if i already used them.
You should be able to save your cleartext form fields (emails and the like) without saving passwords. Under Preferences->Privacy->History select Remember History (or Use custom settings for history, then check Remember search and form history), then under Preferences->Security->Passwords uncheck Remember passwords for sites.
I need to modify the versions.aspx page... No idea how to nor do I know if this is something I should do?!? The root problem is on the history of our document we have effective and termination dates. Termination dates are kinda of the issue as they are not reflective in version history (when you look at the versions.aspx page). They are implied... but our users would like to see the termination date show up. I figured I could calculate it but I would need to update the versions.aspx page (haven't done anything like this before -- new to sharepoint dev). Alternatively I could create a new page to show history the way they want it and disable the ECB for version history... any advice or help?
Its is not recommended to touch any pages that are used by SharePoint (that is not supported by MS). You can fall back to second option you said and go ahead and create a new Page that will do what you want, you might need to do JavaScript hack to make the ECB point to the new URL.