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!] How do I make Zone themes work throughout the zone?

Login / Search

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

Community saint

When using virtual root forums and the like.

Greetings,

I am currently using the 5.1 beta simply because the new WYSIWYG editior has long been something I've asked for and I so love being able to ditch the slow and bloated firefox and still getting to use all of the features of my website.

Anyways, we are doing some major changes over in my neck of the woods. Not only are we ditching for good the overselling host and purchased our own domain (instead of using the one we get as part of a deal with an overseller) but I am making use of the wonderful virtual root forum feature to fully design the site to handle all the facets that I wanted the site to be able to handle.

Now for most of the site we are using the almost complete (still lacking some buttons… aye I need some time to be able to complete those) Classic Legends theme, which works well and all. However another change that we are implementing, a different forum based RPG within its own zone and virtually rooted forum, is gonna have its own theme. So for now I have set up this zone, Saga of Ablution, to use a quickly created via theme wizard theme until I can get to work on it's steampunkish theme that it will use.

I've set up the redirects and all, and the links work great…. but the theme doesn't seem to work throughout the zone so to speak, reverting back to the Classic Legends theme that the other parts of the site use.

So the question is, how do I make the theme for Saga of Ablution zone be used throughout wherever the keep root 31 (sagaofablution virutal root board) and such is used?

Here's some screen shots to show better what I mean, or you can also look at Legends of NorOva to see for yourself.


Here you see the Classic Legends theme as the main theme of the site. This is desired.
 

Here you see that once you go into the Saga of Ablution zone, the theme changes. This is a temporary theme, but yeah lol.


However, as shown above, if you go in and view a post within the saga of ablution virtual root forum, it reverts back to the Classic Legends theme. Why? I have redirects set up and everything, shouldn't it keep the theme shown  for Saga of Ablution zone? I bet I am doing something wrong but what lol.

It's not just going into a forum post. It's also going into any page made that can be viewed in other part of the site, such as the Site Stats page, the Members page, the Rules page, etc. I'd like to find a way to keep them using the theme based on the zone you are in, not reverting back to the theme used in the other zones.


Here is a screenshot showing the redirects I've set up.

I hope all this helps you help me solve this problem. If you need something more, please let me know and I'll try to get it to you. Thanks again, in advanced, for any and all help on this matter.



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:
#64631
Avatar

Community saint

Greetings,

I really hate to bump up this post but it has been several days and I'd love to get this issue solved. I for the life of me can't seem to think of how to do it though so if any of you have any ideas on this matter I'd love to hear them.

If there is any more information you guys need, please let me know. Unfortunately I lost my ability to read minds last Friday :P.

Anyways guys, not trying to be a pain or what not, but this issue is important to me. I find that it is important to have a cohesive theme throughout, and I'd like to do that. It is no easy matter I am guessing to have a seperate theme for a zone when all other zones use another theme, especially dealing with virtual root forums… but there must be away, something that has yet to pop in mind on how to do this right?

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:
#64637
Avatar

Community saint

Greetings mythus,

I'm not sure I understand 'Redirects' well enough to advise you here, but based on my experience with double themes while working on "The Forest Theming project". I found out that redirects seem to work best in "pairs".

For instance, if you are trying to move the forumview page from the zone:Legacy Games to the zone:Forums, try this formula:

Code

From zone:Legacy Games From page->forumview To zone:Forums To page->forumview Is transparent redirection: No
From zone:Forums From page->forumview To zone:Legacy Games To page->forumview Is transparent redirection: Yes
This is based on my 2 themes: one attached to the 'Welcome Zone' and the other to the 'Site Zone': (look at my redirects)


I hope this can help
Cheers,
Jean
Back to the top
 
Posted
Rating:
#64638
Avatar

Community saint

Saga of Ablutions Discussion Forum

Code

http://legendsofnorova.com/sagaofablution/index.php?page=forumview&id=legends_of_norova%2Fsaga_of_ablution&keep_forum_root=38

Now that has taken you clean out of the 'root=31' loop …

Topic: Map of Northern Chalcedonia

Code

http://legendsofnorova.com/forum/index.php?page=topicview&id=legends_of_norova%2Fsaga_of_ablution%2Fmap_of_northern&keep_forum_root=38

… still in the 'new' root=38 loop

This is about the only thing I can see that is taking you back to the 'original' theme.

Is this a screw-up in your redirects, or not setting the 'theme' parameters when building the new zone?

Probably waaaaaaay off, but I'm trying to play devil's advocate and asking the painfully obvious question!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#64643
Avatar

Community saint

Greetings,

Thanks Jean and Fletch for sharing your thoughts on this.

Jean, "ll take a closer look and try the whole pairs idea. I am hoping that maybe that will solve the themes issue. The links seem to work somewhat as they were, with the exception of going into the view the map (as Fletch points out), where it shows a different shoutbox than it should (since I have tied the shoutboxes of each zone to their own chat rooms it should show what is in the Saga of Ablution shoutbox instead of the general chat room.. fun fun fun.) So I'll give that a shot and see how it goes.

Just for the record though, the only zone that is going to have it's own seperate theme, as of now, is Saga of Ablution. Being more of a steam punk-like setting the classic legends theme just doesn't fit with it very well. The rest of the site does very well with the classic legends theme… at least I think so anyways lol.

Fletch, I am pretty sure that I set up the theme parameters correctly, but maybe I didn't. It wouldn't be the first time I overlooked or messed up on something so obvious lol, so I am gonna go double check that as well. I am thinking though that it may be something to do with the redirects, and maybe Jean's pairing method will help to solve that. But I am gonna take a double check of theme parameters anyway first.

I am curious though with your post. You are showing root 38 when the Saga of Ablution virutal root address is root 31. This is very curious to me… especially since your links work just the same as mine.

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:
#64644
Avatar

Community saint

Greetings,

Jean, I gave the pairing a try. What I did is I set up Saga of Ablution: forumview to Forums: forumview and Forums : forumview to Saga of Ablution: forumview, but now dice.

If i set the first to non transparent the link gives an error page not found page, as well….

What I have noticed is that when you go in to view a post, it changes the theme to whatever the forum zone theme is set as. So I could change this zone's theme to the new theme and have that work, but then the new theme would be use in my other zones for viewing a forum post which is not what I am after.

*sigh* back to the ole' drawing board on this I go.

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:
#64645
Avatar

Community saint

mythus said

I am curious though with your post. You are showing root 38 when the Saga of Ablution virutal root address is root 31. This is very curious to me… especially since your links work just the same as mine.

Added a screencap to substantiate what I said in my earlier post. Perhaps this is the area (redirect?) that you need to concentrate on?



Excuse the size of the image, but I wanted to include all the contradictory linkage …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#64655
Avatar

Community saint

Greetings,

The thing is, that one forum is not going to be the only forum within the Saga of Ablution forums, as you may have noticed upon visiting the site.

There are other forums as well.

So I guess what I am saying is I am not sure then how virtiually rooting that particular forum will solve the issue. I did do that just to try and still clicking within to view the post gives me the other theme (whatever is set as the forum zone default theme). I haven't seen a way to make redirects within forums in the redirect tool, and frankly that would be a lot of redirects to do if that is/was the route needed to be taken.


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:
#64660
Avatar

Community saint

Greetings!

I have solved this issue! It was actually very simple once I let my brain do the thinking for me.

I simply needed to set up redirects for topicview. Ie Saga of Ablutions : topicview to Forum :topicview and Forum : topicview to Saga of Ablution : topicview.

ANd that works like a charm. Please note to check those keep transparent boxes or it will give error pages.

Thanks for your input guys. Jean your pairing will no double help me to fix the other redirects and Fletch your example actually made me to look at the address given to see the page i was looking to redirect, topicview.

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:
#64667
Avatar

Hi,

Actually it's slightly simpler. You only need the single topicview redirect, no need for doubling up.
Doubling up is actually going to cause all instances of viewing a topic to use your zone's theme.

I just tested and it works fine, just a matter of making sure forumview, topicview and vforums all have those (one-way) redirects.

To clarify about doubling up, it's a legitimate technique, but it's designed for pretending modules have been entirely moved. It makes links to those modules adapt to go to their virtual location rather than their real location. This is what I am adding to the docs to explain it:
Special tip: If you want a module to behave as if it was completely moved, you can set up a transparent redirect from your desired location to the actual location, and then another from the actual location to the desired location. ocPortal will sense your intent, so when you do something that searches for that module (e.g. for the CEDI module, doing a CEDI link) it will go to where you want.
It's kind of black magic, very useful for people doing some heavy structural customisations.


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:
#64668
Avatar

Community saint

Ah ok, good to know Chris, Thanks for explaining that.

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:
#64674
Avatar

Community saint

mythus said

Thanks for your input guys. Jean your pairing will no double help me to fix the other redirects and Fletch your example actually made me to look at the address given to see the page i was looking to redirect, topicview.

Glad it was sorted, and the explanation provided by Chris clears up any confusion (in my mind, at least), so it is a win-win all round.

Thanks for the points, although I feel like a fraud because I didn't really offer anything constructive. I'll look after these as carefully as the previous ones - until it is time to give them back!

 :lol:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#64675
Avatar

Community saint

LOL, well Fletch, you actually tried to help, plus looking at your screen shot and trying to make sense of it all and what not is what drew my attention to that magic little word, "topicview", which is the page I was missing the redirect for.

So not a fraud. Enjoy those points my friend, you've earned them. :)

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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: