, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum


Recent Messages

Previous Page Next Page

User Help > General Support Requests > Change logo image (Go To Message)
welby
 
August 21, 2009 @ 8:26pm
Thanks David.

The Administration Label was empty, so I must of missed it. Thank you very much!

welby
User Help > General Support Requests > Change logo image (Go To Message)
DCSun
 
August 21, 2009 @ 7:59pm
Welby,

You should have a block with the following code in it:

Code

if ($LoggedIn == 'y') {
$NamePrint = $UserDisplayName.'!</b><br><font size="1"><A HREF="'.$MainURL.'/options.html" class="BlockColors"><font face="'.$FontFace.'" size="1">Control Panel</font></A> | <A HREF="'.$MainURL.'/profile-edit.html" class="BlockColors"><font face="'.$FontFace.'" size="1">Edit Profile</font></A> | <A HREF="'.$MainURL.'/logout.html" class="BlockColors"><font face="'.$FontFace.'" size="1">Logout</font></A><br></font>';
}
else {
$NamePrint = 'Guest!</b><br><font face="'.$FontFace.'" size="1">Already a Member? <A HREF="'.$MainURL.'/login.html" class="BlockColors"><font face="'.$FontFace.'" size="1">Login</font></A> or <a href="'.$MainURL.'/register.html" class="BlockColors">Register</a>.<br></font>';
}

print '<div align="center">
<center>
<table border="0" cellspacing="1" width="100%">
<tr>
<td width="50%"><a href="'.$IndexURL.'"><img src="'.$Settings['SPL'].'" border="" alt=""></a></td>
<td width="50%" valign="middle" align="center"><font size="2" color="'.$Colors['BText'].'">
<script language="JavaScript"><!--
var Today = new Date();
var Days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var Months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var Year = Today.getYear();
if (Year < 1000) { Year += 1900; }
var Day = Today.getDate();
var DateEnding = "th";
if (Day == 1 || Day == 21 || Day == 31) { DateEnding = "st"; }
else if (Day == 2 || Day == 22) { DateEnding = "nd"; }
else if (Day == 3 || Day == 23) { DateEnding = "rd"; }
document.write( Days[Today.getDay()] + ", " + Months[Today.getMonth()] + " " + Day + DateEnding + ", " + Year ); //--></script><noscript></noscript><br><br>
<b><script language="JavaScript"><!--
var Greeting = "Hello";
var Today = new Date();
var CurrentHour = Today.getHours();
if (CurrentHour < 12) { Greeting = "Good Morning"; }
if (CurrentHour >= 12 && CurrentHour < 17) { Greeting = "Good Afternoon"; } if (CurrentHour >= 17) { Greeting = "Good Evening"; } document.write(Greeting); //--></script><noscript>Hello</noscript>, '.$NamePrint.'

</td>
</tr>
</table>
</center>
</div>';


This part adds the FlexCMS logo:

Code

<img src="'.$Settings['SPL'].'" border="" alt="">


You can adjust the SRC portion of that image tag to point to your desired logo image, or just remove that block and create your own.


David
User Help > General Support Requests > Change logo image (Go To Message)
welby
 
Changing FLex Logo from HeaderAugust 21, 2009 @ 7:34pm
David.

Can you please tell which file and where its located relative to changing the flex logo so that I can point it to my own images directory. I followed the thread from 2004 and it referenced a "logo block" which I don't see in FlexCMS 3.0.

Thank you.

welby

http://logos.flexcms.com/images/flexcms_logo.png
User Help > General Support Requests > Installation trouble Version 3 on localhost (Go To Message)
DCSun
 
July 12, 2009 @ 3:25pm
Hi bartvanbuggenhout,

First off, it should be noted that installing FlexCMS on a local machine is not supported. FlexCMS was designed for use on a live web server.

That said, it looks like your MySQL server is operating in strict mode. Check the documentation for whatever you used to install it to disable strict mode. It should be something along the lines of commenting out a line in your mysql.ini configuration file.


David
User Help > General Support Requests > Installation trouble Version 3 on localhost (Go To Message)
bartvanbuggenhout
 
Installation trouble Version 3 on localhostJuly 12, 2009 @ 3:03pm
I have some trouble with the installation. After the install I see the following text on the screen :

FlexCMS v3.0
March 31, 2009

Database Successfully Connected! Running MySQL Version 5.0.67-community-nt

Directories Created: 65

Files Created: 1131

Field 'DisplayName' doesn't have a default value

When I go to the site it tells :

Field 'PreviousLocation' doesn't have a default value

Does anyone know what the problem can be?

I'm using the following soft on a Vista machine :

PHP 5
Apache 2.2
User Help > General Support Requests > MySQL user privileges question (Go To Message)
DCSun
 
July 8, 2009 @ 9:04pm
Hi Welby,

First off, creating a separate MySQL user for FlexCMS is a great thing to do for security reasons. If that account gets compromised for whatever reason, they'll only have access to the database instead of also having access to your FTP, mail, hosting control panel, or whatever else was all connected together on your main account. It also allows you to pick a really cryptic password, since you'll never have to type it anywhere, it's just stored in the settings.php file.

As for your question about which permissions you need to grant, you probably could just go with them all and be okay, that's generally what I do. Personally I think you're much better off picking a secure password and limiting it to just MySQL. Technically, FlexCMS currently doesn't use temporary tables, references, or locking, so those can be removed if you like, though they're not hurting anything by being on there, you can't really do any damage with them. You can take off create, alter, and drop if you don't plan to use the FlexCMS backup system to restore from (and you could always add those if you needed to restore a site). Select, insert, update, and delete are definitely all used in the day-to-day operations of your site.


David
User Help > General Support Requests > MySQL user privileges question (Go To Message)
welby
 
MySQL user privileges questionJuly 8, 2009 @ 8:51pm
Database question for MySQL.

Before adding the user to the database, what permissions should I select for the user?

Should I select "ALL privileges"? or pick and choose from select, insert, update, delete, index, create temporary tables, create, alter, drop, lock tables, references.

Would someone kindly advise the best way to handle privileges prior to adding user to database in cpanel.

Thank you,

welby

User Help > General Support Requests > Problem with the Country selection changes. (Go To Message)
Rory
 
EmailJune 24, 2009 @ 7:39pm
Hi David
Thanks for the quick reply, I have emailed you what I have and what I'd like Flex to do for me. If you can help it would be much appreciated.
Many thanks
Rory
User Help > General Support Requests > Problem with the Country selection changes. (Go To Message)
DCSun
 
June 24, 2009 @ 5:34pm
Rory,

It's hard to say what might be causing the MySQL issue with the Members List, I wasn't able to duplicate it here. I'd have to see more of what's going on to be of any help there. If you can try to figure out what you did to fix your problem before that would be a good place to start.

The code that generates the calendar block can be found in index.php from lines 3168 through 3367. The output would all be stored in $FinalContents so you could print that at whatever point you wanted it to appear.

Regarding adding your code somewhere, I presume you're looking for that to appear every time a FlexCMS page is created. There would be two ways to accomplish that -- either in the index.php file or the template.php file for the template you're using. You said 'no luck' but didn't really elaborate on the problem. My best guess from what I see there is a database conflict that's causing some MySQL issues, adding your code to the top of the index.php file and then printing the output to the page later might solve that.


David
User Help > General Support Requests > Problem with the Country selection changes. (Go To Message)
Rory
 
New Prob!June 24, 2009 @ 7:59am
Sorted the Country problem out. But have a simular problem with View Members List.
When I click on a letter to filter the members it comes up with

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20,20' at line 1

but only if there is no-one starting with that letter, otherwise it works ok.
Again any ideas? Cant remember what we did to sort the Country one out.

Also I want to put some php into the Header, so it matches the outside header you kindly gave me the script for (they look identical), I've tried all ways to add it into your template but with no luck. Here is what I want to add

<?
session_start();

include('admin/user.php');
$connection = mysql_connect("$host","$user","$password")
or die(mysql_error());
mysql_select_db("$txt_db_name",$connection)
or die(mysql_error());

if ($lgeidsel == "") {
$lgetosel = "1";
} else {
$lgetosel = $_SESSION['lgeidsel'];
}
$query = "SELECT * FROM Leagues WHERE l_id = '$lgetosel' LIMIT 1";
$result = mysql_query($query) or die ("Failed to read rows<br>Debug info: $query");
$num_res = mysql_num_rows($result);

while ($myrow = mysql_fetch_array($result)){
$l_id = $myrow['Id'];
$name = $myrow['name'];

?>
and
<?php
if ($lgetosel == $league_id) {
print "<font size=\"2\"><b>{$name}</b></font>";
} else {
print "";
}
}
?>
Ive tried with and without the connect to db bit.

Re the left side index can you supply me with the code that makes up the small calendar, so it auto changes days and months, so I can use it in my left index outside flex, so clicking on the days still goes to the calendar within flex.
Cheers
Rory

Previous Page Next Page





Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.11851 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS