Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,759 members, 7,817,093 topics. Date: Saturday, 04 May 2024 at 05:05 AM

Webmasters Please Help With This Problem - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Webmasters Please Help With This Problem (1796 Views)

Please Help Me Solve This Problem In C++ / Javascript Programers Help Me With This Problem / Who Can Solve This Problem Using Java (2) (3) (4)

(1) (Reply) (Go Down)

Webmasters Please Help With This Problem by ediko5(m): 12:32pm On May 04, 2018
Hello developers,

I built a classifed ads site using Osclass and all seems to be good.

But since the site is for artisans who don't have emails, i want to disable the *Compulsory" email address input in the post ads section. I've tried all i can to to disable it in the PHP file but it's not still working. I also removed the email input field, yet it will still demand for email.

Attached is code, please i want know locate which file i can edit to stop the email input from being compulsory.

Here's the link to the page http://contactbook.com.ng/index.php?page=item&action=item_add

Thanks alot.


<?php

osc_enqueue_script('jquery');
osc_enqueue_script('jquery-ui');
osc_enqueue_script('fineuploader');
osc_enqueue_script('owl');
osc_enqueue_script('main');
osc_enqueue_script('select');
osc_enqueue_script('date');
osc_enqueue_script('jquery-validate');
?>
<!DOCTYPE html>
<html lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
<head>
<?php osc_current_web_theme_path('head.php'); ?>
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />

<!-- only item-post.php -->
<?php ItemForm::location_javascript(); ?>
<?php
if(osc_images_enabled_at_items() && !violet_is_fineuploader()) {
ItemForm::photos_javascript();
}
?>
<script type="text/javascript">
function uniform_input_file(){
photos_div = $('div.photos');
$('div',photos_div).each(
function(){
if( $(this).find('div.uploader').length == 0 ){
divid = $(this).attr('id');
if(divid != 'photos'){
divclass = $(this).hasClass('box');
if( !$(this).hasClass('box') & !$(this).hasClass('uploader') & !$(this).hasClass('row')){
$("div#"+$(this).attr('id')+" input:file"wink.uniform({fileDefaultText: fileDefaultText,fileBtnText: fileBtnText});
}
}
}
}
);
}

<?php if(osc_locale_thousands_sep()!='' || osc_locale_dec_point() != '') { ?>
$().ready(function(){
$("#price"wink.blur(function(event) {
var price = $("#price"wink.prop("value"wink;
<?php if(osc_locale_thousands_sep()!='') { ?>
while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?>')!=-1) {
price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?>', '');
}
<?php }; ?>
<?php if(osc_locale_dec_point()!='') { ?>
var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point())?>');
if(tmp.length>2) {
price = tmp[0]+'<?php echo osc_esc_js(osc_locale_dec_point())?>'+tmp[1];
}
<?php }; ?>
$("#price"wink.prop("value", price);
});
});
<?php } ?>
</script>
<!-- end only item-post.php -->
</head>
<body>
<?php osc_current_web_theme_path('header.php'); ?>

<div class="container">
<div class="forcemessages-inline">
<?php osc_show_flash_message(); ?>
</div>
<!-- content -->
<div class="publish">
<h2 class="h2-bottom-line"><?php _e('Publish Your Skills. (Strictly No Buy/Sell Post, Only Skillss) ', 'violet'); ?></h2>
<form name="item" action="<?php echo osc_base_url(true);?>" class="form-publish" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="item_add_post" />
<input type="hidden" name="page" value="item" />
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Name', 'violet'); ?></h4>
<?php ItemForm::contact_name_text(); ?>
</div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Category', 'violet')?> <span>*</span></h4>
<div class="input-row catpub">
<?php ItemForm::category_multiple_selects(null, null, __('Select a category', 'violet')); ?>
</div></div>
<?php if(osc_get_preference('custom-fileds', 'violet') == 'top'){ ?>
<div class="inp-group">
<div class="box">
<?php ItemForm::plugin_post_item(); ?>
</div> </div>
<?php } ?>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Skill', 'violet'); ?> <span>*</span></h4>
<div class="inp-counter titledis">
<?php ItemForm::title_input('title', osc_current_user_locale(), osc_esc_html( violet_item_title() )); ?>
<span class="inp-counter__count" data-val="<?php echo osc_max_characters_per_title(); ?>"><?php echo osc_max_characters_per_title(); ?></span>
</div></div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Description', 'violet'); ?> <span>*</span></h4>
<div class="inp-counter titledis">
<?php ItemForm::description_textarea('description',osc_current_user_locale(), osc_esc_html( violet_item_description() )); ?>
<span class="inp-counter__count bottom-count" data-val="<?php echo osc_max_characters_per_description(); ?>"><?php echo osc_max_characters_per_description(); ?></span>
</div> </div>
<?php if( osc_images_enabled_at_items() ) { ?>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Add images','violet')?></h4>
<span class="inp-group__sub-title"><?php _e('You can upload up to', 'violet'); ?> <?php echo osc_max_images_per_item(); ?> <?php _e('pictures per listing', 'violet'); ?></span>
<span class="inp-group__sub-title"><?php _e('Max size', 'violet'); ?> <?php echo osc_max_size_kb(); ?> <?php _e('Kb for each image', 'violet'); ?></span>
<div class="load-img">
<?php if(osc_images_enabled_at_items()) {
if(violet_is_fineuploader()) {
ItemForm::ajax_photos();
}
} else { ?>
<div id="photos" class="load-img">
<div class="row">
<input type="file" name="photos[]" />
</div>
</div>
<a href="#" onclick="addNewPhoto(); uniform_input_file(); return false;"><?php _e('Add new photo', 'violet'); ?></a>

<?php } ?>
</div>
</div>
<?php } ?>
<!-- -->


<?php if(osc_get_preference('item-post', 'violet') == 'countries'){ ?>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Country', 'violet'); ?></h4>
<?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
</div>
<?php } ?>
<?php if(osc_get_preference('item-post-loc', 'violet') == 'enable'){ ?>
<div class="inp-group">
<div class="input-row">
<div class="input-col">
<h4 class="inp-group__title"><?php _e('Region', 'violet'); ?></h4>
<?php ItemForm::region_select(osc_get_regions(), osc_user()) ; ?>
</div>
<div class="input-col">
<h4 class="inp-group__title"><?php _e('City', 'violet'); ?></h4>
<?php ItemForm::city_select(osc_get_cities(osc_user_region()), osc_user()) ; ?>
</div>
</div></div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('City Area', 'violet'); ?></h4>
<?php ItemForm::city_area_text(osc_user()); ?>
</div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('E-mail', 'violet'); ?> <span>*</span></h4>
<div class="input-row">
<div class="input-col">
<?php ItemForm::contact_email_text(); ?>
</div>
<div class="input-col">
<div class="checkbox-wrp">
<input type="checkbox" name="email-show" id="email-show">
<label for="email-show"><span><?php _e('Show email on listing page', 'violet'); ?></span></label>
</div>
</div></div></div>
<?php } ?>

<?php if(osc_get_preference('custom-fileds', 'violet') == 'bottom'){ ?>
<div class="inp-group">
<?php ItemForm::plugin_post_item(); ?>
</div>
<?php } ?>
<?php if( osc_recaptcha_items_enabled() ) {?>
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'clean'
};
</script>
<div class="inp-group">
<div class="captch" style="transform:scale(0.cool;transform-origin:0 0">
<?php osc_show_recaptcha(); ?>
</div></div>
<?php }?>
<?php if( function_exists( "MyHoneyPot" )) { ?>
<?php MyHoneyPot(); ?>
<?php } ?>
<div class="inp-group">
<button type="submit" class="btn btn-center upcase">
<?php _e('Publish', 'violet'); ?>
</button>
</div>
</form>
</div>
</div>
</div>
<!-- content -->
</div>
</div>
<?php osc_current_web_theme_path('footer.php'); ?>
</body>
</html>
Re: Webmasters Please Help With This Problem by ediko5(m): 12:35pm On May 04, 2018
hbkrajan
Re: Webmasters Please Help With This Problem by Techcrunchng(m): 1:11pm On May 04, 2018
Cut out these codes from the program


<div class="inp-group">
<h4 class="inp-group__title"><?php _e('E-mail', 'violet'); ?> <span>*</span></h4>
<div class="input-row">
<div class="input-col">
<?php ItemForm::contact_email_text(); ?>
</div>
<div class="input-col">
<div class="checkbox-wrp">
<input type="checkbox" name="email-show" id="email-show">
<label for="email-show"><span><?php _e('Show email on listing page', 'violet'); ?></span></label>
</div>
</div></div></div>
<?php } ?>
Re: Webmasters Please Help With This Problem by Techcrunchng(m): 1:17pm On May 04, 2018
Or just copy and paste these into the editor


<?php

osc_enqueue_script('jquery');
osc_enqueue_script('jquery-ui');
osc_enqueue_script('fineuploader');
osc_enqueue_script('owl');
osc_enqueue_script('main');
osc_enqueue_script('select');
osc_enqueue_script('date');
osc_enqueue_script('jquery-validate');
?>
<!DOCTYPE html>
<html lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
<head>
<?php osc_current_web_theme_path('head.php'); ?>
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />

<!-- only item-post.php -->
<?php ItemForm::location_javascript(); ?>
<?php
if(osc_images_enabled_at_items() && !violet_is_fineuploader()) {
ItemForm::photos_javascript();
}
?>
<script type="text/javascript">
function uniform_input_file(){
photos_div = $('div.photos');
$('div',photos_div).each(
function(){
if( $(this).find('div.uploader').length == 0 ){
divid = $(this).attr('id');
if(divid != 'photos'){
divclass = $(this).hasClass('box');
if( !$(this).hasClass('box') & !$(this).hasClass('uploader') & !$(this).hasClass('row')){
$("div#"+$(this).attr('id')+" input:file"wink.uniform({fileDefaultText: fileDefaultText,fileBtnText: fileBtnText});
}
}
}
}
);
}

<?php if(osc_locale_thousands_sep()!='' || osc_locale_dec_point() != '') { ?>
$().ready(function(){
$("#price"wink.blur(function(event) {
var price = $("#price"wink.prop("value"wink;
<?php if(osc_locale_thousands_sep()!='') { ?>
while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?>')!=-1) {
price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep()); ?>', '');
}
<?php }; ?>
<?php if(osc_locale_dec_point()!='') { ?>
var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point())?>');
if(tmp.length>2) {
price = tmp[0]+'<?php echo osc_esc_js(osc_locale_dec_point())?>'+tmp[1];
}
<?php }; ?>
$("#price"wink.prop("value", price);
});
});
<?php } ?>
</script>
<!-- end only item-post.php -->
</head>
<body>
<?php osc_current_web_theme_path('header.php'); ?>

<div class="container">
<div class="forcemessages-inline">
<?php osc_show_flash_message(); ?>
</div>
<!-- content -->
<div class="publish">
<h2 class="h2-bottom-line"><?php _e('Publish Your Skills. (Strictly No Buy/Sell Post, Only Skillss) ', 'violet'); ?></h2>
<form name="item" action="<?php echo osc_base_url(true);?>" class="form-publish" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="item_add_post" />
<input type="hidden" name="page" value="item" />
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Name', 'violet'); ?></h4>
<?php ItemForm::contact_name_text(); ?>
</div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Category', 'violet')?> <span>*</span></h4>
<div class="input-row catpub">
<?php ItemForm::category_multiple_selects(null, null, __('Select a category', 'violet')); ?>
</div></div>
<?php if(osc_get_preference('custom-fileds', 'violet') == 'top'){ ?>
<div class="inp-group">
<div class="box">
<?php ItemForm::plugin_post_item(); ?>
</div> </div>
<?php } ?>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Skill', 'violet'); ?> <span>*</span></h4>
<div class="inp-counter titledis">
<?php ItemForm::title_input('title', osc_current_user_locale(), osc_esc_html( violet_item_title() )); ?>
<span class="inp-counter__count" data-val="<?php echo osc_max_characters_per_title(); ?>"><?php echo osc_max_characters_per_title(); ?></span>
</div></div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Description', 'violet'); ?> <span>*</span></h4>
<div class="inp-counter titledis">
<?php ItemForm::description_textarea('description',osc_current_user_locale(), osc_esc_html( violet_item_description() )); ?>
<span class="inp-counter__count bottom-count" data-val="<?php echo osc_max_characters_per_description(); ?>"><?php echo osc_max_characters_per_description(); ?></span>
</div> </div>
<?php if( osc_images_enabled_at_items() ) { ?>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Add images','violet')?></h4>
<span class="inp-group__sub-title"><?php _e('You can upload up to', 'violet'); ?> <?php echo osc_max_images_per_item(); ?> <?php _e('pictures per listing', 'violet'); ?></span>
<span class="inp-group__sub-title"><?php _e('Max size', 'violet'); ?> <?php echo osc_max_size_kb(); ?> <?php _e('Kb for each image', 'violet'); ?></span>
<div class="load-img">
<?php if(osc_images_enabled_at_items()) {
if(violet_is_fineuploader()) {
ItemForm::ajax_photos();
}
} else { ?>
<div id="photos" class="load-img">
<div class="row">
<input type="file" name="photos[]" />
</div>
</div>
<a href="#" onclick="addNewPhoto(); uniform_input_file(); return false;"><?php _e('Add new photo', 'violet'); ?></a>

<?php } ?>
</div>
</div>
<?php } ?>
<!-- -->


<?php if(osc_get_preference('item-post', 'violet') == 'countries'){ ?>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('Country', 'violet'); ?></h4>
<?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
</div>
<?php } ?>
<?php if(osc_get_preference('item-post-loc', 'violet') == 'enable'){ ?>
<div class="inp-group">
<div class="input-row">
<div class="input-col">
<h4 class="inp-group__title"><?php _e('Region', 'violet'); ?></h4>
<?php ItemForm::region_select(osc_get_regions(), osc_user()) ; ?>
</div>
<div class="input-col">
<h4 class="inp-group__title"><?php _e('City', 'violet'); ?></h4>
<?php ItemForm::city_select(osc_get_cities(osc_user_region()), osc_user()) ; ?>
</div>
</div></div>
<div class="inp-group">
<h4 class="inp-group__title"><?php _e('City Area', 'violet'); ?></h4>
<?php ItemForm::city_area_text(osc_user()); ?>
</div>


<?php if(osc_get_preference('custom-fileds', 'violet') == 'bottom'){ ?>
<div class="inp-group">
<?php ItemForm::plugin_post_item(); ?>
</div>
<?php } ?>
<?php if( osc_recaptcha_items_enabled() ) {?>
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'clean'
};
</script>
<div class="inp-group">
<div class="captch" style="transform:scale(0.cool;transform-origin:0 0">
<?php osc_show_recaptcha(); ?>
</div></div>
<?php }?>
<?php if( function_exists( "MyHoneyPot" )) { ?>
<?php MyHoneyPot(); ?>
<?php } ?>
<div class="inp-group">
<button type="submit" class="btn btn-center upcase">
<?php _e('Publish', 'violet'); ?>
</button>
</div>
</form>
</div>
</div>
</div>
<!-- content -->
</div>
</div>
<?php osc_current_web_theme_path('footer.php'); ?>
</body>
</html>
Re: Webmasters Please Help With This Problem by ediko5(m): 4:59pm On May 04, 2018
Techcrunchng:
Cut out these codes from the program


<div class="inp-group">
<h4 class="inp-group__title"><?php _e('E-mail', 'violet'); ?> <span>*</span></h4>
<div class="input-row">
<div class="input-col">
<?php ItemForm::contact_email_text(); ?>
</div>
<div class="input-col">
<div class="checkbox-wrp">
<input type="checkbox" name="email-show" id="email-show">
<label for="email-show"><span><?php _e('Show email on listing page', 'violet'); ?></span></label>
</div>
</div></div></div>
<?php } ?>

Thank you Sir, but i''ve done that already by removing the email input field. Yet it still demands for email when trying to post ads.
Re: Webmasters Please Help With This Problem by Techcrunchng(m): 5:53pm On May 04, 2018
ediko5:


Thank you Sir, but i''ve done that already by removing the email input field. Yet it still demands for email when trying to post ads.
did you removed the whole codes as above?
Re: Webmasters Please Help With This Problem by ediko5(m): 6:15pm On May 04, 2018
Techcrunchng:
did you removed the whole codes as above?

Yes Sir.
Re: Webmasters Please Help With This Problem by Techcrunchng(m): 8:52pm On May 04, 2018
ediko5:


Yes Sir.
which state are you
Re: Webmasters Please Help With This Problem by ediko5(m): 8:57pm On May 04, 2018
Techcrunchng:
which state are you
Rivers
Re: Webmasters Please Help With This Problem by Techcrunchng(m): 9:41pm On May 04, 2018
ediko5:

Rivers
Alright

(1) (Reply)

What Changes Were Used To Speed Up NL? / Favorite Sections On User Profiles / How To Code This Logic With Php...

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 62
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.