Author |
Message |
Unit1
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Oct 26, 2004
Posts: 134
Location: Boston
|
Posted:
Mon Aug 07, 2006 12:27 pm |
|
Hello all I have two code questions to see if some one can help me with
Ok first one is that I have a center block that is useing the body color code like this for it so it looks like this
Code:$bgnews = "#FFFFFF";
$bgnews1 = "#FFFFFF";
$bgnews2 = "#FFFFFF";
$bgnews3 = "#FFFFFF";
|
and it works fine in some of the themes that I use and in others you cant see everything. Now my question is is their a way to change that code to point to the theme that the member is useing so the block will pull the color from that theme
Question 2
I have a bit of code for the members to email the admin but would like it to email all the admins of the site mot just me. Any way to do that with this
Code:<?
$email=$_REQUEST ['email'] ;
$message=$_REQUEST ['form'] ;
mail( "YOUREMAILHERE@URSITE.COM", "Message from member",
$message, "From: $email" );
header("Refresh: 5; url=index.php");
?>
|
Thank you for any help with the questions
Unit1 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
Former Moderator in Good Standing
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Mon Aug 07, 2006 1:58 pm |
|
The point of themes (at least one of the points of themes) is to leave the selection of colors to them. So if you don't "override" it in your block then Nuke will naturally pull the colors from whatever the user's theme is. It sounds like you want to override the theme color in your block "except when you can't see everything and then leave the color up to the theme". That's going to be a difficult condition to program.
I haven't used the mail function very much (the server I am using has so many conditions in terms of number of emails that it will send that I don't bother) but you can put a email href in and separate the mailto's of your admins with commas ... a href="mailto:address1,address2" . That will bring up whatever mail client the user has to send email with. I'm not trying to put full syntax in here ... it's easy enough to look up if you aren't familiar with it.
Maybe someone else can help with the mail function if you really need to use that. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 07, 2006 2:55 pm |
|
Thanks for the reply It is just useing the default color that is in the in block itself so in some of the themes you cant see some of the words in it. I will play around with it a bit to see if I can shut off the defalt colors in it
Thanks again |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 07, 2006 3:14 pm |
|
Ok I think I have a fix for it all I did was take ot the color in the
$bgnews = "#FFFFFF";
$bgnews1 = "#FFFFFF";
$bgnews2 = "#FFFFFF";
$bgnews3 = "#FFFFFF";
and left them blank like this $bgnews = ""; and it looks like it is working now it is pulling the colors form each one of the themes
I will try that for the email code ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tao_Man
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/0c1fca04410ac30d09c51.gif)
Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK
|
Posted:
Mon Aug 07, 2006 4:00 pm |
|
will work if you don't mind having the email address hardcoded |
_________________ ------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 07, 2006 5:40 pm |
|
Thank you both for your time and help with this |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 08, 2006 3:47 pm |
|
The only problem that I am now haveing Is I get an error when I try to send out the email when I click on the submit button it say error no such file I have adminsend.php in the Forum folder
form method="post" action="adminsend.php" |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Aug 13, 2006 10:26 am |
|
The Forums module folder of your phpNuke?
The file needs to be referenced from wherever you are running phpNuke. So the action if in the Forums module folder would be:
modules/Forums/adminsend.php |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 13, 2006 12:08 pm |
|
Ty I will give it a shot ![RavensScripts](modules/Forums/images/smiles/ravensphpscripts.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|