I don't think my SMF is bridged and wrapped properly, How do I fix?

Started by Toma Grubb, July 27, 2007, 07:28:35 PM

Previous topic - Next topic

Toma Grubb

It has been a couple of days with no reply. Can some one help me?

Version Information:
Forum version: SMF 1.1.3 (more detailed)
Current SMF version: SMF 1.1.3
PHP version: 4.4.6
MySQL version: 4.1.22-standard
Server version: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a

I am using Community builder 1.0.2 and the  SMF Bridge  from Simple Machines      1.1.7      with Joomla 1.0.12

The issues are:

  • new site members added to the CB members list are not being added to the forum members list automatically. I have to go to the admin panel in joomla select SMF bridge use the sync function and maually add new members from CBV to the smf members list.
  • Wrapping the forum. Currently I have the SMF forum wrapped with a wrapped menu link from Joomla which works if they only try to access the forum from the site. The issue is they can do a google search and find the forum if they do the proper google search but if they are unfamiliar with the site they will not see that there is a lot more to the site.

    Examples:

    Wrapped the way I want it to appear http://diabetic-diet-secrets.com/members/external/community-forum.html
    The way they see it if found from search engines http://www.diabetic-diet-secrets.com/forum/

How can I fix this? Or can I?


Orstio

Use the bridge component, not the Joomla wrapper component.


Orstio

Go to your Joomla admin panel.

Go to the Menu menu.  Click on mainmenu.

Delete the item you currently have named "Community Forum".

Click the New icon.

Select "Component" and click Next.

Choose the SMF Bridge component in the list.  Give the menu item a name.

Click Save.

Toma Grubb

That was simple. Thank you!

Will this now correct the auto synchronization issue?

There is still the issue of the forum available unwrapped when viewed from http://www.diabetic-diet-secrets.com/forum/ is there a way around this so the forum always appears wrapped and forum visitors who arrive there from some source outside joomla/CB are aware there is a much larger site the same as they see it when viewed from joomla?

Orstio

QuoteWill this now correct the auto synchronization issue?

No.  That won't be solved until you unpublish the CB login module, and publish the bridge login module.

QuoteThere is still the issue of the forum available unwrapped when viewed from http://www.diabetic-diet-secrets.com/forum/ is there a way around this so the forum always appears wrapped and forum visitors who arrive there from some source outside joomla/CB are aware there is a much larger site the same as they see it when viewed from joomla?

http://www.simplemachines.org/community/index.php?topic=81152.msg541379#msg541379

Orstio


Toma Grubb

Which htaccess there are several. I am assuning you mean the one in the folder where  SMF is, or would it be the one for joomla?

New login is installed when I try to log in I get

Diabetic-Diet-Secrets.com
We're sorry but the page you requested could not be found.
Return to site

Error 404

and I do not get logged in. I di d a new registration which worked but  same message when I try to log in.

Toma Grubb

/home/diabetic/public_html/.htaccess is empty

no htaccess in /home/diabetic/public_html/forum   (SMF)


/home/diabetic/public_html/members/.htaccess (joomla)

## OpenSEF Simplified htaccess File

## Can be commented out if causes errors
Options +FollowSymLinks

## mod_rewrite in use
RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /members

## Begin 3rd-Party or OpenSEF Section
#RewriteCond %{REQUEST_URI} ^(/members/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits

Orstio

Yup, that's the one. :)

Change it to this:


## OpenSEF Simplified htaccess File

## Can be commented out if causes errors
Options +FollowSymLinks

## mod_rewrite in use
RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /members

## Begin 3rd-Party or OpenSEF Section
RewriteCond %{REQUEST_URI} ^(/members/component/option,com) [NC,OR]  ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits 




Toma Grubb

I tried the code to only show the forum wrapped

// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']); }
}

Things got really strange and I took the code out. Appearently I am supposed to put something in there.

I am guessing in this part
smf&Itemid=yourItemidNum&".$_SERVER['QUERY_STRING']);

What would I put there and where would I find it?

Orstio

Considering your SEF environment, you'd probably be better off with this, actually:

// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false)
{if(!defined('_VALID_MOS')){ header("Location: http://diabetic-diet-secrets.com/members/forum/"); }
}

Toma Grubb

I did a cut and paste of the htaccess code you gave me and got:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at diabetic-diet-secrets.com Port 80

I put it back to the original until the code error is fixed

Orstio

OK, how about this:

## OpenSEF Simplified htaccess File

## Can be commented out if causes errors
Options +FollowSymLinks

## mod_rewrite in use
RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /members

## Begin 3rd-Party or OpenSEF Section
#RewriteCond %{REQUEST_URI} ^(/members/component/option,com) [NC,OR]  ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits

Toma Grubb

You are good!!!!

The forum now only shows as a wrapped version.

(Doing happy dance) :) :P

Orstio

Nope, still not working:  :(

http://diabetic-diet-secrets.com/members/forum/board,4.0

Maybe this?

## OpenSEF Simplified htaccess File

## Can be commented out if causes errors
Options +FollowSymLinks

## mod_rewrite in use
RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /members

## Begin 3rd-Party or OpenSEF Section
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]  ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End 3rd-Party or OpenSEF Section

## Joomla Security Section (has nothing to do with SEF/SEO)
## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
## End - Rewrite rules to block out some common exploits

Toma Grubb

The last version of the htaccess did not get the internal server error but when I try to log in I get

Diabetic-Diet-Secrets.com
We're sorry but the page you requested could not be found.
Return to site

Error 404


BTW I really appreciate you taking the time to help me fix this. I am a 60 year old PHP/coding dummy. I get really lost and confused when trying these things on my own. My expertise is in controlling type 2 diabetes with diet and that is what the site we are working on is all about. I am working on a non-budget (basically my VA disability compensation and what little I get from google adsense and affiliate sales. I really wish I had the money to hire some one like you to help with the constant site maintenance and fixes. Thank you so much!!!


Toma Grubb

I am about one or two post behing you LOL.

Joomla is installed in http://diabetic-diet-secrets.com/members/


I wanted the front static page to look like the joomla portion so I copied the source code from the browser and changed it in Frontpage 2003. It still is not what I would like but it works. I would like to figure out how to integrate the PHP into the page so menus and other changes I do in joomla, CB etc. would update automatically like it does once you are past the static pages. But like I said, I am an old webmaster dummy so i just bumble along doing the best I can.

The last HTaccess is returning
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, xxxxxxxxxxxxxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at diabetic-diet-secrets.com Port 80


I kind of wonder if I am pissing any body off who is trying to use the site :(

The last

Advertisement: