vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Box above forums (https://vborg.vbsupport.ru/showthread.php?t=317804)

lawstudenthub 03-17-2015 01:55 AM

Box above forums
 
1 Attachment(s)
Hi,

My forum: lawstudenthub.co.uk

I have a slider mod on my forum which has been there for a while, and I probably won't use it; however, I want to be able to put an image in a box similar to the space the slider is currently taking up (above forums table, but without moving the activity stream table downwards). I have attached a screenshot of what I mean.

I have tried looking through the slider's code, and my general code, but I cannot see the option to create that space without the activity stream table moving downwards.

Any suggestions on how to basically put a simple .jpg in the exact space the slider occupies?

Thanks

HM666 03-19-2015 01:27 AM

That is difficult for any of us to help without the code you are working with. Post a link to the forum/page where the slider is placed.

lawstudenthub 03-19-2015 02:04 AM

Quote:

Originally Posted by HM666 (Post 2540867)
That is difficult for any of us to help without the code you are working with. Post a link to the forum/page where the slider is placed.

It was on my forum home: www.lawstudenthub.co.uk as per the screenshot above, but I disabled it because it looks unfinished. I can put the slider back on, copy the code (if you let me know from which template), take the slider off and post the code if that helps? Or do you definitely need the slider live on the forum to help?

Thanks

HM666 03-19-2015 02:55 AM

Just curious why not put your image in the slider itself instead of trying to do something really complicated?

You just want a jpg above the forums then? Do you want it showing on all pages or just the FORUMHOME page? I'm not really sure that you sending the code for the slider will do any good if you ever uninstalled it you would lose your image and your code, so making new code should be a better solution and leaving the slider completely out of it instead.

lawstudenthub 03-19-2015 03:52 AM

Quote:

Originally Posted by HM666 (Post 2540874)
Just curious why not put your image in the slider itself instead of trying to do something really complicated?

You just want a jpg above the forums then? Do you want it showing on all pages or just the FORUMHOME page? I'm not really sure that you sending the code for the slider will do any good if you ever uninstalled it you would lose your image and your code, so making new code should be a better solution and leaving the slider completely out of it instead.

Yeah just a jpg in the space where the slider occupies in that screenshot on the FORUMHOME page. I just like how it's positioned, but cannot seem to replicate it when editing templates. I tried playing around with code (when slider disabled), but the 'Activity Stream' widget always moves down along with the forums so you're left with a blank space on the right.

HM666 03-19-2015 04:07 AM

Quote:

Originally Posted by lawstudenthub (Post 2540878)
Yeah just a jpg in the space where the slider occupies in that screenshot on the FORUMHOME page. I just like how it's positioned, but cannot seem to replicate it when editing templates. I tried playing around with code (when slider disabled), but the 'Activity Stream' widget always moves down along with the forums so you're left with a blank space on the right.

ok I'm seriously tired tonight so coding and tired do not mix lol. If no one has answered tomorrow when I get online I'll play around with it and get you a code for the box. :)

K4GAP 03-19-2015 04:11 AM

I would just use a custom grid if it were me.

cellarius 03-19-2015 06:46 AM

There are no grids in forumhome.

HM666 03-19-2015 02:09 PM

Quote:

Originally Posted by cellarius (Post 2540885)
There are no grids in forumhome.

Yeah that is what I thought when I saw that post. Grids are only used for the CMS not the forum or any other part of vBulletin.

Replicant 03-19-2015 05:24 PM

You can add an element with jquery.

Create a new ad in location above_footer, copy this code into it. Change the id to whatever you want and the picture to whatever you want.

Code:

$("#forums").before('<div id=name><img src="http://www.lawstudenthub.co.uk/bgtest8.jpg" style="display:block;width:100%;height:auto;padding-bottom:40px;"</div>')


All times are GMT. The time now is 04:51 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.01194 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_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