Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Unit1
Worker
Worker


Joined: Oct 26, 2004
Posts: 134
Location: Boston

PostPosted: Mon Aug 07, 2006 12:27 pm Reply with quote

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
Code:
$bgcolor
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
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Aug 07, 2006 1:58 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Unit1
PostPosted: Mon Aug 07, 2006 2:55 pm Reply with quote

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
 
Unit1
PostPosted: Mon Aug 07, 2006 3:14 pm Reply with quote

Ok I think I have a fix for it Shocked 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
 
Tao_Man
Involved
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Mon Aug 07, 2006 4:00 pm Reply with quote

Code:
 mail( "YOUREMAILHERE@URSITE.COM, Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login!", "Message from member", 

$message, "From: $email" );


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! 
View user's profile Send private message Visit poster's website
Unit1
PostPosted: Mon Aug 07, 2006 5:40 pm Reply with quote

Thank you both for your time and help with this
 
Unit1
PostPosted: Tue Aug 08, 2006 3:47 pm Reply with quote

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"
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Aug 13, 2006 10:26 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
Unit1
PostPosted: Sun Aug 13, 2006 12:08 pm Reply with quote

Ty I will give it a shot RavensScripts
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©