The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New function
#1
Enter fields in account.php and join.php as phone number and address for new users. But for already registered users that field is empty in account.php. It will be that you can help me with this, instead of leaving the blank space in the phone number appear a link "add phone number" to user_settings.php
  Reply
#2
Is seriously? No one?
  Reply
#3
Sorry. We've been busy trying to figure out some upgrade issues. So address and phone number are not default in userspice. Did you add them to the settings table?

What column names did you use for them? I can help you out.
Can you paste a copy of your modified account.php on pastebin and share the link here?
  Reply
#4
I'm sorry to interrupt your work, this is my account.php and this is my users table.
  Reply
#5
Ok. So looking at that, I'm not seeing a form. You would have to make one to update the database...and you're going to need some conditional statements to do what you're trying to do. I will do an example for the address.

https://pastebin.com/iBYEGcRi
  Reply
#6
You are a genious! I'd just like to show a link to user_settings.php instead of the box <input>
  Reply
#7
Edit your code a bit by removing the input from the face of the earth.
Code:
<p>Address :<?php if($user->data()->address != ''){echo $user->data()->address;}?><?php if($user->data()->address == ''){echo "<a href='configuracion-de-la-cuenta.php' >Agregar una dirección</a>";}?></p>
Thank you very much mudmin. Greetings from Costa Rica.
  Reply
#8
Perfect. That makes sense. I love it down in Costa Rica btw...it's a beautiful country.
  Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)