Menu

include stats in phpbb portal

james
2003-03-11
2013-03-22
  • james

    james - 2003-03-11

    hey...
    lovin this script... don't have any users on my site but that just means its faster for me :-)
    anyway,
    is there any way I can import the foing stats like latest tracks and featured tracks to my portal in phpbb??

    I tried:
    include('http://www.myurl.com/foing/includes/common.php');
    include('http://www.myurl.com/foing/foing_feat.php');
    include('http://www.myurl.com/foing/foing_stats.php');

    then adding the nessecary template lines to the portal_body.tpl
    and all I got was a bunch of errors
    I uploaded the backups of all the files before I thought of posting this thread, but any ideas??
    thanks

     
    • Anonymous

      Anonymous - 2003-03-12

      Well, I have some ideas, but it would help if you supplied the errors you got.
      Anyway, here are some guesses:
      * use relative paths while including php files
      * you're probably including some phpBB files twice, better change some include() 's to include_once() 's in the foing/includes/common.php file.

       
    • james

      james - 2003-03-12

      tried the include once
      still got this error
      Warning: Failed opening 'http://www.hotchson.com/foing/includes/common.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site133/fst/var/www/html/phpBB2/portal.php on line 63

      Fatal error: Call to a member function on a non-object in /home/virtual/site133/fst/var/www/html/foing/foing_feat.php on line 11

      Fatal error: Call to a member function on a non-object in /home/virtual/site133/fst/var/www/html/foing/foing_stats.php on line 11

      Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/phpBB2/portal.php:63) in /home/virtual/site133/fst/var/www/html/phpBB2/includes/sessions.php on line 293

      Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/phpBB2/portal.php:63) in /home/virtual/site133/fst/var/www/html/phpBB2/includes/sessions.php on line 294

      Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/phpBB2/portal.php:63) in /home/virtual/site133/fst/var/www/html/phpBB2/includes/page_header.php on line 488

      Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/phpBB2/portal.php:63) in /home/virtual/site133/fst/var/www/html/phpBB2/includes/page_header.php on line 489

      Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/phpBB2/portal.php:63) in /home/virtual/site133/fst/var/www/html/phpBB2/includes/page_header.php on line 490

       
    • james

      james - 2003-03-12

      what would my relative path be if my dir is set up as such
      home\foing\includes\common.php
      home\phpbb2\portal.php
      thanks for your help :-)

       
    • james

      james - 2003-03-13

      ok... i think this might be a little easier to resolve

      Fatal error: Call to undefined function: append_status_sql() in /home/virtual/site133/fst/var/www/html/phpBB2/portal.php on line 294

      basically what I did was drop in the code from foing_features.php minus the template assign variable because i don't think it is relevant

      if i
      //$sql = append_status_sql($sql);
      i don't get this error but see titles and a blank features template
      i tried dropping the
      " // this function checks if the current user has permission to do: ..."
      script into phpbb\includes\functions.php
      from
      foing\includes\functions.php
      because this is where append_status_sql is referenced from but this seemed to cause more probs
      I think this would be a great addition to any phpbb portal or index if we could get it to work
      thanks

       
    • Anonymous

      Anonymous - 2003-03-14

      I'm hoping this will fix your problem: I've stripped some code from foing's common.php. You can insert it in your portal.php. You'll only have to change the first line of code, the foing root path that is.
      In your case it would be "../foing/".
      You will still have to include the feature and the stats files....
      See here for the stripped code:
      https://sourceforge.net/tracker/index.php?func=detail&aid=703542&group_id=57705&atid=485111

       
    • james

      james - 2003-03-20

      that worked!!!
      I had to drop the code from foing_stats.php and foing_feat.php into the portal minus references to templates
      then drop the tables from the relative template files into portal.tpl
      thanks. 
      this is a great addition to phpbb.
      anyone interested can generate this info on any phpbb file by following the information in this post

       
    • 21cp

      21cp - 2005-08-17

      how to solve those problems??who can help??

      Warning: main(): Unable to access E:\/foing/includes/common.php in E:\www\foing\index.php on line 11

      Warning: main(/foing/includes/common.php): failed to open stream: No such file or directory in E:\www\foing\index.php on line 11

      Warning: main(): Failed opening '/foing/includes/common.php' for inclusion (include_path='e:\php4\includes') in E:\www\foing\index.php on line 11

      Warning: main(): Unable to access E:\/foing/foing_feat.php in E:\www\foing\index.php on line 13

      Warning: main(/foing/foing_feat.php): failed to open stream: No such file or directory in E:\www\foing\index.php on line 13

      Warning: main(): Failed opening '/foing/foing_feat.php' for inclusion (include_path='e:\php4\includes') in E:\www\foing\index.php on line 13

      Fatal error: Call to a member function on a non-object in E:\www\foing\foing_stats.php on line 11

       

Log in to post a comment.

MongoDB Logo MongoDB