Welcome, Guest. Please Login or Register.
May 05, 2025, 06:42:35 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Skinning mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Skinning mod  (Read 349 times)
Silver Eclipse
Noobie
*
Posts: 17


I'm a llama!

Skinning mod
« on: August 01, 2002, 10:11:39 PM »
Reply with quote

there should be a mod to let u make your own templates and then give users an option to pic their skin in the profile section, it should also be able to change image sets (so that it will change the images to ones for a dark background if they use a darks skin etc...)
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Skinning mod
« Reply #1 on: August 01, 2002, 11:15:09 PM »
Reply with quote

I already made this mod, look for it in the completed mods board.

You can download it at http://www.agigames.com/boardmod/skins.zip

Please look for the topic though since it has instructions on how to install and use it.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Silver Eclipse
Noobie
*
Posts: 17


I'm a llama!

Re:Skinning mod
« Reply #2 on: August 01, 2002, 11:50:29 PM »
Reply with quote

thanks i found the topic but the link in it wouldnt work and i couldnt find it on your website
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Skinning mod
« Reply #3 on: August 02, 2002, 12:02:30 AM »
Reply with quote

The one in the other topic is incorrect, that is why I posted the link in this topic. ;)

http://www.agigames.com/boardmod/skins.zip
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
ub|k
Noobie
*
Posts: 9


WWW
Re:Skinning mod
« Reply #4 on: August 02, 2002, 09:11:55 AM »
Reply with quote

I think the file Skins.php is missing!  :-\
Logged

Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Skinning mod
« Reply #5 on: August 02, 2002, 09:17:30 AM »
Reply with quote

Yeah I beleive I have heard before that it was missing.

Just copy and paste this into a text file and then name it Skins.php and upload it to the sources directory:

<?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

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
ub|k
Noobie
*
Posts: 9


WWW
Re:Skinning mod
« Reply #6 on: August 02, 2002, 09:39:17 AM »
Reply with quote

Thanx!!!  ;D
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Skinning 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.150 seconds with 21 queries.