Jump to content



Latest News: (loading..)

- - - - -

fixes to PhpBB contribution


  • Please log in to reply
185 replies to this topic

#41   beardeddone

beardeddone
  • Members
  • 283 posts
  • Real Name:John

Posted 21 January 2004 - 09:48 PM

markdc, on Jan 21 2004, 01:00 PM, said:

Before I even attempt this. Is it possible to migrate an existing phpBB to this without making all my users re-register. Thanks for any info  :D
If your talking about the users in the OSC database, no they won't need to re-register if you run the upmysql.php that was presented above, as a matter of fact new users can't register unless they go thru OSC first, phpbb will take them to the signup for osc anyway.
Best Regards

#42   beardeddone

beardeddone
  • Members
  • 283 posts
  • Real Name:John

Posted 21 January 2004 - 09:53 PM

Goanna, on Dec 22 2003, 01:12 PM, said:

Damn, I want to get this thing working but it looks like it is going to be a major pain. I thought I was finished and then I relized I had that whole seperate set of instructions to follow from beardedone.

Also, where is the file bb_index.php located? It didnt get uploaded to my site and I dont see it in the original folders from the contrib either.
This is also explained on my website how and what to put in the bb_index.php file.
Best Regards

#43   beardeddone

beardeddone
  • Members
  • 283 posts
  • Real Name:John

Posted 21 January 2004 - 10:00 PM

[img]http://www.skyport.dynip.com/skyport/images/reno-747/SNAG-0168.jpg[/img]
Best Regards

#44   Frederick

Frederick
  • Members
  • 6 posts
  • Real Name:Frederick Launoy

Posted 26 January 2004 - 06:51 AM

Hi,

Now the PHPBB contribution sets the default language or the language chosen in the user profile. So you get e.g. an English oscommerce with a dutch PHPBB.  Wouldn't it be possible to make the language of PHPBB change when you chose a different language of OSC ?

Thanks in advance

Frederick

#45   oldpa

oldpa
  • Members
  • 58 posts
  • Real Name:oldpa
  • Location:TAIWAN

Posted 28 January 2004 - 06:08 AM

Hi,
Integrated by Oldpa © 2003 Bulletin Board Module for osCommerce .
Powered by Invision Power Board(U) v1.3 Final © 2003  IPS, Inc.
DEMOhere
Webhere

Edited by oldpa, 28 January 2004 - 06:08 AM.


#46   Frederick

Frederick
  • Members
  • 6 posts
  • Real Name:Frederick Launoy

Posted 29 January 2004 - 07:32 PM

Does this mean you are suggesting to use invision instead of phpbb?  I'm sorry but I can't read anything on your forum, it is all in Chinese.
Isn't it possible to change the language by changing the osc language in your PHPBB contribution?  The invision board you are using is also not as integrated into the OSC layout as phpbb.
Great contribution though Oldpa!

Edited by Frederick, 29 January 2004 - 07:33 PM.


#47   Frederick

Frederick
  • Members
  • 6 posts
  • Real Name:Frederick Launoy

Posted 29 January 2004 - 07:43 PM

How come it does change the language if you change the OSC language on your demosite and on mine it doesn't ?

#48   defender39

defender39
  • Members
  • 410 posts
  • Real Name:jesse

Posted 30 January 2004 - 03:02 PM

I got this working on my MS1 ..took about 2-3 hours but its all good now.  One thing would be nice.  If during signup you allowed users to create the forums alias.  I have set in the config so users can change names if they want so that will do for now but it would be cooler if during signup it just asked for a "forums alias"

I installed this contrib from the 2 parts in the contributions section.

The real trouble I had was that I am using SEF on and it doesnt like the module link at all.  I did hard code a link in my header and that worked just fine.  I wasted at least an hour on that.  Otherwise the install wasnt too bad.  Just ignore the chinese text.

#49   tuca

tuca
  • Members
  • 26 posts
  • Real Name:gigi

Posted 31 January 2004 - 10:14 AM

My problem is this:
When i try to add a post in the forum i can do this only as a guest also if i'm registered user...
Ihave this error when i run "upmysql"

1062 - duplicate entry '1' for the key 1

insert into phpbb_users (user_id , user_active, username, user_password ,user_session_time , user_session_page , user_lastvisit , user_regdate , user_level , user_posts , user_timezone , user_style , user_lang , user_dateformat , user_new_privmsg , user_unread_privmsg , user_last_privmsg , user_emailtime , user_viewemail , user_attachsig , user_allowhtml , user_allowbbcode , user_allowsmile ,user_allowavatar ,user_allow_pm , user_allow_viewonline ,user_notify , user_notify_pm ,user_popup_pm , user_rank , user_avatar ,user_avatar_type ,user_email , user_icq ,user_website ,user_from ,user_sig , user_sig_bbcode_uid , user_aim , user_yim , user_msnm ,user_occ , user_interests , user_actkey , user_newpasswd) SELECT customers_id , '1', customers_lastname , customers_password , '', '', 'time()', 'time()', '0','0','8.00','1', 'chinese_traditional_taiwan','D M d, Y g:i a', '0','0','0', '0','1','1','0','1', '1','1','1','1','0', '1','1','0','','0',customers_email_address, '','','','','','','','','','','','' FROM customers WHERE customers_id

[TEP STOP]


Can anyone help me please?

#50   oldpa

oldpa
  • Members
  • 58 posts
  • Real Name:oldpa
  • Location:TAIWAN

Posted 31 January 2004 - 07:32 PM

Frederick, on Jan 29 2004, 03:43 PM, said:

How come it does change the language if you change the OSC language on your demosite and on mine it doesn't ?
open ibf index.php find

if ($ibforums->vars['default_language'] == "")
{
$ibforums->vars['default_language'] = 'en';
}

change to like

if (session_is_registered('language')) {
$ibforums->vars['default_language'] = $language;
   }else
    if ($ibforums->vars['default_language'] == "")
{
$ibforums->vars['default_language'] = 'english';
}

but you ibf lang folder en need to change name to english just like osc languages
folder name

#51   oldpa

oldpa
  • Members
  • 58 posts
  • Real Name:oldpa
  • Location:TAIWAN

Posted 31 January 2004 - 07:38 PM

if is phpbb want to change languages by osc

open phpbb functions.php find
function init_userprefs($userdata) 
{ 
   global $board_config, $theme, $images; 
   global $template, $lang, $phpEx, $phpbb_root_path; 
   global $nav_links; 

   if ( $userdata['user_id'] != ANONYMOUS ) 
   { 
      if ( !empty($userdata['user_lang'])) 
      { 
         $board_config['default_lang'] = $userdata['user_lang']; 
      } 

      if ( !empty($userdata['user_dateformat']) ) 
      { 
         $board_config['default_dateformat'] = $userdata['user_dateformat']; 
      } 

      if ( isset($userdata['user_timezone']) ) 
      { 
         $board_config['board_timezone'] = $userdata['user_timezone']; 
      } 
   } 

   if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) ) 
   { 
      $board_config['default_lang'] = 'english'; 
   } 

   include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); 

   if ( defined('IN_ADMIN') ) 
   { 
      if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) ) 
      { 
         $board_config['default_lang'] = 'english'; 
      } 

      include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); 
   }
change to
function init_userprefs($userdata) 
{ 
   global $board_config, $theme, $images; 
   global $template, $lang, $phpEx, $phpbb_root_path, $language; 
   global $nav_links; 
    
if (tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) 
 { 

   if ( $userdata['user_id'] != ANONYMOUS ) 
   { 
      if ( !empty($userdata['user_lang'])) 
      { 
         $board_config['default_lang'] = $userdata['user_lang']; 
      } 

      if ( !empty($userdata['user_dateformat']) ) 
      { 
         $board_config['default_dateformat'] = $userdata['user_dateformat']; 
      } 

      if ( isset($userdata['user_timezone']) ) 
      { 
         $board_config['board_timezone'] = $userdata['user_timezone']; 
      } 
   } 

   if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $language . '/lang_main.'.$phpEx)) ) 
   { 
      $board_config['default_lang'] = 'english'; 
   } 

   include($phpbb_root_path . 'language/lang_' . $language . '/lang_main.' . $phpEx); 

   if ( defined('IN_ADMIN') ) 
   { 
      if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $language . '/lang_admin.'.$phpEx)) ) 
      { 
         $board_config['default_lang'] = 'english'; 
      } 

      include($phpbb_root_path . 'language/lang_' . $language . '/lang_admin.' . $phpEx); 
   } 
}


#52   oldpa

oldpa
  • Members
  • 58 posts
  • Real Name:oldpa
  • Location:TAIWAN

Posted 01 February 2004 - 10:29 AM

hi all

all new version release

phpbb mod demo site

oscms2 nuke68 demo site

osc mod for xoops205 demo site

ipb mod for osc demo site

web site here

Support Forums Shopping cart research site

#53   Frederick

Frederick
  • Members
  • 6 posts
  • Real Name:Frederick Launoy

Posted 07 February 2004 - 09:55 AM

Thanks oldpa,
that did the job!

U rule! :)  :)

Edited by Frederick, 07 February 2004 - 09:56 AM.


#54   Goanna

Goanna
  • Members
  • 415 posts
  • Real Name:Billy

Posted 12 February 2004 - 03:36 AM

Oldpa, I cant download your files. I tried signing up several times, and I never got the confirmation emails, and I did check my spam folder. I would like to get the PHPBB and IPB mods off of you, so can you please tell me how to download them.

#55   jcall

jcall
  • Members
  • 3,092 posts
  • Real Name:Jared Call
  • Gender:Male
  • Location:Saratoga Springs, UT

Posted 02 June 2004 - 12:27 AM

anyone else getting this when posting topics/replies to the integrated forums?  I'm using the 2.0.8 updated contrib from http://www.oscommerce.com/community/contributions,2116 .  I suppose I could go back and install the 2.0.6 version, but I've spent so much time trying to get this finished (albeit most of it spent on this particular error) that it's turning into a grudge match.

Warning: Cannot modify header information - headers already sent by (output started at /home/croppi2/public_html/staging/modules.php:28) in /home/croppi2/public_html/staging/includes/modules/phpbb2/viewtopic.php on line 555

I know that the standard answer to this is that there is typically a language file somewhere with extra whitespace after the closing ?> in the file, but it seems I've checked all of them multiple times and can't find any whitespace left.

Anyone else with this problem?

I know that there are other websites with this integration working . . .

-jared

#56   dmarre

dmarre
  • Members
  • 43 posts
  • Real Name:Webmaster

Posted 05 June 2004 - 06:37 AM

I'm getting the same thing when a user creates an account and clicks continue. The funny thing is that the account still creates and is logged in. Here is my message:
Warning: Missing argument 3 for tep_get_zone_name() in \catalog\includes\functions\general.php on line 260

Warning: Cannot modify header information - headers already sent by (output started at \catalog\includes\functions\general.php:260) in \catalog\includes\functions\general.php on line 29

Another thing is the forum uses surnames (ex. JSmith), so if a user even used that account it will direct them to oscommerce and say email account cannot be found. But if the user logs in to oscommerce first, it works fine. My work around to that is to remove the actual login box and password section in the forum and just add something like: To access forum you must sign in to your oscommerce account. My greatest concern is the error specified above. Please need help badly. I've been up for days trying to get this to work.

#57   dmarre

dmarre
  • Members
  • 43 posts
  • Real Name:Webmaster

Posted 05 June 2004 - 07:54 PM

In case you guys were wondering, i have had the oscommerce site working fine with all the other contributions. My errors started when i tried to intergrate the phpbb2 forum into my cart. So i have never had this problem with the general.php page. Thanks.

#58   jcall

jcall
  • Members
  • 3,092 posts
  • Real Name:Jared Call
  • Gender:Male
  • Location:Saratoga Springs, UT

Posted 05 June 2004 - 08:59 PM

dmarre - - I got the answer to this problem on a related forum topic.  It can be found here:  http://forums.oscommerce.com/index.php?sho...ndpost&p=381435

But of course I still have a shopping cart error in the right column . . .

-jared

#59   dmarre

dmarre
  • Members
  • 43 posts
  • Real Name:Webmaster

Posted 06 June 2004 - 05:02 PM

Thanks jcall.
Unfortunatly i commented out the cookie session in viewtopic.php as stated in the forum link you specified and still didn't work. I still get the error message when you create an account. It does make sense about the double cookie session been sent causing this error, but i can't centralize what page is sending the cookie request when you are creating an account. Thanks again and if any ideas please post.

#60   jcall

jcall
  • Members
  • 3,092 posts
  • Real Name:Jared Call
  • Gender:Male
  • Location:Saratoga Springs, UT

Posted 07 June 2004 - 04:24 AM

dmarre - you have to do similar comments in other files that are giving you errors:  create_account.php, etc.

I'm still having this problem with privmsg.php and profile.php, but this may be happening only when I'm not logged in.

Still checking . ..

-jared