Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Pages: [1] 2

Author Topic: Tab menus Categories, Articles, Comments Rss and Search  (Read 7779 times)

poppoll

  • Full Member
  • ***
  • Karma: 47
  • Posts: 199
    • Poppoll's sNews playground
Tab menus Categories, Articles, Comments Rss and Search
« on: January 22, 2009, 07:49:33 PM »

Tabmenu Hover

download http://poppoll.nieuwerkerken-aalst.be/templates/tabmenu.zip
copy slider.css to the css directory
copy slider.js and slider2.js to the js directory
If you test this with a fresh 1.7 sNews replace the index.php file with the one from te .zip.
If not add this to index.php between <head> and </head>:
Code: [Select]
<!--tab slider  -->
<link href="css/slider.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/slider.js"></script>
<script type="text/javascript" src="js/slider1.js"></script>
<!--tab slider end -->
Change Categories, Articles, Comments and Rss code like this:
Code: [Select]
<div class="tab_menu_container">
<ul id="tab_menu"><!-- Menu for the AJAX box -->
<li class="first"><a rel="tab_content_categories">Categories</a></li>
<li><a rel="tab_content_articles">Articles</a></li>
<li><a rel="tab_content_comments">Comments</a></li>
<li><a rel="tab_content_rss">RSS</a></li>
</ul>

<div class="clearer"></div>
<div class="tab_container tab_container_in">

<ul class="tab_content_list" id="tab_content_categories"><!-- Categories -->
<?php categories(); ?>
</ul>
<ul class="tab_content_list" id="tab_content_articles"><!-- Articles -->
<?php menu_articles(0,10); ?>
</ul>
<ul class="tab_content_list" id="tab_content_comments"><!-- Latest comments -->
<?php new_comments(5,30); ?>
</ul>
<ul class="tab_content_list" id="tab_content_rss"><!-- rss -->
<?php rss_links(); ?>
</ul>


</div>


</div>
      
Tabmenu Click

download http://poppoll.nieuwerkerken-aalst.be/templates/tabmenu2.zip
copy tabber.css to the css directory
copy tabber.js to the js directory
If you test this with a fresh 1.7 sNews replace the index.php file with the one from te .zip.
If not add this to index.php between <head> and </head>:
Code: [Select]
<!-- tabs navigation -->
<link href="css/tabber.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/tabber.js"></script>
<script type="text/javascript">

/* Optional: Temporarily hide the "tabber" class so it does not "flash"
   on the page as plain HTML. After tabber runs, the class is changed
   to "tabberlive" and it will appear. */

document.write('<style type="text/css">.tabber{display:none;}<\/style>');
</script>
<!-- tabs navigation -->
Change Categories, Articles, Comments Rss and Search code like this:
Code: [Select]
<div class="tabber">

<div class="tabbertab">
<h2>Categories</h2>
<ul>
<?php categories(); ?>
</ul>
</div>

<div class="tabbertab">
<h2>Articles</h2>
<ul>
<?php menu_articles(0,10); ?>
</ul>
</div>
<div class="tabbertab">
<h2>Comments</h2>
<ul>
<?php new_comments(5,30); ?>
</ul>
</div>
<div class="tabbertab">
<h2>RSS</h2>
<ul>
<?php rss_links(); ?>
</ul>
</div>
<div class="tabbertab">
<h2>Search</h2>
<div class="tablist_search">
<?php searchform(); ?>
</div>
</div>
</div>
« Last Edit: January 22, 2009, 07:53:37 PM by poppoll »
Logged

jlhaslip

  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #1 on: January 23, 2009, 02:59:04 AM »

Any chance that you have a Demo site available to link us to?
Logged
Yes! I have no siggy.

poppoll

  • Full Member
  • ***
  • Karma: 47
  • Posts: 199
    • Poppoll's sNews playground
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #2 on: January 23, 2009, 04:34:56 AM »

Sorry No demo.
PP
Logged

Sasha

  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
    • cssanarchy.com
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #3 on: January 23, 2009, 07:16:48 AM »

jlhaslip you can see this menu live at my web site www.koncept9.com on right side....he use my menu with diferent style in css...my style work with modded snews 1.6 and his work for basic snews menu...also Patric looking for this.thanx to poppoll this menu is avilable for snews users.....
Logged
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #4 on: January 25, 2009, 05:40:44 PM »

I've got it up and running... minor glitches with subcat's at the moment, but its up... http://p-ahlqvist.com/

Damn it's hot ;) Thanks a bunch, mate/s
« Last Edit: April 18, 2010, 11:25:31 AM by Patric Ahlqvist »
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

poppoll

  • Full Member
  • ***
  • Karma: 47
  • Posts: 199
    • Poppoll's sNews playground
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #5 on: January 25, 2009, 05:56:45 PM »

Pat,
The minor glitches are solved I hope.
So I updated the tabmenu.zip with the modified css file.
PP
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #6 on: January 25, 2009, 06:02:52 PM »

Soooo solved. I almost banned myself from forum due to this, hehe... And I think i know some CSS ;) Thanks again, Pop... You did it.
Logged
My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs

slemborg

  • Jr. Member
  • **
  • Karma: 2
  • Posts: 82
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #7 on: May 06, 2009, 11:14:06 PM »

Old topic, but I just added this mod, with a few adjustements it works perfectly.
Logged

jlhaslip

  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #8 on: May 07, 2009, 04:41:46 AM »

Old topic, but I just added this mod, with a few adjustements it works perfectly.

Link for Demo, please and thanks.
Logged
Yes! I have no siggy.

slemborg

  • Jr. Member
  • **
  • Karma: 2
  • Posts: 82
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #9 on: May 07, 2009, 04:48:12 AM »

Old topic, but I just added this mod, with a few adjustements it works perfectly.

Link for Demo, please and thanks.

I don't have any demo.
Logged

poppoll

  • Full Member
  • ***
  • Karma: 47
  • Posts: 199
    • Poppoll's sNews playground
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #10 on: May 07, 2009, 07:47:05 PM »

jlhaslip
Demo click menu @ .my site
Demo hover menu @ patics site.
PP
 
« Last Edit: May 07, 2009, 07:51:32 PM by poppoll »
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #11 on: June 22, 2009, 01:03:17 PM »

download links is not working?  ???
Logged

poppoll

  • Full Member
  • ***
  • Karma: 47
  • Posts: 199
    • Poppoll's sNews playground
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #12 on: June 22, 2009, 10:53:15 PM »

@Sibas

Fixed!

PP
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #13 on: June 23, 2009, 06:04:12 AM »

Thanks m8 i am going to try as soon as possible, I mean tomorrow ;)
Logged

slemborg

  • Jr. Member
  • **
  • Karma: 2
  • Posts: 82
Re: Tab menus Categories, Articles, Comments Rss and Search
« Reply #14 on: July 01, 2009, 11:56:57 AM »

I've been trying to mess a bit more around with this, trying to use it for archive, but with no luck
could some one maybe point me in the right direction, if it's possible?
Logged
Pages: [1] 2