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.


Can this be officially changed?

Login / Search

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

Fan in action

when you click on the article title,
the page for that article apears
and right below the title
it lists
- how many views it has
- the date it was posted
- and who posted it

esthetically speaking...

is it possible for this data to be at the "end" of the article?
I think (personal two cents) that it would look better esthetically, what say ye?

As for me, I really would like to change it so that it will appear at the end.

How can I accomplish this?

better yet, since in my case i wil be the only one posting articles, how can i eliminated this data altogether? in my case members will express themselves in the forums only.


By the way, im sticking to the default theme until i learn my way around ocp, so the mods i seek will apply to this theme only.


Im using ocPortal to create DisabilityForce.com - a place for disabled people (like me) to provide mutual support to each other, and in doing so, they are empowered to become more inclusive, successful, and contributing citizens in society. It is also for anyone who is supportive of the rights and pursuit of happiness of people with disabilities. So, on behalf of the 1.2 billion disabled people in the world, I humbly thank this community for all assistance received.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Jason Verhagen)  
Rating:
#92233
Avatar

Community saint

jprieto said

… is it possible for this data to be at the "end" of the article?
Will take a look and get back to you on this one - unless the developers step in and say something. It is probably quite complex …

jprieto said

… By the way, im sticking to the default theme until i learn my way around ocp, so the mods i seek will apply to this theme only.
Arghhhhh!

Stop! Desist! Don't do it …!!

I mean DO NOT modify your default theme. That's your safety net when things go wrong.

Make yourself a '_custom' theme, even if it means you duplicate the default and call it something else.

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

Community saint

What you want to do is edit the NEWS_ENTRY_SCREEN.tpl file. The best way to do it is from the Admin Zone->Style->Themes menu option.  once in the Theme Manager, click the Edit Templates option for the Default Theme.  This will bring up a list of all the templates.  Select the NEWS_ENTRY_SCREEN.tpl template in the list and then click the Choose button. 

To remove the views, date, and author, delete the whole first <div> section.  So delete all of this:

Code

 <div class="meta_details" role="contentinfo">
  <ul class="meta_details_list">
   {+START,IF,{$INLINE_STATS}}<li>{!VIEWS_SIMPLE,{VIEWS*}}</li>{+END}
   <li>{!ADDED_SIMPLE,<time datetime="{$FROM_TIMESTAMP*,Y-m-d\TH:i:s\Z,{ADD_DATE_RAW}}" pubdate="pubdate" itemprop="datePublished">{DATE*}</time>}</li>
   {+START,IF_NON_EMPTY,{AUTHOR_URL}}
    <li>
     <span class="field_name">{!AUTHOR}:</span> <a rel="author" itemprop="author" href="{AUTHOR_URL*}" title="{!AUTHOR}: {AUTHOR*}">{AUTHOR*}</a>
     {+START,INCLUDE,MEMBER_TOOLTIP}{+END}
    </li>
   {+END}
   {+START,IF_EMPTY,{AUTHOR_URL}}{+START,IF_NON_EMPTY,{$USERNAME,{SUBMITTER}}}
    <li>
     {!BY_SIMPLE,<a rel="author" href="{$MEMBER_PROFILE_URL*,{SUBMITTER}}" itemprop="author">{$USERNAME*,{SUBMITTER}}</a>}
     {+START,INCLUDE,MEMBER_TOOLTIP}{+END}
    </li>
   {+END}{+END}
  </ul>
 </div>


once edited, you can click the Preview button near the bottum of the page to be sure the change did what you wanted it to and check that you didn't break anything else in the process. If everything looks good, click Save. Just be careful making changes on a live site...once saved, the site will use the changed file and anything you break will be displayed on the site until it is corrected.

