vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Hurricane Katrina Banner (https://vborg.vbsupport.ru/showthread.php?t=95415)

yoyoyoyo 08-31-2005 10:00 PM

Hurricane Katrina Banner
 
Hurricane Katrina Banner
Please donate to help the victims of the Hurricane

This template edit adds a banner to your forum, that appears after the first post on each page.

First upload the redcross.jpg banner to your forum/images directory.

Then go to your Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Postbit (and/or Postbit Legacy) and click on the "<< >>" button to expand the template groups. Then paste the following at the end of your template(s):

PHP Code:

<if condition="$post[postcount] % $vboptions[maxposts] == 1">
 <
center>
 
$spacer_open
 
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
 
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
 <
tr>
     <
td class="thead" align="left">Support Hurricane Victims</td>
 </
tr>
 <
tr>
     <
td class="alt1" align="center">
         <
a href="https://redcrosssecure.org/arcno_org/?zone=donate&sid=&sid="><img src="$vboptions[bburl]/images/redcross.jpg" alt="Donate to the Red Cross to help Hurricane Victims" border =0></a>
     </
td>
 </
tr>
 </
table>
 
 </
div>
 
$spacer_close
 
</center>
 </if> 

The address that the banner links to is the Red Cross of New Orleans, however you can substitute the link/banner with whatever aid organization you want to include.

yoyoyoyo 09-01-2005 02:51 AM

Attached to the first post is the banner, so people don't have to download the zip file if they don't want to. Of course you can substitute any banner to any aid organization, or link to that organization, that you want.

Also attached to this post is another graphic that can be used in a sidebox (thanks to MotoUp).

The Red Cross, operation usa, Direct Relief, America's Second Harvest and many others are all working to help the victims.

Any way that you can help is needed/appreciated, and there is no time to wait.

You can donate directly to the New Orleans chapter of the America Red Cross by clicking HERE

There is no time to wait!
Every day that passes without the needed help brings those people closer to danger/death! If you never donated to anything like this before, now is the time for social action! The federal/local governement is doing what they can, but it will not be enough - aid organizations such as Red Cross and the rest are already on the ground helping people directly, and they can do more with your help.

alloutvb 09-01-2005 06:10 AM

nice hack impressive to see your efforts to help i would add but i just got vbulletin and don't have it set up but i will later thanks man

yoyoyoyo 09-01-2005 09:43 AM

updated: fixed the banner img URL

Neutral Singh 09-02-2005 04:49 AM

Thank You !!

yoyoyoyo 09-02-2005 01:41 PM

If you want to add this directly below your navbar then you can edit your navbar template:

find:
Code:

<!-- / nav buttons bar -->
after add:
Code:

<!-- Redcross Banner -->
 <div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">
 <tr>
    <td class="thead" align="left">Support Hurricane Victims</td>
 </tr>
 <tr>
    <td class="alt1" align="center">
<a href="https://redcrosssecure.org/arcno_org/?zone=donate&sid=&sid="><img src="$vboptions[bburl]/images/redcross.jpg" alt="Donate to the Red Cross to help Hurricane Victims" border =0></a>
    </td>
 </tr>
 </table></div>
 <!-- End Redcross Banner -->

(thanks to namesville.com)

markbolyard 09-02-2005 02:14 PM

Note the align="center" . You may wish to change this to left (which is standard) for your forum. the "center" may change your forum listing and postbit to center as well. The "left" will fix this shoud it happen.

nexialys 09-02-2005 02:26 PM

... no need to change the align tag, because yoyoyoyo just forgot to add the ending tag of the div...
Code:

</table></div>
 <!-- End Redcross Banner -->


yoyoyoyo 09-02-2005 02:31 PM

Quote:

Originally Posted by nexialys
... no need to change the align tag, because yoyoyoyo just forgot to add the ending tag of the div...
Code:

</table></div>
 <!-- End Redcross Banner -->


Thanks- fixed- I didn't read the code that carefully- just copied it over from namesville.com's post in the other thread.

Wayne Luke 09-02-2005 05:31 PM

I have this installed on my small site but I couldn't connect to the Red Cross site so I redirected it to Amazon's donation page.

http://www.amazon.com/paypage/PELYGQVJ8Q7IB


All times are GMT. The time now is 10:07 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.02012 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_php_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