Welcome, Guest. Please Login or Register.
April 27, 2025, 08:43:16 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Skin mod « previous next »
Pages: 1 [2] 3 4 5 Reply Ignore Print
Author Topic: [Done] Skin mod  (Read 8782 times)
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[Done] Skin mod
« Reply #15 on: May 17, 2002, 11:57:47 AM »
Reply with quote

I'm having probs getting this running Chris. Are the <style> </style> meant to be in there somewhere?
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Skin mod
« Reply #16 on: May 17, 2002, 03:44:49 PM »
Reply with quote

No, the style tags are to be removed completely.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[Done] Skin mod
« Reply #17 on: May 17, 2002, 07:13:20 PM »
Reply with quote

The obvious scenario has occured, based on the fact that Chris is a turbo charged Mod producer and I'm an annoying "don't understand anything yet" type yabbse user  ;D

As one would expect of Chris's mods, of course when I upload all his files (Chris read template.php) it works first time no probs, wasn't that easy  ::)

However, I then try to adjust my template (As opposed to using Chris's own) and it all goes horribly wrong  :(

OK the bones, what am I doing wrong, when I run my modified template It seems to ignore CSS this is exemplified by an "illegal use of yabbse" message.
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[Done] Skin mod
« Reply #18 on: May 18, 2002, 08:29:35 AM »
Reply with quote

Ok got this working by modifying the colours on Chris's template.php.

Can't save profile changes from admin centre but no big problem.

Nice Mod Chris thanks.
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Skin mod
« Reply #19 on: May 18, 2002, 06:54:14 PM »
Reply with quote

Your welcome, glad you like it.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Done] Skin mod
« Reply #20 on: May 19, 2002, 11:20:57 AM »
Reply with quote

Is it possible at all to make the template version so that you could use different pictures to each template?
I'm thinking of the on and off.gifs that I've changed so they'll fit with my colors. The will definitely not fit with other colors...
And now I have the pictures for the collapsed categories mod too.

Maybe you could store the template-specific pictures in a different folder, or have they template-specific named? Or is this an completely unrealistic thing to do?
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Skin mod
« Reply #21 on: May 19, 2002, 12:03:41 PM »
Reply with quote

Hmm... images do seem to be a problem with matching colors... I had planned on making the images within the skin directory part of the skin... but I didn't get around to that yet.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Done] Skin mod
« Reply #22 on: May 20, 2002, 12:52:02 PM »
Reply with quote

I've decided to wait for the template version, but I couldn't... I'd just have to try this one.
I was reading your instructions in the first post to do it properly and you write
QuoteNext upload the Skins.php file to the sources directory.
Ok... but that file isn't included in the zip?
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[Done] Skin mod
« Reply #23 on: May 20, 2002, 02:58:31 PM »
Reply with quote

There should be a sources folder with skins.php inside.
Logged
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Done] Skin mod
« Reply #24 on: May 20, 2002, 04:40:11 PM »
Reply with quote

No... :(
I've got:

Skins.mod
skinsdb.php
template.php
3D/skin.css
deafult/skin.css

...but no skins.php  :'( And I have downloaded the zip-file twice, just to make sure.
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[Done] Skin mod
« Reply #25 on: May 20, 2002, 05:44:02 PM »
Reply with quote

skins.php is a short script as follows


<?php
global $modSettings,$settings,$username,$sourcedir,$imagesdir;

$requestskin = mysql_query ("SELECT skin FROM {$db_prefix}members WHERE (memberName='$username')");

$skintemp = mysql_fetch_row($requestskin);

if ($username == "Guest") {
  $skinscsslocation = "$modSettings[skinDirectory]/$modSettings[skinAdmincenter]/skin.css";
print <<<EOT
<link rel="STYLESHEET" type="text/css" href="$skinscsslocation">
EOT;
}

if ($username != "Guest") {
  if ($skintemp[0] == "") {
    $skinscsslocation = "$modSettings[skinDirectory]/$modSettings[skinAdmincenter]/skin.css";
print <<<EOT
<link rel="STYLESHEET" type="text/css" href="$skinscsslocation">
EOT;
  }
  else {
  $skinscsslocation = "$modSettings[skinDirectory]/$skintemp[0]/skin.css";
print <<<EOT
<link rel="STYLESHEET" type="text/css" href="$skinscsslocation">
EOT;
  }
}

?>
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:[Done] Skin mod
« Reply #26 on: May 20, 2002, 05:46:12 PM »
Reply with quote

Not sure if It's against rules to post scripts moderators. I thought it would be ok as it's short.
Logged
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Done] Skin mod
« Reply #27 on: May 20, 2002, 05:54:59 PM »
Reply with quote

Thank you!

I don't think it's against any rules - you'll find scripts and parts of scripts much bigger than this here.
But it's a goo idea to use the button "Insert Code" next time :)

Thanks agian, now I can move on with my experimenting.
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done] Skin mod
« Reply #28 on: May 20, 2002, 07:10:47 PM »
Reply with quote

Did I forget to put Skins.php in the zip?
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Done] Skin mod
« Reply #29 on: May 20, 2002, 07:32:12 PM »
Reply with quote

It seems so... ;D

I have some probs with this one, I haven't figured out yet exactly what's wrong, and I just started from the beginning again. I'll come back and report if I find out.
 
Logged
Pages: 1 [2] 3 4 5 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] Skin mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.036 seconds with 18 queries.