vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - vBAnnounce Beta (https://vborg.vbsupport.ru/showthread.php?t=202609)

Pyrobyte 01-20-2009 10:00 PM

vBAnnounce Beta
 
vBAnnounce Beta


Just a little template edit I came up with to make an important announcement stand out...

Ad Location Templates > ad_header_end | Add this code to the template.

Code:

<if condition="$show['member']">
       
<br />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="alt1" align="center">
        YOUR TEXT AND HTML TAGS HERE
                        </td>
                </tr>
        </table>

</if>

Replace the bold red text saying "YOUR TEXT AND HTML TAGS HERE" with exactly what it says. Your text and HTML tags. You can also change who this is viewable to by changing $show['member'] to $show['guest'], ect. You can change the text align by either putting <P align="left">, <P align="right">, or <P align="center">. The default is center. To change the align of the text you could also change the text saying "center" in the following code to "left" or "right". <td class="alt1" align="center">


Enjoy! :)

Magnumutz 01-21-2009 08:51 PM

Screenshot or demo?

Pyrobyte 01-21-2009 11:55 PM

Quote:

Originally Posted by Magnumutz (Post 1720515)
Screenshot or demo?

I'll upload a screenshot...

lazydesis 01-22-2009 02:15 AM

does it need to be beta? :confused: isnt this type of code already well established :D i am hoping its to add more new code to this later on?!?

thanks anyways nice hack :)

SEOvB 01-22-2009 06:35 AM

You could save yourself the edit, and use the built in notices system if you wanted.

Good work though if your just learning, everyone has to start some where ;)

cheat-master30 01-22-2009 02:27 PM

Nice first modification Pyrobyte, and thanks for bringing it to my attention. Not sure about adding it though, because I don't think I have a need for such an addition right now.

Forum Lover 01-23-2009 11:44 AM

Quote:

Originally Posted by FRDS (Post 1720933)
You could save yourself the edit, and use the built in notices system if you wanted.

Good work though if your just learning, everyone has to start some where ;)

Agreed, Notices system is doing the same.


All times are GMT. The time now is 09:15 AM.

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.01227 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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