View Full Version : Moving Media Select catagory out of menu
baadier
01-28-2010, 02:23 AM
I'd like to move my media select catagory out of my main catagory menu. id prefer to have it shown on its somewhere on the sidebar. I can see the links on mouseover /index.php?media=text etc and i dont mind hardcoding that into the relevant file but i would prefer if it didnt display in my main menu
1. Copy the category_bar.php template from the Categories plugin into your theme folder.
2. Open it and change:
<?php $h->pluginHook('category_bar_end'); ?>to:
<?php $h->pluginHook('category_bar_end', '', array(), array('media_select')); ?>That will exclude the plugin from running at that hook (clever, eh?)
3. Add these links in some other template:
<a href='<?php echo $h->url(array('media'=>'text')); ?>'><?php echo $h->lang['media_select_text']; ?></a>
<a href='<?php echo $h->url(array('media'=>'video')); ?>'><?php echo $h->lang['media_select_videos']; ?></a>
<a href='<?php echo $h->url(array('media'=>'image')); ?>'><?php echo $h->lang['media_select_images']; ?></a>Job done! :)
baadier
01-28-2010, 03:04 AM
Thanks a lot man I'll try it out later today
got it working thanks alot.. on a side not even if i order my catagories alphabetically the 1st one starts on the right hand side and the last is on the left, i changed my stylesheet to include
direction:ltr;
to get it showing in my intended orde. it was the same regardless of changing order to id or alphabetically. btw i was ordering continents so the order was relevent to me
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.