Author |
Message |
NetZorro
New Member


Joined: Apr 25, 2005
Posts: 4
|
Posted:
Mon Apr 25, 2005 4:35 am |
|
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 |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Apr 25, 2005 6:27 am |
|
Is this for the nuke version? |
|
|
|
 |
NetZorro

|
Posted:
Mon Apr 25, 2005 9:50 am |
|
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

|
Posted:
Mon Apr 25, 2005 10:14 am |
|
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

|
Posted:
Mon Apr 25, 2005 11:47 am |
|
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

|
Posted:
Mon Apr 25, 2005 12:04 pm |
|
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

|
Posted:
Mon Apr 25, 2005 2:24 pm |
|
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].": <input name=\"$head_array[11]\" value=\"".$tmp_data[$rn][11]."\" /></td></tr>";
|
Code After:
Quote: |
echo "<td id=\"$id\">".$label_msn."<br> <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

|
Posted:
Mon Apr 25, 2005 2:55 pm |
|
- 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 . 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]. |
|
|
|
 |
|