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

David posts

Feed 1493 posts

changing page parents (drag and drop)

OK. It’s a bit more verbose than Jonte’s succinct instructions, but it will have to do. Hope it will help future users!

 

Extended content in articles

For some reason it works only with the capitilized version. hmm.

The page-part must be entered in your PHP (e.g., $this->content('extended');) exactly as entered. Unfortunately, earlier versions of Frog automatically forced it to upper-case the first letter (even if you entered “extended”, you would see “Extended” on the tab) which made it hard to know what the correct version one! I presume you have created the page-part as “Extended” (initial upper-case “E”), thus the need for this in your call to the part.

I think. :)

 

changing page parents (drag and drop)

This seems to be a badly documented feature…

@jonte – ha! There is just so much wrong with that statement, I hardly know where to begin. ;)

  • SEEMs to be”? or plainly IS!
  • “a BADLY DOCUMENTED feature…”? or a NON-documented feature!
  • “a … FEATURE…”? or is it a quirk!

Well … another doc needing written, anyway!

 

Extended content in articles

Just curious if I need to implement some code to get this going?

Check your Layout to see that it has something that looks like this (code below from default “Normal” Layout):

 <h2><?php echo $this->title(); ?></h2>
  <?php echo $this->content(); ?> 
  <?php if ($this->hasContent('extended')) echo $this->content('extended'); ?> 

It’s that last line that gets you the content from the “extended” tab, of course.

… In South Hemisphere which means you guys are sleeping sometimes :-)

Sleep? What’s that?? ;)

 

2 RSS Feeds in a table?

Ah. Sorry. I thought the issue you were raising was unbalanced columns.

Is the issue the feed on the “left”? And is this your forum? If so, you can read the vBulletin docs on RSS editing and that should do you.

Othwerise, you can limit the number of times you cycle through the foreach loop. Exactly the best way to do that … I’m not sure. :) Something like this, maybe?

$i=1;
while($i<=5) {
foreach ($feed->get_items() as $item) : ?>
		<div class="item">
			<h3><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h3>
			<p><?php echo $item->get_description(); ?></p>
		</div>
<?php $$i++; } ?>
<?php endforeach; ?>

And you change the number in the ($i<=5) bit to limit the number of cyles. I’m sure I got something wrong in there. If someone can chip in with the better/proper/correct way of doing that, I will learn something. :)

 

2 RSS Feeds in a table?

P.S I think you want to get rid of that align="100%" in your <table ...> tag, too! Better would be width="100%". ;)

 

2 RSS Feeds in a table?

Try this for your <td> code:

<td style="width:50%;border:ridge #000;padding:4px;">

and see what happens.

 

Plugin: CodePress Syntax Highlighting

@sc00t3r – just tried this. Very nice! Great to have this working with snippets as well as layouts.

Now … if we could get it working on CSS files, too … :) But actually, since they are editable outside the CMS, it isn’t such a big deal.

Do you know of other options besides Codepress and EditArea? I think that the Codepress author has been developing something else (MDK Editor??). There’s a thing called CodeMirror and the Mozilla Labs Bespin looks fascinating.

Meanwhile, thanks for this Codepress tweak!

 

Form plugin with validation

@defunct – maybe you could join forces with beres. :)

 

Dashboard plugin

Another welcome contribution — thanks, tuupola!

Question: is the styling as seen in your screenshot bundled with the current Dashboard package on Git?
Update: don’t mind me. :/ I’m not sure what I grabbed, but it wasn’t what was currently on offer on Git.

 

CMS Design Resource

@TheJester12 – ditto what ricks said: nice site! I noticed a couple small issues, though: the Kentico page seems to pull in too many links (underneath the “score” box); and too bad the thumbnail of the lovely Trefethen Wines site (which is the Frog example!) isn’t getting pulled in (not at the moment here, anyway!).

Good work!

 

Extended content in articles

Hi gleddy – I’m not precisely sure what you mean — are you asking

a) where do you put this code in your Layout? or
b) how do you create an “extended” page-part to put the content in?

Btw – if you have IRC access you could try jumping in (see on “IRC Channel” in the sidebar). There are a few of us online just now, and it might be easier there than exchanging notes here!

 

Asset manager plugin

@tuupola – I have noticed one bit of odd behaviour with the Assets Manager, but I finally just worked out the “consistency” factor:

  • if you are editing a page that has parts, and the “Body” tab is active-after-save, then the “Assets” drop-down and items goes into the right-hand side-margin as it should;
  • BUT if any other tab is active (e.g. “sidebar”, “extended”), then the assets drop-down and items go to the upper left-hand corner of the window.

Is there any way to make the Manager behave when “Body” is not the active-tab-after-save?

[Btw – I looked on Git to see if there was an “issues list” type thing, but couldn’t spot one!]

Update – here’s a pic:

 

Author listed in RSS feed?

Actually, looking more closely at the analyzer revealed the “creator” code should look like this:

<?php $creator = $item->get_item_tags('http://purl.org/dc/elements/1.1/','creator'); echo $creator[0]['data']; ?>

Glad it was sorted!

 

Page parts - content detection

Thanks for that, cearls.

It got me thinking … The normal technique for getting a “Read more…” link to accompany a teaser is:

<?php if ($article->hasContent('extended')) echo $article->link('Continue Reading&#133;'); ?>

But maybe this is more reliable:

<?php if (strlen($article->content('extended')) > 0) echo $article->link('Continue Reading&#133;'); ?>
 

Author listed in RSS feed?

Hey windrider07 – have you tried this one?

<?php echo $item->get_author()->get_name(); ?>

Might be worth trying. You can also check your feed in a SimplePie-related analyzer but I don’t think that quite spells out the author code for you.

 

Frog will not accept installation info.

They don’t allow .htaccess, and they don’t allow “.tmpl” or “.template” files, either.

You can change the name of install/config.tmpl to install/config.txt, and make an adjustment in the install/index.php file, at line 42, changing:

    $config_tmpl = new Template('config.tmpl');

to:

    $config_tmpl = new Template('config.txt');

and Frog will install (that’s 0.9.4, anyway).

Not the most brilliant free hosting setup, but it can work!

 

Frog will not accept installation info.

your database server is not localhost.

Strangely enough … it is! Just set up Frog on sqweebs.com for a laugh. It could be easier. :/

 

Frog will not accept installation info.

I think ricks means that with a free host he thinks it unlikely that the db server will be “localhost”; I would have thought so too, but it seems this is sqweebs.com’s system.

You certainly will need a database user name and password; it looks like you have to create these when you set up the database, so those values should be known to you!

Did you remember to grant “privileges” to the “user” you created? It looks like sqweebs runs a three-stage db setup.

Also, it seems sqweebs.com doesn’t like filenames ending in “.tmpl”, so there’s an adjustment to be made there, too, if you don’t have a <root>/install/config.tmpl file.

Let us know how it goes!

 

Author listed in RSS feed?

ricks’s question is: does the RSS feed you are trying to grab include the “author” output? If it’s your own forum, presumably you can add it if it isn’t there. (Which was my idea a few posts up which I did in too much of a hurry!)

 

Author listed in RSS feed?

Is it because Frog’s RSS output does not appear to include the “author” out-of-the-box? Here’s what I have:

	<?php foreach ($articles->children(array('limit' => 10, 'order' => 'page.created_on DESC')) as $article): ?>
	<item>
		<title><?php echo $article->title(); ?></title>
		<description><?php if ($article->hasContent('summary')) { echo $article->content('summary'); } else { echo strip_tags($article->content()); } ?></description>
		<pubDate><?php echo $article->date('%a, %d %b %Y %H:%M:%S %z'); ?></pubDate>
		<link><?php echo $article->url(); ?></link>
		<guid><?php echo $article->url(); ?></guid>
	</item>
	<?php endforeach; ?>

Mind you … that’s NOT 0.9.5! (I know!, shock horror, etc.) I know this got updated at some point, and I’m not checking now. :)

 

Multilingual sites

@arnomad – wow! slick. :) Which Frog version is this?

 

dissecting a URL

or you can use $this->parent->slug;

But that won’t work to find the “child-of-home” pages if the current page is more than one level away, will it?

 

Threads do not get marked as read

It’s working fine for me…

But I have noticed that “read/unread” is done “client side” — if I check the forums on a different computer, then the “read/unread” is completely different…. Is it done with cookies?

 

These Forums?

I know that the Vanilla forum has been made into a plugin for one or two CMS’s (I know of CMS Made Simple and Elgg integrations) that would be a good alternative to this forum, since my hunch is that it will be a long time before preparing these forums for wider release gets to the top of Philippe’s “to-do” list!! :P

So … anyone up for a Vanilla-4-Frog plugin?