Author Topic: Username to login, But visible with full name  (Read 99656 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Username to login, But visible with full name
« Reply #120 on: August 09, 2007, 03:47:51 AM »
Quote
if I create a new user, and upload images... It will work??
With comments and thumbnail to??

Try it ? :?

Quote
I see that you have fixed random image on my site

Correct.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline cloe

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Username to login, But visible with full name
« Reply #121 on: August 09, 2007, 03:55:15 AM »
Quote
if I create a new user, and upload images... It will work??
With comments and thumbnail to??

Try it ? :?

Quote
I see that you have fixed random image on my site

Correct.

Created new user (Lille Fille) Uploaded a new image from this account: Imagename: testttttttttttttttt Post a comment on it... And it still displaying guest under thumbnail and in comments :(
se here: http://www.fotoonline.no/details.php?image_id=4
Peace And Luv :)

--Cecilie--

http://www.cloevvold-photo.com

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Username to login, But visible with full name
« Reply #122 on: August 09, 2007, 04:08:22 AM »
So - like say - I work it later.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline cloe

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Username to login, But visible with full name
« Reply #123 on: August 09, 2007, 04:10:29 AM »
So - like say - I work it later.

Oki :) .... I will wait pacently ;)

You are the best thunderstrike  :D
Peace And Luv :)

--Cecilie--

http://www.cloevvold-photo.com

Offline Art By Vicky

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • ABV Arts Enterprises
Re: Username to login, But visible with full name
« Reply #124 on: November 07, 2007, 05:31:25 AM »
I have read through this entire post...  all 9 pages to this point!  I thought I'd help a little bit as I noticed a recurrent step on many of the files mentioned.

I still don't see answers to how to add the firstname, lastname under the thumbnails on all the screens, so I discovered that once you've done the changes provided by thunderstrike up to this point, all you have to do is the following (thank you for all this great work, btw!!!):

This procedure will change the username link to display the firstname lastname below each thumbnail (thumbnail_bit.html) on each of the screens indicated below. 

Follow these procedures on the following files:
  • categories.php
  • search.php
  • index.php
  • lightbox.php
  • If you followed thunderstrike's directions, you should have already done top.php and details.php

Find:

Quote
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."

Replace with:
Quote
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name").", u.user_firstname, u.user_lastname

Short cut to above:
Find:
Quote
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."

Add to end of the line, after the ":
Quote
, u.user_firstname, u.user_lastname

*Don't forget that this only works if you've already followed all of thunderstrike's directions up to this point, starting from the first page of this thread. 

This is the only part I was trying to fix, not all the other occurrences of the username (only the publicly viewed info).  I just wanted visitors to be able to see the member's full name instead of their username with all occurrences of their image.  So, as far as the rest of what cloe is looking for, sorry I can't help with that as I'm not a php guru like thunderstrike... lol!

Hope I've helped a little.  And again, thanks thunderstrike for all the very hard work you've done on these procedures!  Great job!  What a huge help you've been!
ABVarts.com
RoundTableWebDesign.com
ArtByVicky.com
League of Animal Artists - AnimalArtists.org

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Username to login, But visible with full name
« Reply #125 on: November 07, 2007, 01:34:17 PM »
This is while post from me now ... use this for additional user fields with details:

http://www.4homepages.de/forum/index.php?topic=19297.0

Is easy for add firstname and lastname in details now. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Art By Vicky

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • ABV Arts Enterprises
Re: Username to login, But visible with full name
« Reply #126 on: November 12, 2007, 02:49:09 AM »
You'll also need to modify the member.php file (as I've directed above) if you are adding any other mods in which you will need to display the firstname and last name on the member's profile page. 

Example of a mod in which you will need to add this is the [MOD] Show user images in profile, located at: http://www.4homepages.de/forum/index.php?topic=15390
ABVarts.com
RoundTableWebDesign.com
ArtByVicky.com
League of Animal Artists - AnimalArtists.org

Offline daymos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Username to login, But visible with full name
« Reply #127 on: June 26, 2009, 02:09:02 PM »
how to display Autor user_firstname user_lastname in title on details and profile pages?
http://www.4homepages.de/forum/index.php?topic=6613.new#new