21
Knuxchan
Re: Liaise 1.5 vs Liaise 1.27 with captcha
  • 2009/2/14 5:35

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Since there's no CAPTCHA feature in 1.5, would I still be able to install and run the lower version of Liaise instead? or is there a hack for 1.5 to add the CAPTCHA feature? I'm currently using XOOPS 2.3.2. I was trying to get a contact form similar to the one on this XOOPS site with the CAPTCHA feature at the bottom like that.



22
Knuxchan
Re: WF-Channel all versions - Blank Page
  • 2009/2/13 15:54

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Thanks! The RAR version has all the files in there. I installed and ran the module, updated and everything works now. Thanks again!



23
Knuxchan
Re: CBB issues
  • 2009/2/13 15:49

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Wow, that fixed the problem after I ran this. There were a lot of errors. Thank you so much!



24
Knuxchan
Re: WF-Channel all versions - Blank Page
  • 2009/2/13 13:35

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


I have the latest winzip installed. I re-downloaded it and I keep getting the same thing with the empty admin folder. There's no corrupted zip file or anything.



25
Knuxchan
Re: WF-Channel all versions - Blank Page
  • 2009/2/13 13:16

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Both files only contain an empty 'Admin' folder.



26
Knuxchan
Re: Stop FOREACH looping using BREAK (PHP)
  • 2009/2/13 13:08

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


ah ok, then. Well I was doing a search in the forum for trying to stop a foreach loop and this one came up.



27
Knuxchan
Re: CBB issues
  • 2009/2/13 13:06

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Is that the file check for the XOOPS module? or some other module?



28
Knuxchan
Re: CBB issues
  • 2009/2/13 3:28

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Can anyone help with this?



29
Knuxchan
Re: WF-Channel all versions - Blank Page
  • 2009/2/13 3:27

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


Is there still no fix for this? Is there another module that I can use instead that works similar to wf-channel?



30
Knuxchan
Re: Stop FOREACH looping using BREAK (PHP)
  • 2009/2/13 1:56

  • Knuxchan

  • Just popping in

  • Posts: 54

  • Since: 2008/12/10


I don't understand how that fixed the problem...

This code:
<{foreach item=article from=$block.articles name=tztz}> 
        <{if 
$smarty.foreach.tztz.index == 5}> 
        </
td><td
        <{/if}> 
</foreach>


won't break a foreach loop. All it's doing is checking to see if the current index is 5, but there's no 'break' syntax to actually break the loop so it will keep doing interations to the very end while it continues to check if the index is still equal to 5, even though it may be way above 5.

Is there not any sort of 'break' syntax for Smarty? or a 'Goto' to try to get out of the loop?

I was trying to display a certain amount of items on the screen, but I wanted the loop to stop once it reached 3, but there's no way to break out of the loop when this condition is met.

EDIT: Nevermind, I found this on another site and it works. I'm going to go ahead and post it here in case someone else has the same problem as me:

Quote:
(From:http://qaix.com/php-web-programming/148-751-smarty-break-out-of-foreach-loop-read.shtml)
I think that guy means a {foreach} tag inside a template ­.

Well the answer is easy - such a function is missing. If you really
need it (normally such logic should be in your php scripts, not in your
templates...), write your own (compiler) plugins for that.


<?php
// compiler.break.php
function smarty_compiler_bre­ak($contents, &$smarty)
{
return 'break;';
}

?>
<?php
//compiler.continue­.php
function smarty_compiler_con­tinue($contents, &$smarty)
{
return 'continue;';
}

?>

Create these two files and put them into your plugins directory
(notice the naming convention compiler.xxx.php). Now, you should
be able to leave foreach and section loops with {break} and to leave
out one step with {continue}.




TopTop
« 1 2 (3) 4 5 6 »



Login

Who's Online

177 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits