| |
phpBB-TweakS The easiest way to 'tweak' your phpBB! |
|
|
|
|
|
|
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!
|
| |
|
|
All times are GMT - 5 Hours
|
|
 |
Sun Jan 22, 2006 2:12 pm |
 |
Author |
Message |
grayscale2005 Amature TweakeR

Joined: 19 Jan 2005 Posts: 26 Words Posted: 1,982 Average Post: 76.23
|
| Post subject: User Update profile from any page? |
|
|
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
| 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
how would a new form be created?
if this makes sence can a mod like this be made?  |
|
| Post #1 |
|
|
 |
Sun Jan 22, 2006 2:20 pm |
 |
 |
Sun Jan 22, 2006 2:30 pm |
 |
Author |
Message |
grayscale2005 Amature TweakeR

Joined: 19 Jan 2005 Posts: 26 Words Posted: 1,982 Average Post: 76.23
|
| Post subject: |
|
|
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 |
|
|
 |
Sun Jan 22, 2006 4:20 pm |
 |
Author |
Message |
Spinebuster Support Team

Joined: 21 Jan 2005 Posts: 413 Words Posted: 25,498 Average Post: 61.74
|
| Post subject: |
|
|
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 |
|
|
 |
Sat Jul 21, 2007 5:18 pm |
 |
Author |
Message |
grayscale2005 Amature TweakeR

Joined: 19 Jan 2005 Posts: 26 Words Posted: 1,982 Average Post: 76.23
|
| Post subject: |
|
|
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 |
|
|
 |
Fri Aug 03, 2007 11:15 am |
 |
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
|
|
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. ::
|
|
|
|
|
This page has been viewed 4,927,760 times, last viewed: Sat Sep 06, 2008 1:07 am.
|
|
Powered by phpBB 2.0.* © 2001, 2002 phpBB Group
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|