PDA

View Full Version : Welcome block Add-on for vbAdvanced


tomshawk
01-16-2004, 10:00 PM
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 (http://www.vbulletin.nl/community/showthread.php?t=1906) 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 (http://www.tomshawk.com/)

Nmidia
01-17-2004, 01:36 PM
Hello;

As requested by neogen at vBulletin.nl in this (http://www.vbulletin.nl/community/showthread.php?t=1906) 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 (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
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
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 (http://www.ukdebt.org)

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



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




<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 ;)

Lee Wisener
01-25-2004, 12:24 AM
Glad to help :)

alzibub
01-30-2004, 12:24 PM
Nice & easy addon - thanks !!!

*installed*

dpakman91
01-30-2004, 10:56 PM
i went through all of the necessary modifications as stated in the instructions, and while i don't get any error messages, it just didn't do anything. any thoughts? the website it's on is:

www.thevividedge.com

dpakman91
01-31-2004, 05:41 PM
can anybody help me on this? i rechecked everything, and still nothing.

tomshawk
02-02-2004, 03:29 AM
i went through all of the necessary modifications as stated in the instructions, and while i don't get any error messages, it just didn't do anything. any thoughts? the website it's on is:

www.thevividedge.com (http://www.thevividedge.com)
Strange, It appears the welcome block is not the only thing not working at the moment.

The center news and the recent threads blocks are not working either, of course you may have the recent threads block disabled, and you may have no posts in the forum you chose for your news. I'd start with getting the rest working first, then we can get the block working.

But, my first guess would be the

$welcome

has not been added to the index template yet.

Sorry and hope that helps ;)

fasteddie
02-23-2004, 05:23 PM
Strange, It appears the welcome block is not the only thing not working at the moment.

The center news and the recent threads blocks are not working either, of course you may have the recent threads block disabled, and you may have no posts in the forum you chose for your news. I'd start with getting the rest working first, then we can get the block working.

But, my first guess would be the

$welcome

has not been added to the index template yet.

Sorry and hope that helps ;)
Love this little add-on. Took a few tries, but I finally got it looking like the way I want. :)

http://www.yorkietalk.com

Lurk
04-15-2004, 12:06 AM
This is a lot easier and should make everything look perfect (for the index_welcome template)

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"

class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b><DIV ALIGN=CENTER>YOUR TITLE GOES HERE</b></div></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">

YOUR CONTENT GOES HERE

</span>
</td>
</tr>
</table>
<br />

That should help...
i just got that from the custom templates in adv_index... i just modified the code a little.

Intex
05-03-2004, 12:53 PM
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 (http://www.vbulletin.nl/community/showthread.php?t=1906) 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 (http://www.tomshawk.com/)


Tomshawk - nice hack. Just looking at your homepage. Is that just a standard bit of DHTML coding used for your news scroller? Where do you get it?

Joe Price
05-15-2004, 01:59 AM
I Added the hack and get nothing on my main page, what info do you need me to post to help? the site is gloryandthegold.com

tomshawk
07-19-2004, 02:14 AM
Tomshawk - nice hack. Just looking at your homepage. Is that just a standard bit of DHTML coding used for your news scroller? Where do you get it?
WOW, sorry for being so late on this, J33Z

Been rather crazy at my own site.

Intex:

Yes, That is "err" was a DHTML script displaying scrolling news. I removed it, because it slowed down the site to much and alot of users with different browsers. (i.e. Opera, Mozilla, Firefox) said it messed up the layout pretty badly

You can get it here though, if you still want it https://vborg.vbsupport.ru/showthread.php?t=60135

Joe Price:
I hit your site and at the moment it appears you dont have it installed.
Again, I know it's been a while.
Let me know if you are still interested. ;)

apokphp
08-08-2004, 08:25 PM
I don't understand why it was necessary for it to be a hack. I think I'm "blind" here. Why can't you just create a new template/module, that can only be seen by unregistered users? You could just use whatever text/links/format you wanted for the welcome block?

What is the difference between the 2 possible ways to do this?

Here is what I did, just using vbadvanced settings, no hacks used at all. Only non-registered/logged out members see it.

www.onlinedebate.net

tomshawk
08-08-2004, 08:45 PM
I don't understand why it was necessary for it to be a hack. I think I'm "blind" here. Why can't you just create a new template/module, that can only be seen by unregistered users? You could just use whatever text/links/format you wanted for the welcome block?

What is the difference between the 2 possible ways to do this?

Here is what I did, just using vbadvanced settings, no hacks used at all. Only non-registered/logged out members see it.

www.onlinedebate.net (http://www.onlinedebate.net/)This hack, is for the vBadvanced Homepage (https://vborg.vbsupport.ru/showthread.php?t=59803) , not for the vBadvanced CMPS (Content Management & Portal System) (https://vborg.vbsupport.ru/showthread.php?t=65797)

HTH

apokphp
08-08-2004, 08:52 PM
...as I said.... I think I'm "blind" here.

;)

hehe ty.