, 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

General > Feature Requests > Basic Users (Go To Message)
otter
 
September 7, 2007 @ 7:53pm
Hi Charles,

I just wanted to opine here on the links part specifically. If you assign your basic members the permission to do so, they can add links to your links module. They would have access to add links to any category as well as create and delete them so that may or may not be an issue for you, but you can give them permission to do links if you choose.

We will as David said, try to make some modifications to this module in the next version.

otter
User Help > FAQ's: General > How do I change the logo (Go To Message)
DCSun
 
September 7, 2007 @ 12:24am
Charles,

For your logo block, remove what you've got there now (or better yet, hide that block and create a new one), and use this:
Code

print '<a href="'.$BaseURL.'"><img src="'.$TemplateImagesURL.'/logo.png" border="" alt=""></a>';
(PHP-enabled)


For a block with the greeting and date/time, but without the logged in user links below it, here's a breakdown so you can figure out what you want removed:

This portion determines whether or not the user is logged in (prints out the top section if they are logged in, or the second section if they're a guest):
Code

if ($LoggedIn == 'y') {
$NamePrint = $UserDisplayName.'!</b><br><font size="1" color="'.$Colors['BText'].'"><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" color="'.$Colors['BText'].'">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>';
}


So I'm guessing you want that section changed to:
Code

if ($LoggedIn == 'y') {
$NamePrint = $UserDisplayName.'!</b><br>';
}
else {
$NamePrint = 'Guest!</b><br><font face="'.$FontFace.'" size="1" color="'.$Colors['BText'].'">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>';
}


As for the text color, that's simply this part
Code

color="'.$Colors['BText'].'"
, which you could change to just $Colors['Text'] to get the same color as the body text, or remove everything between the outer double quotes and just enter an HTML color, like color="#000000".


You also have a width=1000% in your code which should be 100%.

David
User Help > FAQ's: General > How do I change the logo (Go To Message)
yorkcoparamedic
 
More questionsSeptember 6, 2007 @ 11:46pm
Thank you very much for your quick responces! You guys do a great job!!

I got the image figured out. Now about the greating with day/date/year and the links below it.


Code


if ($LoggedIn == 'y') {
$NamePrint = $UserDisplayName.'!</b><br><font size="1" color="'.$Colors['BText'].'"><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" color="'.$Colors['BText'].'">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="1000%" 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>';


I created a new top level centered block and I would like to move this from the top area to clear up the background I am using.
I transplanted your php to the custom area and it worked just fine with a minor moderation to the table (see above code).
Now how do I change the text color from white to black and get rid of the text
control panel | edit profile | logout
I have been puring through my php books and tried a couple of diferent things but nothing worked. I would like to keep the user greeting, I really like that feature.
You can view my site at
http://www.chesapeakbbg.com

Thanks for your time,
Charles Spangler
General > Feature Requests > Basic Users (Go To Message)
DCSun
 
September 6, 2007 @ 10:46am
Thanks for the feedback. We'll see what we can do about getting those features added to the next version.

David
General > Feature Requests > Basic Users (Go To Message)
yorkcoparamedic
 
Basic UsersSeptember 6, 2007 @ 7:30am
There should be a way to provide basic users a way to add/create links on the links page. Also in the photo gallery basic users should be able to create a gallery and have all rights to just the one that they created and no others. As of now you can give permissions to basic members but they can alter all galleries.
User Help > FAQ's: General > How do I change the logo (Go To Message)
DCSun
 
September 5, 2007 @ 11:36pm
Yes, you have a few easy options to add your logo in and keep the rest of the block. The first would be to upload your logo to the folder of the template you're using, named "logo.gif". The other would be to change the entire SRC portion of the image tag to match the URL of your logo.

David
User Help > FAQ's: General > How do I change the logo (Go To Message)
yorkcoparamedic
 
logo imageSeptember 5, 2007 @ 11:29pm

Quote (otter)




Code

if ($LoggedIn == 'y') {
$NamePrint = $UserDisplayName.'!</b><br><font size="1" color="'.$Colors['BText'].'"><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" color="'.$Colors['BText'].'">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="'.$TemplateImagesURL.'/logo.gif" 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>';


Don't forget to check the Process PHP Code? box and then save it and you should be good to go.

Kel


Can I just change the following code to the src of my image so I can keep the welcome message with the data and time.

Code


<td width="50%"><a href="'.$IndexURL.'"><img src="'.$TemplateImagesURL.'/logo.gif" border="" alt=""></a></td>
User Help > General Support Requests > Install Problem (Go To Message)
DCSun
 
September 5, 2007 @ 11:45am
Hi Charles,

Sorry to hear you're having problems.

There are a couple separate issues there. The CHMOD warning is PHP not being able to write to a file or folder. My guess would be that's the "images" folder, which probably already existed and was owned by a different user, so it couldn't change the permissions on it. Probably not a big deal if you don't encounter any other problems when you start using your site.

As for the MySQL error, we've seen that a few times lately, and always on sites running MySQL 4.0.27. We presume there might be an issue with that version or versions in that range, which prevent it from working properly with the "default charset" portion of the queries. You can find additional information on a related thread here.

As far as getting it fixed and getting FlexCMS installed on your site, you can either send us your FTP and database information, along with the settings you entered into the installation package (site name, email, etc) to and we'll take care of it for you, or we can provide you with a modified installation package which you can try.


David
User Help > General Support Requests > Install Problem (Go To Message)
yorkcoparamedic
 
Install problemSeptember 5, 2007 @ 10:53am
I just installed the files as stated in instructions. ran the instaler and got the following error.


Database Successfully Connected! Running MySQL Version 4.0.16



Directories Created:
Warning: chmod(): Operation not permitted in /home/chesapea/public_html/install.php on line 534
23

Files Created: 457

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 'ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=225' at li

What does this mean and how do I fix it? when I visit my sites main page it displays this error on the page.

Table 'chesapea_cms.core-Settings' doesn't exist

Please help,
Charles
User Help > FAQ's: Templates > Photo Top NEW! template can't download it (Go To Message)
otter
 
September 1, 2007 @ 4:39pm
The link for our template photo top family download has been fixed.

Enjoy!

otter and out...

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.09192 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS