functions_cute_url.php

Support for the .
User avatar
angelside
New member
New member
Posts: 6
Joined: 06 Feb 2007, 15:06
Real name: Sevdin Filiz
Location: Turkey
Contact:

functions_cute_url.php

Postby angelside » 09 Jun 2008, 14:30


:: Turkish phpBB3 support and development
:: usable version 1.2.2 | :: development version 2.0.0

User avatar
igorw
Past Contributor
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: functions_cute_url.php

Postby igorw » 09 Jun 2008, 15:56


- we're poor!

mtotheikle
New member
New member
Posts: 25
Joined: 11 Oct 2007, 03:03
Real name: Mike
Location: Spokane, WA
Contact:

Re: functions_cute_url.php

Postby mtotheikle » 10 Jun 2008, 00:43

Wow Evil >3 that is a really great script, thanks for posting an example!

User avatar
angelside
New member
New member
Posts: 6
Joined: 06 Feb 2007, 15:06
Real name: Sevdin Filiz
Location: Turkey
Contact:

Re: functions_cute_url.php

Postby angelside » 10 Jun 2008, 08:10


:: Turkish phpBB3 support and development
:: usable version 1.2.2 | :: development version 2.0.0

User avatar
igorw
Past Contributor
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: functions_cute_url.php

Postby igorw » 10 Jun 2008, 10:51


- we're poor!

User avatar
angelside
New member
New member
Posts: 6
Joined: 06 Feb 2007, 15:06
Real name: Sevdin Filiz
Location: Turkey
Contact:

Re: functions_cute_url.php

Postby angelside » 18 Jul 2008, 12:10


:: Turkish phpBB3 support and development
:: usable version 1.2.2 | :: development version 2.0.0

User avatar
igorw
Past Contributor
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: functions_cute_url.php

Postby igorw » 26 Jul 2008, 16:22

Yes, however to allow more dynamic handling i'd use $cute_url->get(). Like this you don't have to have a hardcoded ammount of url items.

- we're poor!

User avatar
Afterlife(69)
Member
Member
Posts: 175
Joined: 30 Jun 2006, 21:23
Real name: Dean
Location: Sydney, Australia
Contact:

Re: functions_cute_url.php

Postby Afterlife(69) » 26 Apr 2009, 07:37

Life in the house :)

Deatzo Seol
New member
New member
Posts: 2
Joined: 14 Jul 2008, 22:00
[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: functions_cute_url.php

Postby Deatzo Seol » 24 May 2009, 19:59

I have a question regarding template variables and cute_url:

How can I make sure template vars like change according to the website path? E.g. when you're in /path/to/entry/, the variable begins with './', so it will never correctly load stylesheets &c.
It's probably a simple solution but I thought I'd ask. ;)

User avatar
igorw
Past Contributor
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: functions_cute_url.php

Postby igorw » 24 May 2009, 20:47


- we're poor!

Deatzo Seol
New member
New member
Posts: 2
Joined: 14 Jul 2008, 22:00
[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: functions_cute_url.php

Postby Deatzo Seol » 24 May 2009, 20:56

Well, it's hacky indeed, but it works :D
Thanks :P

User avatar
SamT
Past Contributor
Past Contributor
Posts: 79
Joined: 14 Jun 2009, 16:29
Real name: Sam
Location: Sacramento, CA, USA
Contact:

Re: functions_cute_url.php

Postby SamT » 11 Aug 2009, 02:18

Do you have the "fix_url" function?

I have actually been trying to figure out way around using a hook, they make my site significantly slower.


User avatar
igorw
Past Contributor
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: functions_cute_url.php

Postby igorw » 11 Aug 2009, 15:41


- we're poor!

User avatar
SamT
Past Contributor
Past Contributor
Posts: 79
Joined: 14 Jun 2009, 16:29
Real name: Sam
Location: Sacramento, CA, USA
Contact:

Re: functions_cute_url.php

Postby SamT » 11 Aug 2009, 20:51

Thank you! :)


imkingdavid
Supporter
Supporter
Posts: 32
Joined: 12 Aug 2009, 16:16
Real name: David
Contact:

Re: functions_cute_url.php

Postby imkingdavid » 13 Mar 2010, 01:55

Alright, I'm having trouble understanding how to use the fix url hook provided recently in this topic. Can you give a walkthrough about it like you did for the functions_cute_url.php file? Thanks!
phpBB.com Development Team Member | |
Please do NOT contact for support via PM or email.


[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 “Library”

Who is online

Users browsing this forum: No registered users and 2 guests