Featured Content Manager V 1.0 RC
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Featured Content Manager V 1.0 RC
Posted: Sat Jul 18, 2009 11:58 pm
Reply with quote

/************************************************************************
Featured Content Manager for CPG Dragonfly™ CMS
********************************************
* This program is free software. You can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License. *
$Revision: RC 1.0 $
$Author: Green Day 2K greenday2k @ gmail.com $
$Date: 2009/07/06 $
************************************************************************/

Description:

Featured Content Slider makes a slideshow out of arbitrary content on your page,
Each content (slide) is defined simply inline on the page as regular HTML
so users can manually select a content to see or have them rotated automatically.


This Add-On (not a Module, Not a Block) for Dragonfly lets you insert anywhere on you site
a Featured Content Slider Managed from the Dragonfly's Admin Interface.

It Lets you use 3 different types of "slides":

Blocks: Include Block files from your /blocks Directory
HTML: You write/paste your HTML/bbcode.
Images: Upload a nice image, add a Title, Description and a Link.


With the Admin Interface interface You can

Create/Edit/Delete/Sort/Active/Desactive Slides.

Preview the Slides.

Set the type of Numeration for your FCS Slider Page numbers or "Labels"

Choose the display mode and its duration- "Manual" or "auto" For the later,
the slider automatically rotates the contents until the user explicitly
selects a content to view (clicks anywhere inside Featured Content slider).

Disable/Enable the fade effect and its duration.

Hide/Show the Next/Prev Buttons.

Specify whether the contents should be revealed "click" or "mouseover" over the pagination links.

Taken From: www.dynamicdrive.com/d...slider.htm

Requirements:

Server Side
Dragonfly CMS 9.2.1
PHP 5.x / GD Lib
MySQL 5.x

Client side:
Javascript Enabled. And a Modern Browser


Installation:

1. Upload everything in the html folder to your web space.

2. Run Installer From admin=>Modules


Credits:

class.upload.php
Copyright (c) Colin Verot 2003-2009. All rights reserved.
Version 0.27
Last modified 14/05/2009
Email: colin @ verot.net
Web www.verot.net

Featured Content Slider
Version 2.4
www.dynamicdrive.com/d...slider.htm

Green Day 2K

/************************************************************************

Usage:

To use it you need to include this file BEFORE the header.php
For example:
PHP:

require_once('modules/Featured_Content/featured_content.inc');
require_once(
'header.php');

and then use the template ($cpgtpl) to assign the vars and show the slider:

PHP:

$cpgtpl
->set_handle('fc_body', 'featured_content.html');
$cpgtpl->display('fc_body');

Or just copy and paste the content from the temaplate 'featured_content.html' and paste it exactly where you want on another template.

Notes
This is a RC Version. Tested and almost ready to be an Official Version.

There are lots of "Sliders" more sophisticated and using some popular JS framework as jquery. I've chosen this because is simple and easy to use and does the job. And could look great working on the CSS. But if someone suggest me a better a Slider, i'll do the conversion =)

Uploads and images are handled by the class.upload.php
which seems to be secure and compatible with dragon fly.

Since it's a RC, all files are on the Featured_Content module directory except the template files and the language file.

Limitations:
The size of the "Slider" is limited to 350x250. (images will be resized to 350x250).

Comments/Bugs/Questions/Testers Are welcomed.

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Sun Jul 19, 2009 8:44 am
Reply with quote

WOW! I was just asked yesterday - literally 10 minutes before you posted this - for a seamless way to display Powerpoint slides! Excellent, esp. the mouseover display!

I'm downloading and will test it just as soon as I can ...

Thank you!

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Sun Jul 19, 2009 3:12 pm
Reply with quote

Heres a live preview

www.greenday2k.net/GreenDay2K.html

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
designSumpf
Nice poster


Joined: Jan 01, 2005
Posts: 86
Location: Germany/Franconia

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Sun Jul 19, 2009 6:34 pm
Reply with quote

Great!
"Simple" and usefull
Good idea, good work

_________________
If I'm not observed, it's possible due to quantum-mechanical effects, that I either stop to exist or change to an indefinite condition.

designSumpf's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
LINUX/Apache /MySQL 5.0.32/PHP 5.2.0-8+etch11/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Wed Jul 22, 2009 8:06 am
Reply with quote

Firstly it works! Absolutely as described.

I have a few questions, but I'm only just digging into the code, so I may figure out my own answers.

A couple of small issues on the admin side:

The confirmation screen for delete does not display correctly, gives a DF display error, as it is just an echo statement. Needs a template output?

When creating a new slide from Image, if you fail to enter a (mandatory) label or description, you get an error message, and and option to Go Back. Go Back gives you an edit panel of just the missing fields (label and/or description), which is fine, but when you submit the record is saved with only the title and text! Probably easier to redisplay the entire entry on Go Back?

On the user side:

If the labels are set to display numbers, 1, 2, 3, etc, without any user specified link, scrolling the mouse over them changes the displayed slide as expected. However clicking on them sends you to {your site}/#1, {your domain}/#2, etc. Perhaps disable, or use a getlink() style address back to current page?

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Tue Jul 28, 2009 3:38 pm
Reply with quote

layingback thanks for your Reply:

Code:
The confirmation screen for delete does not display correctly, gives a DF display error, as it is just an echo statement. Needs a template output?

No is doesn't need a template system. Is simple, is just a "echo" wich is "used" after calling header.php so there's no problem. IMO ;D

Code:
When creating a new slide from Image, if you fail to enter a (mandatory) label or description, you get an error message, and and option to Go Back. Go Back gives you an edit panel of just the missing fields (label and/or description), which is fine, but when you submit the record is saved with only the title and text! Probably easier to redisplay the entire entry on Go Back?

Thanks that's right, clicking the " go back" delete all fields =/ . I've though it was a history -1 button.
Nice Idea, I'll work on it.

Seems to be a BUG of the JavaScript. I'll try something.

designSumpf: Thanks.

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
radiogetswild
500+ Posts Club


Joined: Apr 22, 2004
Posts: 685
Location: UK

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Wed Jul 29, 2009 9:39 pm
Reply with quote

Hi

I have done my best to install its a great module

I have a prblem trying to get it into html page...

please go to radiogetswild.com/index.php

slides are not showing and i see coding

{javascript.JS_CONFIG}

just removed the coding so now only slides dont show

can you please let me know what i am missing or doing wrong

cheers Tim

ps i have loads of ideas for enhancements on this if you would like them


radiogetswild's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL Version 5.0.45 PHP Version 5.2.6 apache is 1.3.41 Dragonfly 9.2.1 Windows Vista
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Wed Jul 29, 2009 11:11 pm
Reply with quote

hi.

Well if you see:
{javascript.JS_CONFIG}


Also, i've visited your site and now i see:
{html.FC_BLOCK} displayed.


That Means that configuration file is not being passed to the template.

Have you pasted this code to your Module?

Code:
$cpgtpl->set_handle('fc_body', 'featured_content.html');
$cpgtpl->display('fc_body');

Well if you copy pasted the template code to your Module Temaplate

Then the code should look like:

Code:
$cpgtpl->set_filenames(array('body' => 'youmodule/yourtemplate.html'));
	$cpgtpl->display('body');

If you're using your own template, Then there's no need for an extra code.

Can you activate The Module?
radiogetswild.com/Feat...ntent.html
just to test it and see if it works ;D

Ideas, and suggestiosn are welcomed.

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Wed Jul 29, 2009 11:35 pm
Reply with quote

Doble Post:
Update, i've checked your site, and seems that the template is being filled.

1. Are you including the featured_content.inc file?

Code:
require_once('modules/Featured_Content/featured_content.inc');

Also the code for the Javascript is Mandatory:


Code:
<!-- BEGIN javascript -->
{javascript.JS_CONFIG}
<!-- END javascript -->

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
radiogetswild
500+ Posts Club


Joined: Apr 22, 2004
Posts: 685
Location: UK

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Wed Jul 29, 2009 11:50 pm
Reply with quote

Hi there

my applogies i forgot i had to take out all the blocks after installing shesh (blonde moment)

Ok the slider is working in the module itself now

but can not get the slidesto show in the html section on the main page

cheers Tim

ps I have on the main page a blank module called radio and have a block with html for the main page display,,, and its the block i am trying to place the slider...


radiogetswild's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL Version 5.0.45 PHP Version 5.2.6 apache is 1.3.41 Dragonfly 9.2.1 Windows Vista
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
radiogetswild
500+ Posts Club


Joined: Apr 22, 2004
Posts: 685
Location: UK

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Thu Jul 30, 2009 1:07 am
Reply with quote

ok main module is set for all to see working radiogetswild.com/Feat...ntent.html

cheers tim


radiogetswild's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL Version 5.0.45 PHP Version 5.2.6 apache is 1.3.41 Dragonfly 9.2.1 Windows Vista
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
macavity
Heavy poster


Joined: Jun 23, 2004
Posts: 179

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Mon Aug 24, 2009 6:02 pm
Reply with quote

Hi greenday2k,

I'm not going to be able to install and test this for a little while so could I in the meantime just ask about the page itself at www.greenday2k.net/GreenDay2K.html - does this code create the whole page (e.g. all of the sections such as Noticias de Green Day, Destacado en Green Day 2K, Foros etc.) or is it only being used create the Destacado en Green Day 2K slideshow in the top right? Both look great!

macavity

_________________
Note: WWW Private Listing - Staff Only

macavity's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/Apache 2.0/MySQL 5.0.77/PHP 5.2.10/Dragonfly 9.2.1
Back to top
View user's profile
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Mon Aug 24, 2009 8:43 pm
Reply with quote

macavity, just the "contenido destacado" section in the top right. and thanks.
Im about to finish a new version, wich is a Block Version.
Easier to use.

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
macavity
Heavy poster


Joined: Jun 23, 2004
Posts: 179

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Mon Aug 24, 2009 9:59 pm
Reply with quote

Thanks for the quick reply. Is the structure of the whole page based on an existing module? I haven't seen anything quite like it before. The middle sections - Foros and Opinión - are also interesting.
_________________
Note: WWW Private Listing - Staff Only

macavity's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD/Apache 2.0/MySQL 5.0.77/PHP 5.2.10/Dragonfly 9.2.1
Back to top
View user's profile
radiogetswild
500+ Posts Club


Joined: Apr 22, 2004
Posts: 685
Location: UK

PostPost subject: Re: Featured Content Manager V 1.0 RC
Posted: Mon Aug 24, 2009 10:22 pm
Reply with quote

I have an idea

What about creating several different blocks and then fit those blocks into the CenterBlocks and CenterBlocks 2 so that it give a multi center block look

cheers tim

ps if you dont have those blocks i can send em over


radiogetswild's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL Version 5.0.45 PHP Version 5.2.6 apache is 1.3.41 Dragonfly 9.2.1 Windows Vista
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Go to page 1, 2  Next
Page 1 of 2


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 2.2948 seconds with 19 DB Queries in 0.0702 seconds
Memory Usage: 3.06 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy