vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Welcome block Add-on for vbAdvanced (https://vborg.vbsupport.ru/showthread.php?t=60326)

tomshawk 01-16-2004 10:00 PM

Welcome block Add-on for vbAdvanced
 
Updated Instruction file: The block now looks like the rest of the homepage and not just a box. ;)

Hello;

As requested by neogen at vBulletin.nl in this thread

Here is my Welcome block for vbAdvanced

I thought up the idea but I got major help from TYorke on this in the vbAdvanced thread.

What it does it place a block on your homepage, where you can post a welcome to all of your users, and links to important information if you'd like.

I have set up some links, one to my Legal Information pages, and one to my new games section

You can see a demo at my site http://www.tomshawk.com

Nmidia 01-17-2004 01:36 PM

Quote:

Originally Posted by tomshawk
Hello;

As requested by neogen at vBulletin.nl in this thread

Here is my Welcome block for vbAdvanced

I thought up the idea but I got major help from TYorke on this in the vbAdvanced thread.

What it does it place a block on your homepage, where you can post a welcome to all of your users, and links to important information if you'd like.

I have set up some links, one to my Legal Information pages, and one to my new games section

You can see a demo at my site http://www.tomshawk.com

works well. I have added a few miner mods to it myself, as well as prefixing news posts. Nice job:) Used it and got rid of the nav bar:)

tomshawk 01-17-2004 01:52 PM

Quote:

Originally Posted by Nmidia
works well. I have added a few miner mods to it myself, as well as prefixing news posts. Nice job:) Used it and got rid of the nav bar:)

Nice mod, I'm looking at how to make the top bar look more like the rest of the index now.

Good work

tomshawk 01-19-2004 04:29 AM

Updated Instruction file: The block now looks like the rest of the homepage and not just a box. ;)

tomshawk 01-19-2004 12:28 PM

Quote:

Originally Posted by mitomcua
Hi Tomshawk,

I followed you instruction , however the welcome background is not matched with the color of the other blocks, can you tell me where can i edit ?

http://www.vietstuff.org/pics/test.jpg

Or you can visit my test page at www.vietstuff.org/forum/portal.php

thanks,
M

Yes, I know, and if you download the newer file, you'll get the boarder like the rest of the site, but the background will still be a different color.

I haven't quite figured that out yet.

Lee Wisener 01-24-2004 06:30 PM

I am no expert but when I tried to setup your hack I could not change the colors to easily and apart from that the way the tables were set up meant the colors were not going to look right anyway.

As I say I am no expert but I simply used the code below to create the tables and allow the colors to be easily adjusted, it fits perfectly into my index page.

I am not saying your hack was not good, it just did not fit well in my site and I came up with this to make it easier.

You can see my welcome box Here

Sorry if the code is all over the place, but I did this in a hurry.

Code:


<table width="$stylevar[tablewidth]" border="1" bordercolor="#000000" cellspacing="0" cellpadding="$stylevar[outerborderwidth]">
  <tr>
    <td BGCOLOR="#780000" height="21"><center><b>Welcome to UK Debt <center><b></td>
  </tr>
  <tr>
    <td BGCOLOR="#CCCCCC"><font color="#000000"><center>Welcome to our site, I hope you enjoy your stay!</center></font></td>
  </tr>
</table>
<BR>


tomshawk 01-24-2004 06:47 PM

Lee Wisener;

No worries, I'm glad you liked it well enough to try and modify it, to get it working.

I am like you, meaning not an expert (Novice would be an understatement). If somebody can figure out how to make this so you can add it without having to put in hard coded colors like the BGCOLOR and what not, It think this would be perfect.

I could not and still cant figure that part out.

Thank you though for the thought and effort in showing people how to get it working in the mean time ;)

Lee Wisener 01-24-2004 06:55 PM

Well thats the easy part for an expert, lol.

It can I am sure be linked into the VB style so that the colours change automatically, it will be similiar to using code such as $stylevar[tablewidth].

I might even have a look at that and will let you know if I figure anything out.

Lee

Lee Wisener 01-24-2004 07:15 PM

Okay, that was quick.

here is the code that will mean every time you change the general style in the admin panel under styles, the welcome box will also change automatically.

Again sorry for the rough formatting of the code, nobody else usually sees my code.


Code:


<table width="$stylevar[tablewidth]" border="0" class="tborder" cellpadding="$stylevar[outerborderwidth]">
  <tr>
    <td class="tcat" height="21"><center><b>Welcome to our site.<b></td>
  </tr>
  <tr>
    <td class="alt1" class="alt1active"><center>Put your text here.>
  </tr>
</table>
<BR>

I should of course explain.

Above you will see the following code

class="tborder" {this is simply the color and weight* of the table border.}
class="tcat" {tcat is the css tag for the category strips in the styles menu}
class="alt1" {alt1 is the first alternating color in the styles menu}
"<font color="alt1active" {font color that matches the alternating color above}

*if you have the weight specified in the styles manager

If you look in the styles mangager you will see all the boxes giving you the option to change the colors and fonts of that particular item, in the bottom left hand side you will see the "CSS Selector" that is what you use to decide what color you will use.

Hope this makes sense!

Lee

tomshawk 01-24-2004 07:48 PM

Ha,

and you said you weren't good

The only change I made was the border="1" I made it border="0"

Excellent work, Thank you for helping me help others.

Kuddos ;)


All times are GMT. The time now is 03:22 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.01180 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)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