Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support
Author Message
NetZorro
New Member
New Member



Joined: Apr 25, 2005
Posts: 4

PostPosted: Mon Apr 25, 2005 4:35 am Reply with quote

Hello.. i am trying diffrent guestbooks.. and this one seems to fit my needs.. and even more. Thanks for a great script.

I have one thing i would like to do....
I have disabled some options in the user.prefs.php and this is working fine. That means..When someone whants to write a new messeage in the guestbook... he doens see all options, only the one i want him to see.

Ex. he can not choose language, and can only typ in MSN, and ICQ.. like i want it.

When the messege is posted...i have been giving the admin, right to change posts, made to the guestbook.

But when an Admin login in.. ALL options is shown. (private, password etc etc) How can i make it so show.. only what is shown for the User.

Meaning: i want the same options for the Admin, ass for the user.. not more options.

/Thanks for any help
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Apr 25, 2005 6:27 am Reply with quote

Is this for the nuke version?
 
View user's profile Send private message
NetZorro







PostPosted: Mon Apr 25, 2005 9:50 am Reply with quote

Ok.. Now i might sound very very stupied.. but what is the diffrense betwen nuke and the orginal version? Is Nuke a "design-thing" or is it a new "code-standard" or what?? sry...

Anyway.. i think i use the original one... menaning: KIGB v5.1.1

Thanks for the help..
 
Raven







PostPosted: Mon Apr 25, 2005 10:14 am Reply with quote

The version numbers are the same. The Nuke version can only be used inside the phpnuke CMS, ie what you see on this site. The stand alone version does not require phpnuke.
 
NetZorro







PostPosted: Mon Apr 25, 2005 11:47 am Reply with quote

OK.. I am using the Stand-alone version then i think. Not NUKE.

Is it possioble to show the same things in Admin as for a new Post?.. witch was the mainquestion....

/Tanks for U help

/NetZorro
 
Raven







PostPosted: Mon Apr 25, 2005 12:04 pm Reply with quote

There is no logging in for the stand-alone KISGB, as a user. An Admin login is not really a login, per se. It simply provides access to configuration and editing scripts. Are you asking that the edit message screen would mask the same way that the user.prefs.php file does for the View/Add screens? If so, that would mean that you (Owner/Webmaster/Hostmaster) could never fully edit a message either, except by ftp. Are you sure that's what you want?
 
NetZorro







PostPosted: Mon Apr 25, 2005 2:24 pm Reply with quote

YES! Thats what i want. I actually have manage to get it to work the way i want it anyway.. even if that way may not be the "right-way" to do.

I have comment out a few raws, in the admin.php to make it look like i want.

For ex. i have comment out raw: 125, 127,128,130,131,135,136,137 and change some of the "<tr> & </tr>" to fitt my needs.... of course.. it would be easyer if all the pages (View,Add,User) hade the same values....

While i was optimsing the Guestbook.. i noticed that the "Headers" (ex: name: , e-post:, etc) didn't change according to the language i specified......

i made it to work by change values in the admin.php to values matching thoes from a language-file.

Code Before:
Quote:

echo "<td id=\"$id\">".$head_array[11].":&nbsp;<input name=\"$head_array[11]\" value=\"".$tmp_data[$rn][11]."\" /></td></tr>";


Code After:
Quote:

echo "<td id=\"$id\">".$label_msn."<br>&nbsp;<input name=\"$head_array[11]\" value=\"".$tmp_data[$rn][11]."\" /></td></tr>";


I appleyed this to all... i gues it is a wrong way to handel it.. but it seam to work.


/NetZorro
 
Raven







PostPosted: Mon Apr 25, 2005 2:55 pm Reply with quote

Laughing - The only thing I would suggest is that instead of changing admin.php, copy these lines from your config.php to user.prefs.php. As is explained in the documentation, not all of the configuration settings are in user.prefs.php. This is intentional as it saves alot of headaches for users and me Wink. But, when you come across a setting that you need to modify and it isn't in user.prefs.php, just copy it over. Don't ever change config.php or you will make upgrading much harder.
Code:
##################################################

# Assign column names for kisgb csv file header. #
# These columns MUST be in this order!!!!!       #
##################################################
$col1  = "msgid";
$col2  = "ip";
$col3  = "date";
$col4  = "time";
$col5  = "name";
$col6  = "email";
$col7  = "home";
$col8  = "pic";
$col9  = "icq";
$col10 = "aim";
$col11 = "yim";
$col12 = "msn";
$col13 = "nation";
$col14 = "comments";
$col15 = "private";
$col16 = "password";

Then, modify $col12 to reflect the label that you want. Notice that the column numbers are 1-16 and the $head_array are 0-15. So, when you modify $col12, that corresponds to $head_array[11].
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support

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 ©