HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[SOLVED in BETA2!] Redirections in ocPortal 6 beta 1

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#66269 (In Topic #14157)
Avatar

Community saint

The issue has returned... sort-of...

Greetings,

So today I have begun setting up the many redirects needed to make my site funcion. For those who do not know, I am doing the following:

1.) I have seperate zones within my site that act like pseudo-sites. These zones are ofcourse the welcome/main page zone, Legacy Games, and Saga of Ablution. I will soon recreate a zone just for blogs but that's later…

2.) Legacy Games and Saga of Ablution are to have their own forums. Of course we all know that there is only 1 OCF in a single install of ocPortal, and since I am using zones instead of making several different installs to achieve my goals, I must make use of virtual roots and redirects.

3.)Generally, this is actually pretty simple. I set up my categories as usual, then I set up my two main forums, Legacy Games and Saga of Ablution. In those forums I build the forums that I want to be in there, placing them in their categories for good measure and organization.

4.) I then visit the main forums and make Legacy Games and Saga of Ablution each a virtual root. I do this simply by clicking on their link in the bread crumb, ie, I click on either Legacy Games or Saga of Ablution in the bread crumb so that Home > Forum Root does not appear before them and they are the first entry (this works for catalogs, CEDI, galleries, etc as well). This changes the address in the top bar to show a, for example, keep_forum_root=17 added to the end of the address.

5.) I then edit my menus adding this keep_forum_root tag to the menu link for Legacy Games and Saga of Ablution. You see, when they click on these links, they'll go straight to that forum, I won't be using a zone welcome page or whatever for them.

6.) Since both zones have their own menus and themes, I need to set up redirects so that when you click to go to that zone, you'll get the right menu and themes, and they'd stay fitting for that zone as you navigate throughout the menu for that zone and the forums within its forum. All standard stuff really, something I have done before. So I set up…

Legacy Games -> forumview : Forums -> forumview
Legacy Games -> topicview : Forums -> topicview
Legacy Games -> vforums : Forums -> vforums
I do the same for Saga of Ablution. In my earlier thread trying to solve my redirect issues, Chris stated that doubling up wasn't needed, so I didn't try it at first. Also, I have them all set to transparent, no need to confuse my members about their URL being changed.

Now here's where the fun begins. This worked in 5.1 beta btw, but now I seem to be having some odd issues. I tripple and sextupled and even decitupled checked, going over and over the redirects way too many times, and looking at how it was solved before, even digging up my old post, yet…. things seem to have changed in the 6 beta.

Here's what happened…

1.) With the setup I just described, I could go into the forums just fine, but once I clicked into a message thread (ie topicview) it reverted to the Forum zone theme and menus instead of keeping Legacy Games theme and menus. Using the breadcrumbs to navigate did not restore me back to the Legacy Games zone settings.

So I was like "What the xodod" (lol in game reference there lol), and shrugged, trying thistime to set up as well a redirect of the following:

 Forum : topicview -> Legacy Games -> topic view
I made it transparent. That resulted in a "This page don't exist" type of error. Yay…

So I make the Legacy Games redirect untransparent. No cigar. I make it transparent again, and the Forum redirect untransparent, it works. However now once you go into topic view you the the "Hey, the URL has been changed!" message. Not good.

2.) So I click on the breadcrumb to go back to the Legacy Games forum index, and guess what. It reverst to Forum Zone skin and menus, ignoring my Legacy Games skin and menus. Yay…

So I go and set the redirects as follows….

Forums : forumview -> Legacy Games : forumview (not transparent because transparent gives error)
Forums: vforums -> Legacy Games : vforums (not transparent because transparent gives error)
That workstm, however now whenever they use the breadcrumb to go back to Legacy Games forum index, or view a post topic, they get the message about having been redirected, which trust me when I say will generate several confused PT's or emails asking me about that.

So this confuses me. In version 5.1 beta, we didn't need to double up, and if you left one untranspaerent it caused errors (which was fine because I wanted the redirects transparent). Now in the 6 beta we have to double up, and the doubled redirect has to be left untransparent?

Also it should be noted that I am using the mod_rewrite function prettier URLS, simply because I have a host that allows it (and the recomended.htaccess). Could it be that causing the issue?

Thanks again for any advice on the matter.


Last edit: by mythus

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#66307
Avatar

I've been able to reproduce this too, so I'll get it fixed for beta 2.

The best debugging technique would be to look at the URL. I set up some redirects and right away saw topic links changed the zone in the URL.

Regarding 'doubling up', it might seem to work, but actually you're kind of boxing yourself in a corner - it'll mean that the main forum will point to your custom zone, which you probably don't want.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66332
Avatar

Community saint

Greetings,

Thanks Chris, as soon as I have a spare moment, I'll upgrade to beta2 and give that a shot. I probably should have mentioned the URL changes, sorry about that.

Regarding the doubling up, I sought to do it without the doubling up, as I wanted a good, clean, method of redirecting without the black magic. I then tried with doubling up when trying to solve why redirects weren't working as before. If I can get the redirects to work as I desire without doubling up, I'm all for it.

I should mention though, the main forum page/zone itself won't be used by the members. There will be no link to it. Simply, I am giving the illusion of having multiple forums intalled, using only ofcourse OCF, for the various zones of my site. A seperate forum for Legacy Games, a seperate forum for Saga of Ablution, and perhaps for archives or whatever. The main forum using the custom zone is only a minor issue given that no one will be using the main forum yes?

Still, if with the fixes in beta2 and future releases, I can manage to do what I am trying to do, without doubling up, that would be more desirable for me. I'd much rather not have to take the poison unless it is the only way to fight the plague, so to speak.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#66337
Avatar

The main forum using the custom zone is only a minor issue given that no one will be using the main forum yes?

Well I'm 100% sure we've fixed it :). To be honest I'm not sure if "doubling up" would scale as a fix if there were more than one set of virtual forums.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66355
Avatar

Community saint

Greetings,

I updated to beta 2, smoothly without a hitch.

I decided to give the redirects a good test. So I went in and took out my doubles, and tested out my forum.

I went in to Legacy Games zone which of course, by design, took me straight into Legacy Games forums, with the correct theme and menus and etc. I navigated into a forum and into a thread, all good. I navigated back out, all good.

One problem I did have, but solved though. I decided to make a test post, using quick reply, I posted a test post. Once it submitted, I lost the redirect…

In Other Words…
After submitting a test quick reply the url changed from this…

Code

 http://legendsofnorova.com/LegacyGames/pg/topicview/misc/staff/welcome-to-the-forums/index.php?keep_forum_root=18#first_unread

to this

Code

 http://legendsofnorova.com/forum/pg/topicview/misc/staff/welcome-to-the-forums/index.php?redirected=1&keep_forum_root=18#post_10

Notice how the zone changed from Legacy Games to forum? That only happens after making a quick reply.  The redirects work without the doubling up in simple navigation.

However I resolved this by adding redirects for topics and new_post….

Code

Legacy Games : topics > Forums : topics
Legacy Games : new_post > Forums: new_post
(same with Saga of Ablution)

So YAY! It all seems to work now, and no using the forbidden dopelganger spell!

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: