Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2010, 05:25 PM
Kuscheltod Kuscheltod is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-30-2010, 10:55 AM
Devanand Devanand is offline
 
Join Date: Apr 2009
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also searching for this.
Reply With Quote
  #3  
Old 10-08-2010, 08:12 AM
Kuscheltod Kuscheltod is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear all,

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

If someone have an idea, your welcome

Kind regards
Reply With Quote
  #4  
Old 10-08-2010, 02:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 10-10-2010, 08:39 AM
Kuscheltod Kuscheltod is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 10-10-2010, 03:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 10-11-2010, 07:50 AM
Kuscheltod Kuscheltod is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 10-11-2010, 02:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-14-2010, 08:18 AM
Kuscheltod Kuscheltod is offline
 
Join Date: Jul 2010
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 10-14-2010, 01:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:12 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.04373 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete