It is not the supported photopost code your using. Our company does no provide support for code mods. You can ask questions about a mod in the thread that mod is located in.
More than likely you want to change the forumhome photo plugin in vb
plugins qswitch to random not latest.