vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBadvanced CMPS (https://vborg.vbsupport.ru/forumdisplay.php?f=101)
-   -   [Request] Fading Affiliates Module (https://vborg.vbsupport.ru/showthread.php?t=80887)

Watson 05-02-2005 04:30 PM

[Request] Fading Affiliates Module
 
Used to have this on my old phpnuke site, and I would like to add it again to my Vbulletin site, if anyone could port it over, it would be magic.

here is the file

Code:

Fading Block
=============

Block used to display banners and links by hyperlinked images for your Affiliates, Informations, Partners, Supporters, Organizations, etc.
with Fading effect !!!

INSTALLATION
==========

- Open the blocks folder and upload the block-Fading.php in your php-nuke "blocks" folder.
- Upload fading.js files in your php-nuke "blocks" folder.
- Use admin to create the block.

MODIFIED HYPERLINKED IMAGES
=====================

- Open the block-Fading.php file and just before the last line (ending with ?>
  you may include more images/links as many as you want,
  by simply copying and pasting the amended following line:
 
$content  .=  "<a href=\"http://www.thainuke.net/\" target=\"_blank\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) border=0 src=\"http://www.thainuke.net/nuke/images/thainukel.gif\" alt=\"PHP-Nuke Thailand\" width=88 height=31></a><BR>";

1- On the above line change the url www.thainuke.net/nuke with your required URL
2- Still in the same line change the http://www.thainuke.net/nuke/images/thainukel.gif (URL of the image file) with the name of your image.

Repeat sequence the above 1- and 2- note to include more hyperlinked images.

- To remove existing image/link just remove the line starting with $content .="< .......<BR>";


mholtum 05-03-2005 07:50 AM

1 Attachment(s)
1: Upload the file in the attatched zip to your root directory. (Site Root, not forum root.)

2: Create a template named "adv_portal_banners" and use the following code:
Code:

<!-- Scrolling/Fading Links -->
 
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="175">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Sponsors</strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
 
<SCRIPT src="fading.js"></SCRIPT>
<MARQUEE behavior= "scroll" align= "center" direction= "up" height="120" scrollamount= "2" scrolldelay= "15" onMouseOver="this.stop()" onMouseOut="this.start()">
<center>
<!-- Begin Links -->
<a href="http://www.sitename.com" target="_blank"><img onmouseover=high(this) style="FILTER: alpha(opacity=30); moz-opacity: 0.3" onmouseout=low(this) border=0 src="http://www.path_to_image.jpg" alt=""></a><BR><BR>
<a href="http://www.sitename.com" target="_blank"><img onmouseover=high(this) style="FILTER: alpha(opacity=30); moz-opacity: 0.3" onmouseout=low(this) border=0 src="http://www.path_to_image.jpg" alt=""></a><BR><BR>
<a href="http://www.sitename.com" target="_blank"><img onmouseover=high(this) style="FILTER: alpha(opacity=30); moz-opacity: 0.3" onmouseout=low(this) border=0 src="http://www.path_to_image.jpg" alt=""></a><BR><BR>
<a href="http://www.sitename.com" target="_blank"><img onmouseover=high(this) style="FILTER: alpha(opacity=30); moz-opacity: 0.3" onmouseout=low(this) border=0 src="http://www.path_to_image.jpg" alt=""></a><BR><BR>
<a href="http://www.sitename.com" target="_blank"><img onmouseover=high(this) style="FILTER: alpha(opacity=30); moz-opacity: 0.3" onmouseout=low(this) border=0 src="http://www.path_to_image.jpg" alt=""></a><BR><BR>
<!-- End Links -->
</center>
</Marquee>
</td>
</tr>
</table>
<br />
 
<!-- End Scrolling/Fading Links -->

3: Create a module

Module Title: Banners (or whatever you wish)
File to Include: none
OR Template to Include: banners (If you named the template above adv_portal_banners)
Active: Yes
Templates Used:adv_portal_banners

The images will appear faded as they scroll from the bottom of the module to the top. On mouseover they will unfade and stop.

Watson 05-03-2005 01:14 PM

Superb mate, works perfectly, and better than my last 1. Thanks very much for this

Watson

mholtum 05-03-2005 04:40 PM

Your welcome

Synth 12-22-2005 05:10 PM

Thanks mholtum!!!
I have been looking for a mudule FOREVER it seems

Staxed 07-29-2006 08:14 AM

1 Attachment(s)
I know this thread has been dead for a while, but rather than starting a new one i'm posting here because i'm using the files supplied here, but they aren't seeming to work on 3.6...

it's screwing the layout up...sort of making the middle and right columns disappear and just throwing everything into one column...see example attached

does anyone know how to fix this? problem something simple i'm overlooking

Staxed 07-29-2006 08:22 AM

as always...i spoke too fast...it was as simple as removing the table tags...

PoetJA-1975 10-03-2006 06:04 AM

Great share - Thanx very much!

Jacquii.

xtremeteam 10-15-2006 08:20 AM

Quote:

Originally Posted by Irisfire
as always...i spoke too fast...it was as simple as removing the table tags...

how does the code look after removing the table tag?

Jay... 02-18-2007 12:57 PM

Can you post the updated template? The way it appears on my site is with the title of the module underneath the module itself


All times are GMT. The time now is 11:18 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.01009 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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