Clan Adverts

www.afgserv.com

www.clan-themes.co.uk :: View topic - Help ( script problem ) :)

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Help ( script problem ) :)

7 Replies / 564 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » General PhpNuke

View previous topic :: View next topic


crushedsouls
Reputation: 12
Local time: 1:26 AM

uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Jan 12, 2008
Last Visit: 20 Nov 2008
Posts: 57
Points: 85 

Post Help ( script problem ) :) Posted: Thu Jun 05, 2008 3:17 pm   

Shop Purchases:
Topsites Manager V1 PhpNuke Module

I was wondering if you can Help me out..

i have some code for a module im building in Nuke8.0 but i need the out put to echo like this

set yourname "crushed"

However i can get it to add the "" to the line so it looks like this

set yourname crushed

here is a sample of the code i am using

TABLE
<tr>
<td>"._SHOS."</td>
<td><input name=\"shos\" type=\"text\" size=\"25\"></td>
</tr>
ENDTABLE

START THE ECHO

echo "set yourname = $_POST[shos]";

END THE ECHO

I no this is a short and brief code i have given you but it shows what i want to do, i can send you the whole page if needed, and also if you take a look at the form you may work out where im going wrong.

Module Preview

CAN YOU HELP ME PLEASE IM STUCK..

Thanks
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Bayler
Reputation: 752.1
votes: 9
Local time: 8:26 PM

usa.gif

Status: Offline
0.64 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 17 Dec 2008
Posts: 278
Points: 6846 

Post Help ( script problem ) :) Posted: Thu Jun 05, 2008 4:26 pm   

Code:
echo "set yourname = $_POST[shos]";


What are you trying to do?

Echo out the information, or pass the information to the next page?
 

You will not recieve help from me if i have to go digging for your CMS information and version, If i have to take the time to play 21 questions, then you can take the time to google! No Copyright, no support either!  
View user's profileSend private messageMSN Messenger Reply with quote

floppy
Reputation: 1805
votes: 10
Local time: 8:26 PM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.74 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 10 Jan 2009
Posts: 2163
Points: 17374 

Post Help ( script problem ) :) Posted: Thu Jun 05, 2008 4:31 pm   

Shop Purchases:
Clan Roster 2.0

It appears to be working for me. Sorta confused what you want to do.

Quote:
CONGRATULATIONS

Your Config File Was generated sucessfully

PLEASE COPY THE INFORMATION BELOW
AND PASTE INTO YOUR CONFIG FILE

===================================================

//**** PUBLIC SERVER SETTINGS ****
set adminname = mack

//**** PUBLIC SERVER SETTINGS ****

===================================================
 

 
View user's profileSend private message Reply with quote




DreAdeDcoRpSE
Reputation: 857
votes: 7
Local time: 8:26 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.17 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 10 Jan 2009
Posts: 556
Points: 14313 

View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger Reply with quote

crushedsouls
Reputation: 12
Local time: 1:26 AM

uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Jan 12, 2008
Last Visit: 20 Nov 2008
Posts: 57
Points: 85 

View user's profileSend private messageVisit poster's website Reply with quote

crushedsouls
Reputation: 12
Local time: 1:26 AM

uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Jan 12, 2008
Last Visit: 20 Nov 2008
Posts: 57
Points: 85 

Post Help ( script problem ) :) Posted: Fri Jun 06, 2008 1:22 am   

Shop Purchases:
Topsites Manager V1 PhpNuke Module

I found a way around the problem

$_EX = " <b> ' </b>

echo "<div align=\"center\"><p>set adminname = "._EX."$_POST[adminame]"._EX."</p></div>"

This prints the the line like

setadminname = 'Crushed'

However this got me thinking,

Is it Possible to Echo the " at all.. Confused

anyway thanks for the help :)
 

 
View user's profileSend private messageVisit poster's website Reply with quote




Bayler
Reputation: 752.1
votes: 9
Local time: 8:26 PM

usa.gif

Status: Offline
0.64 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 17 Dec 2008
Posts: 278
Points: 6846 

Post Help ( script problem ) :) Posted: Fri Jun 06, 2008 5:21 am   

wow your post is confusing...

to answer your question, YES, you CAN echo double quotes.
example: with the attempt to interpret your code:

Code:

$adname = $_POST["shos"];
echo "set adminname = \"$adname\"\n";


real question is why are you trying to echo the ( $_POST["shos"] )...
$_POST is used to pass a variable through a form to the next page...your not supposed to echo it..your supposed to PASS it...you should be using $_GET or $_REQUEST

other suggestion is, since your writing to a .txt file, you should be using the ( \n ) for line feeds...if you need multiple line breaks...then use multiple ( \n\n\n )

my suggestion would be to start google searching ( PHP+String )...should return example tutorials and explanations like:
http://us.php.net/types.string

now on to a personal concern...and im not attempting to be mean here BUT....

Your creating a config file for a game server im assuming?....so the question is, if your unable to create the code, why should others trust your code not to screw up their game server?
 

 
View user's profileSend private messageMSN Messenger Reply with quote

crushedsouls
Reputation: 12
Local time: 1:26 AM

uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Jan 12, 2008
Last Visit: 20 Nov 2008
Posts: 57
Points: 85 

Post Help ( script problem ) :) Posted: Fri Jun 06, 2008 8:00 am   

Shop Purchases:
Topsites Manager V1 PhpNuke Module

Thanks Bayler

Im using the echo string
as the information i am using is being generated onto a new page, for the person to copy and paste into there config file, im not writing a new file, i was going to set it to e-mail but thisway seems better.

Quote:
now on to a personal concern...and im not attempting to be mean here BUT....

Your creating a config file for a game server im assuming?....so the question is, if your unable to create the code, why should others trust your code not to screw up their game server?


i don't no how to answer that one :), i got a little stuck with a section. as im learning i believe im am aloud to get a little stuck and ask for help... you take a risk using anyone elses work, the fact that i have completed a module very simaler to this and is avalible for download on clan-themes, should help put peoples mind at rest Dont Know
 

 
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » General PhpNuke


 
7 Replies / 564 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum