Be it further enacted by the authority aforesaid that in case of a vacancy in the office of mayor or councilman by death, resignation or otherwise, an election to fill said vacancy shall be ordered by said council, to take place at such time as may be specified in said order, after public notice of the same by posting at the courthouse door in said city for the space of at least ten days before the date of said election. In case of vacancy in office of mayor or his disqualification or absence from the city, the same may be supplied by said board of councilmen by electing from their body a mayor pro tem, who shall perform all the duties of said office during said disqualification, or until the election and qualification of his successor as hereinbefore provided.