PDA

View Full Version : Multiple images on header fed by members


pochaco
06-07-2011, 04:34 PM
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 1307558708 at 1307558708 ---------------

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

<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!