Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: front page content  (Read 5525 times)

0 Members and 1 Guest are viewing this topic.

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
front page content
« on: September 23, 2013, 06:55:00 am »

Hi Friends,
In my search of this board for "front page" I didn't find any topics since 2006.  So this shouldn't be a duplicate of any existing....although it seems surprising to me.

Anyway, this is a request for another option for Config page > Album List View > The content of the main page.  I'd like to be able to choose which specific images I want to show on the front page.

I have read about the anycontent.php feature in the manual, which seems designed to show pretty much anything on the front page.  But I don't know how to write php.  If it could be html, I could write html to show specific images.  But php is beyond my reach at the moment (and probably ever).

But, because I don't know much about php, perhaps there is a relatively easy way to insert html into it?  I don't know.  So if it turns out that there's a fairly simple way to do that, you'll probably want to move this topic to a support board.  If so, I have the current version (1.5...)

Thanks for listening  :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: front page content
« Reply #1 on: September 28, 2013, 12:56:14 pm »

Just add your HTML code to the anycontent.php file. Alternatively, you could also use the MiniCMS plugin.


Moving from feature requests to themes support board.
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: front page content
« Reply #2 on: October 12, 2013, 05:33:46 pm »

Thanks Andre.

Both of those will require some study, for me to be able to use them.  So I'll mark this solved now.  If I run into specific questions while I try to use one or the other, I'll post in a new topic with the specific question.

Thanks again  :)
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: front page content
« Reply #3 on: October 15, 2013, 08:35:25 pm »

Ok, I've looked at the anycontent.php feature, and I'm not sure if I'll be able to use it.  It looks like one needs to know php to be able to use it.  And the MiniCMS plugin is for 1.4x, while I'm using 1.5x.

So (aside from my current need to customize my gallery's front page) I'd like to clarify my new feature request for the front page content.  The idea would be to have a config section for the front page, which admins who don't know php (or who don't want write code and/or edit it periodically) would be able to use.  It would have controls that would allow the admin to choose 1 or more specific uploaded images to be shown on the front page.  Maybe it would be called Featured Images, or something like that.  The admin could change which images are featured, in whatever time frame she chooses.  But the images would always be showing on the front page for whatever entire time period the admin chooses (not change every time the page is refreshed/reloaded).

Or (and this is a separate but related idea) maybe it could have controls for how long the specific image(s) should stay in the Featured section.  Maybe it could choose random images, which would stay on the front page for a specific amount of time.  For example, each month (or day or week) it would choose 1 or more images (however many the admin chooses) at random.  They would be displayed for the entire time period, not change every time the page is refreshed/reloaded.

And/Or maybe a Featured Artist section.  Although I do realize that CPG is made more for photos, than for graphic images.  So maybe Featured User would be better.  Then it would choose a random user, at whatever certain time intervals the admin chooses and display 1 or more images from that person's gallery, for whatever amount of time the admin chooses.  Or Featured Album?  Since I'm still rather new at this, I'm not sure if User or Album would be more appropriate.  Or maybe the admin could choose that as well?

I'll be starting a new topic shortly, with some questions about the anycontent feature.  So this could be moved back to the feature request board, if you all feel it's a worthy request  :)

Thanks for listening  :)
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4826
    • Windsurf.me
Re: front page content
« Reply #4 on: October 15, 2013, 08:54:08 pm »

Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: front page content
« Reply #5 on: October 17, 2013, 04:12:08 pm »

You don't need to know PHP to use anycontent.php:
An anycontent.php file with just HTML like
Code: [Select]
<h1>foo</h1><p>bar</p>or even plain text like
Code: [Select]
foo barworks without an issue.
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: front page content
« Reply #6 on: October 22, 2013, 01:25:51 am »

Ok, I've got something working for my gallery using anycontent.php.  So my problem is solved.  But I still think it would be nice to have my ideas available from Config, for a potential new feature.  But it is just an idea, that's all.

Thank you very much  :)
Logged

André Müller

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 26
Re: front page content
« Reply #7 on: October 22, 2013, 08:33:00 am »

Dear Brynn,

as suggested before, miniCMS for CPG 1.5 is exactly what you need. Check out my front page's header (http://www.fotowald.de/), or the header of any section (http://www.fotowald.de/index-18.html) or album (http://www.fotowald.de/thumbnails-9.html).
Adding content in miniCMS is WYSIWYG with the additional ability to tweak the source (which is totally html). I chose to show the miniCMS block above everything, but you can also do so below (by changing the breadcrumb pattern on the settings page).

And just another random thought, I think I read something about a hot pictures or "for sale" meta album recently, maybe you want to check these out as well?

Cheers,
André
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: front page content
« Reply #8 on: October 23, 2013, 10:58:10 pm »

Ok, thanks Andre Muller.  I will install and have a look  :)

Quote
And just another random thought, I think I read something about a hot pictures or "for sale" meta album recently, maybe you want to check these out as well?

Where do I look?  Plug-ins board?
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4826
    • Windsurf.me
Re: front page content
« Reply #9 on: October 23, 2013, 11:09:34 pm »

I linked to it a couple of posts back... ::)

All the plugins are in the Sub-Board of the plugins board, called strangely enough the "CPG 1.5 Plugin Contributions" - http://forum.coppermine-gallery.net/index.php/board,91.0.html
Logged
It is a mistake to think you can solve any major problems just with potatoes.

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 198
    • Inkscape Commmunity
Re: front page content
« Reply #10 on: October 24, 2013, 03:55:23 am »

Holy crap, look at all that stuff!!  Yeah, the board name could be more clear.  I assumed that was where people who are writing new plugins (for themselves only) go for help in writing them.  ::)

Anyway, thanks.  I'll look for it there.

all best  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 20 queries.