SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: ProtoGT on October 19, 2010, 04:08:29 PM

Title: SMFgarage block
Post 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?
Title: Re: SMFgarage block
Post by: Stangit50 on September 17, 2011, 09:48:26 PM
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
Title: Re: SMFgarage block
Post by: ProtoGT on September 17, 2011, 10:41:29 PM
I figured this out after playing around with the coding some. Hit me up via PM and I'll show you.
Title: Re: SMFgarage block
Post by: Old Fossil on September 17, 2011, 11:39:02 PM
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.
Title: Re: SMFgarage block
Post by: Stigmartyr on October 23, 2011, 01:21:30 AM
 >:-D BUMP
Title: Re: SMFgarage block
Post by: TW1ST3D on October 23, 2011, 01:30:35 PM
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/
Title: Re: SMFgarage block
Post by: TW1ST3D on October 23, 2011, 03:00:41 PM
I created a work around using an iframe.

It works, but it is kind of dirty.

copy and paste into a HTML block......

Code: [Select]
<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.
Title: Re: SMFgarage block
Post by: TW1ST3D on October 26, 2011, 08:32:17 PM
I sure would like to know how ProtoGT acheived this.......
Title: Re: SMFgarage block
Post by: ProtoGT on November 12, 2012, 02:35:06 AM
<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>
SimplePortal 2.3.8 © 2008-2024, SimplePortal