Search found 516 matches

by UseLess
Mon Jul 13, 2009 10:24 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: [SOLVED] Challenge Mod Thanx Useless
Replies: 18
Views: 693

Re: [1 step left] Challenge Mod Any Ideas?

Greetings, OK if you have altered the 'prepare_score' to grab the 'chall_id' from the sessions table then it'll be returned in the $game_data array in 'includes/arcade/arcade_score.php' so all you 'should' have to do is add this: // set the variable for the challenge id // // not required anymore......
by UseLess
Mon Jul 13, 2009 8:16 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: [SOLVED] Challenge Mod Thanx Useless
Replies: 18
Views: 693

Re: [1 step left] Challenge Mod Any Ideas?

Greetings,

Putting:

Code: Select all

$chall_id = request_var('chall_id', 0);
in includes/arcade/arcade_class.php will never work as you intend as it will always be 0.
by UseLess
Mon Jul 13, 2009 1:12 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: [SOLVED] Challenge Mod Thanx Useless
Replies: 18
Views: 693

Re: [1 step left] Challenge Mod Any Ideas?

Greetings,

In which file have you put:

Code: Select all

$chall_id = request_var('chall_id', 0);
by UseLess
Mon Jul 13, 2009 9:49 am
Forum: [3.0.x] MOD Writers Discussion
Topic: [SOLVED] Challenge Mod Thanx Useless
Replies: 18
Views: 693

Re: [1 step left] Challenge Mod Any Ideas?

Greetings, The field 'chall_id' should be unique therefore only 1 row in the database will have 'chall_id = 17' therefore as your only every going to get a single row there is no need to use a while loop. So you get the row with: $row = $db->sql_fetchrow($result); and because your now finished with ...
by UseLess
Mon Jul 13, 2009 8:18 am
Forum: [3.0.x] MOD Writers Discussion
Topic: [SOLVED] Challenge Mod Thanx Useless
Replies: 18
Views: 693

Re: [1 step left] Challenge Mod Any Ideas?

Greetings, // set the variable for the challenge id $chall_id = request_var('chall_id', 0); //if that variable is present start doing some the stuff if( $chall_id ) { // grab all data from the row for the chall_id // SHOULD return a single row ... $sql = "SELECT * FROM " . ARCADE_CHALLENGE_TABLE . "...
by UseLess
Mon Jul 13, 2009 6:54 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] phpbb Movies Mod 0.0.4
Replies: 66
Views: 6606

Re: [BETA] phpbb Movies Mod 0.0.3

Greetings, With regard to the <? and <?php yes your right. From the php.ini file... ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on P...
by UseLess
Mon Jul 13, 2009 5:25 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] phpbb Movies Mod 0.0.4
Replies: 66
Views: 6606

Re: [BETA] phpbb Movies Mod 0.0.3

Greetings, In some of the files you have <? and ?> as the php tags, these are short tags and are not always enabled on servers. Therefore simply changing the first <? to <?php solves the problem but there are many others to fix. 1. movies.php is different to movies_ff.php 1a. it also has queries wit...
by UseLess
Mon Jul 13, 2009 1:58 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] phpbb Movies Mod 0.0.4
Replies: 66
Views: 6606

Re: [BETA] phpbb Movies Mod 0.0.3

Greetings, Using IE and Firefox I get a page that contains: session_begin(); $auth->acl($user->data); $user->setup(); $sql = 'SELECT DISTINCT catagory FROM ' . MOVIES_TABLE . " ORDER BY catagory ASC"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $template->assign_block...
by UseLess
Sun Jul 12, 2009 7:40 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Font BBcode Questions
Replies: 5
Views: 374

Re: Font BBcode Questions

Greetings,

That will work as intended only if the person viewing the post has the font specified on their machine.
by UseLess
Sun Jul 12, 2009 4:34 am
Forum: [3.0.x] MOD Writers Discussion
Topic: New checkbox "property" in User profile
Replies: 28
Views: 687

Re: New checkbox "property" in User profile

Greetings,

What language file and what problems? And post them here: http://www.phpbb.com/community/viewtopi ... &t=1564165 so everything's in one place.
by UseLess
Sun Jul 12, 2009 4:18 am
Forum: [3.0.x] MOD Writers Discussion
Topic: New checkbox "property" in User profile
Replies: 28
Views: 687

Re: New checkbox "property" in User profile

Greetings, Just done it and here's how: case 'profile_info': include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx); $cp = new custom_profile(); $cp_data = $cp_error = array(); $data = array( 'icq' => request_var('icq', $user->data['user_icq']), 'aim' => request_var('aim', $user->...
by UseLess
Sun Jul 12, 2009 4:00 am
Forum: [3.0.x] MOD Writers Discussion
Topic: New checkbox "property" in User profile
Replies: 28
Views: 687

Re: New checkbox "property" in User profile

Greetings,

You only use: request_var('showuser', 'off') with the submitted form... anywhere else you'd have to use the value in the users table so you'd use what Brf posted above.
by UseLess
Sat Jul 11, 2009 8:48 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: New checkbox "property" in User profile
Replies: 28
Views: 687

Re: New checkbox "property" in User profile

Greetings, This is what you should have in the template: <tr> <td class="row1" width="35%"><b class="genmed">{L_SHOWUSER}: </b></td> <td class="row2"><input type="checkbox" class="radio" name="showuser" value="on" {SHOWUSER}/></td> </tr> and this in 'ucp_profile.php': 'SHOWUSER' => (($data['showuser...
by UseLess
Sat Jul 11, 2009 8:39 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: New checkbox "property" in User profile
Replies: 28
Views: 687

Re: New checkbox "property" in User profile

Greetings, You don't need to specify the 'off' value all you need to do is hard code the value in the template as: value="on" and then just add: selected="selected" if the value is 'on' in the user table, if it's not on and therefore defaults to 'off' then don't add the selected bit. Edit: If the ch...
by UseLess
Sat Jul 11, 2009 8:32 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: New checkbox "property" in User profile
Replies: 28
Views: 687

Re: New checkbox "property" in User profile

Greetings,

Try this:

Code: Select all

'showuser'      => utf8_normalize_nfc(request_var('showuser', 'off')),
Because if it was on in the user data array and it's not passed it will remain on, so you need to set the default to 'off' and only turn it 'on' if the checkbox is checked.

Go to advanced search