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.


IOTD Name Change

Login / Search

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

Community saint

Starting point


Supposing on the IOTD box, I wanted to change the wording in the box title (from 'Image of the Day' to say 'Happy Birthday' for instance - something that could be potentially quite easy).

Is it possible?? Is it possible thru the 'themes' section of OCP? If it is possible via OCP themes and easy - ie go to THIS file and change THIS line, can anyone show me how or point to the right file?? (Showing this would presumably show me how to edit the title in any block…?)

If it is really complicated, am happy to skip it and look into later when I know more (I am 'playing' with OCP…:D)



 





Back to the top
 
Posted
Rating:
#31848
Avatar

Community saint

Hi Reggie.

Almost anything is possible with OCP - it's just a matter of knowing where to start looking. Equally, hacking away at files is fraught with danger because of the 'interlock' nature of the various elements.

In this case I would have a look at the template files, BLOCK_MAIN_IOTD.tpl, in particular. You can find it in themes\default\templates\ assuming you are using the default template.

Find this in line 1:

Code

{+START,BOX,{!IOTD},100%|230px,curved,,,

and change the relevant bit to this:

Code

{+START,BOX,Happy Birthday,100%|230px,curved,,,

and you should find that it will change the title for you. I am assuming that the title is all you want to change here.

Make a copy of the template before you hack away and you should be safe as houses!

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

Community saint


GREAT!! Thanks, Fletch. I shall 'hack' with my usual abandon (will backup the file first;))

 





Back to the top
 
Posted
Rating:
#31969
Avatar

Community saint

when you edit themes the system does make a back up for you but yes making back ups is good.
The autoback up will only work if you use the theme editor that is built into the ocPortal system.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#31977
Avatar

Community saint

I am getting to the point where I don't want to 'break' anything now… So each thing i do with more caution….

 





Back to the top
 
Posted
Rating:
#31979
Avatar

Community saint

Indeed I do like the auto back up of the skin templates though cuz if you mess up you can go back and it shows the original one below which helps even more.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: