Marmbi: 'View New Content' as a menu tab - Marmbi

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

'View New Content' as a menu tab Rate Topic: -----

#1 User is offline   Dan Icon

  • Administrator
  • Icon
  • Group: Administrators
  • Posts: 12
  • Joined: 02-September 09

Posted 20 October 2009 - 05:59 PM

Hey, this my second IPB tutorial for the site and a very simple one at that.

I am personally used to the 'New Posts' link/button being with all the other navigational stuff, probably because i am a migrator from vBulletin so here is just a simple 30 second modification to remove the text link to the right and convert it to a menu tab button.

Standard:
Attached File  vnc.png (6.93K)
Number of downloads: 0

Modified:
Attached File  vnc2.png (3.39K)
Number of downloads: 0

Right, to start go to: Admin Control Panel --> Look & Feel Tab --> Manage Templates & CSS --> (YOUR SKIN NAME) --> Templates --> globalTemplate

Find:
Code:
<li><a href='{parse url="app=core&amp;module=search&amp;do=new_posts&amp;search_filter_app[<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSSearchIndex::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>]=1" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a></li>


And delete this section of code.

---------

Next scroll up and find the following piece of code:

Code:
						<li id='nav_search' class='{parse variable="searchActive"}'><a href='{parse url="app=core&amp;module=search" base="public"}' title='{$this->lang->words['advanced_search']}' accesskey='4' rel="search">{$this->lang->words['sj_search']}</a></li>


And place the following code below:
Code:
                        <li class='left'><a href='{parse url="app=core&amp;module=search&amp;do=new_posts&amp;search_filter_app[<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSSearchIndex::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>]=1" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a></li>


And we are done! Not bad for 30 seconds hey ;)

Code:
testing dsa kopdas
das
dsad


dddddddddddddddddddd

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users