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: Multiple anycontent's  (Read 3703 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Multiple anycontent's
« on: October 17, 2007, 07:15:01 pm »

Multiple anycontent's

CPG 1.4x

This MOD allows you to add more than one anycontent to your gallery. Its very simple and very usefull. Some ideas of what to use this for could be: customizing the position of ads on your gallery or just simply adding more content.

How to install and usage -

  • Backup your original index.php as this will overwrite your current one.
  • Upload the content of one of the attached archives to your gallery root folder. Use anycontent1.zip for 1 extra anycontent box, use anycontent2.zip for 2 extra anycontent boxes and so on.
  • Go to config => Album list view => then add how many anycontent's you want. For example: breadcrumb/catlist/alblist/lastup,2/anycontent/anycontent1/anycontent2/. This will give a total of 3 anycontent's including the 2 extra ones.
  • To edit the content of these sections simply edit the files: anycontent1.php,anycontent2.php etc.
Attachments

  • anycontent1.zip - 1 extra anycontent.
  • anycontent2.zip - 2 extra anycontent.
  • anycontent3.zip - 3 extra anycontent.


Enclosed in the zip's is the original anycontent.php file. This came with the main download of CPG, you will need to edit it to apply your own content.

Notes

  • I am currently working on a pluginized version of this, untill then, here is the manual version.



Hope this proves useful,

just_some_guy

if a Dev Team Member could move this to the Mods section that would be great, thanks.
« Last Edit: October 18, 2007, 08:13:05 am by GauGau »
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Multiple anycontent's
« Reply #1 on: October 17, 2007, 07:22:20 pm »

it's better you give detailed instructions on how to do the mod. Otherwise upgrading becomes impossible without losing all mods...

open index.php, find
Code: [Select]
xxxbelow add
Code: [Select]
xxxx

find
Code: [Select]
yyyreplace with
Code: [Select]
yyyy
anycontent2 is a well known, already existing mod... just search for anycontent2 or anycontent2.php
however if you put it in shape again for 1.4.x ... yummy  ;)

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Multiple anycontent's
« Reply #2 on: October 17, 2007, 07:24:02 pm »

Sorry in the attached file in the above post called anycontent1.zip the file inside intitled "anycontent.php" should be changed to "anycontent1.php"

attached the corrected archive:
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Multiple anycontent's
« Reply #3 on: October 17, 2007, 07:47:13 pm »

it's better you give detailed instructions on how to do the mod. Otherwise upgrading becomes impossible without losing all mods...

open index.php, find
Code: [Select]
xxxbelow add
Code: [Select]
xxxx

find
Code: [Select]
yyyreplace with
Code: [Select]
yyyy
anycontent2 is a well known, already existing mod... just search for anycontent2 or anycontent2.php
however if you put it in shape again for 1.4.x ... yummy  ;)

sorry stramm, i didnt see your post. Ok i will make it that way and post it as a fresh topic.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Multiple anycontent's
« Reply #4 on: October 18, 2007, 08:14:53 am »

The cpg1.3.x thread that explains the mod structure that Nibbler has refered to: http://forum.coppermine-gallery.net/index.php?topic=10205.0
Marking thread as "closed".
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 14 queries.