While loop problem
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: While loop problem
- we're poor!
Re: While loop problem
Okay...I guess I'll try to clean all that up.
Re: While loop problem
Okay, I've finally got it working. YAY!
Here it is in action (with a few other things with it) on my test board:
[url]http://infernalarcade.ej.am/test/home.php[/url]
For those that want to replicate this...
HTML code, just include it into the page you want it on.
PHP function code:
Here it is in action (with a few other things with it) on my test board:
[url]http://infernalarcade.ej.am/test/home.php[/url]
For those that want to replicate this...
HTML code, just include it into the page you want it on.
PHP function code:
-
- New member
- Posts: 8
- Joined: 06 Sep 2008, 01:40
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: While loop problem
I have inserted the html code in news_body.html and uploadeded it to styles/prosilver_se/template/
I assume i need to place php code in a file called something like news_body.php and upload it to forum root?
Im a bit confused as to how the two files communicate with each other.
Thanks for any help,
Carl
I assume i need to place php code in a file called something like news_body.php and upload it to forum root?
Im a bit confused as to how the two files communicate with each other.
Thanks for any help,
Carl
- Mr. Bond
- Member
- Posts: 89
- Joined: 30 Mar 2008, 20:34
- Real name: Bobby
- Location: 127.0.0.1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: While loop problem
• •
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: While loop problem
Oh, so that would make ANNOUNCEMENT_FORUM defined as a number? Or..?
Does it mean which forum contains the announcements? But then isn't that just the same making $query_global = false, and just specifying the number?
Does it mean which forum contains the announcements? But then isn't that just the same making $query_global = false, and just specifying the number?
Re: While loop problem
Yes, just declare the constant in the page that is using the function with the forum ID that contains the announcements.
I don't remember what the $query_global parameter was for, though...
/me goes to check own documentation
I don't remember what the $query_global parameter was for, though...
/me goes to check own documentation
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: While loop problem
Ok, so if the forum id was 2, and this place contained announcements, does that mean I would define ANNOUNCEMENT_FORUM as 2?
Re: While loop problem
Exactly.
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: While loop problem
Cool awesome, so have you found out what $query_global is?
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: Bing [Bot] and 4 guests