Author Topic: [SOLVED][1.7.2] Tag {ifno}...{endifno} not working...  (Read 5711 times)

0 Members and 1 Guest are viewing this topic.

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
[SOLVED][1.7.2] Tag {ifno}...{endifno} not working...
« on: March 23, 2006, 08:25:44 AM »
Hi,

since the upgrade v1.7.1 --> v1.7.2, it seems the conditionnal tag {ifno}...{endifno} is not working any more...
and i read the  code v1.7.2 for this tag is different from the one on this forum...

so, does someone have some information about this problem?

Thanks for your answers!
« Last Edit: March 27, 2006, 11:33:41 AM by ch€ri{Bi}² »
ch€ri{Bi}²


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [1.7.2] Tag {ifno}...{endifno} not working...
« Reply #1 on: March 23, 2006, 02:22:03 PM »
Yeah, its only seems to work with {ifnot}...{endifnot} tags...
in includes/template.php find
Code: [Select]
    if ($matches[1] == 'not') {Replace with
Code: [Select]
    if ($matches[1] == 'not' || $matches[1] == 'no') {
then find
Code: [Select]
      '='.preg_quote($this->start).'if(not)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
      '='.preg_quote($this->start).'endif(not)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
Replace with
Code: [Select]
      '='.preg_quote($this->start).'if(not?)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
      '='.preg_quote($this->start).'endif(not?)?\s+([A-Z0-9_]+)'.preg_quote($this->end).'=Usi',
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [SOLVED][1.7.2] Tag {ifno}...{endifno} not working...
« Reply #2 on: March 27, 2006, 11:40:37 AM »
yes! the tag {ifnot}...{endifnot} works without modification...
thank you for the information... and also for the code which can make it work with the tag {ifno}...{endifno}  :wink:

Regards.
ch€ri{Bi}²


Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [SOLVED][1.7.2] Tag {ifno}...{endifno} not working...
« Reply #3 on: June 09, 2009, 11:47:39 PM »
Dont work in 1.7.7 ?

Code: [Select]
{if thumbnails}<a href="javascript:clearlightbox()"> <img src="{template_url}/icon/threadTrashL" style="width: 48px; height: 48px;" alt=""> </a><br />Test{endif thumbnails}{ifnot thumbnails}No Images{endifnot thumbnails}
Edit:
Ok - Its Work - Sorry
« Last Edit: June 10, 2009, 12:03:25 AM by Benny »