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
/printthread.php 16 require_once



UserSpice
New function - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: New function (/showthread.php?tid=817)



New function - shoropio - 10-30-2017

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


New function - shoropio - 10-31-2017

Is seriously? No one?


New function - mudmin - 10-31-2017

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?



New function - shoropio - 10-31-2017

I'm sorry to interrupt your work, this is my account.php and this is my users table.


New function - mudmin - 10-31-2017

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


New function - shoropio - 10-31-2017

You are a genious! I'd just like to show a link to user_settings.php instead of the box <input>


New function - shoropio - 10-31-2017

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.


New function - mudmin - 10-31-2017

Perfect. That makes sense. I love it down in Costa Rica btw...it's a beautiful country.