Search found 28 matches

by Munkeyboi
Sun Feb 07, 2010 5:51 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Creating condition statements
Replies: 11
Views: 544

Re: Creating condition statements

Hey, i'm very sorry to hijack this thread, but i think i would like something very similar, but am utterly new at all this. I would like to create conditional statements in memberlist.php and perhaps view topic. IF a users ID is in a certain table, then return yes, else no. This is so i can put user...
by Munkeyboi
Sun Feb 07, 2010 5:48 pm
Forum: [3.0.x] MOD Requests
Topic: Online status of users - Chat, Arcade, Gallery, etc
Replies: 3
Views: 253

Re: Online status of users - Chat, Arcade, etc

I've just been looking at memberlist.php and this is part of the code in there for S_ONLINE 'S_ONLINE' => ($poster_id == ANONYMOUS || !$config['load_onlinetrack']) ? false : (($user_cache[$poster_id]['online']) ? true : false), //Basic explanation of that line: If the poster ID is anonymous (e.g. th...
by Munkeyboi
Sun Feb 07, 2010 4:51 pm
Forum: [3.0.x] MOD Requests
Topic: Online status of users - Chat, Arcade, Gallery, etc
Replies: 3
Views: 253

Re: Online status of users - Chat, Arcade, etc

Maybe it would be better to do it watching sessions table, where the user page is written out... Thank you for the reply :) i appreciate it, if im right in what i've worked out thus far, (and i know nothing about phpbb3 or php), for example the is the user online in the forum, the php will look at ...
by Munkeyboi
Sat Feb 06, 2010 9:34 pm
Forum: [3.0.x] MOD Requests
Topic: Online status of users - Chat, Arcade, Gallery, etc
Replies: 3
Views: 253

Online status of users - Chat, Arcade, Gallery, etc

Hello, I'm using PHPBB 3.0.6 and utterly new at this all and PHP. I'd like a really simple modification done but i can't work out how, any help would be appreciated. I have a few mods on my forum, arcade, chatroom, photo gallery etc. but it could be anything really, With all of these mods, if the us...
by Munkeyboi
Fri Feb 05, 2010 7:02 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

a friend who knows php very well, but doesnt know phpbb3 came up with this, $sql = "SELECT pu.user_id, pu.username, fc.userid, fc.roomid, fr.id (http://fr.id/), fr.name (http://fr.name/)    FROM phpbb_users AS pu, phpbb_fc_connections AS fc , phpbb_fc_rooms AS fr    WHERE pu.user_id = fc.userid    a...
by Munkeyboi
Mon Feb 01, 2010 8:47 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

Ok i see :) thank you so heres my ammended code, allthough notepad++ is showing some sort of syntax error i think, formatting colours are all greyed out. // Create the SQL statement $sql = "SELECT pu.user_id, pu.username, fc.userid, fc.roomid, fr.id, fr.name FROM phpbb_users AS pu, phpbb_fc_connecti...
by Munkeyboi
Mon Feb 01, 2010 8:15 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

ok, so if im understanding right, you want me to add that bit, as otherwise it will retrieve all users ids from phpbb3 users? when i run the query, and two users are in chat for example, this is what i get in myphpadmin user_id username userid roomid id name 54 Munkeyboi 54 4 4 Admin Room 53 GSXRnut...
by Munkeyboi
Mon Feb 01, 2010 8:04 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

thank you, would i still need to tack on your code if the following is true. It does link the chat user id to the user id in phpbb_users table I dont wish to question the help im being given, I'm grateful, but if im reading this " WHERE pu.user_id = " . $user->data['user_id'] correctly im telling it...
by Munkeyboi
Mon Feb 01, 2010 7:40 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

//TEST FUNCTION FOR XYZ_Lookup function xyz_lookup() { global $db, $user, $auth, $template, $config, $phpbb_root_path; // Create the SQL statement $sql = "SELECT pu.user_id, pu.username, fc.userid, fc.roomid, fr.id, fr.name FROM phpbb_users AS pu, phpbb_fc_connections AS fc , phpbb_fc_rooms AS fr W...
by Munkeyboi
Mon Feb 01, 2010 7:27 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

I also tried playing with adding it as a function,, Using other mods and forum posts as a guide, i added this to the bottom of my includes/functions.php allthough i've not got any further with this as im not sure what im doing. I know in myphpadmin, the sql query builds the data i want to look at, j...
by Munkeyboi
Mon Feb 01, 2010 7:21 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

thank you for the response im not writing my own custom page, no, and i think i understand what you say about the retrieval of the custom fields, but im still pretty certain it will still have to look at sql to fill the custom profile fields data. Take the chat for example. If a user is chatting, th...
by Munkeyboi
Mon Feb 01, 2010 6:48 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

thank you :) i have read that tutorial before, but i did miss this bit by yourself http://www.phpbb.com/community/viewtopic.php?f=71&t=582444&start=90#p11354185 Then your custom page will have to pull the value of the profile field like this: $user->get_profile_fields( $user->data['user_id'] ); $use...
by Munkeyboi
Mon Feb 01, 2010 5:51 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

hi, thanks for replay and sorry for previous outburst, please feel free to remove it, i have search the forum and looked at lots of different threads, is there any you have in mind, or search terms i should use? maybe i should ask for this thread to be moved to mod requests rather than writers as i'...
by Munkeyboi
Mon Feb 01, 2010 3:14 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Mod to display an icon in profile based on query result
Replies: 18
Views: 1017

Re: Mod to display an icon in profile based on query result

I think what i want to do is simple, but just need some assistance or pointers with it.

if anyone could help i'd be grateful
thanks

Go to advanced search