If you edit the template manually outside of the ocPortal editor, be sure to save the edited file to the themes\default\templates_custom directory and not save it back to the themes\default\templates directory. Another tip...to get an idea of what template(s) to edit to change your web pages, navigate to the page you want to change (logged in as an Admin), then scroll down to the footer of your web site and use the drop down box and select 'Show template edit links' and click the Go button. This will open that page in a new window that will have all the template elements labeled and from there you can click the element to edit the template you want.

<edited> edited to correct the menu option above should be Admin zone->Style->Themes, not Admin Zone->Structure.



Last edit: by Jason Verhagen
Back to the top
 
Posted
Rating:
#92235
Avatar

Community saint

Ahh yes, do as Fletch says.  Make a copy of the default theme and make the changes from that new theme instead of the default theme.
Back to the top
 
Posted
Rating:
#92236
Avatar

Community saint

Jason has homed in on precisely what you need to do. However, I've noted from your previous posts that you feel 'uncomfortable' editing the back-end so, here's another 'down-and-dirty' fix that you might find 'easier'.

But, be warned, my way might well impact on other areas of your site that require 'meta_details' to be displayed. Use at your own discretion!

Admin Zone Style Manage themes Choose Edit CSS: global.css
  • find ul.meta_details_list {
  • comment out display: block; (see attachment 2)
  • add display:none;

This is how the article on the front page displays with the meta_details active …



… and this is how it displays after my edit:



Moving the 'meta_details' to the bottom of the page is a whole new ball game!

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

Fan in action

wow… it worked!
I commented out the specified css line.
Thanks!!

On another note, perhaps in future versions this data may look better at the end of the article, so as not to be intrusive esthetically speaking.

Im using ocPortal to create DisabilityForce.com - a place for disabled people (like me) to provide mutual support to each other, and in doing so, they are empowered to become more inclusive, successful, and contributing citizens in society. It is also for anyone who is supportive of the rights and pursuit of happiness of people with disabilities. So, on behalf of the 1.2 billion disabled people in the world, I humbly thank this community for all assistance received.
Back to the top
 
Posted
Rating:
#92239
Avatar

Community saint

jprieto said

wow… it worked!
:lol:

jprieto said

On another note, perhaps in future versions this data may look better at the end of the article, so as not to be intrusive esthetically speaking.
We could get into a looooong debate as to the aesthetics, but bear in mind that ocPortal's 'News' feature is closely tied to its 'Blog' feature, and it is commonly accepted in Blogland that the meta details follow on immediately after the title.

But if it continues to trouble you, perhaps you could have a look at what Jason recommended and try and incorporate the bit he indicated you remove, and add it to the bottom of NEWS_ENTRY_SCREEN.tpl. This would call for a bit of trial-and-error, especially if your coding abilities are on a par with mine (abysmal)!

 :o

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

Fan in action

my site is fine now, details dont show anymore

but i guess that if these details need be right under the title, then keeping the 3 details horizontally, rather than vertically, will be less instrusive

im fine
im making suggestion for future versions
but im happy with my site as far as this topic is concerned

Im using ocPortal to create DisabilityForce.com - a place for disabled people (like me) to provide mutual support to each other, and in doing so, they are empowered to become more inclusive, successful, and contributing citizens in society. It is also for anyone who is supportive of the rights and pursuit of happiness of people with disabilities. So, on behalf of the 1.2 billion disabled people in the world, I humbly thank this community for all assistance received.
Back to the top
 
Posted
Rating:
#92253
Avatar

Community saint

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

Community saint

Hmm, just about every blog I have ever read has had such data at the end of the article.

Paul
Back to the top
 
Posted
Rating:
#92337
Avatar

Community saint

I've seen it both ways. But the point is ocPortal has provided the means in which you can have it which ever way you want without too much effort which is good. It is sort of a waste of time for developers to get too in depth on asthetics if the change is only a minor issue related as a preference to a segment of the community even if that segment is as big as half or a little more than half of the total community. But if they get bored one day maybe they will or better yet someone from the community who feels this is important can always commit it to the repository?
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: