Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:50:58 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155528 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: 1 2 [3] 4   Go Down
Print
Author Topic: myBB forum integration  (Read 10712 times)
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #50 on: April 13, 2011, 11:31:03 PM »

Hi,
ok first result of attachment dump:
Quote
array(1) {
  ["myBB"]=>
  &NULL
}


Fatal error:  Call to a member function query() on a non-object in C:\inetpub\vhosts\rprg.de\httpdocs\modules\myBB\view.php on line 33

If I call it at line 21 the result of a forum page is:
Quote
array(22) {
  ["session_started"]=>
  int(1302730689)
  ["ATTEMPS"]=>
  int(0)
  ["AJXP_LANGUAGES"]=>
  array(24) {*many stuff in here...
  }
  ["REPO_ID"]=>
  int(0)
  ["USER_ID"]=>
  string(1) "1"
  ["GROUP_ID"]=>
  string(1) "1"
  ["GROUPS_ID"]=>
  string(1) "1"
  ["USERNAME"]=>
  string(12) "Yes my name"
  ["DISPLAY_NAME"]=>
  string(13) "Administrator"
  ["EMAIL"]=>
  string(13) "xxxxxxxxxxxx"
  ["HOME_FOLDER"]=>
  string(0) ""
  ["LANGUAGE"]=>
  string(2) "DE"
  ["TIMEZONE"]=>
  string(4) "3600"
  ["DATE_FORMAT"]=>
  string(5) "d.m.Y"
  ["TIME_FORMAT"]=>
  string(3) "H:i"
  ["SYSTEM_PERMISSIONS"]=>
  array(42) {
   
  • =>
    string(5) "pages"
    [1]=>
    string(10) "pages_view"
    [2]=>
    string(9) "pages_add"
    [3]=>
    string(12) "pages_add_l0"
    [4]=>
    string(14) "pages_settings"
    [5]=>
    string(12) "pages_modify"
    [6]=>
    string(11) "pages_intro"
    [7]=>
    string(12) "pages_delete"
    [8]=>
    string(5) "media"
    [9]=>
    string(10) "media_view"
    [10]=>
    string(12) "media_upload"
    [11]=>
    string(12) "media_rename"
    [12]=>
    string(12) "media_delete"
    [13]=>
    string(12) "media_create"
    [14]=>
    string(6) "addons"
    [15]=>
    string(7) "modules"
    [16]=>
    string(12) "modules_view"
    [17]=>
    string(15) "modules_install"
    [18]=>
    string(17) "modules_uninstall"
    [19]=>
    string(9) "templates"
    [20]=>
    string(14) "templates_view"
    [21]=>
    string(17) "templates_install"
    [22]=>
    string(19) "templates_uninstall"
    [23]=>
    string(9) "languages"
    [24]=>
    string(14) "languages_view"
    [25]=>
    string(17) "languages_install"
    [26]=>
    string(19) "languages_uninstall"
    [27]=>
    string(Cool "settings"
    [28]=>
    string(14) "settings_basic"
    [29]=>
    string(17) "settings_advanced"
    [30]=>
    string(6) "access"
    [31]=>
    string(5) "users"
    [32]=>
    string(10) "users_view"
    [33]=>
    string(9) "users_add"
    [34]=>
    string(12) "users_modify"
    [35]=>
    string(12) "users_delete"
    [36]=>
    string(6) "groups"
    [37]=>
    string(11) "groups_view"
    [38]=>
    string(10) "groups_add"
    [39]=>
    string(13) "groups_modify"
    [40]=>
    string(13) "groups_delete"
    [41]=>
    string(10) "admintools"
  }
  ["MODULE_PERMISSIONS"]=>
  array(0) {
  }
  ["TEMPLATE_PERMISSION S"]=>
  array(0) {
  }
  ["GROUP_NAME"]=>
  array(1) {
    [1]=>
    string(14) "Administrators"
  }
  ["PAGE_ID"]=>
  int(25)
  ["myBB25"]=>
  array(10) {
    ["host"]=>
    string(14) "http://rprg.de"
    ["view"]=>
    string(23) "/modules/myBB/view.php?"
    ["path"]=>
    string(19) "/modules/myBB/myBB/"
    ["relpath"]=>
    string(5) "myBB/"
    ["page"]=>
    string(27) "/pages/teamsides/forum.php?"
    ["usr"]=>
    array(4) {
     
  • =>
      string(1) "1"
      [1]=>
      string(1) "1"
      [2]=>
      string(1) "0"
      [3]=>
      string(1) "0"
    }
    ["COOKIE"]=>
    array(2) {
      ["mybbuser"]=>
      string(52) "1_RhpHShZc4KgFJo1Iu qXQ5T78bfft7SZiyY16 kHlDy6pwsB4Jx2"
      ["sid"]=>
      string(32) "28a0357705eb7e43091 0200dff38a97c"
    }
    ["debug"]=>
    NULL
    ["database"]=>
    array(7) {
      ["type"]=>
      string(5) "mysql"
      ["database"]=>
      string(10) "xxxxxxxxxx"
      ["table_prefix"]=>
      string(5) "mybb_"
      ["hostname"]=>
      string(9) "localhost"
      ["username"]=>
      string(14) "xxxxxxx"
      ["password"]=>
      string(Cool "xxxxxx"
      ["encoding"]=>
      string(4) "utf8"
    }
    ["dbclass"]=>
    string(Cool "DB_MySQL"
  }
  ["sid"]=>
  string(32) "28a0357705eb7e43091 0200dff38a97c"
}

I'm def logged into WB and Forum. Only thing i don't understand atm why the sessions are diffrent by clicking the attachments (lurl) ant written in sessions array sid.
Maybe it's also because forum page is set to registiert and link opens in new window? I tried by setting the link to an other session id with same result.
(Changed line 195 in view.php to    $conf['view'].'attachment.php?wb_sid='.$_SESSION["sid"].'&',
BUT if i change url to http://rprg.de/modules/myBB/mybb/attachment.php?aid=3 and relogin I can download it. So it's def a login issue...

Sry for finding so many bugs at my installation Wink
Logged
tiggerific

Offline Offline

Posts: 25


« Reply #51 on: April 14, 2011, 12:17:02 AM »


Second problem:

I use the login panel in template. If I create a forum page as private, link disappears not being logged in (as expected).
If I then login using the "login-box" in template, link appears and I may select forum as usually. Please check.

Are you sure you created a new page and selected share login and synchronize user date but de-selected stand-alone login option?

You could remove comment in class sgwDbg (around line 399) to get a non-blank page (same as debug.php output, but on screen) to dig into.
Code:
# echo '<code>'.htmlentities($msg).'</code><br/>'; return;
Please check out and post results.


Ok. In your test, you are logging in FIRST and then clicking the forum link. I need to be able to click the login and open the forum... or make the Forum link a registered link so that if that's the first thing they click, it goes to the WB login, then straight to the forum. If you do it this way, even the debug info isn't displayed until you refresh the page. Please try on your setup and let me know if you can reproduce it.
Logged
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #52 on: April 14, 2011, 06:34:32 AM »

This is the way I did it. I template I wrote
Quote
   <?php if(is_numeric($wb->get_session('USER_ID'))){
   echo '<div id="rprgnav2">';
         show_menu2(2, SM2_ROOT+1, SM2_START, SM2_ALL, ' // [a][menu_title]</a>', '','', '', '[a][menu_title]</a>');
    echo '</div>';
   }?>
and set forum page to registriert. So if you call forum page directly you have to log in there (url: http://rprg.de/account/login.php?redirect=http://rprg.de/pages/teamsides/forum.php) and if you are logged in you see a second menu with forum link. It works on my site... Even if I just write the menu2 into template and click forum link there i come to the same url as above, i log in and see the forum.
Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #53 on: April 14, 2011, 11:42:06 AM »

@LordDarkman

You're kidding me! That what you pointed out is not possible. Let's explain:

You said, on line 21 you get a big array dumped and then on line 32 it's empty? If you take look at the code, the configuration array is loaded from session variable "mybb"+PAGE_ID (in this case resulting in "myBB25") which is available in your dump. On line 32 it disappeared?


Quote
BUT if i change url to http://rprg.de/modules/myBB/mybb/attachment.php?aid=3 and relogin I can download it. So it's def a login issue...
Beliebe me - it's a  session issue. All myBB code is called in a sand box. This is required, because in PHP 5 there is no namespace available. If you try to call code in same environment you match up with double define() and overlapping variables. Building a sand box is the sole solution to this problem.

Btw. that's the reason why some of the myBB function may work inproperly - they all need to be implemented in my "sandbox" driver.

Module is storing all data between calls in $_SESSION['myBB'.$page_id] variable. If that array is not available (for whatever reason), a "restart" is initiated and module try to load configuration data from tables.

At the end of the day, the question is: Why does this session data disappear?

Quote
Maybe it's also because forum page is set to registiert and link opens in new window?
I'm a bit unsure what you mean. Please post your WB page settings, so I may reproduce situation in my test environment.

Quote
Sry for finding so many bugs at my installation
I'm happy to get input - I build this module based on my special environment. I did only test myBB functions which I'm currently using, so it inherent many functions will not work from scratch...

@tiggerific
Nope. I defined page as shown in screen shot. Link isn't display until user is logged in. Then I use a standard login box.

Code:
// show login box
   '<div id="login-box">';
    if (FRONTEND_LOGIN && !$wb->is_authenticated()) {
  echo '<form name="login" action="'.LOGIN_URL.'" method="post">'.
   '<fieldset>'.
'<div class="loginbody">'.
 '<label for="username" class="logintext">'.$TEXT['USERNAME'].':</label>'.
 '<input type="text" name="username" id="username" />'.
 '<label for="password" class="logintext">'.$TEXT['PASSWORD'].':</label>'.
 '<input type="password" name="password" id="password" />'.
 '<input class="loginsubmit" type="submit" name="submit" value="'.$TEXT['LOGIN'].'" />'.
 '<a href="'.FORGOT_URL.'">'.$TEXT['FORGOT_DETAILS'].'</a>&nbsp;&nbsp;&nbsp;&nbsp;'.
'</div>'.
'</fieldset>'.
  '</form>';
 } elseif(FRONTEND_LOGIN && $wb->is_authenticated()) {
  echo '<form name="logout" action="'.LOGOUT_URL.'" method="post">'.
'<fieldset>'.
'<div class="loginbody">'.
 '<h3>'.$TEXT['WELCOME_BACK'].',<br />'; echo $wb->get_display_name(); echo '</h3><br />'.
 '<a href="'.PREFERENCES_URL.'">'.$MENU['PREFERENCES'].'</a>&nbsp;&nbsp;&nbsp;&nbsp;'.
 '<a href="'.LOGOUT_URL.'">'.$MENU['LOGOUT'].'</a>'.
'</div>'.
'</fieldset>'.
    '</form>';
 }
 echo '</div>'.

Update: Even if I change "Visibilty" to "Registerd", link is available to public, a WB login panel is display (as expected) and after entering user login data, I got redirected to Forum page.

To be honest, I don't understand the problem  huh
« Last Edit: April 14, 2011, 02:07:26 PM by syncgw » Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
tiggerific

Offline Offline

Posts: 25


« Reply #54 on: April 14, 2011, 03:16:50 PM »

Quote
Update: Even if I change "Visibilty" to "Registerd", link is available to public, a WB login panel is display (as expected) and after entering user login data, I got redirected to Forum page.

Well that was exactly what I expected, but it's not happening! If I am completely logged out (admin and everything) then do the above, I get a blank page after logging in. I click refresh and the forum is displayed without further issues.

I have tried several methods of getting the forum link to work with either Private or Registered and regardless of how I do it (directly, indirectly by having another link redirect to the forum, whatever) it always shows a blank page FIRST.

I can't post the public login details here as it is a private forum (that's the whole point) but at the moment it is set so that the users click on a Registered link to login. That link is a Menu link which redirects to the Forum link that is set to Private. The idea is that they click one link on the website, they are asked to login, and then see the forum - it is not acceptable for them to login, then click a second link to visit the forum. It should be seamless and immediate.

I have had to add a section to the forum page asking them to click a link to continue to the forum or else they only see a blank page.

If you PM me, I can give you a login to take a look.

----------

On another note, I have an issue with the "Last Post" link. Everything else seems to be working fine but the Last Post redirects incorrectly. For example, the URL displayed shows:

http://www.domain.com/pages/monitor-forum.php?showthread.php?tid=7&action=lastpost

When it tries to call the lastpost however, the URL called is:

http://www.domain.com/pages/showthread.php?tid=7&pid=11#pid11

It is missing the "monitor-forum.php?" part of the link. Any idea how to fix this one?



« Last Edit: April 14, 2011, 03:25:51 PM by tiggerific » Logged
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #55 on: April 14, 2011, 04:40:12 PM »

I'm not kidding wink i changed line 21-33 like this:
Code:
echo 'line 21:------<pre>';var_dump($_SESSION);
// get configuration
$page_id = $_SESSION['PAGE_ID'];
$conf = &$_SESSION['myBB'.$page_id];
echo'line 23/24:------$_SESSION[PAGE_ID]'.$_SESSION['PAGE_ID'].' / $_SESSION[myBB$page_id]'.$_SESSION['myBB'.$page_id];
// ajax call?
if (stripos($_SERVER['REQUEST_URI'], 'ajax=1'))
 unset($_POST['wb_uri']);
 
// did we load our global variables?
if (!isset($conf['path'])) {
 echo 'line 32:------<pre>';var_dump($_SESSION);
result:
Code:
line 21:------
array(22) {
  ["session_started"]=>
  int(1302792165)
  ["PAGE_ID"]=>
  int(25)
  ["ATTEMPS"]=>
  int(0)
  ["AJXP_LANGUAGES"]=>
  array(24) {
****** lot of stuff in here
  int(0)
  ["USER_ID"]=>
  string(1) "1"
  ["GROUP_ID"]=>
  string(1) "1"
  ["GROUPS_ID"]=>
  string(1) "1"
  ["USERNAME"]=>
  string(12) "MajorMadness"
  ["DISPLAY_NAME"]=>
  string(13) "Administrator"
  ["EMAIL"]=>
  string(13) "admin*{at}*rprg*{.}*de"
  ["HOME_FOLDER"]=>
  string(0) ""
  ["LANGUAGE"]=>
  string(2) "DE"
  ["TIMEZONE"]=>
  string(4) "3600"
  ["DATE_FORMAT"]=>
  string(5) "d.m.Y"
  ["TIME_FORMAT"]=>
  string(3) "H:i"
  ["SYSTEM_PERMISSIONS"]=>
  array(42) {
    [0]=>
    string(5) "pages"
    [1]=>
    string(10) "pages_view"
    [2]=>
    string(9) "pages_add"
    [3]=>
    string(12) "pages_add_l0"
    [4]=>
    string(14) "pages_settings"
    [5]=>
    string(12) "pages_modify"
    [6]=>
    string(11) "pages_intro"
    [7]=>
    string(12) "pages_delete"
    [8]=>
    string(5) "media"
    [9]=>
    string(10) "media_view"
    [10]=>
    string(12) "media_upload"
    [11]=>
    string(12) "media_rename"
    [12]=>
    string(12) "media_delete"
    [13]=>
    string(12) "media_create"
    [14]=>
    string(6) "addons"
    [15]=>
    string(7) "modules"
    [16]=>
    string(12) "modules_view"
    [17]=>
    string(15) "modules_install"
    [18]=>
    string(17) "modules_uninstall"
    [19]=>
    string(9) "templates"
    [20]=>
    string(14) "templates_view"
    [21]=>
    string(17) "templates_install"
    [22]=>
    string(19) "templates_uninstall"
    [23]=>
    string(9) "languages"
    [24]=>
    string(14) "languages_view"
    [25]=>
    string(17) "languages_install"
    [26]=>
    string(19) "languages_uninstall"
    [27]=>
    string(8) "settings"
    [28]=>
    string(14) "settings_basic"
    [29]=>
    string(17) "settings_advanced"
    [30]=>
    string(6) "access"
    [31]=>
    string(5) "users"
    [32]=>
    string(10) "users_view"
    [33]=>
    string(9) "users_add"
    [34]=>
    string(12) "users_modify"
    [35]=>
    string(12) "users_delete"
    [36]=>
    string(6) "groups"
    [37]=>
    string(11) "groups_view"
    [38]=>
    string(10) "groups_add"
    [39]=>
    string(13) "groups_modify"
    [40]=>
    string(13) "groups_delete"
    [41]=>
    string(10) "admintools"
  }
  ["MODULE_PERMISSIONS"]=>
  array(0) {
  }
  ["TEMPLATE_PERMISSIONS"]=>
  array(0) {
  }
  ["GROUP_NAME"]=>
  array(1) {
    [1]=>
    string(14) "Administrators"
  }
  ["myBB25"]=>
  array(10) {
    ["host"]=>
    string(14) "http://rprg.de"
    ["view"]=>
    string(23) "/modules/myBB/view.php?"
    ["path"]=>
    string(19) "/modules/myBB/myBB/"
    ["relpath"]=>
    string(5) "myBB/"
    ["page"]=>
    string(27) "/pages/teamsides/forum.php?"
    ["usr"]=>
    array(4) {
      [0]=>
      string(1) "1"
      [1]=>
      string(1) "1"
      [2]=>
      string(1) "0"
      [3]=>
      string(1) "0"
    }
    ["COOKIE"]=>
    array(2) {
      ["mybbuser"]=>
      string(52) "1_RhpHShZc4KgFJo1IuqXQ5T78bfft7SZiyY16kHlDy6pwsB4Jx2"
      ["sid"]=>
      string(32) "91d89dee6d36fd920599b4a463276178"
    }
    ["debug"]=>
    NULL
    ["database"]=>
    array(7) {
*********sql in here
    }
    ["dbclass"]=>
    string(8) "DB_MySQL"
  }
  ["sid"]=>
  string(32) "91d89dee6d36fd920599b4a463276178"
}
line 23/24:------$_SESSION[PAGE_ID]25 / $_SESSION[myBB$page_id]Array
And when i click the attachment:
Code:
line 21:------
NULL
line 23/24:------$_SESSION[PAGE_ID] / $_SESSION[myBB$page_id]line 32:------
array(1) {
  ["myBB"]=>
  &NULL
}
Fatal error:  Call to a member function query() on a non-object in C:\inetpub\vhosts\rprg.de\httpdocs\modules\myBB\view.php on line 33

Don't ask me why...
Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #56 on: April 14, 2011, 05:28:18 PM »

@tiggerific

As you mention you get a blank page, I would suggest you did not arrive at the forum page. Did you really create the page as of type "myBB forum"?

May bee you could insert a echo "hello forum"; at top of view.php to check it.

Where can I find the link you're talking about? Please apologize, but I'm not very familiar with mybb, so it would help to describe the steps to find the link.
« Last Edit: April 14, 2011, 05:30:48 PM by syncgw » Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
syncgw

Offline Offline

Posts: 129



WWW
« Reply #57 on: April 14, 2011, 05:47:47 PM »

@LordDarkman

I uploaded a new version 0,57 which handles attachment download links slightly different. Please check out.
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #58 on: April 14, 2011, 05:56:11 PM »

Server error: You need to be logged in to download this file!

this for short, i see if something else is changed...


No, exectly the same. if i read the tret with the attechment it gives me a session id other then in link and if i klick the link it gives me mybb null...
« Last Edit: April 14, 2011, 06:02:02 PM by LordDarkman » Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #59 on: April 14, 2011, 07:19:28 PM »

@LordDarkman

I figured out what went wrong - it was the way how mybb modul figured out the session identifier. I uploaded a new version which should work better.
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #60 on: April 14, 2011, 07:52:16 PM »

thx a lot for helping to find the reason. it was because I changed the session ID from wb_7106 to ****_7106. I tried the new version and this works great. I hope this was it for now Wink
Logged
tiggerific

Offline Offline

Posts: 25


« Reply #61 on: April 15, 2011, 05:32:23 AM »

Quote
As you mention you get a blank page, I would suggest you did not arrive at the forum page. Did you really create the page as of type "myBB forum"?

May bee you could insert a echo "hello forum"; at top of view.php to check it.

Not sure if you've been following what I've been saying... Of course it's a myBB forum page. As I have said, it shows a blank page, but just clicking REFRESH will make the forum appear. Everything else functions perfectly well (except for that link). The forum wouldn't appear at all if it wasn't a myBB forum page.

Quote
Where can I find the link you're talking about? Please apologize, but I'm not very familiar with mybb, so it would help to describe the steps to find the link.

It's the one that appears in the column under "Last Post" next to every forum thread link??? It's in the format of...

Post Title
Date Time
by Username

Hopefully you can find it.

Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #62 on: April 15, 2011, 10:01:56 AM »

@tiggerific

I check the link and it worked fine in my test environment. Shown link is
Code:
http://localhost/wb/pages/forum.php?showthread.php?tid=23&action=lastpost
executed link is:
Code:
http://localhost/wb/pages/forum.php?/wb/pages/forum.php?showthread.php?tid=23&pid=77#pid77

Since you get a different link, I would assume there is a configuration issue with the forum page. Please check your page setup (selected options), ensure you set the myBB settings as required and you clicked the "Save/Patch" button.

If this fails, send me your mybb/inc/settings.php, the WB forum page configuration via PM.
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #63 on: April 17, 2011, 09:28:51 PM »

Hi,

My thoughts are to remove header of Mybb forum (where user logs in and registers) and that user can only be registered via WB. I think it would look more integrate like this, right Smiley

I realized that myBB doesnt use same method for password encryption, so at this point I dont know how to do it.. WB use the salt and wb uses md5.

So did anyone have thoughts about the code to insert user into myBB when user registers on WB  ?

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
syncgw

Offline Offline

Posts: 129



WWW
« Reply #64 on: April 17, 2011, 11:06:40 PM »

I though about that during the development of the module.

You need to build a couple of so-called plugins for myBB to catch login sequences. It seems to be possible. For more information take a look at http://www.mybboard.de/doku/sonstiges/informationen-zu-plugins.html (in German) which shows all available hooks.

At least take a look at the share-user-login functions I already implemented. May bee they're useful as a starting point.

I stopped working on that out of two reasons:

1. I needed an WB implementation with preferred registered WB user and a forum where everybody might register.
2. I step back thinking about the additional load to maintain that code for each WB AND myBB version. grin
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #65 on: July 23, 2011, 02:17:13 AM »

Hi, you can remember the problem with attachment? Well, strange but after it went well and I didn't used it a while it's wrong again...

I had again an issue with sessions so I updated the version installed with newest on AMASP. Now I'm using vers. 0.62 and after I click download an attachment it shows:
Code:
Error: Attachment download only allowed if you're on our forum page - please go to our home page and select forum and try again!
The url is:
Code:
http://****.de/modules/myBB/view.php?attachment.php&aid=6
I think this is really strange.

oh, and wenn i change the url to
Code:
http://****.de/modules/myBB/mybb/attachment.php?aid=6
it works and i can download it...
so quick workarround by me was change line 203 of view.php to    $conf['page'].'attachment.php?',
funny, but works in my case...

ok one more edit... I can upload files and download them too, but they get destroyed and i can't open them any more... direct call of the ATT works...
so workarround for that: view.php, line 203:    $conf['url'].'attachment.php?',
Don't know why, but it works Wink
« Last Edit: July 23, 2011, 03:02:21 AM by LordDarkman » Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #66 on: July 23, 2011, 09:09:01 AM »

Thank you LoadDarkMan! I check attachment.php and indeed, it can be called directly. I updated code and uploaded it to AMASP.
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #67 on: August 11, 2011, 07:34:53 PM »

And once again a bug...
After the updates the poll doesn't work either. when I create a new poll I get redirected to forum Main page.
Code:
http://****.de/pages/teamsides/forum.php?/modules/myBB/myBB/polls.php&action=newpoll&tid=24&polloptions=2
but it should look like
Code:
http://****.de/pages/teamsides/forum.php?polls.php&action=newpoll&tid=24&polloptions=2

The meta is:
Code:
<meta http-equiv="refresh"
content="2;URL=/pages/teamsides/forum.php?/modules/myBB/myBB/polls.php&action=newpoll&tid=24&polloptions=2" />

I tried to change it in view.php but it doesn't affect the meta... Within content it's fine:
Code:
<a href="/pages/teamsides/forum.php?polls.php?action=newpoll&amp;tid=24&amp;polloptions=2">
    <span class="smalltext">Bitte klicke hier, wenn Du nicht länger warten willst.</span>
</a>
Do you know why?


EDIT:
ok it's a global redirect problem... after posting something it directs me to startpage too:
Code:
http://rprg.de/pages/teamsides/forum.php?/modules/myBB/myBB/showthread.php&tid=10&pid=346#pid346
But it should be
Code:
http://rprg.de/pages/teamsides/forum.php?showthread.php&tid=10&pid=346#pid346
« Last Edit: August 11, 2011, 07:41:51 PM by LordDarkman » Logged
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #68 on: August 11, 2011, 07:57:40 PM »

dammit... found the answer: Line 210
Code:
// check for <meta http-equiv="refresh"
if (preg_match('!(?:.*http-equiv="refresh" content=".*;URL=)(.*)(?:" />.*)!U', $body, $wrk)) {
 list($script, $parm) = mybb_sanitize_url(html_entity_decode($wrk[1]));
 foreach ($parm as $k => $v)
  $script .= '&'.$k.'='.$v;
 sgwDbg::Msg(0, '#81 Http-equiv="refresh" URL="'.$conf['page'].$script.'"');
 $script=str_replace($conf['url'],'',$script);
 $body = preg_replace('!(http-equiv="refresh" content=".*;URL=)(.*)(" />.*)!U',
 '$1'.$conf['page'].$script.'$3', $body);
}
add
 $script=str_replace($conf['url'],'',$script);
does what i needed...
« Last Edit: August 11, 2011, 07:59:28 PM by LordDarkman » Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #69 on: August 22, 2011, 06:29:56 PM »

Hi,

@LardDarkman: I don't know exactly which version you used, so I refused to incorporate your mentioned patch.

Current version 0.64 does not work properly with WB 2.8.2....

I created a beta for WB 2.8.2 and MyBB 1.6.4 (see attachment). There are a couple of updates in myBB module to get those version to run (e.g. WB handles HTML output in a different way).

Would be great if someone could test it, before I put it on AMASP.

Beta moved to Start post
« Last Edit: September 05, 2011, 03:59:51 PM by syncgw » Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #70 on: August 22, 2011, 07:02:05 PM »

I'll test it next couple days and report. wink

Versions I'm using are
WB 2.8.1 Revision 1287
myBB Forum 0.62
MyBB 1.6.3

Till soon.
Logged
fabiox3

Offline Offline

Posts: 7


« Reply #71 on: February 06, 2012, 06:31:25 PM »

Hi. I've installed myBB-0.68 module on WB 2.8.2 and myBB 1.6.5, but the forum doesn't appear. The error message is:

The requested URL /modules/myBB/myBB/index.php was not found on this server.

This is my settings.php ... where I'm wrong??  huh huh Help me!!

Code:
<?php
/*********************************\ 
  DO NOT EDIT THIS FILE, PLEASE USE
  THE SETTINGS EDITOR
\*********************************/

$settings['load'] = "0";
$settings['mail_message_id'] = "1";
$settings['mail_parameters'] = "";
$settings['adminemail'] = "info@mydomain.com";
$settings['extraadmininfo'] = "1";
$settings['allowaway'] = "1";
$settings['allowbuddyonly'] = "0";
$settings['allowcustomwarnings'] = "1";
$settings['allowmultipleemails'] = "0";
$settings['pmsallowhtml'] = "0";
$settings['sightml'] = "0";
$settings['multirep'] = "1";
$settings['pmsallowmycode'] = "1";
$settings['sigmycode'] = "1";
$settings['negrep'] = "0";
$settings['neurep'] = "0";
$settings['posrep'] = "0";
$settings['postrep'] = "0";
$settings['pmsallowsmilies'] = "1";
$settings['sigsmilies'] = "1";
$settings['pmsallowimgcode'] = "1";
$settings['sigimgcode'] = "1";
$settings['pmsallowvideocode'] = "1";
$settings['subscribeexcerpt'] = "100";
$settings['announcementlimit'] = "2";
$settings['attachthumbh'] = "96";
$settings['attachthumbw'] = "96";
$settings['readparentforums'] = "0";
$settings['avatardir'] = "images/avatars";
$settings['avatarresizing'] = "auto";
$settings['avataruploadpath'] = "./uploads/avatars";
$settings['boardclosed'] = "0";
$settings['boardclosed_reason'] = "These forums are currently closed for maintenance. Please check back later.";
$settings['bbname'] = "My Site";
$settings['bburl'] = "http://www.mydomain.com/my-directory/forum.php?";
$settings['canviewownwarning'] = "1";
$settings['captchaimage'] = "1";
$settings['bbcodeinserter'] = "1";
$settings['smilieinserter'] = "1";
$settings['faxno'] = "";
$settings['contactlink'] = "mailto:info@mydomain.com";
$settings['cplanguage'] = "english";
$settings['cpstyle'] = "";
$settings['cookiedomain'] = "";
$settings['cookiepath'] = "";
$settings['cookieprefix'] = "";
$settings['coppa'] = "disabled";
$settings['customtitlemaxlength'] = "40";
$settings['wolcutoffmins'] = "15";
$settings['dateformat'] = "m-d-Y";
$settings['dstcorrection'] = "0";
$settings['dayspruneregistered'] = "90";
$settings['dayspruneunactivated'] = "90";
$settings['decpoint'] = ".";
$settings['bblanguage'] = "english";
$settings['default_memberlist_sortby'] = "regdate";
$settings['default_memberlist_order'] = "ascending";
$settings['timezoneoffset'] = "+10";
$settings['delayedthreadviews'] = "0";
$settings['no_plugins'] = "0";
$settings['disableregs'] = "0";
$settings['hiddencaptchaimage'] = "0";
$settings['failedlogintext'] = "1";
$settings['edittimelimit'] = "0";
$settings['enablecalendar'] = "1";
$settings['enableforumjump'] = "1";
$settings['enablememberlist'] = "1";
$settings['enablepms'] = "1";
$settings['enablereputation'] = "1";
$settings['seourls'] = "auto";
$settings['enablepruning'] = "0";
$settings['enablewarningsystem'] = "1";
$settings['use_xmlhttprequest'] = "1";
$settings['errorloglocation'] = "./error.log";
$settings['errorlogmedium'] = "none";
$settings['errortypemedium'] = "both";
$settings['portal_announcementsfid'] = "2";
$settings['modlist'] = "1";
$settings['redirects'] = "1";
$settings['gziplevel'] = "4";
$settings['searchhardlimit'] = "0";
$settings['hiddencaptchaimagefield'] = "email3";
$settings['hideprivateforums'] = "1";
$settings['homename'] = "My Site";
$settings['homeurl'] = "/";
$settings['siglength'] = "255";
$settings['logip'] = "hide";
$settings['loginattemptstimeout'] = "15";
$settings['mail_handler'] = "mail";
$settings['mail_logging'] = "2";
$settings['mailingaddress'] = "";
$settings['maxloginattempts'] = "5";
$settings['avatarsize'] = "10";
$settings['maxattachments'] = "5";
$settings['maxavatardims'] = "100x100";
$settings['postmaxavatarsize'] = "70x70";
$settings['memberlistmaxavatarsize'] = "70x70";
$settings['maxpostimages'] = "10";
$settings['maxmessagelength'] = "65535";
$settings['maxquotedepth'] = "5";
$settings['maxsigimages'] = "2";
$settings['maxpolloptions'] = "10";
$settings['maxmultipagelinks'] = "5";
$settings['maxpasswordlength'] = "30";
$settings['polloptionlimit'] = "250";
$settings['maxposts'] = "0";
$settings['maxregsbetweentime'] = "2";
$settings['maxreplength'] = "300";
$settings['maxnamelength'] = "30";
$settings['maxpostvideos'] = "1";
$settings['maxwarningpoints'] = "10";
$settings['membersperpage'] = "20";
$settings['postmergefignore'] = "";
$settings['postmergesep'] = "[hr]";
$settings['postmergeuignore'] = "4";
$settings['minmessagelength'] = "5";
$settings['minpasswordlength'] = "6";
$settings['minsearchword'] = "0";
$settings['minnamelength'] = "3";
$settings['sigcountmycode'] = "1";
$settings['smilieinsertercols'] = "4";
$settings['smilieinsertertot'] = "20";
$settings['portal_numannouncements'] = "10";
$settings['wordwrap'] = "80";
$settings['failedcaptchalogincount'] = "3";
$settings['portal_showdiscussionsnum'] = "10";
$settings['failedlogincount'] = "10";
$settings['showbirthdayspostlimit'] = "0";
$settings['tplhtmlcomments'] = "1";
$settings['prunepostcount'] = "0";
$settings['postfloodcheck'] = "1";
$settings['postfloodsecs'] = "60";
$settings['postlayout'] = "horizontal";
$settings['postmergemins'] = "60";
$settings['postsperpage'] = "10";
$settings['pmfloodsecs'] = "60";
$settings['pruneunactived'] = "0";
$settings['enableprunebyposts'] = "0";
$settings['prunethreads'] = "0";
$settings['threadreadcut'] = "7";
$settings['captchaprivatekey'] = "";
$settings['captchapublickey'] = "";
$settings['refreshwol'] = "1";
$settings['regdateformat'] = "M Y";
$settings['regtype'] = "verify";
$settings['hottopic'] = "20";
$settings['reportmethod'] = "db";
$settings['repsperpage'] = "15";
$settings['requirecomplexpasswords'] = "0";
$settings['returnemail'] = "";
$settings['ip_forwarded_check'] = "0";
$settings['searchfloodtime'] = "30";
$settings['searchtype'] = "standard";
$settings['nocacheheaders'] = "0";
$settings['showeditedbyadmin'] = "1";
$settings['showeditedby'] = "1";
$settings['showsimilarthreads'] = "0";
$settings['attachthumbnails'] = "yes";
$settings['showdescriptions'] = "1";
$settings['showforumpagesbreadcrumb'] = "1";
$settings['portal_showstats'] = "1";
$settings['showlanguageselect'] = "1";
$settings['portal_showdiscussions'] = "1";
$settings['multiquote'] = "1";
$settings['quickreply'] = "1";
$settings['portal_showsearch'] = "1";
$settings['showindexstats'] = "1";
$settings['subforumsstatusicons'] = "1";
$settings['portal_showpms'] = "1";
$settings['portal_showwelcome'] = "1";
$settings['threadreview'] = "1";
$settings['showbirthdays'] = "1";
$settings['showvernum'] = "0";
$settings['portal_showwol'] = "1";
$settings['showwol'] = "1";
$settings['showforumviewing'] = "0";
$settings['similarlimit'] = "10";
$settings['similarityrating'] = "1";
$settings['secure_smtp'] = "0";
$settings['smtp_host'] = "";
$settings['smtp_pass'] = "";
$settings['smtp_port'] = "";
$settings['smtp_user'] = "";
$settings['statslimit'] = "15";
$settings['subforumsindex'] = "2";
$settings['thousandssep'] = ",";
$settings['threadsperpage'] = "20";
$settings['failedlogintime'] = "15";
$settings['betweenregstime'] = "24";
$settings['timeformat'] = "h:i A";
$settings['uploadspath'] = "./uploads";
$settings['dotfolders'] = "1";
$settings['useerrorhandling'] = "1";
$settings['gzipoutput'] = "0";
$settings['useshutdownfunc'] = "0";
$settings['usereferrals'] = "1";
$settings['threadusenetstyle'] = "0";
$settings['userpppoptions'] = "5,10,20,25,30,40,50";
$settings['usertppoptions'] = "10,20,25,30,40,50";
$settings['browsingthisforum'] = "1";
$settings['browsingthisthread'] = "1";
$settings['emailkeep'] = "0";
$settings['hottopicviews'] = "150";

?>

Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #72 on: February 06, 2012, 09:03:55 PM »

Hi,

seems you did not install myBB in the directory shown (index.php is the entry point for myBB). You need a configured myBB forum in /modules/myBB/myBB directory to get module to work.

Hope that helps you
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
fabiox3

Offline Offline

Posts: 7


« Reply #73 on: February 07, 2012, 05:46:05 PM »

Hi. I've installed myBB in this folder http://www.mydomain.com/my-directory/modules/myBB/myBB and the forum is ok, but when i create a new page on WB with myBB module and click in the new URL (es. http://www.mydomain.com/my-directory/forum.php), the error message is always the same:

"The requested URL /modules/myBB/myBB/index.php was not found on this server."

I followed these instructions carefully but without success  sad

General configuration

◊ Set your Board URL to the name of your forum page (the URL shown in your browser), and append a "?" (resulting in something like http://syncgw.com/pages/forum.php?)
◊ Please delete Cookie Domain and Cookie Path settings

Show Thread Options

◊ Disable "Multi-quote" (not supported)

Thanks for your support!
Logged
syncgw

Offline Offline

Posts: 129



WWW
« Reply #74 on: February 08, 2012, 01:48:46 PM »

The file "index.php" could not be found. You can copy the path to a web browser window and you should get same error. File is located somewhere else...

The only place where you may specify a path is during creation of a WB forum page. You may specify a relative path to the module directory (Field "Path to myBB forum installation"). This is not the path to the WB forum page. This is the path where myBB "index.php" is located.

The default setting for this parameter is "myBB/". This means if you've installed myBB WB modules in "/a/path/where/your/domain/is/located/modules/myBB", then you need to install myBB forum itself in "/a/path/where/your/domain/is/located/modules/myBB/myBB". Nowhere else. Check this by opening a web browser and enter "http://your-WB-domain/modules/myBB/myBB/index.php".

At least, if you hit "Save/Patch" module check the location (to patch some files) and you should get an appropriate message.

If that runs successfully, then create the debug.php file and send it to me as private message.
Logged

Florian Däumling
sync•gw Developer
http://syncgw.com
Pages: 1 2 [3] 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!