Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Curve theme edits

Aloittaja aka Fusion, heinäkuu 07, 2011, 04:04:02 IP

« edellinen - seuraava »

aka Fusion

Im currently using blocks of Simple Portal to display the html code for the facebook like image and an advert
But i would like to insert the code in the index so they both appear under the login and news box to the left and right

I have attached an image of the locations,could anyone offer some guidance on this please

Cheers

aka Fusion

Can anyone offer some advice please as to what line the code needs to go and which file etc

Thanks

MrGrumpy

If you want them to collapse when the header does place your code between the 2 div's


echo '
</div>
</div>
<br class="clear" />';


If you want them to still be visible if the header is collapsed place your code after the code above 

the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

aka Fusion

excellent thank you,but if i could just check

This is in the index.php ?
How do i get the code to appear on the same line next to each other

MrGrumpy

It's in index.template.php you need to wrap it up in div's, it's how the code for the header contents are done.

How you do it depends on the code but you probably would need to put the 2 different codes you want moved in div's then wrap hem inside another div, give them div's classes then add the css styling for them classes in index.css.
the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

aka Fusion

Thanks for the extra detail MrGrumpy,but i need a little more help if i could please as this is new to me

Below is the code i want to add as in your 1st reply i would like them to be visible if the header is collapsed
With the facebook image on the left and the ad on the right,with them both on the same line

Lainaus käyttäjältä: MrGrumpy - heinäkuu 20, 2011, 08:09:54 IP

How you do it depends on the code but you probably would need to put the 2 different codes you want moved in div's then wrap hem inside another div, give them div's classes then add the css styling for them classes in index.css.

How do i go about this css styling etc

Facebook like

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FeWales-The-Forum-for-Wales%2F139975706039580&amp;width=292&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:62px;" allowTransparency="true"></iframe>

Advert

<script type="text/javascript" src="http://b1.perfb.com/fujs.php?PURL=nationaltrustmemberships.at/nucleus&amp;CID=7000"></script>

Thanks ..... ;)

aka Fusion

Looking at it ...a.s i forgot the header collapses would it be better if the location for both the images go on the line under the main menus as here on smf

MrGrumpy

Try this

Find
// Custom banners and shoutboxes should be placed here, before the linktree.

Replace with


// Custom banners and shoutboxes should be placed here, before the linktree.

echo'
<div style="float: left; margin: 1em;"><iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FeWales-The-Forum-for-Wales%2F139975706039580&amp;width=292&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:62px;" allowTransparency="true"></iframe></div>
<div style="float: right; margin: 1em;"><script type="text/javascript" src="http://b1.perfb.com/fujs.php?PURL=nationaltrustmemberships.at/nucleus&amp;CID=7000"></script></div>';

the possession of knowledge is worthless unless imparted upon others
My Custom Themes
2.0 themes only - I don't do 1.1.x

aka Fusion

Worked a dream thanks

Out of curosity if i wanted to add a similar one (just the ad) above the copyright how would i go about that...or is that a cheek asking for more lol
(i can see where i need to change the text etc when the ads need to be updated which is great thanks)


Advertisement: