Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cloe

Pages: 1 2 [3] 4 5 6 7 8
31
Ok, in member.php file,

find:

Quote
if ($action == "uploadimage") {
  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }

add after:

Quote
if (isset($user_info['user_firstname']) && isset($user_info['user_lastname']) && empty($user_info['user_firstname']) || empty($user_info['user_lastname'])) {
    show_error_page($lang['user_firstname_lastname_missing']);
}

Try upload again (full).

Still Guest under thumnail... the image "test again" http://www.fotoonline.no/index.php

32
Isnt there a way to force that the name is getting under the thumbs automaticly like usernames are??

33
what is say when try upload with empty ?

It says nothing, just upload the image, and the image is with "guest" after upload  8O

Ive made an account for you: Username: thunder Password: test

Try it yourself..  :?  http://www.fotoonline.no/

34
Ok so apply this step so no one upload ?

http://www.4homepages.de/forum/index.php?topic=18257.msg97474#msg97474

(if empty first name and last name ?)

I have aplied that  :|

35


Note that not very good english me ... doing best to assist. :?

Quote
$full_name = (isset($row['user_firstname']) && isset($row['user_lastname']) && !empty($row['user_firstname']) && !empty($row['user_lastname'])) ? "<b>" . $row['user_firstname'] . "</b>" . REPLACE_EMPTY . "<b>" . $row['user_lastname'] . "</b>" : "<b>" . $username . "</b>";

change:

Quote
if ($row[$user_table_fields['user_level']] == ADMIN) {
    $full_name = (isset($row['user_firstname']) && isset($row['user_lastname']) && !empty($row['user_firstname']) && !empty($row['user_lastname'])) ? "<b>" . $row['user_firstname'] . "</b>" . REPLACE_EMPTY . "<b>" . $row['user_lastname'] . "</b>" : "<b>" . $username . "</b>";
} elseif ($row[$user_table_fields['user_level']] >= USER) {
    $full_name = (isset($row['user_firstname']) && isset($row['user_lastname']) && !empty($row['user_firstname']) && !empty($row['user_lastname'])) ? $row['user_firstname'] . REPLACE_EMPTY . $row['user_lastname'] : $username;
}
[/quote]

I think that u are great thunder... And your help is priceless... And my english is no better than your ;)

Admin bold are sorted... NICE :)

But in In includes/db_field_definitions.php file.. Ive already have it set with 1.. This is my file:

Code: [Select]
$additional_user_fields['user_firstname'] = array($lang['user_firstname'], "text", 1);
$additional_user_fields['user_lastname'] = array($lang['user_lastname'], "text", 1);
?>

But it still stays guest on every thumbnail :(

36
Thanks thunderstrike...
Do u have a recipt of how make user_firstname and user_lastname required field, so it dosent say "guest" on every thumb?
And how to display the full name in comments, and under post comments.

Your bold recipt works... But I dont think you have read my question correct... If you read again, you will se that I asked for Admin to be bold under "whos online", not thr users ;)

37
Quote
It says "guest" under thumbnails.

Are user_firstname and user_lastname required field ? Say guest, no be require if so. Must be.

oki... I have installed the last code on the other post.. so it should be it... is there a way to make user_firstname and user_lastname been filled in automatic when registerd user upload image? so it dont sat "guest"?

I will be wery happy if I can get this 3 things to work :)

1. Make "guest" under thumbnail to work with full name. (if it is possible to make the full name to apear automaticly)
2. Have the full name in comments, and under post comments
3. And make the admin name bold under "whos online" it is that in orginal 4images... but not with this installed..

Thats all I think.. that is missing :)

This is not something that must be there... But it would be nice if Admin can se the users full name under edit member in Admin Control Panel


Edit: User profile of:  in control panel and in profile. I have solved that myself--- delet it from the list of missing things..

38
oki... I see that you dont want to test it yourself...
But if you should register... You would find out that when registerd... Your full name woldent be vivsble everywhere... .

It says "guest" under thumbnails.
In comments the full name is not visible but the username.. se here: http://www.fotoonline.no/details.php?image_id=1
My full name is Cecilie Løvvold
And under post comment... it dont say the full name on name but username.
User profile of:  dosent say full name... Not in control panel or in profile.
And last, admin under Currently active users: is not bold anymore..


39
Quote
Well.. you can try it yorself... this is a fresh gallery, just installed your mod, nothing else..

May be say precise problem will help. Other, how I can help. :?

make an acount on my page.. and then it is easyer to explain... I can send links on what I mean an so on... Its esier for you to se it to if you are a member there :)

40
Well.. you can try it yorself... this is a fresh gallery, just installed your mod, nothing else..
you can register and upload and image and test it, and you can se it for yourself ;) : http://www.fotoonline.no

41
Like say before - no posting result - no can do.


Oki.. :) .... We just forget this thunderstrike ;)... Most probably this is something that cant be done... Better to use energi of something that can be done :)
Anyway, thanks for trying... You did your best.. And you are really good at this "respect".. I dont understand how you understand all this coding  :wink:
Maybe this will be a feature in next version of 4images..

And I think we misunderstand echother a lot... Im not english, and I believe you are not either... It is not easy to comunicate then ;)

42
Sorry. Topic reported. You can no axpec some one help you about 3 pages of codes and all suden post new topic to ask everyone. Offlist !

Quote
username they create will be used only to log inn.

No update other topic about it - last code I post say this. Log in user with full name can upload only.

Yes thunderstrike.. But I think that you misunderstand this a little bit :)

I want users to register their full name when they are registering for the first time... And dont need to do anything more than that..
So after their registration... They use their username to login... And everywhere else on the site, se their full name... everyplace where the username is now..

Ive tryed install from the other post again, on a fresh 4images, and it dosent work proppably... It works someplaces... but not everywhere that i wish it to...
And there are bugs when register for first time to.. Only their lastname gets registerd.. And more...

Thats why I ask here if someone can create a complete MOD, that has been testet and works 100% :)

Maybe I dont understand this forum, but I dont se anything wrong in asking about a comlet MOD here, this is the right place to ask...
I dont mean any harm about that...

Best Reguards

43
Hmm-... I think I wait, and hope that someone can create a complet MOD of this, so it works right from the box. ;)
Hope that it is possible  8)

44
Quote
but its not working the way that I wish it to work..

Don't see anywhere is write on other topic. :?

thunderstrike.. you are really good php coder, And i respect you much...
and in the other tread, is this almost working... But there is some problems here and there...
The way I want this to be is:

username they create will be used only to log inn.

And after that they will only be visible everywhere in the site with their full name. Under images, in comments, well everyvere.. Basicly, the username is replaced everywhere with the full name.

And its not that way it works, with the way it is now, in the other tread..
Thats why I ask here (the right place to ask for a MOD) If someone want to make a complet MOD of this :)
Thats all ... I ask everyone here about this, including you ;)

45
wooow congratulations you found it,well theres 2 threads about it i've seens later this is about the same  :x



Sorry, I didnt think I did enything wrong to ask here  :?
In the oyher post I ask Thunderstrike if he wants to make a MOD of this... Here I ask everybody  :)
And in the other post, Is the solution of this a really good solution from Thunderstrike, but its not working the way that I wish it to work..
Thats why I ask here if someone want to make a clean and complet MOD thats working 100% from the box ;)

Sorry if I did something wrong...  :(

Pages: 1 2 [3] 4 5 6 7 8