Notes & Debugging
Annual update of PEA website
- About Us=> Leadership
- Upcoming Conference
- Past Conferences
- Change the email-forwarding address for [email protected], [email protected], publicity@xuebingbiz
- Update the deadline and the contact person for submissions to PEA Conference Proceedings.
- Changes the user roles of VP-Program and VP-Publicity
- Update $IDLastPaperOfLastConf in the two XYZ PHP Code snippets.
- Set up registration
- To go JotForm and clone a previous registration form.
- To set up Google sheets, select “Integration” => “Google Sheets” (Not Google Drive).
- Go to Google Sheets and share the sheet. Then copy the link and embed it on “Tools for Conference Prep.”
How to customize the password-reset page:
- Edit the following file:
| /public_html/wp-content/themes/noman-cute/ultimate-member/templates/password-reset.php |
Redirect urls:
- In .htaccess in public_html folder, add the following line: redirect 301 /SubfolderOfWebsite/Links https//econpea.org/OtherLinks
How to display user role in user profile: link
wpForo unsubscribe link for email templates: [unsubscribe_link]
Remember to synch user roles in wpForo if they cannot post messages.
Let high level users to log in wp-admin folder to allow management.
Ultimate Member – adding custom fields in account page and tab
- Add the following codes at the end of functions.php in the active theme folder:
- add_action(‘um_after_account_general’, ‘showUMExtraFields’, 100);…
Link to Conference Proceedings associated with [email protected].
How to set up email client for [email protected]: Link.
- To set up email client for [email protected] on Win 10: Link
In case the dashboard of users for submitting papers is not working, check line 264 of wpabstracts_dashboard.php in folder wpabstracts_pro\html
- Check if the numeric IDs of Conference and Proceedings are still 1 and 2.
Editor’s WP Admin Access: In WP Abstracts Pro =>Settings=>Frontend Dashboard Configuration => Allow WP Admin Access
To configure the access control of different user groups for the forum: Forums=>Forums=>Pencil Icon of “Officer Forum”=>Forum Permissions on the right hand side
To change the Admin Note at the top of Forum pages: Forums=>Tools=>Misc=>Admin Note
High level accounts: Must approve membership before they can see controlled sub-menus. Users=>Select users=>UM Action=>Approve Membership.
wpForo User Subscription management: Forums=>Users=>Edit profile of individual users=>Subscription.
wpForo Moderation: Forums=>Tools=>Antispam
- 1. Navigate to Dashboard > Forums > Usergroups admin page. Edit all Usergroups one by one and make sure the “Can pass moderation” permission is enabled
- 2. In Dashboard > Forums > Tools > Antispam admin page set suspicion level=1 for topics and posts.
- 3. In the same admin page, decrease the value of the “User is New (under hard spam control) during first X posts” option, set it 1 or 0
- 4. In the same admin page, in the “New Registered User” section, disable the “Posts must be manually approved” option.
- PHP data query: Link
- Download files from a database: link.
- Change status of a submission: abstracts.manage.php=>line 351-377 ($updated = $wpdb->update($wpdb->prefix.”wpabstracts_abstracts”, $data, $where);)
- Connect to database in Javascript:
WP Abstract Pro
- To edit the submission form:
- Make changes in /public_html/wp-content/plugins/wpabstracts_pro/html/wpabstracts_addAbstract.php
- Make changes in WordPress => WP Abstract Pro => Setting => Titles
- To change the display of all submissions
- Go to /public_html/wp-content/plugins/wpabstracts_pro/html/wpabstracts_dashboard.php
- Table layout: function wpabstracts_show_author_dashboard($user,$event_id)
- Code to show name of the event of a submission: event); $MyEventName=’Conference’; if(stripos($MyEvent->name,”proceeding”)!==false) {$MyEventName=’Proceedings’;} elseif(stripos($MyEvent->name,”review”)!==false) {$MyEventName=’PER’;} echo $MyEventName; ?>
- Go to /public_html/wp-content/plugins/wpabstracts_pro/html/wpabstracts_dashboard.php
- The backup of the above files are stored in OneDrive\Service\Pennsylvania Economic Association\PEA Website Project\WP Abstracts Pro\Backup of Edited Files
- To edit the information shown above the list of submissions: function wpabstracts_dashboard_header($user, $show_nav_btns,$event_id)
Econpea.org Google reCaptcha
- To turn off reCaptcha:
- Go to Ultimate Member => Setting => Choose a form => Turn off reCaptcha in the sidebar on the right.
- reCaptacha v3 keys:
- SiteKey: 6LecOFoeAAAAAMjsQ_aNNF0WR5dY94gcQKiRpJHR
- Secret Key: 6LecOFoeAAAAALzKIu8tiWTh1qoF-D01HSOrZOIg
To highlight something in red:
- Use this customized tag: <span class=”Highlight”> </span>
Create a file upload page: https://www.htmlgoodies.com/php/create-a-file-uploader-in-wordpress/
