novaforme Posted March 19, 2007 Share Posted March 19, 2007 my co worker has a site that runs off runcms i believe, but he bought it from a company calling it myspace gold. well the problem is that on the front page the website will refresh every so often and there is some php scripting at the top that you can't see unless you highlight it with the cursor. the site is http://www.ugabiz.com any help would be great, you guys have a cool site here. I have been trying to learn more about php and mysql for sometime, i know some but im glad i found this site. Quote Link to comment Share on other sites More sharing options...
farkewie Posted March 19, 2007 Share Posted March 19, 2007 looks like somewhere in the code is missing the php identifier "<?php" at the moment you have this /********************************************************************/ /* themebox_template Functions */ /* */ /* The look of certain blocks customized with templates */ /* */ /**************************************************************************/ function themebox_template($title='', $content, $show_template) { $dir = XOOPS_ROOT_PATH."/themes/".XOOPS_THEME."/template/"; $file = "$show_template"; include($dir.$file); } ?> should have this <?php /********************************************************************/ /* themebox_template Functions */ /* */ /* The look of certain blocks customized with templates */ /* */ /**************************************************************************/ function themebox_template($title='', $content, $show_template) { $dir = XOOPS_ROOT_PATH."/themes/".XOOPS_THEME."/template/"; $file = "$show_template"; include($dir.$file); } ?> i may be wrong hard to tell without seeing the code. hope this helps Quote Link to comment Share on other sites More sharing options...
novaforme Posted March 19, 2007 Author Share Posted March 19, 2007 i uploaded the original theme.php file and its still there (and yes i cleared my browser cache) this is what i don't understand if you log in, it goes away and the page stops reloading itself if you click on any of the links on the right side while logged out, it goes away and stops refreshing itself only when you on the home page which is http://ugabiz.com/modules/friendfinder/ does it show up and refresh itself. what did i do wrong :-\ thanks for the suggestion farkewie Quote Link to comment Share on other sites More sharing options...
novaforme Posted March 19, 2007 Author Share Posted March 19, 2007 ok i got the code to go away at the top of the page but i still can't figure out why it reloads just on that page. If you need me to post any code to look at just let me know Quote Link to comment Share on other sites More sharing options...
farkewie Posted March 20, 2007 Share Posted March 20, 2007 yeah im no pro, but heaps of others here are so post your code we will see if can get it working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.