Oh, you already solved the problem.
What I did was I took one of those clamps that hold reptile heat lamps to the tanks and I just clamped the tube to the side of the tank, and then I took the glass cover and pushed it hard against the tube to sort of hold it in place.