Hi
i bought this script https://codecanyon.net/item/ask-answer-community-script/8989600?_ga=2.178482916.1789943649.1521801096-1300292217.1517934609
I paid 20$ and see what i get
http://freshpremiumthemes.com/
How to get my money back ?
Why you don’t ask the author for help first?
I have take a look on your code, and your CSS files are not loaded. You need to change “YourDomain.com” with your domain - I don’t know why is coded on that way but that the reason why your CSS files are not loaded.
because
Support
Not available
-uMarian- has chosen not to support this item.
ok i will try to look whats with domain
Now CSS works, but no one button is active
For example i cant create new account
http://www.freshpremiumthemes.com/user/register
In documentation author of this script wrote only how to setup database
- Installation process - top
Now, after you uploaded everything, you can start the installation process.
Changes inside Script
With a text editor (e.g.: Notepad), open the following file located inside the ‘public_html’ folder: config.php.
Now, search for the following lines and replace with your own information:Database Connection
[line 21] define(‘DB_HOSTNAME’, ‘localhost’); - > if you are using a hosting that have an external database server, enter the database server url
[line 22] define(‘DB_USERNAME’, ‘YOUR DB USERNAME’); - > enter your mysql username
[line 23] define(‘DB_PASSWORD’, ‘YOUR DB PASSWORD’); - > enter your mysql username password
[line 24] define(‘DB_DATABASE’, ‘YOUR DB NAME’); - > enter your mysql database namesave and exit.
Now my websote doesnt work as it should and i cant get support, but script is on sale.
What should I do in this case?
I see, there are now some other errors there.
To get your money back you need to use this link - https://themeforest.net/refund_requests/new
Thx, done
Wait for author answer )
Glyphicons & Custom.js files are not loading
Failed to load resource: the server responded with a status of 404 (Not Found)
if you could tell us what you are trying to achieve we might be able to help you with that.
I think if author sell this script on market, it should work without any errors like js loading etc.
I do not have the skills to fix that so i dont try anything, i can do more problems )
This is original JS from demo link of authors script - is loading
http://www.ask.uta-marian.com/template/default/assets/custom.js
But when i try to load my file, i get error 404
Custom.js must be missing from the package… please copy the code in custom.js from the following URL http://www.ask.uta-marian.com/template/default/assets/custom.js & Open any text editor paste the code there and create a custom.js file & upload in the following directory on your host "/template/default/assets/custom.js"
Replced, stil not working
dead buttons http://www.freshpremiumthemes.com/user/register
The forms don’t have unique id, the ids must be unique
Also please double check the custom.js file… you will need to replace the domain name with your own domain for instance from http://www.ask.uta-marian.com to yourdomain.com
We made some changes in the custom.js for you please copy and paste the following code in custom.js
$ = jQuery;
//*** SELECT TEXT ***//
function selectText(containerid) {
if (document.selection) {
var range = document.body.createTextRange();
range.moveToElementText(document.getElementById(containerid));
range.select();
} else if (window.getSelection) {
var range = document.createRange();
range.selectNode(document.getElementById(containerid));
window.getSelection().addRange(range);
}
}
function strip_tags (input, allowed) {
allowed = (((allowed || “”) + “”).toLowerCase().match(/<[a-z][a-z0-9]>/g) || []).join(‘’);
var tags = /</?([a-z][a-z0-9])\b[^>]>/gi,
commentsAndPhpTags = /|<?(?:php)?[\s\S]??>/gi;
return input.replace(commentsAndPhpTags, ‘’).replace(tags, function ($0, $1) {
return allowed.indexOf(‘<’ + $1.toLowerCase() + ‘>’) > -1 ? $0 : ‘’;
});
}
function rtrim (str, charlist) {
charlist = !charlist ? ’ \s\u00A0’ : (charlist + ‘’).replace(/([().?/*{}+$^:])/g, ‘\$1’);
var re = new RegExp(‘[’ + charlist + ‘]+$’, ‘g’);
return (str + ‘’).replace(re, ‘’);
}
function jhzEv(emailAddress) {
var pattern = new RegExp(/^((([a-z]|\d|[!#$%&'*+-/=?^{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_
{|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+))|((\x22)((((\x20|\x09)(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))(((\x20|\x09)(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|.||~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))).)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))).?$/i);
return pattern.test(emailAddress);
};
jQuery.fn.centerTop = function () {
this.css(“position”,“absolute”);
this.css(“top”, “60px”);
this.css(“left”, Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
$(window).scrollLeft()) + “px”);
return this;
}
$(document).ready(function() {
$(".stooltip").tooltip({placement : 'right'});
$(".sover").popover({ html : true });
$('.login-form').popover({
html : true,
content: function() {
return $('#popover_login_form').html();
}
});
$('.go-to').on('click', function () {
var goTo = $( this ).data( "href" );
window.location = goTo;
});
$("#user-register").on('click', function () {
var t = 0;
var first_name = $("#first-name").val();
var last_name = $("#last-name").val();
var email = $("#email").val();
var nickname = $("#nickname").val();
var nickname = nickname.replace(/[^a-z.0-9\s]/gi, '').replace(/[_\s]/g, '.');
$("#nickname").val( nickname );
var password = $("#password").val();
if ( first_name == "" ) {
$("#first-name").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#first-name").css("border","");
}
if ( last_name == "" ) {
$("#last-name").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#last-name").css("border","");
}
if ( nickname == "" ) {
$("#nickname").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#nickname").css("border","");
}
if ( email == "" ) {
$("#email").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#email").css("border","");
}
if( !jhzEv( email ) && email != '' ){
$("#email").css("border","1px solid rgb(255, 5, 0)");
t = t + 1;
}
if ( password == "" ) {
$("#password").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#password").css("border","");
}
if ( t == 0 ) {
$("#loader").html('');
$("#user-register").attr('disabled', true);
$.post('http://www.freshpremiumthemes.com/system/users/register.class.php?t=reg', { first_name:first_name, last_name:last_name, email:email, password:password, nickname:nickname },
function(data) {
var $response=$(data);
var mode = $response.filter('#mode').text();
var request = $response.filter('#request').html();
if(mode == 1){
$( "#first-name" ).val( "" );
$( "#last-name" ).val( "" );
$( "#email" ).val( "" );
$( "#nickname" ).val( "" );
$( "#password" ).val( "" );
$("#loader").html('<div class="alert alert-success">'+request+'</div>');
$("#user-register").removeAttr('disabled');
};
if( mode == 2 ) {
$("#loader").html('<div class="alert alert-danger">'+request+'</div>');
$("#user-register").removeAttr('disabled');
}
if( mode == 3 ) {
$("#loader").html('<div class="alert alert-danger">'+request+'</div>');
$("#email").css("border","1px solid rgb(255, 5, 0)");
$("#user-register").removeAttr('disabled');
}
if( mode == 4 ) {
$("#loader").html('<div class="alert alert-danger">'+request+'</div>');
$("#nickname").css("border","1px solid rgb(255, 5, 0)");
$("#user-register").removeAttr('disabled');
}
});
} else {
$("#user-register").removeAttr('disabled');
$("#loader").html('<div class="alert alert-danger">Complete all mandatory fields.</div>');
}
});
$("#request-code").on('click', function () {
var t = 0;
var email = $("#email").val();
if ( email == "" ) {
$("#email").css("border","1px solid rgb(255, 5, 0)");t++;
} else {
$("#email").css("border",""); }
if( !jhzEv( email ) && email != '' ){
$("#email").css("border","1px solid rgb(255, 5, 0)");
t = t + 1;
}
if ( t == 0 ) {
$(“#request-code”).attr(‘disabled’, true);
$(“#loader”).html(‘’);
//POST FUNCTION
$.post('http://www.freshpremiumthemes.com/system/users/register.class.php?t=new-code', { email:email },
function(data) {
var $r=$(data);
var mode = $r.filter('#mode').html();
var msj = $r.filter('#message').html();
if ( mode == 1 ) {
$("#loader").html('<div class="alert alert-success">'+msj+'</div>');
$("#request-code").removeAttr('disabled');
$("#email").val("");
}
if ( mode == 2 ) {
$("#loader").html('<div class="alert alert-danger">'+msj+'</div>');
$("#request-code").removeAttr('disabled');
}
});
//END POST FUNCTION
} else {
$("#request-code").removeAttr('disabled');
$("#loader").html('<div class="alert alert-danger">Complete all mandatory fields</div>');
}
});
$("#request-password").on('click', function () {
var t = 0;
var email = $("#email").val();
if ( email == "" ) {
$("#email").css("border","1px solid rgb(255, 5, 0)");t++;
} else {
$("#email").css("border",""); }
if( !jhzEv( email ) && email != '' ){
$("#email").css("border","1px solid rgb(255, 5, 0)");
t = t + 1;
}
if ( t == 0 ) {
$(“#request-password”).attr(‘disabled’, true);
$(“#loader”).html(‘’);
//POST FUNCTION
$.post('http://www.freshpremiumthemes.com/system/users/register.class.php?t=new-password', { email:email },
function(data) {
var $r=$(data);
var mode = $r.filter('#mode').html();
var msj = $r.filter('#message').html();
if ( mode == 1 ) {
$("#loader").html('<div class="alert alert-success">'+msj+'</div>');
$("#request-password").removeAttr('disabled');
$("#email").val("");
}
if ( mode == 2 ) {
$("#loader").html('<div class="alert alert-danger">'+msj+'</div>');
$("#request-password").removeAttr('disabled');
}
});
//END POST FUNCTION
} else {
$("#request-password").removeAttr('disabled');
$("#loader").html('<div class="alert alert-danger">Complete all mandatory fields</div>');
}
});
$("#user-login").on('click', function () {
var t = 0;
var email = $("#login-email").val();
var password = $("#login-password").val();
if ( password == "" ) {
$("#login-password").css("border","1px solid rgb(255, 5, 0)");t++;
} else {
$("#login-password").css("border",""); }
if ( email == "" ) {
$("#login-email").css("border","1px solid rgb(255, 5, 0)");t++;
} else {
$("#login-email").css("border",""); }
if( !jhzEv( email ) && email != '' ){
$("#login-email").css("border","1px solid rgb(255, 5, 0)");
t = t + 1;
}
if ( t == 0 ) {
$(“#user-login”).attr(‘disabled’, true);
$(“#login-loader”).html(‘’);
//POST FUNCTION
$.post('http://www.freshpremiumthemes.com/system/users/login.class.php?t=auth', { email:email, password:password },
function(data) {
var $r=$(data);
var mode = $r.filter('#mode').html();
var msj = $r.filter('#message').html();
if ( mode == 1 ) {
//** PAGE REDIRECT **//
window.location = 'http://www.freshpremiumthemes.com/';
}
if ( mode == 2 ) {
$("#login-loader").html('<div class="alert alert-danger">'+msj+'</div>');
$("#user-login").removeAttr('disabled');
}
});
//END POST FUNCTION
} else {
$("#user-login").removeAttr('disabled');
$("#login-loader").html('<div class="alert alert-danger">Complete all mandatory fields.</div>');
}
});
$(document).on('click','.popover-content .popover-user-login-close', function () {
$('.login-form').popover('hide');
});
$(document).on('click','.popover-content .popover-user-login', function () {
var t = 0;
var email = $("#login-email").val();
var password = $("#login-password").val();
if ( password == "" ) {
$("#login-password").css("border","1px solid rgb(255, 5, 0)");t++;
} else {
$("#login-password").css("border",""); }
if ( email == "" ) {
$("#login-email").css("border","1px solid rgb(255, 5, 0)");t++;
} else {
$("#login-email").css("border",""); }
if( !jhzEv( email ) && email != '' ){
$("#login-email").css("border","1px solid rgb(255, 5, 0)");
t = t + 1;
}
if ( t == 0 ) {
$(“#user-login”).attr(‘disabled’, true);
$(“#login-loader”).html(‘’);
//POST FUNCTION
$.post('http://www.freshpremiumthemes.com/system/users/login.class.php?t=auth', { email:email, password:password },
function(data) {
var $r=$(data);
var mode = $r.filter('#mode').html();
var msj = $r.filter('#message').html();
if ( mode == 1 ) {
//** PAGE REDIRECT **//
location.reload();
}
if ( mode == 2 ) {
$("#login-loader").html('<div class="alert alert-danger">'+msj+'</div>');
$("#user-login").removeAttr('disabled');
}
});
//END POST FUNCTION
} else {
$("#user-login").removeAttr('disabled');
$("#login-loader").html('<div class="alert alert-danger">Complete all mandatory fields.</div>');
}
});
// LOG OUT
$("#log-out").on('click', function () {
$("#logged-in").html('<img id="have-account-msg" src="http://www.freshpremiumthemes.com/template/default/assets/img/loader.gif"/>');
//POST FUNCTION
$.post('http://www.freshpremiumthemes.com/system/users/login.class.php?t=out',
function(data) {
var $r=$(data);
var mode = $r.filter('#mode').html();
var msj = $r.filter('#message').html();
if ( mode == 1 ) { window.location = 'http://www.freshpremiumthemes.com/'; }
if ( mode == 2 ) {
$("#logged-in").html('<div class="alert alert-danger">'+msj+'</div>');
}
});
//END POST FUNCTION
});
$("#user-update").on('click', function () {
var t = 0;
var first_name = $("#first-name").val();
var last_name = $("#last-name").val();
var password = $("#password").val();
var short_description = $("#short-description").val();
var fb = $("#fb").val().replace('http://','').replace('https://','');
var twitter = $("#twitter").val().replace('http://','').replace('https://','');
var google = $("#google").val().replace('http://','').replace('https://','');
var youtube = $("#youtube").val().replace('http://','').replace('https://','');
var linkedin = $("#linkedin").val().replace('http://','').replace('https://','');
var tmb = $("#tumblr").val().replace('http://','').replace('https://','');
if ( first_name == "" ) {
$("#first-name").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#first-name").css("border","");
}
if ( last_name == "" ) {
$("#last-name").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#last-name").css("border","");
}
if ( t == 0 ) {
$("#loader").html('');
$("#user-update").attr('disabled', true);
$.post('http://www.freshpremiumthemes.com/system/users/user.class.php?t=profile', { first_name:first_name, last_name:last_name, password:password, short_description:short_description, fb:fb, twitter:twitter, google:google, youtube:youtube, linkedin:linkedin, tmb:tmb },
function(data) {
var $response=$(data);
var mode = $response.filter('#mode').text();
var message = $response.filter('#message').html();
if(mode == 1){
$("#loader").html('<div class="alert alert-success">'+message+'</div>');
$("#user-update").removeAttr('disabled');
$("#password").val( "" );
};
if( mode == 2 ) {
$("#loader").html('<div class="alert alert-danger">'+message+'</div>');
$("#email").css("border","1px solid rgb(255, 5, 0)");
$("#user-update").removeAttr('disabled');
}
});
} else {
$("#user-update").removeAttr('disabled');
$("#loader").html('<div class="alert alert-danger">Complete all mandatory fields.</div>');
}
});
$("#question-submit").on('click', function () {
var t = 0;
var question_title = $("#question-title").val();
var question_category = $("#question-category").val();
var question_details = CKEDITOR.instances['question-details'].getData();
var question_tags = $("#question-tags").val();
var id = $( this ).data("id");
if ( question_title == "" ) {
$("#question-title").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#question-title").css("border","");
}
if ( question_category == "0" ) {
$("#question-category").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#question-category").css("border","");
}
if ( question_tags == "" ) {
$("#question-tags").css("border","1px solid rgb(255, 5, 0)");
t++;
} else {
$("#question-tags").css("border","");
}
var lD = rtrim(strip_tags(question_details).replace(/ /g, '').replace(/ /g,''));
if( lD.length < 5 ){
jQuery('html,body').animate({scrollTop: jQuery('body').offset().top}, 'slow');
$("#question-details").css("border","1px solid #b94a48");t++;
$("#question-details-error").html('<div class="alert alert-danger">Your description is too short.</div>');
} else{
$("#question-details").css("border","");
$("#question-details-error").html("");
}
if ( t == 0 ) {
$("#question-loader").html('');
$("#question-submit").attr('disabled', true);
$.post('http://www.freshpremiumthemes.com/system/users/questions.class.php?t=question', { id:id, question_title:question_title, question_category:question_category, question_details:question_details, question_tags:question_tags },
function(data) {
var $response=$(data);
var mode = $response.filter('#mode').text();
var message = $response.filter('#message').html();
if(mode == 1){
$("#question-loader").html('<div class="alert alert-success">'+message+'</div>');
$("#question-submit").removeAttr('disabled');
$("#question-title").val( "" );
$("#question-category").val( "0" );
$("#question-tags").val( "" );
CKEDITOR.instances['question-details'].setData("");
};
if(mode == 3){
$("#question-loader").html('<div class="alert alert-success">'+message+'</div>');
$("#question-submit").removeAttr('disabled');
};
if( mode == 2 ) {
$("#question-loader").html('<div class="alert alert-danger">'+message+'</div>');
$("#email").css("border","1px solid rgb(255, 5, 0)");
$("#question-submit").removeAttr('disabled');
}
});
} else {
$("#question-submit").removeAttr('disabled');
$("#question-loader").html('<div class="alert alert-danger">Complete all mandatory fields.</div>');
}
});
$("#question-category").on('click', function () {
var info = $('option:selected', this).attr("data-info");
if ( info == '' || $(this).val() == '0' || info == undefined ) {
$( "#question-category-info" ).html( '' );
} else {
$( "#question-category-info" ).html( '<blockquote>' + info + '</blockquote>' );
}
});
$(“#change-cover”).on(‘click’, function () {
$(“#change-cover”).attr(‘disabled’, true);
$(“#loader”).html(‘’);
$( “#change-cover-form” ).submit();
});
$(“#change-profile”).on(‘click’, function () {
$(“#change-profile”).attr(‘disabled’, true);
$(“#loader”).html(‘’);
$( “#change-profile-form” ).submit();
});
$(“.question-vote”).on(‘click’, function () {
var id = $( this ).data(“id”);
var vote = $( this ).data(“vote”);
var value = parseFloat($(“.q-counter”).text());
$(".q-counter").html('<img src="http://www.freshpremiumthemes.com/template/default/assets/img/arrows.gif"/>');
//*** POST ***//
$.post('http://www.freshpremiumthemes.com/system/questions/vote.class.php?t=vote', { id:id, vote:vote, value:value },
function(data) {
var $response=$(data);
var mode = $response.filter('#mode').text();
var counter = $response.filter('#counter').html();
$(".q-counter").html( counter );
});
//*** END POST ***//
});
$(“#add-answer”).on(‘click’, function () {
$(“#add-answer”).attr(‘disabled’, true);
var t = 0;
var answer = CKEDITOR.instances[‘answer-details’].getData();
var qid = $( this ).data( “question” );
var aid = $( this ).data( “answer” );
var lD = rtrim(strip_tags(answer).replace(/ /g, '').replace(/ /g,''));
if( lD.length < 3 ){
t++;
$("#answer-details").css("border","1px solid #b94a48");t++;
} else{
$("#answer-loader").css("border","");
}
if ( t == 0 ) {
$("#answer-loader").html('');
//*** POST ***//
$.post('http://www.freshpremiumthemes.com/system/questions/answers.class.php?t=answer', { answer:answer, qid:qid, aid:aid },
function(data) {
var $response=$(data);
var mode = $response.filter('#mode').text();
var message = $response.filter('#message').html();
if(mode == 1){
CKEDITOR.instances['answer-details'].setData("");
$("#answer-loader").html('<div class="alert alert-success">'+message+'</div>');
$("#add-answer").removeAttr('disabled');
};
if(mode == 3){
$("#answer-loader").html('<div class="alert alert-success">'+message+'</div>');
$("#add-answer").removeAttr('disabled');
};
if( mode == 2 ) {
$("#answer-loader").html('<div class="alert alert-danger">'+message+'</div>');
$("#add-answer").removeAttr('disabled');
}
});
//*** END POST ***//
} else {
$("#answer-loader").html('<div class="alert alert-danger">You need to enter an answer</div>');
$("#add-answer").removeAttr('disabled');
}
});
$(“#flag-question”).on(‘click’, function () {
$( this ).attr(‘disabled’, true);
$( this ).html(‘’);
$( this ).html('<span class="glyphicon glyphicon-ok"></span> Reported!');
var id = $( this ).data( "question" );
//*** POST ***//
$.post('http://www.freshpremiumthemes.com/system/questions/report.class.php?t=question', { id:id });
//*** END POST ***//
});
$(“.flag-answer”).on(‘click’, function () {
$( this ).attr(‘disabled’, true);
$( this ).html(‘’);
$( this ).html('<span class="glyphicon glyphicon-ok"></span> Reported!');
var id = $( this ).data( "answer" );
//*** POST ***//
$.post('http://www.freshpremiumthemes.com/system/questions/report.class.php?t=answer', { id:id });
//*** END POST ***//
});
$(“.answer-vote”).on(‘click’, function () {
var id = $( this ).data(“id”);
var vote = $( this ).data(“vote”);
var value = parseFloat($(“#answer-counter-”+id).text());
$("#answer-counter-"+id).html('<img src="http://www.freshpremiumthemes.com/template/default/assets/img/arrows.gif"/>');
//*** POST ***//
$.post('http://www.freshpremiumthemes.com/system/questions/vote.class.php?t=answer-vote', { id:id, vote:vote, value:value },
function(data) {
var $response=$(data);
var mode = $response.filter('#mode').text();
var counter = $response.filter('#counter').html();
$("#answer-counter-"+id).html( counter );
});
//*** END POST ***//
});
$(“.a-winner”).on(‘click’, function () {
var aid = $( this ).data( “answer” );
var qid = $( this ).data( “question” );
$( ".a-winner" ).attr('disabled', true);
$( this ).html( '<span class="glyphicon glyphicon-ok"></span> Marked as Winner' );
$( "#answer-"+aid ).addClass( "answer-winner" );
//*** POST ***//
$.post('http://www.freshpremiumthemes.com/system/users/questions.class.php?t=question-winner', { aid:aid, qid:qid });
//*** END POST ***//
});
$("#search-homepage-ok").on('click', function () {
var t = 0;
var search = $("#search-homepage").val();
var search = search.replace(/\s/g, "+");
if ( search == "" ) {
$("#search-homepage").css("border","1px solid #b94a48");t++;
} else { $("#search-homepage").css("border",""); }
if ( t == 0 ) {
$(location).attr('href','http://www.freshpremiumthemes.com/search/'+search);
}
});
$(“#search-homepage”).keyup(function (e) {
if (e.keyCode == 13) {
var t = 0;
var search = $(“#search-homepage”).val();
var search = search.replace(/\s/g, “+”);
if ( search == "" ) {
$("#search-homepage").css("border","1px solid #b94a48");t++;
} else { $("#search-homepage").css("border",""); }
if ( t == 0 ) {
$(location).attr('href','http://www.freshpremiumthemes.com/search/'+search);
}
}
});
});
Thx, but envato forum performs some parts of the code
i dont know how to copy
Try JumpShare. Great for sharing code snippets!
send code pls to JumpShare or another code sharing site
There you go https://jumpshare.com/v/aR311HGKmlYyzwYVW7FT
Please be assure to clear the cache of your browser, we can see that its working now!
OMG it WORKS
But when i try to login as admin i get
Error! Check your account details again.
Here is instruction from author in documentation
Admin Panel
[default password is: admin and e-mail : admin@mail.com ])