Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[New Posts | New Thread | Search] on Index page Details »»
[New Posts | New Thread | Search] on Index page
Version: 1.00, by ForumDog ForumDog is offline
Developer Last Online: Feb 2007 Show Printable Version Email this Page

Version: 3.6.1 Rating:
Released: 07-25-2006 Last Update: 08-29-2006 Installs: 39
Template Edits
 
No support by the author.

This adds forum section-specific New Posts, New Thread and Search links to the index page.

New Posts will only appear when there are new posts in that section and will only list new posts from the section.
New Thread will start a new thread in that section.
Search will start a search for only that section.

A search did bring up something similar but it was neither as complete nor as aesthetically pleasing (to me). I apologise if this is duplicated.

Open your forumhome_forumbit_level1/2_post template.



FIND:
Code:
<if condition="$show['forumdescription']">
<div class="smallfont">$forum[description]</div>
</if>
AFTER, ADD:
Code:
<if condition="$forum[statusicon]=='new' OR $forum[statusicon]=='old'">
     <div class="smallfont">
          <if condition="$forum[statusicon]=='new'"><a href="search.php?$session[sessionurl]do=getnew&amp;include=$forum[forumid]">$vbphrase[new_posts_nav]</a> | </if>
          <a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]" rel="nofollow">New Thread</a>
          <if condition="$show['searchbuttons']">| <a href="search.php?$session[sessionurl]f=$forum[forumid]" rel="nofollow">$vbphrase[search]</a></if>
     </div>
</if>


Optional extras:
- Subscription code for each feed type, all conditionals so they'll only appear if you've turned that type on.
- Unsubscribe moved to the linkfest since it seems to fit better there. Be sure to delete the very similar code which appears immediately below where this code is inserted, everything between <if condition="$show['forumsubscription']"> and </if>.

Code:
<if condition="$forum[statusicon]=='new' OR $forum[statusicon]=='old'">
     <div class="smallfont">
          <if condition="$forum[statusicon]=='new'"><a href="search.php?$session[sessionurl]do=getnew&amp;include=$forum[forumid]">$vbphrase[new_posts_nav]</a> | </if>
          <a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]" rel="nofollow">New Thread</a>
          <if condition="$show['searchbuttons']">| <a href="search.php?$session[sessionurl]f=$forum[forumid]" rel="nofollow">$vbphrase[search]</a></if>
          <if condition="$vbulletin->options['externalrss']">| <a href="external.php?type=rss2&forumids=$forum[forumid]">RSS Feed</a></if>
          <if condition="$vbulletin->options['externalxml']">| <a href="external.php?type=xml&forumids=$forum[forumid]">XML Feed</a></if>
          <if condition="$vbulletin->options['externaljs']">| <a href="external.php?type=js&forumids=$forum[forumid]">JS Feed</a></if>
          <if condition="$show['forumsubscription']">| <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></if>
</if>

Update:
- The conditional should now be correct so the links will only appear for open forums. It's up to you if you want to change that.
- The search link is now wrapped in a conditional so it doesn't appear when it's not wanted, most likely for Guests, New Thread is also now controlled as far as is possible by the statusicon conditional. Permission to start a new thread is only checked after clicking the link as far as I can tell, so it can't be done perfectly.
- Not a big deal, but added rel="nofollow" in a couple of places where the links aren't any use to search engines.


Known Issues:
- If there is no permission to start a new thread or search and there are no new posts to view but the unsubscribe link or a feed link appears then the line will begin with a |. It could be solved with a loooooooot of conditionals but it's not worth it. Change the formatting (use of |) if it bothers you.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-26-2006, 04:23 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Creative , I will be using this
________
volcano vaporizer reviews
Reply With Quote
  #3  
Old 07-30-2006, 09:05 AM
A_N_K_A_R_A A_N_K_A_R_A is offline
 
Join Date: Jan 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice thanks
Reply With Quote
  #4  
Old 07-30-2006, 12:13 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely it could be much better if they were using images.
Reply With Quote
  #5  
Old 08-04-2006, 12:29 AM
h_kakashi h_kakashi is offline
 
Join Date: Oct 2004
Location: London
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed Nice touch
Reply With Quote
  #6  
Old 08-07-2006, 05:59 AM
tpzone's Avatar
tpzone tpzone is offline
 
Join Date: Aug 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

piece of cake.. thank you for the mod, very nice!
Reply With Quote
  #7  
Old 08-09-2006, 06:57 AM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Blade
Lovely it could be much better if they were using images.
Personal taste. I like quick and clean myself.
Reply With Quote
  #8  
Old 08-16-2006, 03:30 PM
netwiz netwiz is offline
 
Join Date: Aug 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to be nice. But in my installation i couldnot locate the forumhome_forumbit_level1/2_post template :-(
pls do update your steps keeping newbies also in mind:-(
Reply With Quote
  #9  
Old 08-16-2006, 03:39 PM
ForumDog ForumDog is offline
 
Join Date: Jul 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AdminCP > Styles & Templates > Search in Templates > Search for forumbit

In the results, forumhome_forumbit_level1 and 2 will appear, you want the post versions of each and not the nopost versions.

Level 1 is the forum sections that show up on the index page, Level 2 is for subforums that show up on forum listing pages.

Reply With Quote
  #10  
Old 08-16-2006, 07:43 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this but had to remove because its not displaying correctly when using subforums... If my subforum structure is setup like this

-Forum Name
--Forum (Locked)
---Child Forum1
---Child Forum2
---Child Forum3

Then locked forum show the New Thread- Search and when you click you get dont have access...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15158 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete