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.


Customizing main_recent_downloads block

Login / Search

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

Community saint

Hey All!

Where would I start looking to customize the appearance of the main_recent_downloads block? Editing the template only shows the following:

Code

{+START,BOX,{!RECENT,{NUMBER*},{!SECTION_DOWNLOADS}}}
   {CONTENT}
{+END}
which is really not alot to go on.

TIA!
SD

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#41410
Avatar

Community saint

That is the right template. What are you trying to make it look like?

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

Community saint

Hey Ami! I'm looking to format it like the recent catalogue box which just outputs a bulletted list. The recent download block is basically a box for every entry and for my purposes it's waaaay to "tall" even when paired down to just 5 listings.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#41412
Avatar

Community saint

ah ok I will see if I can find a way to do that.

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

Community saint

Thanx kindly. This is my first step into theming/template modding and I'm looking forward to learning all about this aspect of OCP.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#41414
Avatar

Community saint

Welcome in looking at it I am thinking you might have to edit the php file for that block.

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

Hi,

You can edit the DOWNLOAD_1.tpl template, but I'm not sure if this is a good idea as I think that is used by other areas of the system.

In this case it might be easier and safer to make a PHP change. Change line 70 if sources/blocks/main_recent_downloads.php from:

Code

         $to_use=((get_option('show_dload_trees')=='1') || ((array_key_exists('show_dload_trees',$map)) && ($map['show_dload_trees']=='1')))?2:1;
to:

Code

         $to_use=-1;


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

Community saint

Thats what I was thinking but was not sure what code to use.


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

Community saint

Thanx for the suggestion Chris, however, this time around, not much success. Initially, I had to create the comcode page first (with the block embedded) before editing the file as it errored out upon save complaining about the minus sign in front of the "1" (I tried quotes and escape, but no luck).  Once I did get it locked and loaded, basically it was the same display, but one blank line removed between the title and posting date.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#41604
Avatar

Hi,

You've run into a bug- our templates can no longer contain a minus symbol (due to the Tempcode compiler) but the DOWNLOAD_-1 template had one in. This will be fixed in the next RC release.

The change should then work.


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: