llju1 Posted December 3, 2009 Report Posted December 3, 2009 Ok this may have been talked about some where else but I would like to add a Module to my site that will show the latest forum post. Such as Tom uses on his site. http://www.europeangateway.info/ Let me know if you can . I use phpbb and smf. I will have all the members use which ever one is easiest to set up the code with. thanks for you time. Lloyd Mendenhall http://vmac.info Quote
Administrators simpilot Posted December 3, 2009 Administrators Report Posted December 3, 2009 google - smf forum ssi.php all the functions you are looking for already exisit in smf forum boards to display latest posts and other info from the forum on your website Quote
llju1 Posted December 3, 2009 Author Report Posted December 3, 2009 thanks for the quick reply. I keep getting an error but I will work it out sooner or later. ;D I really Like the way you site looks and hope to have mine functioning a lot better in the future. The Forum block is is the last thing I want to do to it them I thingk I will be done with it : thanks again for you quick replies Lloyd Mendenhall http://vmac.info Quote
TAV1702 Posted December 3, 2009 Report Posted December 3, 2009 Yeah that is a pretty cool feature that I have been wanting to mess with as well if I ever get the chance. work has me running in circles now that the farmers are finally done. Quote
flyalaska Posted December 3, 2009 Report Posted December 3, 2009 Look in the phpbb forums. There are plenty out there. I have one on my site. http://www.flyaka.com, not the best looking one. I can give it to you if you want it. Quote
llju1 Posted December 3, 2009 Author Report Posted December 3, 2009 Yes I would like the code. thanks. ;D Quote
flyalaska Posted December 3, 2009 Report Posted December 3, 2009 Here you go http://www.flyaka.com/downloads/topics_anywhere.zip to display it use the code below. Edit the file to your database and place in your phpbb directory. <?php include('forums/topics_anywhere.php'); ?> Quote
llju1 Posted December 4, 2009 Author Report Posted December 4, 2009 Getting this Error: Warning: include(forums/topics_anywhere.php) [function.include]: failed to open stream: No such file or directory in /hermes/web06b/b338/pow.llju1/htdocs/lib/skins/VMACSkin3/frontpage_main.tpl on line 155 Warning: include() [function.include]: Failed opening 'forums/topics_anywhere.php' for inclusion (include_path='.:/usr/local/lib/php-5.2.2/lib/php') in /hermes/web06b/b338/pow.llju1/htdocs/lib/skins/VMACSkin3/frontpage_main.tpl on line 155 Quote
flyalaska Posted December 4, 2009 Report Posted December 4, 2009 did you put the file in your forums directory? Quote
llju1 Posted December 4, 2009 Author Report Posted December 4, 2009 Yes I did my directory was called forum rather than forums so I changed that and now get this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hermes/web06b/b338/pow.llju1/htdocs/forum/topics_anywhere.php on line 38 Warning: extract() [function.extract]: First argument should be an array in /hermes/web06b/b338/pow.llju1/htdocs/forum/topics_anywhere.php on line 39 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hermes/web06b/b338/pow.llju1/htdocs/forum/topics_anywhere.php on line 41 Quote
llju1 Posted December 4, 2009 Author Report Posted December 4, 2009 got it working now lol. Had phpbb in caps LOL thanks Quote
flyalaska Posted December 4, 2009 Report Posted December 4, 2009 how did you do the users online? Quote
llju1 Posted December 4, 2009 Author Report Posted December 4, 2009 Not 100% sure it was part of one of the build update This is the code I have on my frontage;Hope it Helps. <h3 class="style12">Users Online</h3> <p><i>There have been <?php echo count($usersonline)?> user(s), and <?php echo count($guestsonline);?> guest(s) online in the past <?php echo Config::Get('USERS_ONLINE_TIME')?> minutes.</i></p> <?php /* $usersonline also has the list of users - really simple example Or if you're not on the frontpage: $usersonline = StatsData::UsersOnline(); foreach($usersonline as $pilot) { echo "{$pilot->firstname} {$pilot->lastname}<br />"; } */ ?> Quote
llju1 Posted December 4, 2009 Author Report Posted December 4, 2009 No Problem and Again thank you for the help. ;D Quote
TAV1702 Posted December 6, 2009 Report Posted December 6, 2009 I know this is fixing to be a real stupid question but I must. I have this on site and it works great.......EXCEPT, somehow, I have it working so that when you click a recent topic, it is going to my old url http://thunderva.paranormalinsights.com it should be going to http://thunderva.mweva.com I have looked in local config of phpVMS and the config file in my phpBB as well and no where does it have that old url that I can find. Can you tell me where I can look that I might not have looked allready? I have just searched for like 15 minutes to find the info and can not locate the answer. I guess this $config_value is what I am referring to. Quote
TAV1702 Posted December 6, 2009 Report Posted December 6, 2009 DOH! I knew it was a stupid question. :-[ When I moved my site, I failed to go into my ACP of phpBB3 and change the cookie domain as well as domain in server settings. Quote
llju1 Posted December 6, 2009 Author Report Posted December 6, 2009 ;D Never Stupid Question here, If so then I must ask the dumbest . I was just looking in my forum file to see what the php file said. Glad you fidxede it because I was stumped lol. Quote
TAV1702 Posted December 6, 2009 Report Posted December 6, 2009 Yes it is a slick addon for sure and am glad it was given to us. I really appreciate it. A little nip and tuck here and there to make it match my site a bit more and I will be happy as can be. Quote
llju1 Posted December 15, 2009 Author Report Posted December 15, 2009 Ok now a New question. How do I integrate a SMF forum the same way I did the phpBB forum? Can anyone help me. I like SMF a little better because I can update it easier and it has a cleaner look to it. Thanks for your time. Quote
Administrators simpilot Posted December 15, 2009 Administrators Report Posted December 15, 2009 Try this -> http://www.simplemachines.org/community/ssi_examples.php Quote
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.