vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   doc_background linkable? (https://vborg.vbsupport.ru/showthread.php?t=251244)

Kuscheltod 09-27-2010 05:25 PM

doc_background linkable?
 
Dear all,

we would like to implement some Branding-campaigns into our forum and for this the backgrond-image have to be clickable by link.

Can you give me a short hint where I have to add the <a> tag in the templates so the background image will be linked properly?

Thansk in advance

Kind regards

Devanand 09-30-2010 10:55 AM

I am also searching for this.

Kuscheltod 10-08-2010 08:12 AM

Dear all,

I need to push this topic, because of no solution, yet.

If someone have an idea, your welcome :)

Kind regards

Lynne 10-08-2010 02:13 PM

Someone else asked this same question only they supplied a link to a site that did what they wanted. I found the code in the page source for the page and pasted it into the thread for the person to use on their site. Either find that thread or post a link to the site that does this and I'll see what they did and post it.

Kuscheltod 10-10-2010 08:39 AM

Hey Lynne,

for example http://playmassive.de they make brandings, but they don't use vbulletin.

We rebuild what they did, but it doesn't worked properly in vBulletin 4.x.x

Kind regards

Lynne 10-10-2010 03:15 PM

They have this in the page source:
HTML Code:

<div id="brand">
<a target="_blank" class="branding a2010-09-bbo" href="link.php" linkindex="200">Bounty Bay Online</a><div style="position: absolute; left: 0px; top: 0px; visibility: hidden;" id="beacon_22b633bf90"><img width="0" height="0" style="width: 0px; height: 0px;" alt="" src="http://a.playcentral.de/www/delivery/lg.php?bannerid=224&amp;campaignid=64&amp;zoneid=66&amp;loc=1&amp;referer=http%3A%2F%2Fplaymassive.de%2F&amp;cb=22b633bf90"></div>

</div>

And this in the CSS:
HTML Code:

#brand a.a2010-09-bbo {background-image:url("http://static.playmassive.de/brandings/2010/2010-09-bounty-bay-online.jpg");}#brand a.branding {background:none no-repeat scroll center top transparent;display:block;height:1050px;text-indent:-9999px;width:100%;}
so, you'll want something similar to that.

Kuscheltod 10-11-2010 07:50 AM

Hey,

yeah, the prob is, we use a width for body (otherwise we have to recode with divs etc.)

if I add this code 1:1 i have an error: http://test.forum.gratis-mmorpg.com/forum.php check it out

Kind regards

Lynne 10-11-2010 02:27 PM

You didn't add all the CSS. And, I forgot to post this CSS also:
HTML Code:

div#brand {height:1050px;left:0;margin:0 auto;position:absolute;text-align:center;top:30px;width:100%;z-index:0;}
And, your div needs to go after your content. You may need to change the positioning (absolute) and the z-index also.

You really need to get something like firebug and compare your site and the example site and make sure you are doing the same thing.

Kuscheltod 10-14-2010 08:18 AM

Hey Lynne,

added the code, too

Now I have the problem that the whole website is linked by the link, if I change the z-index from 0 to -1 can't click anymore (no matter where I am)

Tried also to change the body z-index, which doesn't work at all.

And, I work with Firebug

Also I didn't see the background-image, I think it's because of the hidden attribute (sry, I'm no web-dev ^^).

But I think the more major issue is the "clickable" function, it's working for the whole div OR not, but I need the content area from body clickable.

Do you have any solution for this?

Lynne 10-14-2010 01:38 PM

I think you just need to play with it and compare the two site. They also have some javascript on there - try a search in the page source and see if any is related to this.


All times are GMT. The time now is 09:40 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.01165 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_html_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