Search found 31 matches

by Glorius Hole
Sat Feb 03, 2007 5:18 pm
Forum: [3.0/Olympus] Discussion
Topic: "$db->sql_numrows($result)" - no longer works?
Replies: 6
Views: 4200

Re: "$db->sql_numrows($result)" - no longer works?

Many thanks for the help. That script worked wonders. Plus it's also much more simple now than the way I had it before, which is always a good thing (and I might be able to use that method for something else that I've been doing where as before it wouldn't work).

Thanks again.
by Glorius Hole
Fri Feb 02, 2007 6:43 pm
Forum: [3.0/Olympus] Discussion
Topic: "$db->sql_numrows($result)" - no longer works?
Replies: 6
Views: 4200

Re: "$db->sql_numrows($result)" - no longer works?

Yea, I do need to check more than one row as its for a 'top 10 topics' sort of thing I have on the main index. I'll scour through viewtopic then until I see something to what I need in that case. Thanks.:)
by Glorius Hole
Fri Feb 02, 2007 5:57 pm
Forum: [3.0/Olympus] Discussion
Topic: "$db->sql_numrows($result)" - no longer works?
Replies: 6
Views: 4200

"$db->sql_numrows($result)" - no longer works?

"$db->sql_numrows($result)" no longer works. It did in a previous beta (3 and before, since I think I haven't tried 4). When I try and use this for something I'm doing it chucks out an error; "Fatal error: Call to undefined function: sql_numrows() blah blah" I take it from that error that this parti...
by Glorius Hole
Wed Jan 18, 2006 6:26 pm
Forum: [3.0/Olympus] Styling
Topic: How do you add a new language file?
Replies: 6
Views: 4464

Re: How do you add a new language file?

So, I inlcude the language file using $user->add_lang(), anywhere in the php file, I leave the assign template array as it is, but I make sure all language variables in the template are prefixed with L_, then it loads everything automatically? Hmm, let's see then... *done* I'll be god damned. How th...
by Glorius Hole
Wed Jan 18, 2006 6:09 pm
Forum: [3.0/Olympus] Styling
Topic: How do you add a new language file?
Replies: 6
Views: 4464

Re: How do you add a new language file?

Use it where though?
by Glorius Hole
Wed Jan 18, 2006 5:18 pm
Forum: [3.0/Olympus] Styling
Topic: How do you add a new language file?
Replies: 6
Views: 4464

Re: How do you add a new language file?

I think i posted this in the wrong forum actually... Anyway, excellent, thanks for the help, since I've now got It all sorted. Just in case anyone like me happens along; In the main php file one includes the lang file (after session management) as follows: include($phpbb_root_path . 'language/' . $u...
by Glorius Hole
Mon Jan 16, 2006 3:43 pm
Forum: [3.0/Olympus] Styling
Topic: How do you add a new language file?
Replies: 6
Views: 4464

How do you add a new language file?

Say I have file.php which displays something or other to the user. The template file is template_file.html, and uses language variables. All the language variables are stored in language/XX/lang_file.php (where XX is the language pack). But how exactly do I make the language file load with file.php ...
by Glorius Hole
Mon Jan 16, 2006 12:44 pm
Forum: [3.0/Olympus] New features discussion
Topic: Admin Panel
Replies: 36
Views: 19891

Re: Admin Panel

If so, will it envolve just one or two lines of code being added to a file so the module is loaded, or won't you need to alter any code at all (I presume the former, unless there's some sort of module loader going to be implimented)? You have to add the module (either for ucp, mcp or acp) in the da...
by Glorius Hole
Sun Jan 15, 2006 2:53 pm
Forum: [3.0/Olympus] New features discussion
Topic: Admin Panel
Replies: 36
Views: 19891

Re: Admin Panel

Hmm, about the modules, mod authors be able to write a module for the ACP and just sort of 'drop' it into the modules folder right? If so, will it envolve just one or two lines of code being added to a file so the module is loaded, or won't you need to alter any code at all (I presume the former, un...
by Glorius Hole
Sat Jan 07, 2006 7:09 pm
Forum: [3.0/Olympus] Discussion
Topic: Okay I give up...
Replies: 6
Views: 4124

Re: Okay I give up...

Good god, it's so simple it's unbelievable. 8O I must be at the hieght of newbieness.

Still at least I'm learning. Thanks very much i appreciate the help, as always. :D