vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Pre-Sales Questions (https://vborg.vbsupport.ru/forumdisplay.php?f=26)
-   -   Multiple images on header fed by members (https://vborg.vbsupport.ru/showthread.php?t=264852)

pochaco 06-07-2011 04:34 PM

Multiple images on header fed by members
 
1 Attachment(s)
Hi there,

I am very interested in getting the full version of vbulletin.

I've noticed that several communities have the same header with various images fed from the forums and featuring their members work, however I have not seen that vbulletin has it by default.

How do I get vbulletin to behave like this? See images.

Thanks for your time.

RobbieZ 06-07-2011 05:24 PM

Live links please!

We can check source code :)

LifesGreatestGift 06-08-2011 12:19 AM

more than likely the images in question are all in one folder, and there is a php script running, scanning the folder, and displaying at random. Plus a bunch of other code ;)

socialteenz 06-08-2011 03:25 AM

<a href="http://forums.cgsociety.org/" target="_blank">http://forums.cgsociety.org/</a>

pochaco 06-08-2011 05:29 PM

How do they do it????

Live links here:

http://cgtalk.com
http://www.cghub.com
http://www.gameartisans.org/forums/index.php

How do they do it??? they look awesome!!!

Any ideas?

--------------- Added [DATE]1307558708[/DATE] at [TIME]1307558708[/TIME] ---------------

Here is another vbulletin forum with header images:

http://www.scifi-meshes.com/forums/

RobbieZ 06-08-2011 06:23 PM

TheWindows7Site is correct, they are using some script called MM_preloadImages

Here's a snippet

Code:

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

MM_preloadImages('/images_cgn/buttons/btn_logout_over.gif','/images_cgn/buttons/btn_login_over.gif','/images_cgn/buttons/btn_register_over.gif');
//-->
</script>

There will be a .js pulling content probably from .jpg attachments.

How to do it? Not my fort? :(

cghub.com isnt even vbulletin

Here's one way:

https://vborg.vbsupport.ru/showthread.php?t=264213

pochaco 06-10-2011 07:11 PM

Yeah, that looks promising, thanks a lot!


All times are GMT. The time now is 05:46 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.01916 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete