vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   News/Announcements In Your Header Above The Forums (https://vborg.vbsupport.ru/showthread.php?t=107770)

WildSharky 02-11-2006 10:00 PM

News/Announcements In Your Header Above The Forums
 
News/Announcements On Your Forums Home Page All Skins


This is my first hack made for my self it should work all forums but if not i will try to help out in getting it to.. This is why its in beta still..

Credit goes out to all i have learned off of here and other places..
Thanks...

(For vB3.5.3)

Description....
This hack will let you put News/Announcements on your site from the admincp so you dont have to edit all the skin header temp it will show on all skins with there colors.

Hack Features::.
1. Easy Install
2. Can be turned on and off in admincp
3. Change code or text from adminco

Hack Languages
English Only For Now

Admin Controllable
From vBulletin Options ==> vBulletin Options ==> Header News Settings

Installation
Import the product through your admincp by going "Manage Products" ==> "[Add/Import Product]".


[See Screen Shots For Looks]

Updates
------------
v1.0.1
I fixed the on/off its working now.. And i added underlind and Italic to the
admincp..

How To Upgrade

Upgrading forums v1.0.0 to v1.0.1
------------
To upgrade copy all the code/text you have in the code box in your admincp to a text doc
then uninstall v1.0.0 and install v1.0.1... Remember to save what text /code you have there now... As uninstalling will delete it..

packetattack 02-12-2006 08:22 AM

Works, great on 3.5.3. Easily installed and configured.

Thanks

Snake 02-12-2006 10:28 AM

Installey installey installey!

Thanks! :)

klaush 02-12-2006 11:51 AM

Thanks!

Turn "on/off" is not working for me?

XanTrax 02-12-2006 04:37 PM

This one i get, thanks again. Once again a simple template mod right?

mrahul 02-13-2006 02:16 AM

itz not caching the newstext template/query. I am getting 1 Un-Cached query.

Phlex 02-13-2006 06:45 AM

great hack is ist possible to use html or bb code in the header text ?

WildSharky 02-13-2006 08:37 AM

Quote:

Originally Posted by klaush
Thanks!
Turn "on/off" is not working for me?

Im looking to see why it aint now.. I will let you know..

Quote:

Originally Posted by Phlex
great hack is ist possible to use html or bb code in the header text ?

You can use HTML Only use an html editer and paste it over in the box in the admincp..

Quote:

Originally Posted by mrahul
itz not caching the newstext template/query. I am getting 1 Un-Cached query.

yes im im still learning here and im not sure how to make it cache the template its makes maybe some great coder here can help out there

Quote:

Originally Posted by XanTrax
This one i get, thanks again. Once again a simple template mod right?

No it just adds a template you dont have to add anything but the code or text you want to show up in the header

WildSharky 02-13-2006 09:37 AM

Sorry ya'll im not a great coder i just like this for my own site and made it so i wanted to share it with anyone who would like to have something like it.

The on and off is working now and i added underlind and Italic to the
admincp for you guys..

Phlex 02-13-2006 10:30 AM

thx a lot !

inspiration100 02-14-2006 03:00 AM

keep up the good work!

DAdiguzeL 02-14-2006 05:38 AM

I would like to set the table's width, where can I do it?

WildSharky 02-14-2006 06:00 PM

Redownload zip first befor doing this as i remove some widths thats wasnt need..
you can edited the plug in and find
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="{$vboptions['global_border']}" width="100%" align="center">
and where it says width"100%" change 100% to what you want the width to be and then do what it says to upgrade it on the first post here

Thia is the only way for now maybe some better coder can help me set it up in the admincp to change the width..

G_Man 02-18-2006 01:58 AM

I love it. Very Simple and Functional. Great Job!

I am wondering if you mind our changing the templete slightly after we have installed it, just for personal tweaks??

*hits install*

WildSharky 02-18-2006 03:10 PM

No i dont mind but it would be better if you changed the templete be for you install it if you want it changed on all the skins you have or you will have to change it for all skins.

G_Man 02-19-2006 09:17 PM

Quote:

Originally Posted by WildSharky
No i dont mind but it would be better if you changed the templete be for you install it if you want it changed on all the skins you have or you will have to change it for all skins.


Good tip. And thanks. I am just thinking about changing the title, but actually haven't bothered as of yet.

Again: Very Nice Mod! :D

ZombieAndy 02-21-2006 09:28 AM

Quote:

Originally Posted by G_Man
Good tip. And thanks. I am just thinking about changing the title, but actually haven't bothered as of yet.

Again: Very Nice Mod! :D

how would i go about moving this to another position on my page? i cant find any reference to it in the FORUMHOME template..

WildSharky 02-21-2006 09:32 AM

I would think that would be other hack all together and im not sure how the hooks all work yet sorry about that

ZombieAndy 02-21-2006 09:43 AM

ive been able to move it by taking the code out of your newspost template and placing it directly in my FORUMHOME template and it works good, with only 1 minor side effect.

when its off, i now see a thin bar (check out the screenshot ive attached).

EDIT - here's the code as it is in my FORUMHOME template if its anyhelp..

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

<if condition="$vboptions[news_text]">
<tbody>
<tr>
<td class="tcat" colspan="2">
<div align="center">Current Announcement</div>
</td>
</tr>
</thead>
<tr>
<td class="alt1" colspan="2">
<if condition="$vboptions[news_italic]"><i></if>
<if condition="$vboptions[news_underline]"><u></if>
<if condition="$vboptions[news_bold]"><b></if>
$vboptions[news_code]
<if condition="$vboptions[news_bold]"></b></if>
<if condition="$vboptions[news_underline]"></u></if>
<if condition="$vboptions[news_italic]"></i></if>
</td>
</tr>
</tbody>
</table>
</if>

dont suppose you have come across this before or know how to fix it?

WildSharky 02-21-2006 09:48 AM

that would be cause the code cant not turn it all off as its not useing the same hook i did im not sure how to get this to work other place as i said im not a great coder i just though some would like this hack as thats why i made it for my self..

Maybe someone here can help with this as i dont really now or have time to look in to it and see how to move it somewhere else maybe later i can..

You guys feel free to change this but if changed i cant support it..

WildSharky 02-21-2006 09:51 AM

that code would not being cause it this show up on the forums home page cuase of the $spacer_open in the header temp. maybe you can remove this and add it somewhere else on your forumshome temp but im not sure test it and see backup temps befor doing so..

ZombieAndy 02-21-2006 10:06 AM

fixed it! i had it on the wrong side of the main tag lol

if you wanna add this underneath your navbar but above your forums, find in 'FORUMHOME'

Code:

<!-- main -->
and above it, add

Code:

<if condition="$vboptions[news_text]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="{$vboptions['global_border']}" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="2">
<div align="center">Current Announcement</div>
</td>
</tr>
</thead>
<tr>
<td class="alt1" colspan="2">
<if condition="$vboptions[news_italic]"><i></if>
<if condition="$vboptions[news_underline]"><u></if>
<if condition="$vboptions[news_bold]"><b></if>
$vboptions[news_code]
<if condition="$vboptions[news_bold]"></b></if>
<if condition="$vboptions[news_underline]"></u></if>
<if condition="$vboptions[news_italic]"></i></if>
</td>
</tr>
</tbody>
</table>
</if>
<br>

you can then delete the newstext template.

thanks alot man, its a nice little modification hope you dont mind my alteration ;)

WildSharky 02-21-2006 10:08 AM

NP feel free to change it as you want to..

Sidewindr 02-24-2006 11:45 AM

I keep getting an uncached template according to microstats ... Even with the banner not displaying from vBulletin Options setting.

Uncached templates: newstext (1)

How can I cache this template ??

Partybuster 04-18-2006 11:06 AM

Quote:

Originally Posted by Sidewindr
I keep getting an uncached template according to microstats ... Even with the banner not displaying from vBulletin Options setting.

Uncached templates: newstext (1)

How can I cache this template ??

having the same problem here.

WildSharky 04-19-2006 04:54 AM

the Uncached templates: newstext is ok its not hahurting anything that i know how and i use this all the time on my site im not sure how to fix it and dont have time to right now guys sorry..

H@K@N 04-29-2006 08:09 AM

Any possibility to show a different Text for Guests as for logged in Members ?

Tried to use a If condition, but seems not working ...

th@nks

RFViet 06-06-2006 06:00 PM

can it be seen from every page ???

WildSharky 06-06-2006 06:03 PM

yep sure can that the forums uses anyways if you have a portal it wont show on it..

RFViet 06-06-2006 06:20 PM

Quote:

Originally Posted by WildSharky
yep sure can that the forums uses anyways if you have a portal it wont show on it..

_As the description, I can use html code on it right ???
_ Other question is, my forum using multi-language. Is there anyway to change Header to vb phrase , so I can use many languages on it(News and Announcement)

packetattack 01-13-2007 02:29 AM

Has anyone tested this under vb 3.6.4?

WildSharky 01-13-2007 02:50 AM

it works on mine fine


All times are GMT. The time now is 08:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01257 seconds
  • Memory Usage 1,806KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete