You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees
when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.
IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.
You are not logged in.
Hallo David,
Is it possible to sign the book without showing an avatare?
And the emoticons seems not to work on my system on the newest IE7, Firefox, Opera: In IE a red cross is shown instead of the smily, in Firefox e.g. "Smile", in "Edit Entries" this" :smile:" is shown.
Also the "View Live Examples" of the statistic, "View Avatars", emoticons in the admin section do not work. Firefox shows an "Error" in the status line.
How can you leave the rating field blank? Or choose another default value?
Can an user's homepage which URL is inserted in an entry be shown in a new window instead of the same one?
Thanks, nice greetings, Dirk.
Last edited by Dirk (19-07-2008 22:49:13)
Offline
Hi Dirk,
Not sure about the emoticons. View your source code to see what path is there. Is the path set correctly in the settings? If you don`t want to use the rating option, disable it.
You can have the link open in a new window, thats no problem. Find the following in the index.php file:
<a href="'.$entries['post_homepage'].'">
Add a target ref to the link:
<a href="'.$entries['post_homepage'].'" target="_blank">
David.
Offline
Hallo David,
Thanks for your help.
<<<<Not sure about the emoticons. View your source code to see what path is there. Is the path set correctly in the settings?
It works now: I had added the absolute path (www....) in the settings, now it is "/gaestebuch".
Edit:
The link in the notification e-mail looks like this, now (is that as it should be?):
If you have chosen to approve entries, log in to your admin area to approve/reject this entry:
/gaestebuch/admin/index.php?cmd=login
and in the "approved e-mail" ({GBOOK_PATH}/index.php), also. Guess that shouldn`t be like this:
Hier können Sie ihn sehen:
/gaestebuch/index.php
<<<If you don`t want to use the rating option, disable it.
No, I like it very much, but could one let the user to decide not to rate, may be let the user choose something like "not specified" or leave the field empty. And the same with avatars: the possibility to let the user choose none. And how can I set a default value for "Avatare" and the rating system, like e.g. "Poor" or a blanket field like it is with "Country"?
You can have the link open in a new window, thats no problem. Find the following in the index.php file:
<a href="'.$entries['post_homepage'].'">
Add a target ref to the link:
<a href="'.$entries['post_homepage'].'" target="_blank">
This works, also, thanks, I have done two replacements.The chmod of all the folders which should be 777 regarding your very understandable documentation are 755 and it seems to work without malfunction. Could that be okay or should I chmod 777 though?
I am very glad about your help, David, have a nice Sunday, nice greetings, Dirk.
Last edited by Dirk (20-07-2008 14:15:07)
Offline
Changing the path in the settings might be what caused the stylesheet to stop loading.
At this moment in time its not possible to have ratings or avatars as optional. I guess you could disable the error checking on those fields, but I`ve no idea how that would affect the system.
755 is more secure than 777. If 755 works, leave it at that.
David.
Offline
Thanks a lot, David.
<<<I guess you could disable the error checking on those fields,
What does that mean? So, what could this effect regarding this context? They are already disabled.
<<<At this moment in time its not possible to have ratings or avatars as optional.
I guess my expression is a bit poor, sorry:
Do I understand right: it is not possible to leave the field “Select Avatar:�
and the field “Rate Website:� blank (to do any rating and to not to chose any avatar) like it is possible with e.g. “Location:� ?
And it is not possible to have another default, e.g. instead of “Excellent�
a default like
?
Many thanks, again, Dirk.
Last edited by Dirk (21-07-2008 11:29:32)
Offline
I meant disable the error checking by updating the code. I guess what you say is possible, I just don`t have time to look and check.
David.
Offline
Thank you very much, David.
<<<I meant disable the error checking by updating the code.
I am very sorry still not to understand: which code would I have to update when? And you mean the option "Error Checking" in the admin section? And what could that effect in this context.
Very sorry about my insufficient understanding.
Thank you very much for your kind help, Dirk.
Offline
Are avatars required? I`m not sure actually. I think if no avatar is specified it just shows the default?
$tpl_preview->assign('POST_AVATAR', ($avatar ? $img_avatar[1] : 'default.gif'));
David.
Offline
Thank you very much, David.
I am not quite sure to understand right, sorry again:
<<<<Are avatars required? I`m not sure actually.
By the script? I would say an user could not chose to use none.
<<<<< I think if no avatar is specified it just shows the default?
The automatically shown avatar is the one which name is on top of the alphabet. It seems as if the avatars are alphabetically ordered by their names, so e.g. "Aeroplane" is on top.
<<<<$tpl_preview->assign('POST_AVATAR', ($avatar ? $img_avatar[1] : 'default.gif'));
Thank you very much for the code...I assume it controls which avatar is shown by default...where have I to add this code?
Thanks again for your kind efforts, Dirk.
Offline
That code is already there. So, to the drop down menu for the avatars, add a new select option.
<select name="default.gif">None</select>
David.
Offline
Thank you David,
And I beg you pardon for my poor understanding unfortunately still remaining: whereto have I to add this code "<select name="default.gif">None</select>"? Or is it enough to upload a gif file in the administration named "default.gif" which will be automatically the one chosen by default?
I am very sorry, indeed, thanks for you help, Dirk.
Offline
No, the default gif is already in place. (images/avatars/default.gif).
Just add the select tag to the avatar code. The select box will be in the index.php file. If someone then selects none as their avatar it will be the default gif. If you want it to be no avatar at all, just make the default.gif a blank image the same as your page color.
David.
Offline
Thank you David,
Ah, I understand more and more a bit: but I am very sorry and it is awkward not to be able to identify the select box, respectively the place the new code should be added to. Might there be any further hint...?
Sorry for the circumstances and many thanks for you patient help and ideas.
Nice greetings, Dirk.
Offline
Just search for 'avatars' in the index.php file. Its around line 522.
David.
Offline
Thank you very much for you kind help, David,
Yes, that I had found already, but I didn`t know where to add the new code (what I tried didn`t work):
I am very sorry indeed for my insufficient understanding still, thank you very much for your patience, nice greetings, Dirk.
Offline
Find this:
while ($db_show_avatars = mysql_fetch_assoc($db_avatar))
and before that add..
$avatars .= '<option value="default.gif">None</option>';
David.
Offline
Thank you very much for your help David,
So I have added the code:
And in the preview then this is shown:
default.gif is here: /images/avatars/default.gif
Using another path
$avatars .= '<option value="images/avatars/default.gif">Kein Avatar</option>';
doesn`t display default.gif also.
Sorry, I cannot figure out what I am missing, why the image doesn`t display.
Thanks again for your great help, Dirk
Offline
Sorry, my fault. I think it should actually be:
$avatars .= '<option value="None-default.gif">None</option>';
David.
Offline
Thank you very much David,
Great, this works.
I would like to use a png file as default, e.g.: default.png or pen.png. How, where could I set this?
If I would sometime replace an avatar or e.g. the default.gif file, not their file names, with another one, e.g. before default.gif / the image is 30 x 30px, after replacing the new image / default.gif is 50 x 50px, this would not cause any problems, wouldn't it? They would just be displayed instead of the old ones? So, e.g. there is anything stored in the database like image size or something else what could cause problems then.
Thanks again for your help, Dirk.
Last edited by Dirk (31-07-2008 09:19:08)
Offline
No, there isn`t anything stored for the default gif. Just replace and update the last block of code.
David.
Offline
Thanks David,
Very sorry about that, my old problem, I cannot get displayed any png file, e.g.:
$avatars .= '<option value="default.png">None</option>';
or
$avatars .= '<option value="pen.png">None</option>';
The png files are in the same folder "avatars" as default.gif.
Sorry again and thanks for your help.
Nice greetings, Dirk.
Offline
Hi Dirk,
PNG files should work ok. No different to gifs. What are you seeing? Nothing? What path is showing in your source code?
David.
Offline
Hallo David,
It doesn't either work with png files nor with gif files depart from your "default.gif". A "None-default.gif" seems not to exist, is this right? So I guess anything else must be set to display other files.
Nothing to see, respectivly the path to the avatars as it is in the code.
Nice greetings, Dirk.
Offline
Have a look in the 'classes/class_dataprocessor.inc.php' file. This line *might* need changing:
'" . ($this->avatar ? $this->avatar : 'default.gif') . "',
Change the 'default.gif' to your png file. See if that works.
David.
Offline
Thank you very much, David,
Okay, I did it in another way now, so it works quite well and it was a bit easier to do for me.
Thanks for your help.
Nice greetings, Dirk.
Offline