phpBB-TweakS
 
Advanced Search
   
 
Home Downloads FAQ Register FAQ Memberlist Usergroups Ranks
 
 

Please help us to develop!

 
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
         

phpBB-TweakS Forum Index New Requests User Update profile from any page?
Display posts from previous:   
Half Thread Topic  Fully Thread Topic  Download Topic
      All times are GMT - 5 Hours  
Post new topic  Reply to topic

Sun Jan 22, 2006 2:12 pm
Author Message
grayscale2005
Amature TweakeR
Amature TweakeR


Joined: 19 Jan 2005
Posts: 26
Words Posted: 1,982
Average Post: 76.23


Post subject: User Update profile from any page? Reply with quote

Maybe someone could help me out with this one. Is there a way to update a particular users field from any phpbb page.


so users can add new text into their profile with one click from any phpbb page.

lets say the field name is image in phpbb users .

I know the php created would be Update phpbb image if user id is (the users id)


from austins mood mod Smile

Code:
   $q = "UPDATE ". USERS_TABLE ."
        SET user_mood_mod = '". $path ."'
        WHERE user_id = '". $userdata['user_id'] ."'";
   $db->sql_query($q);


but from then on it gets a bit comlicated Sad


Arrow how would a new form be created?


if this makes sence can a mod like this be made? Smile
Post #1
      Back To Top  

Sun Jan 22, 2006 2:20 pm
Author Message
Spinebuster
Support Team
Support Team


Joined: 21 Jan 2005
Posts: 413
Words Posted: 25,498
Average Post: 61.74


Post subject: Reply with quote

Yes, it is possible. If you can explain a little more of what your wanting to do we can help you more.
Post #2
      Back To Top  

Sun Jan 22, 2006 2:30 pm
Author Message
grayscale2005
Amature TweakeR
Amature TweakeR


Joined: 19 Jan 2005
Posts: 26
Words Posted: 1,982
Average Post: 76.23


Post subject: Reply with quote

okay thanx . I want to let a user add a text music code from the music online mod. So the Song will be in text and in their profile they already have the <bgsound src="" loop=-1> . I already have it so people can copy and paste the code into their profile from the music page. i.e. musicfile.mp3 But i`m looking for a way to update the users field with the chosen song , straight from the music online mod. which uses all the phpbb permissions can you make something like this?

Last edited by grayscale2005 on Sun Jan 22, 2006 5:03 pm; edited 1 time in total
Post #3
      Back To Top  

Sun Jan 22, 2006 4:20 pm
Author Message
Spinebuster
Support Team
Support Team


Joined: 21 Jan 2005
Posts: 413
Words Posted: 25,498
Average Post: 61.74


Post subject: Reply with quote

Your sql would look something like this:
Code:
$sql = "UPDATE ". USERS_TABLE ."
      SET user_song = '". $song ."'
      WHERE song_id = '". $song_id ."' AND
      user_id = $user_id";
Post #4
      Back To Top  

Sat Jul 21, 2007 5:18 pm
Author Message
grayscale2005
Amature TweakeR
Amature TweakeR


Joined: 19 Jan 2005
Posts: 26
Words Posted: 1,982
Average Post: 76.23


Post subject: Reply with quote

hey i`m back i`m doing more research on this ummm.... how do i make a submit button in a tpl template work with this sql?

in case i cant figure it out quick enough please help.
Post #5
      Back To Top  

Fri Aug 03, 2007 11:15 am
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

The button wont work the SQL, the button will point to a php page that will have to do the SQL.
Post #6
      Back To Top  

 
         

Post new topic  Reply to topic

phpBB-TweakS Forum Index New Requests User Update profile from any page?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
 
Protected by phpBB Security © phpBB-TweakS
phpBB Security Has Blocked 3,237 Exploit Attempts.

· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·

:: [ Load Time: 2.8 Seconds ] :: [ 29 Queries ] :: [ 758 Page(s) Viewed Today ] ::
:: [ Todays Queries: 22,509 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] ::
:: [ SQL Load: 60% Time: 1.7 ] :: [ PHP Load: 40% Time: 1.1 ] :: [ Debug: On ] :: [ GZIP: Enabled ] ::
:: The server last rebooted 80 days, 16 hours, 36 minutes, 38 seconds ago. ::

The phpBB[Network]!
       
Powered by phpBB 2.0.* © 2001, 2002 phpBB Group
Avalanche style by What Is Real © 2004