help anyone change theme on wapdesire v2?

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

10 replies · 901 views · started 16 years ago · 1 min read

6 participants
blades Junior · 23 posts #1

any one help been trying to change theme on wapdesire v2 biut it wont change ive tried useing profile in phpmyadmin but it wont work any ideas?

BANDIT007 Developer · 112 posts #2

To change everyone theme just go to table ibwf_users -> themes.........default 'URCSS.css' change that to ur theme dude..but i dont know how to do that online in phpmyadmin just take a new sql and edit it 🙂 then install it 😀

PRACTICE MAKES PERFECTKEEP TRYING UNTIL YOU ACHIEVE SOMETHING IN LIFE. IF YOU LIKE WHAT AM SHARING PLEASE DO SAY THANKS!!! THANK YOU LOL

blades Junior · 23 posts #4

i know u can do it in profiles but it wont work ,lol cant find the table u on bowt though?

BANDIT007 Developer · 112 posts #5

Take a bit effort... Go to ibwf users then browse themes

PRACTICE MAKES PERFECTKEEP TRYING UNTIL YOU ACHIEVE SOMETHING IN LIFE. IF YOU LIKE WHAT AM SHARING PLEASE DO SAY THANKS!!! THANK YOU LOL

woody Developer · 176 posts #6

its v2 not v1. goto phpmyadmin>>profiles table>>structure and change the default values for body_background, body_text etc. to change the colours ont the index page edit style.php

blades Junior · 23 posts #7

thanks woody does it register with id1 cause when i change it nothing happens?

woody Developer · 176 posts #8

it wont change on the users that are already registered cos their style is already set you'd have to run an sql command for that or use this tool

