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. :)

dacho 10-07-2009 07:06 AM

10x man

expe_ue 10-09-2009 02:50 AM

no images to help with the aparience? :(

smokin1337 10-09-2009 03:52 AM

1 Attachment(s)
You can add whatever you like i used this image for the yourimagehere place. If that's what you mean.

COL NIL SATIS 10-09-2009 01:54 PM

does it only scroll a third across the screen?????

smokin1337 10-09-2009 02:36 PM

Quote:

Originally Posted by COL NIL SATIS (Post 1897088)
does it only scroll a third across the screen?????

It goes all the way across for me, depending on your style the code may need a little editing.

COL NIL SATIS 10-09-2009 05:53 PM

Quote:

Originally Posted by smokin1337 (Post 1897116)
It goes all the way across for me, depending on your style the code may need a little editing.

it goes only a third across for me mate..nice mod too...??? :confused:

s-p0k 10-09-2009 08:14 PM

where to add this?

smokin1337 10-09-2009 10:02 PM

Quote:

Originally Posted by s-p0k (Post 1897284)
where to add this?

Anywhere you want thats the reason i made it because i wanted different ones for different parts of my forum.

Quote:

Originally Posted by COL NIL SATIS (Post 1897227)
it goes only a third across for me mate..nice mod too...??? :confused:

Try removing this line and see if it helps, it seems to be doing that on IE.

Code:

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

linuxututs 10-10-2009 01:23 PM

Great Hack ! Love it !

Thank You,

COL NIL SATIS 10-10-2009 05:30 PM

Quote:

Originally Posted by smokin1337 (Post 1897329)
Anywhere you want thats the reason i made it because i wanted different ones for different parts of my forum.



Try removing this line and see if it helps, it seems to be doing that on IE.

Code:

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

Thats great mate..works perfect now..thank you sir:)

s-p0k 10-10-2009 09:08 PM

not working for me ........useing firefox..will try it later

smokin1337 10-11-2009 12:50 PM

Updated to v1.1, i added an xml for easier management.

s-p0k 10-11-2009 08:25 PM

Quote:

Originally Posted by smokin1337 (Post 1898023)
Updated to v1.1, i added an xml for easier management.

TY WORKING NOW WITH THE XML...GOOD JOD

tafreeh 10-13-2009 03:37 AM

Great mod.. working fine..
but there is Security Token code missing ...... users were getting Security Token missing error when i enabled your mod....

Can you please fix that and update the mod.. P.S can you make it work in all pages...
Thanks


All times are GMT. The time now is 06:22 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.02585 seconds
  • Memory Usage 1,762KB
  • 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
  • (7)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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