Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Kindly check whether you added the below code or not.
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
I am using Arcane theme and I added organizations as post type. Also “vg_organization_id” was a user meta.
Please add the below code in functions.php file to get the extra field in user profile page.
function custom_user_profile_fields($user){
if(isset($_GET['user_id']) && $_GET['user_id'] != ""){
$user_id = $_GET['user_id'];
}else{
$user_id = "";
}
$organization = arcane_user_is_in_organization($user_id);
if($organization){
$get_org_data = get_post($organization);
$org_id = $get_org_data->ID;
}else{
$org_id = "";
}
if(is_object($user))
$orgs = arcane_get_organizations();
else
$orgs = arcane_get_organizations();
?>
<table class="form-table">
<tbody>
<tr class="form-field">
<th scope="row"><label for="vg-orgs">Select Organization</label></th>
<td>
<select name="vg_organization_id" id="vg_organization_id" >
<option value="">Select a organization</option>
<?php if($orgs !== false){ ?>
<?php foreach($orgs as $val){ ?>
<option value="<?php echo $val->ID; ?>" <?php if($org_id != "" && $org_id == $val->ID){echo "selected";} ?>><?php echo $val->post_title; ?></option>
<?php } ?>
<?php } ?>
</select>
</td>
</tr>
</tbody>
</table>
<?php
}
add_action( 'show_user_profile', 'custom_user_profile_fields' );
add_action( 'edit_user_profile', 'custom_user_profile_fields', 30);
add_action( "user_new_form", "custom_user_profile_fields");
add_action('edit_user_profile_update', 'update_extra_profile_fields');
function update_extra_profile_fields($user_id) {
if (isset($_REQUEST['vg_organization_id']) && $user_id != "") {
$org_id = $_REQUEST['vg_organization_id'];
update_user_meta($user_id, 'vg_organization_id', $org_id);
}
}
add_action('user_register','add_extra_profile_fields');
function add_extra_profile_fields($user_id){
if (isset($_REQUEST['vg_organization_id']) && $user_id != "") {
$org_id = $_REQUEST['vg_organization_id'];
add_user_meta($user_id, 'vg_organization_id', $org_id);
}
}
A business directory is a website or printed listing of information which lists all businesses within some category. This listing contains business name, address and phone number with some additional information such as website URLs, photos, and videos.
The business directory helps users search for companies, services or products in their area in a more targeted way. Businesses can be categorized by :
Your account has exceeded the allowed number of bounced messages per hour. The block will be automatically removed on the hour. Please wait till an hour has passed to attempt to send an email again.
Please check your cPanel account. Its might be exceeded Disk Quota Or available space. Due to that, it’s showing while uploading the file.
** you should replace /dev/sdaX with your own system {Like sda1}
The World Wide Web {WWW}, also called the Web, is an information space where documents and other web resources are identified by URL, interlinked by hypertext links, and accessible via the Internet.
The WWW consists of billions of pages linked to each other that contain text, hyperlinks, graphics, multimedia files, and other interactive software that are accessed using a browser.
In Codeigniter code will run without routes.php
routes.php is used to customise the url of the website. like if you have url like
avianceschool.com/pages/contactus
Here “pages” is a controller and “contactus” is method in that controller.If you want to show url without controller like avianceschool.com/contactus, then you need to write down the code as below.
$route['contactus'] = ['pages/contactus'];
OR
There is a new public method
get_compiled_select
that can print the query before runningDriver directory and file structure layout:
/application/libraries/Driver_name
Driver_name.php
drivers
Driver_name_subclass_1.php
Driver_name_subclass_2.php
Advantages of Ajax:
1) Reduce the server traffic in both side request. Also reducing the time consuming on both side response.
2) Response time is faster so increases performance and speed.
3) AJAX make asynchronous calls to a web server. This means client browsers are avoid waiting for all data arrive before start the rendering
4) No require to completely reload page again.
Disadvantages of Ajax:
1) Search engine would not crawl ajax generated content. So the Search Engines can’t index AJAX pages.
2) Security is less in as View source is allowed and anyone can view the source code written for AJAX.
3)Impossible to bookmark ajax updated page content.