(Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF

Started by SlammedDime, March 20, 2007, 04:19:23 AM

Previous topic - Next topic

Aravot


SlammedDime

If I have some free time, I'll take a look at it and see what needs to be done for it.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

webgyrl

Quote from: Kindred on July 02, 2007, 12:40:30 PM
webgyrl,

What matt has done is not a bridge, but an add-in for the OpenSEF component to allow the bridge to work corretcly.

However, I think OpenSEF is leaving Joomla as well.


Oh I see!

OpenSEF did leave, but it is now re-named and taken up for production by a new team:
http://joomlacode.org/gf/project/nusef/
It's called nuSEF

ormuz

Hi Matt nice work in this!

Can u explain me how can I add this mod with your sef modification?

http://www.simplemachines.org/community/index.php?topic=174132.0

SlammedDime

#144
Install that mod, then in Profile.template.php, find:

Code (find) Select
<tr><td colspan="2" style="text-align:center;">'.$scripturl.'?referredby='. $context['member']['id'] .'</td>


and replace it with

Code (replace) Select
<tr><td colspan="2" style="text-align:center;"><a href="'.$scripturl.'?referredby='. $context['member']['id'] .'">Right click and copy link/shortcut</a></td>


That should be it from what I can see...

However, because that mod is still in beta testing, I would wait.   I installed on my local test server and funny things started happening.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ormuz

Thanks for the fast reply!

Ok, that works to the link in the profile page, but I think I have to change the entire $scripturl string in the mod? Otherwise I think the mod just counts the referral Link hits...

Look in the stats... aoposte.com/comunidade


EDIT: Work just fine ;) !


EDIT: Just work by proxy, in normal connections don't work! why?

SlammedDime

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ormuz

Matt, your hack is working just fine!

Put mods to work with it, that's the problem man!

For exemple in my case:

If u join in the site by the link community/referredby/ID and then click on the register button, nothing happens... if u use the link community/register/referredby/ID the mod works!

I know this is not the support thread for this, but I think that u are the right guy to help me! If u can take a look on this I will appreciate that! thnks

ormuz

Ok, one more question (forget the question above)!

for example: wxw.dot.com/community/notícias don´t work, because that is a no english character, how to correct?


genbilim

#149
Hey Guys,

I have a little problem in the forum for adding trailing slash to URL fragment. I use SMF 1.1 RC2 and joomla 1.08. I also have enabled OpenSEF 2.0.0-RC5_SP2.

OpenSEF work like a charm in any place of mywebsite except SMF Forum. I have Last 10 post module in the home page of the website and it works very well. I also have same module in the forum page, it works fine.

The URL looks like this for modules:

hxxp:www.genbilim.com/forumlar/topic,112.msg3863/#new [nonactive]

Here is the problem:

When I am in the forum page and try to access to a board it gives me this for instance:

hxxp:www.genbilim.com/forumlar/board,1.0 [nonactive]

If I can add a trailing slash to URL fragment it will look like this and my problem is going to be solved:

hxxp:www.genbilim.com/forumlar/board,1.0/ [nonactive]

I also have exact same problem for accessing topics.

It gives me this:

hxxp:www.genbilim.com/forumlar/topic,3.0 [nonactive]

but suppose to be like this:

hxxp:www.genbilim.com/forumlar/topic,3.0/ [nonactive]

I hope I explained as clearly as possible.

Main directory for forum is hxxp:www.genbilim.com/forum [nonactive] but I use it for alias hxxp:www.genbilim.com/forumlar [nonactive]

By the way I don't have your sef_ext_v1.5.3 modification installed.
My Joomla-SMF Integration version is 1.1 RC1 (joomlahacks.com)

.htaccess file:

## OpenSEF Simplified htaccess File

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

## enable mod_rewrite engine
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 /

## 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


Thank You Very Much

Orstio

QuoteMy Joomla-SMF Integration version is 1.1 RC1 (joomlahacks.com)

You'll find better support for that at joomlahacks.com.

Kindred

and you ***REALLY*** need to update both SMF and joomla.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

omidkosari

Dear programmers specially SlammedDime

Is it hard to implement a feature which do the AUTO REDIRECT the old urls to new ones ?

I think this is a good feature  ;D

SlammedDime

That is a feature you'd need to suggest to the OpenSEF (or whoever they are these days) Developers.  All this does is parse and create SEF urls for SMF/OpenSEF, it does nothing more.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

omidkosari

maybe friends can suggest some htaccess rules to do the AUTOREDIRECT until opensef do this .
i think it is good seo optimization for every sites use this extension.

SlammedDime

It wouldn't be possible to use redirect rules for topics and boards, only for actions, so it really would be pointless.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

pakpenyo

Hi all....

Im use Joomla 1.0.12, SMF 1.1.4, Orstio Brdige 1.1.7 which running in WRAPPED MODE and installed com_opensef_2.0.0-RC5_SP2 at my Joomla. And i change sef_ext for SMF with airRideTalk Mod. I follow step by step tutorial  (readme.html at sef_ext_v1.5.3.zip).  But after use this mod, i've got much error in smf error log:



8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 219

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 187

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 184

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\administrator\components\com_sef\core\sef.rewriter.php
Line: 124

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 40

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 39

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 38

8: Trying to get property of non-object
File: C:\xampp\htdocs\padhang\components\com_smf\sef_ext.php
Line: 37



And this is my .htaccess file:


##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
RewriteEngine On
RewriteBase /padhang

########## Begin - Joomla! core SEF Section
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section

########## Begin - 3rd Party SEF 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 SEF Section

########## Begin - Rewrite rules to block out some common exploits
#
# 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 <script> 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



I also cannot find
$mainframe->addMetaTag( 'robots', 'index, follow' ); which should be commented in /includes/frontend.php in my Joomla! installation.

And i use many set from Orstio and Kindred at
Mambo/Joomla <-> SMF Bridge (Combined Readme) [UPDATED for 1.1.7] link in this forum.

Can you help me?

Thanks a lot and sorry about my english.

Apllicmz

The page you are trying to access does not exist.
Please select a page from the main menu.
This is from page404.php

WHERE CAN FINDER FILE



SlammedDime

I no longer off the file as the bridge for Joomla has been discontinued and I no longer use Joomla to support or futher develop it.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Apllicmz




Advertisement: