Change font size of text displayed with anycontent.php Change font size of text displayed with anycontent.php
 

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]

Main Menu

Change font size of text displayed with anycontent.php

Started by srobida, June 03, 2009, 05:32:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

srobida

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

Joachim Müller

Yes, that's a matter of applying styles using CSS. I guess the content of anycontent is the code that outputs
QuoteYou'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.

srobida

#2
Quote from: Joachim Müller 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 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



<?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!';
}

?>

Joachim Müller

Replaceprint '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!';withprint '<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 thisprint '<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.

srobida

Thank you very much.  That was all the help I needed.  Thank you very much for your time and effort.