<?php
define('WCS',true);
include('../core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

/////////////////////////THEMES/////////////////////////

if($update==1)
{
addonline(getuid_sid($sid),"Changing Site Theme","");
echo head_tag(getnick_sid($sid)."@Changing Site Theme",1,getnick_sid($sid));
$title="<b>Changing Site Theme</b>";
$main="<p align=".align().">";
if($body_bg==$body_txt){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Main Background And Main Text Colour Cannot Be Same!";}
else if($body_bg==$link_col){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Main Background And Link Colour Cannot Be Same!";}
else if($body_txt==$link_col){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Main Text Color And Link Colour Cannot Be Same!";}
else if($div_bg==$body_bg){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Background Color And Top/Bottom Background Colour Cannot Be Same!";}
else{
$res=mysql_query("UPDATE profiles SET body_background='".$body_bg."', body_text='".$body_txt."', border_color='".$brdr_col."', div_background='".$div_bg."', link_color='".$link_col."', font_size='".$font."'");
if($res){$main.="<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Theme Updated";}
else{$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>".mysql_error()."<br/>Error Cannot Update Theme!";}
}
$main.="<br/>
<br/>$fivekey<a $key5 href=\"./settings.php?sid=$sid\">Settings</a>
</p>\n";
$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
exit;
}

addonline(getuid_sid($sid),"Themes","");
echo head_tag(getnick_sid($sid)."@Themes",1,getnick_sid($sid));
$title="<b>Select background colour</b>";
$main="<p align=".align().">
Here you can change the sites main theme<br/>
You can always change things back if you dont like it
</p>\n";
$main.="<div class=".align().">
<form action=\"sitetheme.php?update=1&sid=$sid\" method=\"post\">
<b>Main Background:</b><br/>
<select name=\"body_bg\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($body_bg=mysql_fetch_array($result)){
$color=$body_bg["color"];
$hex=$body_bg["hex"];
$text=$body_bg["text"];
if($row_profiles["body_background"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Main Text:</b><br/>
<select name=\"body_txt\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($body_txt=mysql_fetch_array($result)){
$color=$body_txt["color"];
$hex=$body_txt["hex"];
$text=$body_txt["text"];
if($row_profiles["body_text"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Top/Bottom Backgrounds:</b><br/>
<select name=\"div_bg\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($div_bg=mysql_fetch_array($result)){
$color=$div_bg["color"];
$hex=$div_bg["hex"];
$text=$div_bg["text"];
if($row_profiles["div_background"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Borders:</b><br/>
<select name=\"brdr_col\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($brdr_col=mysql_fetch_array($result)){
$color=$brdr_col["color"];
$hex=$brdr_col["hex"];
$text=$brdr_col["text"];
if($row_profiles["border_color"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Links:</b><br/>
<select name=\"link_col\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($link_col=mysql_fetch_array($result)){
$color=$link_col["color"];
$hex=$link_col["hex"];
$text=$link_col["text"];
if($row_profiles["link_color"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
if($row_profiles["font_size"]==medium){$font1=" selected=\"selected\"";}
else if($row_profiles["font_size"]==large){$font2=" selected=\"selected\"";}
$main.="</select><br/>
<b>Font Size:</b><br/>
<select name=\"font\">
<option value=\"small\" style=\"font-size: small;\">Small</option>
<option value=\"medium\" style=\"font-size: medium;\"$font1>Medium</option>
<option value=\"large\" style=\"font-size: large;\"$font2>Large</option>
</select><br/>
<input type=\"submit\" Value=\"Change\">
</form>
</div>
<p align=".align().">
$fivekey<a $key5 href=\"./settings.php?sid=$sid\">Settings</a>
</p>\n";
$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
?>

call it sitetheme.php and add it to your tools

btw thats not my work dunno who's it was

brand Senior · 391 posts #9

woody wrote: it wont change on the users that are already registered cos their style is already set you'd have to run an sql command for that or use this tool

<?php
define('WCS',true);
include('../core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

/////////////////////////THEMES/////////////////////////

if($update==1)
{
addonline(getuid_sid($sid),"Changing Site Theme","");
echo head_tag(getnick_sid($sid)."@Changing Site Theme",1,getnick_sid($sid));
$title="<b>Changing Site Theme</b>";
$main="<p align=".align().">";
if($body_bg==$body_txt){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Main Background And Main Text Colour Cannot Be Same!";}
else if($body_bg==$link_col){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Main Background And Link Colour Cannot Be Same!";}
else if($body_txt==$link_col){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Main Text Color And Link Colour Cannot Be Same!";}
else if($div_bg==$body_bg){$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Background Color And Top/Bottom Background Colour Cannot Be Same!";}
else{
$res=mysql_query("UPDATE profiles SET body_background='".$body_bg."', body_text='".$body_txt."', border_color='".$brdr_col."', div_background='".$div_bg."', link_color='".$link_col."', font_size='".$font."'");
if($res){$main.="<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Theme Updated";}
else{$main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>".mysql_error()."<br/>Error Cannot Update Theme!";}
}
$main.="<br/>
<br/>$fivekey<a $key5 href=\"./settings.php?sid=$sid\">Settings</a>
</p>\n";
$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
exit;
}

addonline(getuid_sid($sid),"Themes","");
echo head_tag(getnick_sid($sid)."@Themes",1,getnick_sid($sid));
$title="<b>Select background colour</b>";
$main="<p align=".align().">
Here you can change the sites main theme<br/>
You can always change things back if you dont like it
</p>\n";
$main.="<div class=".align().">
<form action=\"sitetheme.php?update=1&sid=$sid\" method=\"post\">
<b>Main Background:</b><br/>
<select name=\"body_bg\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($body_bg=mysql_fetch_array($result)){
$color=$body_bg["color"];
$hex=$body_bg["hex"];
$text=$body_bg["text"];
if($row_profiles["body_background"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Main Text:</b><br/>
<select name=\"body_txt\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($body_txt=mysql_fetch_array($result)){
$color=$body_txt["color"];
$hex=$body_txt["hex"];
$text=$body_txt["text"];
if($row_profiles["body_text"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Top/Bottom Backgrounds:</b><br/>
<select name=\"div_bg\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($div_bg=mysql_fetch_array($result)){
$color=$div_bg["color"];
$hex=$div_bg["hex"];
$text=$div_bg["text"];
if($row_profiles["div_background"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Borders:</b><br/>
<select name=\"brdr_col\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($brdr_col=mysql_fetch_array($result)){
$color=$brdr_col["color"];
$hex=$brdr_col["hex"];
$text=$brdr_col["text"];
if($row_profiles["border_color"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
$main.="</select><br/>
<b>Links:</b><br/>
<select name=\"link_col\">";
$query="select * from themes order by color";
$result=mysql_query($query);
while($link_col=mysql_fetch_array($result)){
$color=$link_col["color"];
$hex=$link_col["hex"];
$text=$link_col["text"];
if($row_profiles["link_color"]==$hex){$selected=" selected=\"selected\"";}else{$selected="";}
$main.="<option value=\"$hex\" style=\"background-color:$hex;color:$text;\"$selected>$color</option>\n";
}
if($row_profiles["font_size"]==medium){$font1=" selected=\"selected\"";}
else if($row_profiles["font_size"]==large){$font2=" selected=\"selected\"";}
$main.="</select><br/>
<b>Font Size:</b><br/>
<select name=\"font\">
<option value=\"small\" style=\"font-size: small;\">Small</option>
<option value=\"medium\" style=\"font-size: medium;\"$font1>Medium</option>
<option value=\"large\" style=\"font-size: large;\"$font2>Large</option>
</select><br/>
<input type=\"submit\" Value=\"Change\">
</form>
</div>
<p align=".align().">
$fivekey<a $key5 href=\"./settings.php?sid=$sid\">Settings</a>
</p>\n";
$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
?>

call it sitetheme.php and add it to your tools

btw thats not my work dunno who's it was

lol woody

does any one now how to chage it so u can use the same color eg background white border white and thanks to any one that can help

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

thedarkness Newbie · 1 posts #10

for the lazy ppl just rename whatever theme u wana use to the name of the theme the site is using and replace the theme file . simple yet effective lol tho thatl obviously cause theme changing problems for members if u have that option on ur site 😀

woody Developer · 176 posts #11

thats for v1 the topic says v2

brand wrote: lol woody

does any one now how to chage it so u can use the same color eg background white border white and thanks to any one that can help

just find the coding that outputs the error when you change it and remove it lol

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close