The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Joomla+vbulletin wrapped (how to change forum's urls?)
Hello,
I've asked the same question in vb.com but they told me to ask it here I'm currently using Joomla 1.0.13 + vbulletin 3.6.8PL2 wrapped into joomla. Since I'd like to have members using other feauters like blogs, groups, videos....I wrapped the forum inside joomla. I'm currently using 3rd-party bridge to link Joomla to vb (no core files modifies, vb and joomla on each database). I know that I could modify vb's template to include Joomla's header and make the forum not wrapped. But let's focus on having forum wrapped. Link to my forum is something like: http://www.mysite.com/component/opti...per/Itemid,91/ Forum's threads links are like: http://www.mysite.com/forum/showthread.php?t=99999 Forum's post's links are like: http://www.mysite.com/forum/showpost...56&postcount=1 Of course if someone is browsing the forum from the website, all threads and posts got displayed within the frame. BUT if someone googles for our forum (or a members would give a thred's link to a friend) and he'll visit http://www.mysite.com/forum of course the forum will be displayed off of joomla's layout. Same for links posted in posts. Since vb's default settings got links opened in new window. So, is there any way to got links like 'http://www.mysite.com/forum/showthread.php?t=44824' changed to something like 'http://www.mysite.com/component/opti...ad.php?t=44824'. Thanks in advance. |
#2
|
||||
|
||||
If you are running Apache with mod_rewrite enabed, you could just rewrite the URL's in an .htaccess file in your web root dir. Something like ...
RewriteRule ^forum/showthread.php?t=(\d+) component/option=com_whatever?t=$1 Sorry, couldn't copy your exact component path as your links above are hosed up. Basically, the $1 in the Joomla side of the rule is whatever matched the (\d+) in the vB side. -- hugh |
#3
|
|||
|
|||
^ thanks! I'll give it a try.
|
#4
|
||||
|
||||
There's a little more to creating a workable, safe htaccess than just the single RewriteRule above, but that'd be the core of it. You'd probably want to match on a few more patterns, and put in some RewriteCond's but there are plenty of good tutorials on building htaccess files, google is your friend.
Let me know if you get stuck ... BTW, which bridge are you using? I'm a Joomla / vB crossover kinda guy as well, and am always interested in what people are using and their experiences with it. -- hugh |
#5
|
|||
|
|||
I'll google too. Even if I think it will be hard. I'm not a coder nor a tech.
I've also in mind to disable vb's members' profiles and got members' urls redirected to their Community Builder's profiles. I'm using vB Duo Sync Bridge. our website: www.mjjcommunity.com |
#6
|
||||
|
||||
Cool, the Duo Sync bridge is one of the better ones. I was afraid you might be using BB Pixel.
Are you using SEF in Joomla? If so, and if Joomla is at the root of your site, you probably already have a .htaccess in your webroot, and should just be able to add that rule before any other rules. If you aren't using SEF, you could try enabling it on a test box, and look at the htaccess file that Joomla generates - it's a pretty good example of how to structure a good URL rewriting htaccess file. -- hugh |
#7
|
|||
|
|||
Quote:
HTML Code:
<meta http-equiv="REFRESH" content="0;url=http://www.the-place to the user profile.com">
|
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
Well, it's all personal opinion. I wouldn't put too much stock in my rantings!
BBPixel does a fine job at bridging a single J!/vB install on the same server and same db. I just had some issues with it early on, and kinda got put off. But the current version is supposed to be a lot more solid. Note that they will not be officially supporting vB 3.7 until it goes gold. It should work, but no guarrantees. -- hugh |
#10
|
|||
|
|||
How can I implement this kind of rewrite rule without looping?
With looping I mean: You request a page at vBulletin forum, url gets rewritten to use the wrapper, but the wrapper also requets page at vBulletin forum, so it's looping Hope this wasnt too confusing Thanks for any insight Some more info posted elsewhere Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|