My tip for you is to find your "trigger". You know, the thing that sets your good choices in motion. Mine is exercise. If I'm working out regularly with good challenges, it is easier to eat right and control my portions and choices. Analyze your reactions when you exercise well, or eat well, or track your meals, or read your articles and see what good action helps you stay on track in other areas of your health goals.
As for the dinner time cravings -- Take stock of what happens during the day that causes you to be so tempted near dinner time--- did you eat enough at lunch, can you try adding a healthy snack before you fall prey to the cravings? Are you drinking enough water in the afternoon? If you exercise before dinner time, are you more conscious of what you eat?
Experiment with different techniques to beat the dinner time bad snacks -- distract yourself with water or a walk or anything that draws your attention away from the craving. Or maybe change up your routine to break the bad habit.
You may have to employ several of these or other ideas to break the habit and build a new good one. Forgive yourself if you slip and keep on trying.