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.


Dropdown 'News' Catagories list....

Login / Search

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

Community saint

I modified my main_side_news_categories so it shows a dropdown select box, thus taking up less real estate on the screen.

First modification was to side_news_categories.php  in function run() (move edited one to proper _custom directory of course):

Code

        foreach ($categories2 as $category)
        {
//        $url=build_url(array('page'=>'news','type'=>'misc','id'=>$category['id']),get_module_zone('news'));
            $name=get_translated_text($category['nc_title']);
            $target=urlencode($category['id']);

//            $content->attach(do_template('BLOCK_SIDE_NEWS_CATEGORIES_CATEGORY',array('_GUID'=>'fee49cac370ec00fc59d2e9c66b6255a','URL'=>$url,'NAME'=>$name,'COUNT'=>integer_format($count))));
            $content->attach(do_template('BLOCK_SIDE_NEWS_CATEGORIES_CATEGORY',array('_GUID'=>'fee49cac370ec00fc59d2e9c66b6255a','TARGET'=>$target,'NAME'=>$name,'COUNT'=>integer_format($count))));
        }
        return do_template('BLOCK_SIDE_NEWS_CATEGORIES',array('_GUID'=>'b47a0047247096373e5aa626348c4ebb','CONTENT'=>$content,'PRE'=>'','POST'=>''));


block_side_news_categories.tpl and block_side_news_categories_category.tpl attached.



You can see it here:  http://www.air-rc.com/Blogs/index.php?page=start

I don't use the 'news' part, I just use members 'blogs'.

Paul

Paul
Back to the top
 
Posted
Rating:
#77928
Avatar

Community saint

Attachment
» Download: BLOCK_SIDE_NEWS_CATEGORIES.tpl (360 Bytes, 97 downloads so far)
Attachment
» Download: BLOCK_SIDE_NEWS_CATEGORIES_CATEGORY.tpl (44 Bytes, 84 downloads so far)


There they are.   I changed the {CATEGORIES*} at the start of the first one, don't do that, that's specific to what I wanted to achive.

Paul
Back to the top
 
Posted
Rating:
#77945
Avatar

Community saint

You can see it here:  Member's Blogs - Air-RC

Tried, but …




Would really liked to have seen it in action!

bummer

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

Community saint

Sorry Fletch.   

Got rid of that 'ban'…  Had software that suggested it was a 'bad' IP.


Paul
Back to the top
 
Posted
Rating:
#77950
Avatar

Community saint

Thanks. It's the reason I dislike 'blacklists'.

Interesting display. I've 'saved' it for future inclusion.

thanks

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

Community saint

Yeah, I don't like them either, but I started out with a few problem people out there and kind of got caught up in trying to shut them out.   I figure I have everything else set (permissions and such) so it shouldn't matter anymore.

Paul
Back to the top
 
Posted
Rating:
#77957
Avatar

Community saint

Fletch said

Thanks. It's the reason I dislike 'blacklists'.

You say as I ban whole countries or, at least, try.

The blacklists I am using seem pretty good. Portugal does not seem to be included in the any country list or the list of exploited servers. The guy who makes the list seems to take his time to get things right.

Bob
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: