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.


Left panel editing.

Login / Search

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

Community saint

I have a problem trying to edit the left panel, on my welcome page.

Got the shout box in there, and want to get rid of it.
Click on edit page, find (block]side_shoutbox[/block), and delete the line.
Click on edit (to save changes to all settings and panels above), back to my page and surprise… shout box is still there.

hmmm
Try again, clear the caches … still there   :'(

Click on administration link, content/comcode pages/:panel_left, validate.
Shout box is not there. O_o
Good. Clear the caches again to celebrate.

Back to my welcome page, what do I see ?
The shout box…
rrrrrrrrrrh

OK
FTP hunt for panel_left.txt

Found nine of them:
\docs\pages\comcode\EN
\forum\pages\comcode\EN
\forum\pages\comcode_custom\FR
\Infos\pages\comcode_custom\EN
\pages\comcode\EN
\pages\comcode_custom\EN
\pages\comcode_custom\FR
\personalzone\pages\comcode\EN
\site\pages\comcode\EN

This is for the welcome page, so for testing i'll just keep those in the pages and site folders and open them to see if the shout box line is there:
\pages\comcode\EN (no shout box)
\pages\comcode_custom\EN (has shout box)
\pages\comcode_custom\FR (no shout box)
\site\pages\comcode\EN (no shout box)

From what I understand,
the \pages folder is the one i'm looking for,
and the thing writes on comcode_custom\FR,
but reads comcode_custom\EN.

Guess I can clean the guilty file with my favourite text editor and FTP it back on the server, without the shout box. But I don't think it's what you had in mind when you coded it.  ;)

While we're at it…
Would it help if I add FR folders everywhere, or is it supposed to do this itself?
What does the {$SET,interlock,_false} line do?  :$



www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#28267
Avatar

Community saint

moimaim said

What does the {$SET,interlock,_false} line do?  :$

What a terrific 'silly question'. Been meaning to ask this for a while. Changing the parameter to '_true' only allows it to ignore me, so I gave up on it. But now that it is mentioned I would be interested to know the answer, too.

 ;)


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

But I don't think it's what you had in mind when you coded it.

You're right. Sorry about this, and it's good investigation on your part to track it down.
I have found two bugs. My problem though is that these don't quite correlate with your evidence. Hopefully, one of us is misunderstanding the data…
ocPortal - Entry: Comcode page editing problem on pages with multiple languages

You might want to check the language specified in your administrator account user profile (i.e. Go to edit your profile in the Personal Zone). It is best to be "French". Then check the site language using the config_editor.php script (or editing info.php manually) – it should be FR. I believe these problems are caused by inconsistencies between the two – they are definitely bugs in ocPortal, but they are exacerbated by complex situations.

or is it supposed to do this itself?

It should be creating them itself upon-need.

What does the {$SET,interlock,_false} line do?

The box style used by default on the panel blocks (the panel box type) "interlocks" the boxes together, such that any single panel acts as a cohesive chain. As we try not to make assumptions in ocPortal, we couldn't assume that it was a panel that was a cohesive chain (for instance, one might want multiple "interlock-chains" on any single panel). Thus we invented this symbol marker to mark the end of a chain.


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

Quick reply   Contract

Your name:
Your message: