Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (mmkk), 64 guests, and 405 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Gizmo
Gizmo
Portland, OR; USA
Posts: 16,784
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 14
FREAK 11
M4TT 8
mmkk 5
isaac 4
Ruben 3
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Dumb ? about HTML Includes #258339
05/01/16 01:07 AM
05/01/16 01:07 AM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
I have been way form UBB too long…I used to know this stuff, but….if I want a header above the forum, I know I have to insert HTML code in the Default Header Include field. But I want the background color, text, etc, that appears up there to take on the colors of certain tables within the main forum. Can someone give me a hint to get me started in the right direction? Thanks


Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Dumb ? about HTML Includes [Re: Basil] #258341
05/01/16 06:56 AM
05/01/16 06:56 AM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
I use HTML in a JavaScript insert in the header as I use the same in every page with in the UBB and single pages outside on independent pages. Here is a example of my HTML used with style inserts.

Code
<TD style="border-bottom:1px solid #000000;" HEIGHT="18" BACKGROUND="'+PWloc+backgrPWloc+saybar+'"><FONT style="font-family: Times New Roman; font-size: 12px; font-color: #000000; font-weight: bold;"><CENTER>'+mobsaying+'</CENTER></FONT></TD>

Last edited by JAISP; 05/01/16 06:56 AM.
Re: Dumb ? about HTML Includes [Re: JAISP] #258342
05/01/16 08:15 AM
05/01/16 08:15 AM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Thanks for the Reply, JAISP. I understand (mostly ) HTML, but when you start talking JavaScript wrappers, you kinda loose me. No, not kinda. You loose me. onoes

What I want to do for starters is just basically have a table appear above the breadcrumb/navigation table that has the same properties as the bead crumb table (it terms of color, text style, etc.

Re: Dumb ? about HTML Includes [Re: Basil] #258343
05/01/16 09:37 AM
05/01/16 09:37 AM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Update. After searching bit on here, I think I found what I need:

<table class="t_inner" align="center" width="800">
<tr>
<td align="center" valign="middle" width="325">
<a href="http://My Forum URL/" target="_top">
<img alt="FORUM NAME" width="300" height="50"
src="YOUR_FORUM_LOGO" border="0"></a>
</td>
<td align="center" valign="middle">

<!--// This gives you another column for ads, etc //-->

</td>
</tr>
</table>

Re: Dumb ? about HTML Includes [Re: Basil] #258344
05/01/16 09:46 AM
05/01/16 09:46 AM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
Yes that is the correct way that you have explained for what you are attempting to do. I misunderstood somewhat as to what you had wanted.

Re: Dumb ? about HTML Includes [Re: Basil] #258347
05/01/16 02:42 PM
05/01/16 02:42 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Ok, so I sort of have it working if I use the same header image with a fixed URL; BUT I want to have an 3 images named header.jpg that will be slightly different for each of my current 3 styles. This is what I have on my Default Header Includes that is not working:

HTML
<table class="t_inner" align="center" width="800">
<tr>
<td align="center" valign="middle" width="325">
<a href="http://YOUR_FORUM_URL/" target="_top">
<img src="{$config.BASE_URL}/images/{$style_array.general}/header.jpg" border="0" alt="FORUM NAME" width="500" height="100"></a>
</td>
<td align="center" valign="middle">

<!--// This gives you another column for ads, etc //-->

</td>
</tr>
</table>


Note my image URL. Unfortunately the {config.BASIL_URL| and the {$style_array.general} are not parsing (not being replaced with the actual directories for each style). The image location just stays as "{$config.BASE_URL}/images/{$style_array.general}/header.jpg"

What do I need to do to make this work?

Re: Dumb ? about HTML Includes [Re: Basil] #258349
05/01/16 02:56 PM
05/01/16 02:56 PM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
Try this:

PHP Code
{$config.BASE_URL}/forums/images/{$style_array.general}/header.jpg 


That would give you something like this:

Code
http://www.yourdomainname.com/forums/images/general/header.jpg


As you have it in your current header it is calling:

Code
http://www.yourdomainname.com/images/general/header.jpg

Re: Dumb ? about HTML Includes [Re: JAISP] #258350
05/01/16 03:09 PM
05/01/16 03:09 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Originally Posted by JAISP
Try this:

PHP Code
{$config.BASE_URL}/forums/images/{$style_array.general}/header.jpg 


That would give you something like this:

Code
http://www.yourdomainname.com/forums/images/general/header.jpg


As you have it in your current header it is calling:

Code
http://www.yourdomainname.com/images/general/header.jpg


What is is actually outputting is
PHP Code
http://{$config.BASE_URL}/forums/images/{$style_array.general}/header.jpg 

In other words, it is NOT parsing the $config.BASE_URL nor the $style_array.general parts at all. If I can figure out how to get it to parse correctly, I'm sure I can get it to work after that.


Re: Dumb ? about HTML Includes [Re: Basil] #258352
05/01/16 03:31 PM
05/01/16 03:31 PM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
Ok I figured it out

This:
Code
{$config.BASE_URL}/images/{$style_array.general}/newpm.gif


equals this:

Code
http://www.yourdomain.com/forums/images/general/default/newpm.gif


Now this is assuming your style is the default board style. If you are using a style with it's own image folder such as "beagleworld" then "default" would be "beagleworld".

Re: Dumb ? about HTML Includes [Re: JAISP] #258353
05/01/16 03:42 PM
05/01/16 03:42 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Originally Posted by JAISP
Ok I figured it out

This:
Code
{$config.BASE_URL}/images/{$style_array.general}/newpm.gif


equals this:

Code
http://www.yourdomain.com/forums/images/general/default/newpm.gif


Now this is assuming your style is the default board style. If you are using a style with it's own image folder such as "beagleworld" then "default" would be "beagleworld".


Yes! That's what I am trying to do BUT it is not parsing. I must need to put something else to cause the code to parse.

This is what I have in my HTML includes Tab in the Default Header box:

HTML
<table class="t_inner" align="center" width="800">
<tr>
<td align="center" valign="middle" width="325">
<a href="http://YOUR_FORUM_URL/" target="_top">
<img src="{$config.BASE_URL}/images/{$style_array.general}/header.jpg" border="0" alt="FORUM NAME" width="500" height="100"></a>
</td>
<td align="center" valign="middle">

<!--// This gives you another column for ads, etc //-->

</td>
</tr>
</table>


The table is working, but I get a broken image icon instead of the header image. And when I right-click on the broken image icon and copy the image address, I'm getting:

http://$config.BASE_URL}/images/{$style_array.general}/header.jpg

In other words - the issue is that the $config.BASE_URL and $style_array.general parts are not getting parsed! What do I need to do to my code above so that in interprets $config.BASE_URL" to be www.mysite.com/forums/ ???

Re: Dumb ? about HTML Includes [Re: Basil] #258354
05/01/16 03:52 PM
05/01/16 03:52 PM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
Ok I just cut and pasted your code into both UBB.threads 7.5.9 and UBB.threads 7.6.0 with the only change of the actual image file name as follows below and it worked on both versions. I wanted to make sure that where I was testing it that it wasn't making a difference on the version of the UBB Software.

Code
<table class="t_inner" align="center" width="800">
<tr>
<td align="center" valign="middle" width="325">
<a href="http://YOUR_FORUM_URL/" target="_top">
<img src="{$config.BASE_URL}/images/{$style_array.general}/newpm.gif" border="0" alt="FORUM NAME" width="500" height="100"></a>
</td>
<td align="center" valign="middle">

<!--// This gives you another column for ads, etc //-->

</td>
</tr>
</table>

Re: Dumb ? about HTML Includes [Re: Basil] #258356
05/01/16 04:06 PM
05/01/16 04:06 PM
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Really, all you'd need to do is call the CSS classes for your header design; the easiest place to see them all would be to view the source of the stylesheet you're using.

I don't believe that you can call variables in the header, it's definitely something you'd have to fiddle with yourself. Do you have a header graphic that is different depending on the styles? If so, just make an "extra css" for the cell that your image is in, then change it in the styles; or if it's a static image that will not change, just put it in the /images folder and embed it directly.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Dumb ? about HTML Includes [Re: Basil] #258357
05/01/16 04:46 PM
05/01/16 04:46 PM
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
BTW, I usually use:
Code
<div id="header"></div>


Then add to it as needed, need an image, add the image code; need to use CSS? Add an "extra" class as "#header".


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Dumb ? about HTML Includes [Re: JAISP] #258358
05/01/16 05:40 PM
05/01/16 05:40 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Originally Posted by JAISP
Ok I just cut and pasted your code into both UBB.threads 7.5.9 and UBB.threads 7.6.0 with the only change of the actual image file name as follows below and it worked on both versions. I wanted to make sure that where I was testing it that it wasn't making a difference on the version of the UBB Software.

Code
<table class="t_inner" align="center" width="800">
<tr>
<td align="center" valign="middle" width="325">
<a href="http://YOUR_FORUM_URL/" target="_top">
<img src="{$config.BASE_URL}/images/{$style_array.general}/newpm.gif" border="0" alt="FORUM NAME" width="500" height="100"></a>
</td>
<td align="center" valign="middle">

<!--// This gives you another column for ads, etc //-->

</td>
</tr>
</table>


Maybe we are cutting and pasting into different places? Let me be very clear about where I am pasting:

In CP >> Display Options >> General >> HTML Includes (Tab) Then I past into the "Default Header" box.

Is that where you pasted my code, or in some file? And did it actually display the image and not a broken image?

Last edited by Basil; 05/01/16 05:42 PM.
Re: Dumb ? about HTML Includes [Re: Gizmo] #258359
05/01/16 05:50 PM
05/01/16 05:50 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Originally Posted by Gizmo
Really, all you'd need to do is call the CSS classes for your header design; the easiest place to see them all would be to view the source of the stylesheet you're using.

I don't believe that you can call variables in the header, it's definitely something you'd have to fiddle with yourself. Do you have a header graphic that is different depending on the styles? If so, just make an "extra css" for the cell that your image is in, then change it in the styles; or if it's a static image that will not change, just put it in the /images folder and embed it directly.


I wanted to have a table at the very top that has the same properties as the breadcrumb table. Using <table class="t_inner" ...> I got that part to work fine. But it's pointing different graphics per style that isn't working (but JAISP said it worked for him). Weird.


Re: Dumb ? about HTML Includes [Re: Basil] #258363
05/01/16 07:32 PM
05/01/16 07:32 PM
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
If you're making a new one to work along side the default one, why call the new pm graphic? it's not needed... unless i'm missing something


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Dumb ? about HTML Includes [Re: Gizmo] #258366
05/01/16 07:45 PM
05/01/16 07:45 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Originally Posted by Gizmo
If you're making a new one to work along side the default one, why call the new pm graphic? it's not needed... unless i'm missing something


You are looking at what JAISP did just to try it out. My graphic is simply called header. He was just pointing to that image to see if my code (in my first post) worked - it did for him, but I can't get it to work for me. frown

Re: Dumb ? about HTML Includes [Re: Basil] #258367
05/01/16 07:48 PM
05/01/16 07:48 PM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
I went into the template editor and edited the header.tpl file and placed it under the navigation bar.

Re: Dumb ? about HTML Includes [Re: JAISP] #258369
05/01/16 09:13 PM
05/01/16 09:13 PM
Joined: Aug 2006
Posts: 727
New Mexico
Basil Offline OP
old hand
Basil  Offline OP
old hand
Joined: Aug 2006
Posts: 727
New Mexico
Originally Posted by JAISP
I went into the template editor and edited the header.tpl file and placed it under the navigation bar.


I gave up making it work via the HTML Includes page. I did what you did, except I placed it above the Nav bar. Works great so far.

Re: Dumb ? about HTML Includes [Re: Basil] #258370
05/01/16 09:57 PM
05/01/16 09:57 PM
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Yeah, placing it in the template would make it force the coding. I use the html includes items to include a php script that I put all of my changes in, so I can just use FTP and an editor to tweak.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
I want to update forum but can't find license
by dimaninc. 11/23/17 10:51 AM
Thumbs Up/Rate Individual Posts
by M4TT. 11/22/17 01:11 PM
Forum Statistics
Forums36
Topics35,013
Posts190,528
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)