Jump to content


Forum Skin


15 replies to this topic

#1 Alk

  • Members
  • 17 posts

Posted 20 March 2006 - 02:11 PM

Hi Visiblesoul,
I'll get back to you on that hack when I have some time again to play with it. Thanks for your help with that. :)

If you take a look at this site: http://www.kruaklaibaan.com/ the mkportal skin is set to "forum". For some reason though, instead of having the usual gradients on the tables it is blank! Now, in the forum skin, the logostrip is indeed blank, and so is the row 2, 4 etc. but apart from effecting the background of the mkportal logostrip, why is the rest blank?
This isn't the first time it has happened on an mkportal installation so I wonder if you know why and how to solve it please?
Thanks!

#2 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 20 March 2006 - 02:42 PM

Alk said:

If you take a look at this site: http://www.kruaklaibaan.com/ the mkportal skin is set to "forum". For some reason though, instead of having the usual gradients on the tables it is blank! Now, in the forum skin, the logostrip is indeed blank, and so is the row 2, 4 etc. but apart from effecting the background of the mkportal logostrip, why is the rest blank?
This isn't the first time it has happened on an mkportal installation so I wonder if you know why and how to solve it please?
Thanks!
Interesting. I haven't seen that issue before. MKPortal forum skin importing was not designed to work with template images hosted on a remote server.

Try this...

FIND in mkportal/include/IPB13/ipb13_board_functions.php (function import_css):
		//adjust images path
		$css = str_replace( "url(", "url(".$mklib->siteurl."/".$mklib->forumpath."/", $css);
REPLACE WITH:
		//adjust images path
		//$css = str_replace( "url(", "url(".$mklib->siteurl."/".$mklib->forumpath."/", $css);
See if that helps.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#3 Alk

  • Members
  • 17 posts

Posted 21 March 2006 - 07:19 AM

visiblesoul said:

MKPortal forum skin importing was not designed to work with template images hosted on a remote server.
That explains why I see it so often.

Your solution works a treat, thanks very much!! :)

#4 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 21 March 2006 - 10:21 AM

Alk said:

visiblesoul said:

MKPortal forum skin importing was not designed to work with template images hosted on a remote server.
That explains why I see it so often.

Your solution works a treat, thanks very much!! :)
Great. Thanks for letting me know it works. :)


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#5 Alk

  • Members
  • 17 posts

Posted 07 April 2006 - 04:07 PM

Hey,
I've got another one now :)
http://www.bloodshotmusicforums.com
Do you see that the images from the .tar import on the forum skin are not being imported to the portal?
Here is the code:
		//adjust images path
		$css = str_replace( "url(", "url(".$mklib->siteurl."/".$mklib->forumpath."/", $css);
		$css = str_replace( "<#IMG_DIR#>", $images_url, $css);
		//$css = str_replace ("MKPORTALIMGDIR", "$mklib->images", $css);
		$css = "<style type="text/css">n$cssn</style>n";
		unset($css2);
		return $css;
The wrapper for the skin is standard IPB default.
Do you know what's wrong?
If you need ACP access, let me know :)
Thanks!

#6 Zakyn

  • Members
  • 2 posts

Posted 08 April 2006 - 10:39 AM

Googled my issue and found this.

Anyway, I'm not exactly a CSS/HTML Guy; being helping out my Old School Alumni website.

As above, had an issue with the forum skin not being imported by Mkportal. I kinda mess around a bit and replaced the default logo with something similar from my forum. Any help would be appreciated.

http://www.sjioba.com <==
http://www.sjioba.com/forum <== Forum

Cheers

#7 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 08 April 2006 - 12:03 PM

Alk said:

Hey,
I've got another one now :)
http://www.bloodshotmusicforums.com
Do you see that the images from the .tar import on the forum skin are not being imported to the portal?

The wrapper for the skin is standard IPB default.
Do you know what's wrong?
Here is what the import looks like on your portal...
background-image:url(http://www.bloodshotmusicforums.com/forum/"style_images/CultIdol-027/med_red_bar.gif");
Notice the quotation mark is out of place. It should look like this...
background-image:url("http://www.bloodshotmusicforums.com/forum/style_images/CultIdol-027/med_red_bar.gif");
The issue is that IPB stylesheets do not usually have quotation marks. Usually they look like this...
background-image:url(style_images/CultIdol-027/med_red_bar.gif);
Yours looks something like this...
background-image:url("style_images/CultIdol-027/med_red_bar.gif");
You have 2 choices of how to fix this.

1. Edit the forum stylesheets so that they do not use quotes in the background-image url attributes.

2. If you are not using multiple forum skins then you can simply edit mkportal/include/IPB13/ipb13_board_functions.php

FIND:
		$css = str_replace( "url(", "url(".$mklib->siteurl."/".$mklib->forumpath."/", $css);
REPLACE WITH:
	//$css = str_replace( "url(", "url(".$mklib->siteurl."/".$mklib->forumpath."/", $css);
	$css = str_replace( "url("", "url("".$mklib->siteurl."/".$mklib->forumpath."/", $css);



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#8 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 08 April 2006 - 12:06 PM

Zakyn said:

Googled my issue and found this.

Anyway, I'm not exactly a CSS/HTML Guy; being helping out my Old School Alumni website.

As above, had an issue with the forum skin not being imported by Mkportal. I kinda mess around a bit and replaced the default logo with something similar from my forum. Any help would be appreciated.

http://www.sjioba.com <==
http://www.sjioba.com/forum <== Forum

Cheers
Welcome Zakyn. I looked at your portal. It looks pretty good. Exactly what do you want to change about it?

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#9 Zakyn

  • Members
  • 2 posts

Posted 09 April 2006 - 08:50 PM

Thanks for the compliment.

Actually, what I would like is for the forum skin to be used for the front portal part.

For now, once you login to the portal, the skin changes to the default blue skin of Mkportal etc (except for the header/logo image which I changed)

#10 Alk

  • Members
  • 17 posts

Posted 10 April 2006 - 03:43 AM

Thanks VisibleSoul for your reply. I edited the CSS so that all style_image entries don't have the quotes around them anymore but it doesn't seem to have worked. :)

#11 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 10 April 2006 - 06:53 AM

Alk said:

Thanks VisibleSoul for your reply. I edited the CSS so that all style_image entries don't have the quotes around them anymore but it doesn't seem to have worked. :)
What did you edit, the cached css file or the database? Either way you will need to synchronize the cache with the database after you make the changes.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#12 Alk

  • Members
  • 17 posts

Posted 10 April 2006 - 07:11 AM

visiblesoul said:

Alk said:

Thanks VisibleSoul for your reply. I edited the CSS so that all style_image entries don't have the quotes around them anymore but it doesn't seem to have worked. :)
What did you edit, the cached css file or the database? Either way you will need to synchronize the cache with the database after you make the changes.
I did it in the ACP and in the header it said "Stylesheet updated : Cache file updated"? :|

#13 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 10 April 2006 - 07:21 AM

Alk said:

I did it in the ACP and in the header it said "Stylesheet updated : Cache file updated"? :|
I looked at your site. The import is working. But there are missing images in your forum skin's image folder.

You can see this image in your portal calendar block...
http://www.bloodshotmusicforums.com/forum/...med_red_bar.gif

But these images are missing. That is why the import does not seem to be working. But it is.
http://www.bloodshotmusicforums.com/forum/...dol-027/tmg.gif
http://www.bloodshotmusicforums.com/forum/...7/logo_back.gif


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#14 Alk

  • Members
  • 17 posts

Posted 10 April 2006 - 05:21 PM

So essentially a poorly made skin? :|
Thanks for your help

#15 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 10 April 2006 - 11:11 PM

Alk said:

So essentially a poorly made skin? :|
Thanks for your help
Well it looks like a nice skin. There are some modifications you can make if you want the portal to look better. I will try to remember to post them tomorrow. I need to sleep now.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#16 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 12 April 2006 - 02:06 PM

Alk said:

So essentially a poorly made skin? :|
Thanks for your help
I looked at the forum skin more closely and the issue is that the skin images are hardcoded into the html instead of being in the stylesheet. This type of skin really won't import into the Portal without a little modification. You could make a custom portal template pretty easily. I can tell you what changes I would make if you like. If you want to have multiple skins then the modification would be a little harder.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users