|
I find it usefull, currently use it on a Wolf CMS driven website.
Though I advise you to return the output, instead of echoing it.
That way one can do the following:
<?php echo (custom_data('name') > 0) ? '' : '<h3>'.custom_data('name').'</h3>'; ?>
|
| |
|
Since your also post on the Wolf forum:
why not release a official Wolf plugin?
I needed to add some vars to the sidebar only:
<?php echo PLUGINS_URI;?>/jm_contact/images/form_edit.png |
| |
|
Also works fine with Wolf 0.6.0.
Two errors in JmContactController.php though, on lines 248 and 264:
public public function form_delete( $form_id ) and public public function form_copy( $form_id )
Obviously both have a “public” to many. |
| |
|
I started using Wolf CMS in januari because its under active development. |
| |
|
That makes me wonder too, I started using Wolf after seeing that Frog’s development stopped.
I do come here from time to time but each time I do I see no changes.
The Frog blog was last updated on October 2009, no updates have appeared since then.
Maybe Philippe is really working hard to improve Frog – I hope so anyway – but if he indeed is then we like to know, we like to read about it!
What is the point of a blog if one does not use it to communicate to its followers :) |
| |
|
It is possible and it works the same for Frog.
And without promoting Wolf CMS here’s how:
http://www.wolfcms.org/forum/post1793.html#p1793 |
| |
|
Try something like this:
<?php
AuthUser::load();
if (AuthUser::isLoggedIn() && AuthUser::hasPermission('administrator')) {
echo 'Hi! You're an administrator!';
}
?>
|
| |
|
Andrew,
could you also provide a zip or 7zip file of the FSearch download?
Would be much appreciated. |
| |
|
This is what I use, edit to your need:
<div id="menu">
<ul>
<li<?php echo url_match('/') ? ' id="current"': null; ?>><a href="<?php echo URL_PUBLIC; ?>" accesskey="1">Home</a></li>
<?php foreach($this->find('/')->children() as $menu): ?>
<?php
// pages to omit from navigation
$omit_array = array('news', 'secret');
if (in_array($menu->slug, $omit_array)) {
continue;
}
?>
<li<?php echo (url_start_with($menu->url)) ? ' id="current"': null; ?>>
<?php
// accesskey's for your page by slugname
if ($menu->slug == 'test') { echo $menu->link($menu->title, (url_start_with($menu->url) ? 'id="current"': null).$options='accesskey="2"'); }
elseif ($menu->slug == 'stories') { echo $menu->link($menu->title, (url_start_with($menu->url) ? 'id="current"': null).$options='accesskey="3"');
} else {
?>
<?php echo $menu->link() . PHP_EOL; } ?></li>
<?php endforeach; ?></ul>
</div>
|
| |
|
Well i’m happy with it.
Works just fine for me.
If you have problems and noone can help you
then give us a call ;) |
| |
|
Well this is what I use with Frog:
http://www.wolfcms.org/forum/topic84.html
I’m happy with it :) |
| |
|
Well the “make searchable” is visible thats a good thing.
Buts that is all is does, no search results are returned.
Its a good thing that i’ve found a alternative search function :) |
| |
|
Its a bogus method for checking anything “C02 neutral” at all.
Have a laugh while it checks your images and its reporting the DPI.
Images contains pixels, the DPI part is pure nonsence and has nothing to do with onscreen images.
The people behind that website are absolutly clueless, they should educate themselfs and learn about the DPI myth!
My advise to all:
ignore this website at best, and if you are tempted to give it a try then you can fully ignore the report. |
| |
|
Well i’m still using Frog but have signed up over at Wolf’s forum to.
To me its important to have a CMS thats very alive and under active development.
I do hope Frog lives on but it seems to need some kind of “reanimator” to do so.
So sure Philippe might be very busy and all, but to leave a message on the 19th of Oct 2009 telling users and followers that Frog is not dead seems a bit out of place considering we are near the 1st of Feb 2010 allready.. |
| |
|
I noticed the same behaviour when applying hotlink/deeplink protection for images via .htaccess perhaps thats also your case. |
| |
|
I use a simple function, change it to your needs:
function PlaatsFoto($path, $alt, $txt)
{
$url = URL_PUBLIC;
list($width, $height, $type, $atrib) = getimagesize($path);
$split = explode('|', $txt);
$alt = str_replace('"', '"', $alt);
$alt = str_replace('‘', '‘', $alt);
$alt = str_replace('’', '’', $alt);
$alt = str_replace('“', '“', $alt);
$alt = str_replace('”', '”', $alt);
$txt = str_replace('"', '"', $txt);
$txt = str_replace('‘', '‘', $txt);
$txt = str_replace('’', '’', $txt);
$txt = str_replace('“', '“', $txt);
$txt = str_replace('”', '”', $txt);
echo "<div class=\"foto\"><p><img class=\"geschaald\" src=\"$url$path\" title=\"$alt\" alt=\"$alt\" $atrib></p>" .
PHP_EOL;
echo "<p>" . PHP_EOL;
foreach ($split as $line) {
echo $line . "<br>" . PHP_EOL;
}
echo "</p>" . PHP_EOL;
echo "</div>" . PHP_EOL;
}
|
| |
|
Hi Andrew,
I can confirm fsearchable_ix and content_fsearchable exist in the mysql database.
I’ve done a reinstall of Frog and your plugin and it does show the search forum.
But there’s no “Make this page searchable” checkbox to be found anywhere on the page edit.
Any new idea’s? |
| |
|
I would not even consider incorporating Frog CMS (or any other CMS) in to a existing site.
But I would incorporate the existing site into Frog CMS.
Most of the time its easier to start from scratch.
As for your gallery you likely find enough material using your favorite search engine.
But I would suggest reading some Frog plugins to see how it is done. |
| |
|
Hi people,
currently I use this navigation menu:
<?php $subPageId = explode('/', $_SERVER['REQUEST_URI']); $level2=$subPageId[1]; $level3=$subPageId[2]; ?>
<ul>
<li<?php echo url_match('/') ? ' id="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)) ? ' id="current"': null; ?>>
<?php echo $menu->link($menu->title); ?>
<?php if ($level3 != '') {$item2 = $level2;} else {$item2 = substr($level2,0,-5);} ?>
<?php if ($level2 != '') : ?>
<?php $page2 = $this->find($item2); ?>
<?php if (strpos($_SERVER['REQUEST_URI'],$menu->slug) == true) : ?>
<ul>
<?php foreach ($page2->children(array()) as $menu2): ?>
<li><?php echo $menu2->link(); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endforeach; ?>
<li><a href="<?php echo URL_PUBLIC; ?>rss.xml" title="KUBES RSS feed">RSS feed</a></li>
</ul>
<?php echo PHP_EOL; ?>
It works allmost perfect!
To bad it does generate two uneeded and invalid <ul></ul> tags when a menu item does not contain a submenu.
How do I get rid of those undeeded tags when there’s just a single menu link? |
| |
|
I finally got the comments plugin working though I can’t get the captcha to work.
But I can post a comment and I can moderate it and such.
Still need to work out how to print a “thank you” message. |
| |
|
Its important to edit the admin.css file located at:
/admin/stylesheets/admin.css
Locate the following class:
.form-area .content {
margin-top: 1em;
margin-bottom: 1em;
}
And replace it with this:
.form-area .content {
margin-top: 1em;
margin-bottom: 1em;
background-color: #FFF;
color: #000;
}
Frog CMS should be updated with that last bit of css, a set default background-color is very important:
without it, it will inheritance the blue background-color of .form-area! |
| |
|
To add CodeMirror to the File Manager plugin add the following to the end of file:
/frog/plugins/file_manager/views/view.php
<script type="text/javascript" charset="utf-8" src="/codemirror/js/codemirror.js"></script>
<script type="text/javascript">
var editor = CodeMirror.fromTextArea("<?php echo 'file_content' ?>", {
path: "/codemirror/js/",
stylesheet: ["/codemirror/css/csscolors.css"],
parserfile: ["parsecss.js"],
});
Also you probally need to edit the admin.css file located at:
/admin/stylesheets/admin.css
Locate the following class:
.form-area .content {
margin-top: 1em;
margin-bottom: 1em;
}
And replace it with this:
.form-area .content {
margin-top: 1em;
margin-bottom: 1em;
background-color: #FFF;
color: #000;
}
Frog CMS should be updated with that last bit of css, a set background color is really important:
it will inheritance the blue background color of .form-area when its not set! |
| |
Oops. I have word admin hardcoded in file funky_cache/index.php. Will fix.
I used your fix and it works fine now.
May I suggest to you to use both ALT and TITLE attributes on your images?
It helps gaining better accessibility for some users.
Also the generated .htaccess needs to be looked at,
it doesn’t take the value of, define(‘ADMIN_DIR’, ‘foo’);
I’ve allready edited funky cache to my needs:
dutch translation
alt and title attributes where needed |
| |
|
Well i’ve come a bit closer to the answer.
I reinstalled the Frog CMS on XAMPP for Windows.
When I install funcky cache the correct way it works fine.
But now for my situation:
i have a different name for my admin folder:
// The directory name of your Frog CMS administration (you will need to change it manually)
define(‘ADMIN_DIR’, ‘beheer’);
funcky cache generated this .htacces:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Administration URL rewriting.
RewriteRule ^beheer(.*)$ beheer/index.php?$1 [L,QSA]
# Rewrite index to check for static.
RewriteCond %{DOCUMENT_ROOT}/cache/index.html -f
RewriteRule ^$ /cache/index.html [L,QSA]
# Rewrite to check for cached page from cached folder.
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f
RewriteRule ^(.*)$ /cache/$1 [L,QSA]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-d
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-l
# Main URL rewriting.
RewriteRule ^(.*)$ index.php?PAGE=$1 [L,QSA]
</IfModule>
When I use that .htaccess file there’s no tab in the admin.
I really would like to use a different foldername.
So where to go from here? |
| |
|
7-Zip is all I use so thats not the problem.
I did download the file again (just to be sure) but all files are present;
unless something is missing in the orginal file as found at
http://www.appelsiini.net/download/frog_funky_cache.tar.gz
Any more idea’s? |
| |