FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

David posts

Feed 1493 posts

Templates?

… what would be a god logical way of handling it? …

Can you give us an idea of what the page looks like? screen-grab of output? photo of the latest whiteboard? :) etc.

 

Contact form plugin with proper input validation

Nice work! I particularly like the “non-destructive” part. :)

My only suggestion at the moment would be to include the installation directions from your “labs” download page as a .txt file within the .zip itself.

 

XSS Vulnerability

It seems to vary not only by browser, but also by host. At a rough estimate, about 50% of the Frog sites I tried this on echoed the scripted message. It also varied with browser (as you note), with Opera being very quick to comply :) on some occasions.

But Martijn is on the case, I see. ;)

 

[Sticky] Live sites running Frog CMS

Yesterday, my site appeared on meneame.net…

@Pnikosis – I think that means w00t!!, doesn’t it? :) Congratulations!

 

XSS Vulnerability

Hmmm… I’m puzzled too. I can’t reproduce this on either 0.9.4 or 0.9.5 with or without mod_rewrite enabled. I get “access forbidden” messages or 404’s.

 

Custom PHP in Frog

PS How did you get that bc. to work . . .

Practice. ;)

Actually, the trick is to make sure you have a blank line before you use Textile’s “nn.” type paragraph markers. You can also have a look at the examples in the Textile Reference Manual, or edit that topic post and see what the markup looks like now.

Hope you get some PHP help, btw! ;)

 

display page_part

Hi there! I’m just a little puzzled why you wanted to extend the “page-part” table, and did not simply make “title” and “cites” as page-parts themselves!

  • new “sibling” pages have the same page-parts as earlier pages at the same level, so you only need to create the page-parts themselves once
  • you can use the “children-by-part” plugin to organize pages by different page-parts (see the discussion thread, and click here for download.)

That doesn’t help you with your table problem, but it might suggest a more simple way of using Frog!

If I have misunderstood, perhaps you could explain what you are trying to accomplish…?

 

blank plugin page

Hi again – just to be clear: did you download the plugin direction from “erajad” (the link above)? or did you follow the link to the downloads page at FrogTools?

  • if you got it directly from erajad, then it will not work with 0.9.4
  • if you got it from FrogTools, ensure that the contact_form version number that you’re using is 1.0.2 or 1.0.2a (but NOT 1.0.3!)…

Here’s hoping…

 

blank plugin page

Hi padd – on your live site, try removing the README.txt from the plugin directory. In other words, upload just the “index.php” file to the contact_form directory. See if that helps…

 

Google Maps plugin?

P.s. If I leave the “Marker” values blank (for Google default), I get a blank. Otherwise, ticking along nicely! :)

 

Google Maps plugin?

I was looking forward to giving this a go … but when I enabled it, it broke my Admin/Settings page. :( It simply stopped processing at the point it got to GoogleMaps. Removing it from my plugins directory cleared it up. Any ideas??

Update: That was on r384. I just tried it with r403, and it seems fine. :)

 

Asset manager plugin

While I had the white-box-problem …

Hmmm… That’s a different “white-box problem”! :) If you look really, really closely at wiggst3r’s pic, you’ll see that the “white-box” is teensy-tiny, so there’s no remnant of a target image left at all. At least your “white box” seems to be finding SOMEthing!

 

Table manager

Hi Gijs, and welcome!

Now my question was before i invent it again, is there already plugin like this?

To the best of my knowledge, there isn’t such. I expect people that want to edit table data directly have simply been using phpMyAdmin to this point.

And if not, are people interested in such a plugin?

My first thought is that it might allow some editing of page-part names which is something one user wants to do. There may well be other uses, too. If you’ve found uses for it on other platforms, then perhaps its availability would enhance working with Frog! IMO, of course… :)

What do others think? Could this be a step towards “custom fields”…?

 

Asset manager plugin

Only a small white box is there instead of the images.

I had that too, and my problem was out-of-date supporting plugins. As tuupola suggests, first thing to do is to get the latest version of all of them.

 

Nested navigation not producing W3C compliant HTML

There was a solution to this some months back …

Found it, BlueFrog. It was yours! :)

Note: perhaps the cookbook needs updating with the solution!?

Update: I have adjusted the cookbook entry and tested that code. Please let me know if any niggles remain!

 

Continual 'PHP Fatal error' - but no problems???

Do you know what page throws the error? Failing that, is there a page with a page-part (a “sidebar” perhaps? more likely than an “extended”) with a bit of code in its line 16 that isn’t quite following the rules?

You could also try turning on frontend error messages by setting this value in config.php (around line 14 in a default 0.9.4 install):

define('DEBUG', true);

That ought to help, too — hopefully!

 

Continual 'PHP Fatal error' - but no problems???

…but I’d feel happier finding the cause :).

Then the relevant part of the error message is this:

...: eval()'d code on line 16

Which is the offensive “line 16”? Layout? snippet? content? or page-part? Seems like the latter, from the $this->part->$part->content_html bit.

 

htaccess redirect produces 404

Any help here, David?

 

Spam fighting in comments?

With no plugin developers inspired to take up the Akismet challenge, there’s perhaps little point in adding another possibility, but…

…does anyone have experiece of Mollom? From their plugins list, I see there’s a Radiant plugin, and maybe with the “PHP5 class” available, it wouldn’t take long for those with the skills to knock out a Frog plugin?

 

Need little help with Lavalamp menu

Hi jackie – I know nothing about jQuery (other people around here do, though!), but I see two potential problems:

1. Your code doesn’t seem to be producing the

<li class="back"><div class="left"></div></li>

“pseudo-li” injection that positions the background blob :) correctly. Or am I looking in the wrong place?

2. The lava-lamp expects styling on the <li> element and you have it (in Frog default style) on the <a href="...">. I see you have adjusted your CSS for this, but if you want to try it with the <li> getting the “current” class and then using the lava-lamp default, you could try this code:

 <div id="nav">
    <ul>
      <li<?php echo url_match('/') ? ' class="current"': ''; ?>><a href="<?php echo
URL_PUBLIC; ?>">Home</a></li>
<?php foreach($this->find('/')->children() as $menu): ?>
      <li<?php echo in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null; ?>><?php echo $menu->link($menu->title); ?></li>
<?php endforeach; ?> 
    </ul>
  </div> <!-- end #navigation -->

Which is just the default nav with the “current” class attached to the <li>.

Hope you can make some progress with this. It looks like a funky menu thing! :)

 

Contact

Thanks Zigmat! Can’t believe I/we missed that one, and that it has gone unreported until now!

 

Croatian translation

Nicely done — and committed. Thanks jackie!

 

Multilingual sites

Just to keep the relevant references in a single thread …

… I just ran across Sitepress which looks like a multilingual Wordpress plugin on steroids.

(P.s. Zigmat has a new Gravatar! :P )

 

Magazine/Newspaper publishing

  1. Amalgamating “archives”: can be done using Tyler’s advanced find plugin which is designed for just that task.
  2. Future dating articles: was discussed in an earlier forum thread and it’s a great idea. As yet, however, it remains only a gleam in ricks’s eye. Perhaps a little spur for development here? Anyone want to submit a patch? :)
 

Sub menus not showing when child is watched

Okey, but how do I implement that into the php code?

It is implemented in that code. :)

Or I maybe have the wrong css code?

Yep! I’m no CSS guru, but I think the problem is that “bold” is not a style — it’s a weight (handy reference):

#submenu li a.current { background: none; font-weight: bold; }

Try that and see if it helps.