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

Reply
 
Thread Tools
Quick News V2 Details »»
Quick News V2
Version: 2.0.0, by Adrian. Adrian. is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.1 Rating:
Released: 09-18-2006 Last Update: 09-19-2006 Installs: 128
Template Edits
 
No support by the author.

Quick News v2
By Adrian at Development Chat
Tested on v3.6.1, should work on 3.6.0 and 3.5.x


Hey,

This is a very simple mod', it allows you to add news/important notes or announcements, on the homepage of your forum.
You can enable/disable or add news via the admin panel.
The "Quick News" box, matches your forum theme. Just so it doesn't look out of place.

New in Version two.
  • Abilty to hide Quick News from guests
  • Abilty to show Quick News to admins only
  • Abilty to choose to show Quick News on everypage, or just forum home

Installation

Import the product-quicknews.xml
Go to vBulletion Options > Quick News (Read option descriptions before configuring)

Template Edit:

Open Forum Home Templates > FORUMHOME

Find:
HTML Code:
<!-- main -->
After Add:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_forumhome'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
		
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
	
		</if>
	</if>
Now open Navigation / Breadcrumb Templates > navbar

Add at the very bottom:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_everypage'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
		
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
	
		</if>
	</if>
Done.

Upgrading:
If you are upfrading from Quick News v1 to v2.
Do the following.

Import the new product-quicknews.xml (Overwriting old version)

Then, open up:
Forum Home Template > FORUMHOME (if you installed it in FORUMHOME)

Find:
HTML Code:
	<if condition="$vboptions['qnews_enabled'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
And replace it with:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_forumhome'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
		
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
	
		</if>
	</if>
If you added the code into Navigation / Breadcrumb Templates > navbar, do the following

Find:
HTML Code:
	<if condition="$vboptions['qnews_enabled'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
Replace it with:
HTML Code:
<if condition="$vboptions['qnews_enabled'] == 1">
		<if condition="$vboptions['qnews_everypage'] == 1">
			<if condition="$vboptions['qnews_guests'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	<else />
		<if condition="$show['guest']">
	<!-- No message for guests -->
		</if>
		</if>
		
				<if condition="$vboptions['qnews_admin'] == 1">
					<if condition="$bbuserinfo[usergroupid] == 6">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	<else />
							<if condition="$vboptions['qnews_guests'] == 1">
								<if condition="$bbuserinfo[usergroupid] == 1">
<!-- No message for guests, if admin view only is set to no, and guest view is also set to no -->
	</if>
	
	<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>
<td align="center" class="tcat">Quick News</td>
</tr>
<tr>
<td class="alt1">$vboptions[qnews_news]</td>
</tr>
</table>
<br>
	</if>
	</if>
		</if>
	</if>
	
		</if>
	</if>
Done.

Very easy to install mod', and quite useful.

Click install if you use it please.

Thanks.

Adrian

Show Your Support

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

Comments
  #52  
Old 10-17-2006, 09:45 PM
Salvar Salvar is offline
 
Join Date: Dec 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed Thanks!

It would ne nice if you add the option:

Show in forum XXX

Now we only have the option or the mainpage or all the (sub)forums.

Would be nice if we could chooce in which forum you can show the news!

Just my 2 cents
Reply With Quote
  #53  
Old 10-18-2006, 05:58 PM
GraphicPlanet GraphicPlanet is offline
 
Join Date: Jan 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tanx its working for me fine
Just Some Stuiped Quastion
Now i have in top Quick News i need to add in other forum ( seprate )
its Possible?
Reply With Quote
  #54  
Old 10-21-2006, 07:14 AM
GraphicPlanet GraphicPlanet is offline
 
Join Date: Jan 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Plz Adrian i need help
i need Use this plugin for seprate forum
its possible?
Reply With Quote
  #55  
Old 10-22-2006, 12:15 PM
prilep prilep is offline
 
Join Date: Oct 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello. Where do i upload product-quicknews.xml ?? Thanks
Reply With Quote
  #56  
Old 10-25-2006, 02:10 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't have to upload it.

Import the xml as a product in your product/plug-ins section after you've uploaded all the other files.
Reply With Quote
  #57  
Old 11-14-2006, 02:08 AM
GraphicPlanet GraphicPlanet is offline
 
Join Date: Jan 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi
i dont know what happen with my Quick News
Just the Guest can see the quick news
admin and user can not see
what happen?
Reply With Quote
  #58  
Old 11-16-2006, 12:26 AM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking for something like this and it works great with 3.6.2.
Reply With Quote
  #59  
Old 12-04-2006, 04:15 PM
madzat madzat is offline
 
Join Date: Sep 2006
Location: germany
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can You Explain More In This Installation I Found Bottom But I Didn't Understand What Is Very Bottom and Where Put the Code ...
Now open Navigation / Breadcrumb Templates > navbar

navbar ==><tr valign="bottom"> after thes i put the code
Tnx In Advance
Reply With Quote
  #60  
Old 12-18-2006, 10:37 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adrian. View Post
Alien, i will look into it.
Hey. It's been 2 months so wanted to see if you've made any progress on my inquiry?
Reply With Quote
  #61  
Old 12-26-2006, 11:19 PM
mrpotatohead mrpotatohead is offline
 
Join Date: Jul 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way of making this viewable to MODERATORS and ADMIN - not just ADMIN? As I'd like to make messages to all Site Staff? How would I go about doing this!?

thanks great mod!


- Joe
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 12:05 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.09954 seconds
  • Memory Usage 2,362KB
  • Queries Executed 25 (?)
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
  • (7)bbcode_html
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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