vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Marquee Announcements (https://vborg.vbsupport.ru/showthread.php?t=224615)

smokin1337 10-04-2009 10:00 PM

Marquee Announcements
 
1 Attachment(s)
This is a simple announcement/news mod. It place a marquee announcement section anywhere on the forum you choose. On mouseover the marquee stops allowing users to view the messages. Integrates well in vBulletin.

Replace the text in red with your data. The image is optional.

HTML Code:
Code:

<!--Announcements-->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2"><center>Your Title</center> </td>
        </tr>
</thead>
<tr>
                <td class="alt2"><img src="yourimage.png"/></td>

<!--Messages-->
<td class="alt2">
<marquee direction="left" scrollamount="6" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=6"><font size="2"><b>

<!-- Your Message Here -->

</b></font></marquee>

<!--/Messages-->
</td>
</tr>

</tr>
        </table>
<br />
<!--/Announcements-->

v1.1:

Made into an XML for easier management. Settings can be altered via admincp.
With the XML you can choose a location from preselected options or put it where you want on FORUMHOME using

Code:

<!-- announcements -->
Only draw back is with the XML it can only be displayed on FORUMHOME for now.

cindy helmond 10-05-2009 01:53 PM

cool any screens ? :D

Trip 10-05-2009 04:18 PM

1 Attachment(s)
I tried it out on my local test site. Well done :cool::up: Tons of uses for this, you could even wire this right into your notices if you wanted to.

Here's a screen, although you need to run the code to get the full effect or else it's just a tcat box with letters ;)

saadessa 10-05-2009 05:11 PM

very nice i will try later
thank you

smokin1337 10-05-2009 05:18 PM

Just a note if you don't wnat the image at the end of the table just remove this line

HTML Code:
Code:

<td class="alt2"><img src="yourimage.png"/></td>

pein87 10-06-2009 12:46 AM

font tag and bold tag are old try a

Code:

<span style="font-weight:bold; font-size:2px;"> <!-- content here --> </span>
change your image src to

Code:

<img src="" alt="" />
so it validates some what as transitional html.

smokin1337 10-06-2009 02:26 AM

I appreciate the advice, I am just learning HTML and such.

Chuta 10-06-2009 11:34 PM

Very, Very Nice For The Notices!

pein87 10-07-2009 12:55 AM

Quote:

Originally Posted by smokin1337 (Post 1895457)
I appreciate the advice, I am just learning HTML and such.

Lolz sorry if I seemed harsh its just users tend to forget about standards and such which puts the browser in quirks mode. Font tag is legacy html but vbulletin uses transitional xhtml as the doctype. Every good for your first edit I plan on using a similar method for a mods username.

ChopSuey 10-07-2009 03:04 AM

Very nice smokin, i'll try tagged. :)


All times are GMT. The time now is 03:50 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.01153 seconds
  • Memory Usage 1,735KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete