Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2008, 02:29 PM
Sunsetdriver Sunsetdriver is offline
 
Join Date: Mar 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 01-21-2008, 10:48 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 01-21-2008, 11:00 PM
Sunsetdriver Sunsetdriver is offline
 
Join Date: Mar 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ thanks! I'll give it a try.
Reply With Quote
  #4  
Old 01-21-2008, 11:18 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 01-21-2008, 11:36 PM
Sunsetdriver Sunsetdriver is offline
 
Join Date: Mar 2007
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-21-2008, 11:49 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 01-22-2008, 01:48 AM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sunsetdriver View Post
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
You can do the redirect by in the member profile template. Just need to put some variables in there.
HTML Code:
<meta http-equiv="REFRESH" content="0;url=http://www.the-place to the user profile.com">
Reply With Quote
  #8  
Old 02-01-2008, 09:18 AM
Javi_gray Javi_gray is offline
 
Join Date: May 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheesegrits View Post
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
Uggh! I wish I had read this before I installed bbpixel! How can I get rid of it? What are the better bridges?
Reply With Quote
  #9  
Old 02-01-2008, 09:52 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 02-12-2008, 06:27 AM
sickboy6ths sickboy6ths is offline
 
Join Date: Apr 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Hi Im using e.g:
RewriteRule ^vbulletin/(.*)$ /index.php?option=com_jfusion&wrap=$1 [L,QSA]

But this creates a loop when viewing vbulletin pages through the wrapper.
You kinda get wrapper into wrapper into wrapper, because the wrapper also accesses the same vBulletin urls (which get rewritten).

Anyone able to help me to get the joomla wrapper url in the addressbar in browser, while retaining the dynamic url of the page ur viewing, e.g: showthread.php?t=555
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05410 seconds
  • Memory Usage 2,258KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete