Can I 'delete all files' from my database and redo a 'one-click install'?
-
I am trying to figure out how I can upload a document to a user profile, and allow the user to view the doc.
I inserted this code into my functions.php file:
if ( current_user_can(‘contributor’) && !current_user_can(‘upload_files’) )
add_action(‘admin_init’, ‘allow_contributor_uploads’);function allow_contributor_uploads() {
$contributor = get_role(‘contributor’);
$contributor->add_cap(‘upload_files’);
}which I got from this thread, https://www.ads-software.com/support/topic/user-file-upload-plungins?replies=3
Now, I get the following message every time I try to do anything in my dashboard,
Parse error: syntax error, unexpected T_ENDIF in /home/dmacc/legacyboom.org/wp-content/themes/twentyeleven/functions.php on line 603I tried to go back and remove the code but was not able to. I am not sure how to fix this. This is a new site so I do not have much content on it. I use Dreamhost for hosting, and I noticed that I can “delete all files” in the ‘manage one-click install’ section. If I delete all files would I be able to just start over by doing another one-click install with the same database? or if there is an easier way to fix this error, please let me know.
Thank you so much in advance for your help!
- The topic ‘Can I 'delete all files' from my database and redo a 'one-click install'?’ is closed to new replies.