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!] Problems with creating info boxes

Login / Search

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

Community saint

ocPortal version 9.0.2

Greetings,

I am having trouble doing something that I once did for all of my sub-forums in my forum. That is, creating info boxes that appear at the top of each forum containing information important for that forum.

I used to have it set up to contain maps. But I had since made changes, and those info boxes were no longer accurate.

But now I am setting up my info boxes again, and have made the comcode pages for said info boxes. I have the first info box working properly, the one for the index page. But the info box I made that contains maps for my Chalcedonia forum seems to refuse to show. I have refreshed, cleaned caches... nothing.. Which is rather frustrating since both codes are the same, I can't seem to figure out just what is wrong.

Here's the tempcode:

Code


{+START,IF_PASSED,ID}
{+START,IF,{$EQ,{ID},1}}
{$LOAD_PAGE,infobox,site}
{+END}
 
{+START,IF,{$EQ,{ID},59}}
{$LOAD_PAGE,chalcedoniamaps,site}
{+END}
{+END}


While you could go and view my site, here's some screenshots.



That is of the index page, where the info box coe designed for the index page actually works.



That is the Chalcedonia Forum, where the info box holding maps designed for that forum refuses to show.

And yes, the actual comcode page works just fine.

So yeah, I am at a loss here.... help? 


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

I'd debug first with:

Code

{+START,IF,{$EQ,{ID},59}}
{$LOAD_PAGE,chalcedoniamaps,site}
{+END}
–>

Code

x{ID}x
{+START,IF,{$EQ,{ID},59}}
yy
{$LOAD_PAGE,chalcedoniamaps,site}
{+END}

You'd expect it to say "x59x yy", but what it actually says should give a big hint.


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

Community saint

Um it says

x59x yy


…. when ran through.




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
Item has a rating of 5 (Liked by mythus)  
Rating:
#92686
Avatar

Community saint

mythus said

Um it says
x59x yy

snicker

Sorry! Couldn't help it. Haven't got a clue what Chris is trying to 'extract' from you, but it is fun to sit on the sidelines and 'watch'!


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

I'm not sure what's wrong either. Tested okay on my machine. If you make me an admin I'll see if I can track it down.


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

Fletch said

mythus said

Um it says
x59x yy

snicker

Sorry! Couldn't help it. Haven't got a clue what Chris is trying to 'extract' from you, but it is fun to sit on the sidelines and 'watch'!



If he saw nothing, it'd implying 'ID' wasn't being passed into the template for that forum. If it said a different number he'd have the wrong forum ID in his code. If it didn't say 'yy', somehow the IF statement would have been wrong. The x's were just there to make the number easier to spot on the page.


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

Community saint

Done!

Meaning that you have the power now Chris. Use it wisely :P

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

Community saint

Chris Graham said

If he saw nothing ….. easier to spot on the page.
Careful what you start. I actually understood that!

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

Good news, I just fixed an entirely unrelated (very minor) bug :lol:.

(Templates not showing under the correct current override directory in the list of templates to edit - i.e. overrided ones showing as still under the default theme)


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

Community saint

Awesome? lol

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

Ok, that was hard to trace!

You have 'Single public zone' (aka 'Collapse zones') turned on for your site.

You specified the 'site' zone.

Which doesn't exist.

But infobox still existed under site/pages/comcode_custom/EN, presumably created while single public zone was off. chalcedoniamaps did not.
ocPortal allowed searching within the defunct zone, so the fact the infosite one worked was due to that.

I have changed the code to:

Code

{+START,IF_PASSED,ID}
{+START,IF,{$EQ,{ID},1}}
{$LOAD_PAGE,infobox,}
{+END}
 
{+START,IF,{$EQ,{ID},59}}
{$LOAD_PAGE,chalcedoniamaps,}
{+END}
{+END}
so they are both referenced out of the welcome zone. This will work even though infobox.txt isn't in there, because the Single public zone option prompts ocPortal to search the old site zone directory too.


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

Community saint

Ok, thank you for fixing this for me.

But I am confused…. I never did single zone. I always left it as a separate welcome/site deal - just in case I ever wanted to do something special with the welcome page….

Makes me wonder what happened…

Collapse Zones… .. that does sound familiar.

Hmm.. I bet I accidently toggled that during some event when my brain went on vacation.

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: