SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started by: ProtoGT on October 19, 2010, 04:08:29 PM
-
http://www.cbrextreme.com/ <- has a SMF garage block
Can anyone help me get the code to achieve the same affect?
-
I'm also needing a SMF Garage block for my portal. Something that shows the featured vehicle picture and information would be great. They have a SSI garage examples page but I don't know how to add it to a block and it work correctly. You can see the examples here : http://www.slowracing.com/jaxfox/ssi_garage_examples.php
-
I figured this out after playing around with the coding some. Hit me up via PM and I'll show you.
-
ProtoGT
It would be more beneficial for other users if you posted the results so everyone can see them.
A link to the mod would be useful too.
-
>:-D BUMP
-
Please share the code you used to get the featured vehicle in a portal block.................several of us are trying to get it done, but to no avail.......
@Brack1 - the garage mod is located here: http://www.smfgarage.com/
-
I created a work around using an iframe.
It works, but it is kind of dirty.
copy and paste into a HTML block......
<style type="text/css">
<!--
#container{
width:165px;
height:150px;
overflow:hidden;
margin:auto;
}
#container iframe {
width:300px;
height:750px;
margin-left:-85px;
margin-top:-535px;
border:0 solid;
}
-->
</style>
</head>
<body>
<div id="container">
<iframe src="http://yourforum.com/forum/index.php?action=garage" scrolling="no"></iframe>
</div>
</body>
It is working great on my portal page and will update as on your garage page, whether you set your featured vehicle to random or user.
The margin variables are set exactly to where the image and title are on the garage page, but you can tweak these if needed.
-
I sure would like to know how ProtoGT acheived this.......
-
<center><iframe src="featuredvehicle.php" style="width: 100%; height: 155px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0">
</iframe></center>
<?php require("/home/gtnerpro/public_html/SSI_Garage.php");?>
<html>
<head>
<title>Featured Vehicle</title>
<style type="text/css">
body
{
background: transparent;
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<font size="1"><?php ssi_smfg_featuredVehicleBlock(); ?></font>
</body>
</html>