HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Dropdown 'News' Catagories list....

Login / Search

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

Honoured member

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
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77928
Avatar

Honoured member

Attachment
» Download: BLOCK_SIDE_NEWS_CATEGORIES.tpl (360 Bytes, 15 downloads so far)
Attachment
» Download: BLOCK_SIDE_NEWS_CATEGORIES_CATEGORY.tpl (44 Bytes, 14 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
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77945
Avatar

Hallowed customer

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 at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#77946
Avatar

Honoured member

Sorry Fletch.   

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



Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77950
Avatar

Hallowed customer

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 at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#77955
Avatar

Honoured member

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
Webmaster: Air-RC An RC Aircraft Community.
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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: