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: Change font size of text displayed with anycontent.php  (Read 3691 times)

0 Members and 1 Guest are viewing this topic.

srobida

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Change font size of text displayed with anycontent.php
« on: June 03, 2009, 05:32:04 am »

I have searched and researched.  Thought it might lie in the style sheet... I simply want to change the font size of the text diplayed with anycontent.php to a larger size.  Can anyone provide the answer?

www.robida.org/coppermine
Steve
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change font size of text displayed with anycontent.php
« Reply #1 on: June 03, 2009, 08:11:59 am »

Yes, that's a matter of applying styles using CSS. I guess the content of anycontent is the code that outputs
Quote
You're not logged in. If you were, you could do so many things you currently can't.
Click login if you already have an account for Robida.org or register to sign up for a one!
Oh, and by the way you'll see a whole lot more pictures too!
Wrap that stuff into a container that you actually can apply a styling to. For details, post the content of anycontent.php

But before you do that, you should upgrade your gallery - you're running cpg1.4.20, while the most recent stable release currently is cpg1.4.24. The vulnerabilities that lead to the releases after your version are actively being exploited, so you should really hurry.
Logged

srobida

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Change font size of text displayed with anycontent.php
« Reply #2 on: June 03, 2009, 10:12:54 pm »

Yes, that's a matter of applying styles using CSS. I guess the content of anycontent is the code that outputsWrap that stuff into a container that you actually can apply a styling to. For details, post the content of anycontent.php

But before you do that, you should upgrade your gallery - you're running cpg1.4.20, while the most recent stable release currently is cpg1.4.24. The vulnerabilities that lead to the releases after your version are actively being exploited, so you should really hurry.

Thank you for your quick reply and suggestion to upgrade, that has been completed.
Following is the content of my anycontent.php



Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2009 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.4.24
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/anycontent.php $
  $Revision: 5969 $
  $Author: gaugau $
  $Date: 2009-05-21 22:03:33 +0200 (Do, 21 Mai 2009) $
**********************************************/

/**
* Coppermine Photo Gallery 1.4.20 anycontent.php
*
* This file gets included in index.php if you set the option on the configuration panel: "content of the main page".
* It can be used to display any content from any program, it is to be edited according to one's tastes.
*
*/

if (USER_ID) {

    
// do nothing - a user is logged in
    // we could print out anything here to say welcome to the logged in user

} else {

    print 
'You\'re not logged in. If you were, you could do so many things you currently can\'t.<br />Click <a href="login.php">login</a> if you already have an account for Robida.org or <a href="register.php">register</a> to sign up for a one!<br />Oh, and by the way you\'ll see a whole lot more pictures too!';
}

?>
« Last Edit: June 04, 2009, 11:25:44 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change font size of text displayed with anycontent.php
« Reply #3 on: June 04, 2009, 11:30:13 am »

Replace
Code: [Select]
print 'You\'re not logged in. If you were, you could do so many things you currently can\'t.<br />Click <a href="login.php">login</a> if you already have an account for Robida.org or <a href="register.php">register</a> to sign up for a one!<br />Oh, and by the way you\'ll see a whole lot more pictures too!';with
Code: [Select]
print '<span class="myClassName">You\'re not logged in. If you were, you could do so many things you currently can\'t.<br />Click <a href="login.php">login</a> if you already have an account for Robida.org or <a href="register.php">register</a> to sign up for a one!<br />Oh, and by the way you\'ll see a whole lot more pictures too!</span>';and then come up with a definition for the class in your custom stylesheet. Alternatively, come up with inline styling like this
Code: [Select]
print '<span style="font-size:1.2em;">You\'re not logged in. If you were, you could do so many things you currently can\'t.<br />Click <a href="login.php">login</a> if you already have an account for Robida.org or <a href="register.php">register</a> to sign up for a one!<br />Oh, and by the way you\'ll see a whole lot more pictures too!</span>';
It's beyond the scope of this board top teach you the very basics of CSS, please google for some beginner tutorials for CSS.
Logged

srobida

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Change font size of text displayed with anycontent.php
« Reply #4 on: June 04, 2009, 02:38:50 pm »

Thank you very much.  That was all the help I needed.  Thank you very much for your time and effort.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.