While loop problem

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: While loop problem

Postby Obsidian » 10 Oct 2008, 15:43

Okay, I *think* it was to have the system grab global announcements instead of normal topics, but I'm not sure I had it working.

CMCDragonkai
New member
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

Postby CMCDragonkai » 11 Oct 2008, 05:19

If you find out more and refine the code or mod or update it, please post here. Would be awesome to have a fully functional Announcement grabber.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: While loop problem

Postby Obsidian » 21 Jan 2009, 00:10


CMCDragonkai
New member
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

Postby CMCDragonkai » 21 Jan 2009, 00:40

Hey, while you've been doing this, I've found two other people doing similar things..

I joined in the development of one them too.

[url=http://www.phpbb.com/community/viewtopic.php?f=71&t=587812&start=570#p8392375]Here's the one Eric made and I modified later on.[/url] (I noticed you use his query.. but we also got some new stuff.)

[url=http://www.phpbb.com/community/viewtopic.php?f=69&t=1402395&p=8459105#p8354535]And here's an actual mod I found by someone.[/url]

I wonder, if you are doing anything different? Perhaps we could optimize each others code or add functionality...

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: While loop problem

Postby Obsidian » 21 Jan 2009, 17:00


CMCDragonkai
New member
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

Postby CMCDragonkai » 22 Jan 2009, 02:34

Have you been able to get polls and inline attachments working? Because right now that's what I'm working on, and I can't get it working.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: While loop problem

Postby Obsidian » 22 Jan 2009, 16:10

Actually, I just totally ignored the polls and attachments. I found them to be a bit unnecessary. :lol:

CMCDragonkai
New member
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

Postby CMCDragonkai » 23 Jan 2009, 10:05

Haha, sadly I need them.

I have been able to get normal attachments, my brain is telling me this wierd and wackyway to do inline attachments.. but I think its not very scalable at all.

If you ever manage to do it, don't hesitate to post it on this thread.

User avatar
daGrevis
New member
New member
Posts: 8
Joined: 24 Jan 2009, 14:57
Location: Latvia
[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

Postby daGrevis » 24 Jan 2009, 15:03

With dignity, daGrevis...

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: While loop problem

Postby Obsidian » 25 Jan 2009, 18:35


User avatar
daGrevis
New member
New member
Posts: 8
Joined: 24 Jan 2009, 14:57
Location: Latvia
[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

Postby daGrevis » 27 Jan 2009, 20:55

With dignity, daGrevis...

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: While loop problem

Postby Obsidian » 27 Jan 2009, 22:37

Remove any spaces before the <?php tag in /language/en/mods/lang_news_page.php

Stupid code boxes.. <_<

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[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

Postby RMcGirr83 » 28 Jan 2009, 03:02


CMCDragonkai
New member
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

Postby CMCDragonkai » 28 Jan 2009, 05:39

That should be applied to official boards. Like put it on top priority, it isn't hard to do...

User avatar
daGrevis
New member
New member
Posts: 8
Joined: 24 Jan 2009, 14:57
Location: Latvia
[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

Postby daGrevis » 28 Jan 2009, 12:39

Thanks, but i fix it by my self! :beer:
I need to remove spaces from language and getfora file after ?> line! Thans, very, veru useful and cool mod! :)
With dignity, daGrevis...


[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

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 3 guests