Author |
Message |
vaudevillian
Worker


Joined: Jan 18, 2008
Posts: 143
|
Posted:
Thu Apr 24, 2008 11:54 am |
|
Before I got testing out things. I was wondering how to make right blocks permanent.
Im guessing this is why the right blocks are called:
Code:
if (defined('INDEX_FILE')) {
$tmpl_file = 'themes/fisubice/center_right.html';
$thefile = implode('', file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = '$r_file="'."$thefile".'";';
eval($thefile);
print $r_file;
blocks('right');
}
|
if I do this, option one:
Code: if (defined('_FILE')) {
$tmpl_file = 'themes/fisubice/center_right.html';
$thefile = implode('', file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = '$r_file="'."$thefile".'";';
eval($thefile);
print $r_file;
blocks('right');
}
|
or this option, two:
Code:
$tmpl_file = 'themes/fisubice/center_right.html';
$thefile = implode('', file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = '$r_file="'."$thefile".'";';
eval($thefile);
print $r_file;
blocks('right');
|
Which option will always make the right blocks permanent? |
Last edited by vaudevillian on Tue May 20, 2008 12:24 pm; edited 1 time in total |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Apr 24, 2008 2:05 pm |
|
As you have demonstrated, the right blocks are displayed or not depending on the value of INDEX_FILE=1 or in older version $index=1. Each module sets (or not) the value. So, either set all values equal to one in all modules or remove the wrapper from that logic. |
|
|
|
 |
vaudevillian

|
Posted:
Fri Apr 25, 2008 10:42 am |
|
|
|
 |
Raven

|
Posted:
Fri Apr 25, 2008 11:04 am |
|
|
|
 |
vaudevillian

|
Posted:
Fri Apr 25, 2008 9:10 pm |
|
Some time next week, I should have a theme ready for you if you want it. . It is a high graphic theme. Lot of hours going into it. Also the reason why I was asking this question is so users can chose if they want right blocks or not. |
|
|
|
 |
Raven

|
Posted:
Fri Apr 25, 2008 10:36 pm |
|
Thanks so much! Can't wait to see it  |
|
|
|
 |
vaudevillian

|
Posted:
Thu May 01, 2008 2:34 pm |
|
The header is taking a while. but the main content is finished. hopfuly I'll have a preview up this weekend. I dont think I will finish it before the weekend. I wanna have amtching forums and look at gcalander since its included as well. But I should have a preview up for you ill send you a link sunday. Im also including in the package a layout.html, psd, and instructions so others can make themes from this one.  |
|
|
|
 |
Raven

|
Posted:
Thu May 01, 2008 4:34 pm |
|
|
|
 |
vaudevillian

|
Posted:
Sat May 03, 2008 3:01 pm |
|
I was hoping to be able to have the navigation in flash use theme cpanel but I am having trouble getting the variables to load into flash, I guess I will save it for version 2 of the template. I spent too much time on trying to get the flash navigation to work with the variables, it might be monday before the preview. |
|
|
|
 |
vaudevillian

|
Posted:
Wed May 07, 2008 12:32 pm |
|
Alight, not a true preview but I have been busy nothin uploaded yet. Still have to finish off the footer. So I though a nice screenshot of the ongoing work. All windows show the toggling of left and right columns. Left top is IE7, right top is firefox 2, left bottom is firefox 2 and right bottom is IE7.
Comments and concerns are welcome. This is not just a simple theme is is well thought out and in depth, all psds, developing notes, fla's and a layout will be included.
So without further adu:
 |
|
|
|
 |
Raven

|
Posted:
Wed May 07, 2008 4:34 pm |
|
Can't wait to see the finished product!
BTW, just a note to ALL who have been gracious enough to submit themes to me over the past few weeks -
I apologize for having not gotten back to you or completed the "show case" I talked about. Rather than a blow-by-blow explanation/excuse it all borders among the following:
Life
Wife - actually my wife is my life
Taxes
RavenNuke(tm)
Sleep
Life
I promise I WILL get all caught up just as soon as I can! |
|
|
|
 |
vaudevillian

|
Posted:
Sun May 11, 2008 8:00 am |
|
I am having a little trouble with my java scripts for the toggling of the columns in nuke production enviroment. I had them in seperate files and had the header.php refrence them.
So in the header.php I had them:
Code:
echo '<script type='text/javascript' src='js/xdef.js'></script>'."\n\n";
echo '<script type='text/javascript' src='js/xgetelementbyid.js'></script>'."\n\n";
echo '<script type='text/javascript' src='js/xgetelementsbytagname.js'></script>'."\n\n";
echo '<script type='text/javascript' src='js/xgetelementsbyclassname.js'></script>'."\n\n";
echo '<script type='text/javascript' src='js/columnswitch.js'></script>'."\n\n";
|
But the website does not come up at all.
I am thinking it might be a problem with the naming of the variables or the file names. I will post ever file and anything relating to the java code, could someone tell me if it is a variable or a named file problem?
columnswitch.js
Code:
var enabled = false;
var collVisible = true;
var colrVisible = true;
window.onload = function()
{
var e = xGetElementById('col1');
if (e && xDef(e.style) && document.getElementsByTagName) {
enabled = true;
}
}
function toggleColl()
{
if (!enabled) return;
var d, m, e, a, i;
if (collVisible) {
d = 'none';
m = '40px';
}
else {
d = 'block';
m = '220px';
}
e = xGetElementById('col1');
e.style.display = d;
a = xGetElementsByClassName('col2');
for (i = 0; i < a.length; ++i) {
a[i].style.marginLeft = m;
}
collVisible = !collVisible;
}
function toggleColr()
{
if (!enabled) return;
var d, m, e, a, i;
if (colrVisible) {
d = 'none';
m = '40px';
}
else {
d = 'block';
m = '220px';
}
e = xGetElementById('col3');
e.style.display = d;
a = xGetElementsByClassName('col2');
for (i = 0; i < a.length; ++i) {
a[i].style.marginRight = m;
}
colrVisible = !colrVisible;
}
|
xdef.js
Code:
function xDef()
{
for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
return true;
}
|
xgetelementbyid.js
Code:
function xGetElementById(e)
{
if(typeof(e)=='string') {
if(document.getElementById) e=document.getElementById(e);
else if(document.all) e=document.all[e];
else e=null;
}
return e;
}
|
xgetelementsbyclassname.js
Code:
function xGetElementsByClassName(c,p,t,f)
{
var r = new Array();
var re = new RegExp("(^|\\s)"+c+"(\\s|$)");
// var e = p.getElementsByTagName(t);
var e = xGetElementsByTagName(t,p); // See xml comments.
for (var i = 0; i < e.length; ++i) {
if (re.test(e[i].className)) {
r[r.length] = e[i];
if (f) f(e[i]);
}
}
return r;
}
|
xgetelementsbytagname.js
Code:
function xGetElementsByTagName(t,p)
{
var list = null;
t = t || '*';
p = xGetElementById(p) || document;
if (typeof p.getElementsByTagName != 'undefined') { // DOM1
list = p.getElementsByTagName(t);
if (t=='*' && (!list || !list.length)) list = p.all; // IE5 '*' bug
}
else { // IE4 object model
if (t=='*') list = p.all;
else if (p.all && p.all.tags) list = p.all.tags(t);
}
return list || [];
}
|
Untill I find out a little more, I will take everything out of the files and place them directly in the theme.php, but I dont think it will work. I will let check back if it does work, but I still think its a variable name thats causing the issue.
Raven would you like me to send you a pm of the prewiew or is it ok to display the link here? |
|
|
|
 |
Raven

|
Posted:
Sun May 11, 2008 11:40 am |
|
Quote: | Raven would you like me to send you a pm of the preview or is it ok to display the link here? |
Unless there is a security issue you can just post the link. |
|
|
|
 |
vaudevillian

|
Posted:
Sun May 11, 2008 1:42 pm |
|
here it is in action: Only registered users can see links on this board! Get registered or login!
Still does not look 100% in firefox, right side border is still not expanding page length. But working on that right now. Some of the text im having trouble finding the tag for like the (invisible modules) text and the tites of some of the modules. Also I have to change some of the images, Im using fisubice images as place holders, then the forum.
Hopefuly I get the colum switch working right soon.
Edit: All text is good now. Fixed it all.  |
|
|
|
 |
vaudevillian

|
Posted:
Sun May 11, 2008 2:46 pm |
|
Toggles are FIXED!!!!!!!!!!!!!!!!!!!
Edit: Poooo spoke too soon, they are only working in firefox.
Edit: All fixed Again  |
|
|
|
 |
Raven

|
Posted:
Sun May 11, 2008 5:18 pm |
|
Very nice!  |
|
|
|
 |
vaudevillian

|
Posted:
Mon May 12, 2008 9:28 am |
|
The theme now is 90% finished, just have to do the icons and forums.
Theme compatibility:
IE 7: perfect!!!!!
Firefox 2: sligh main border fudge, borders not expanding on uneven block placemnt.
Opera 9.xx: Not scrolling on credits area in footer. Radio boxes and buttons pushing down bottom of block border.
IE 6: Epic Fail!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
|
|
 |
Raven

|
Posted:
Tue May 13, 2008 6:29 am |
|
|
|
 |
vaudevillian

|
Posted:
Tue May 13, 2008 3:19 pm |
|
I will put a popup in to detect IE6 and have it request a visitor to upgrade to IE 7 or firefox.
The other things... I think I can fix, I have to move the template to my main site, for some reason, to finish it off. I am getting a error with test posting in the forums on the subdomain and I dont feel like sorting through things and trying to find the error. It might take a little longer to finish the template, but I want 100% css 2 100% and xhtml 100% aned the theme is table less . |
|
|
|
 |
vaudevillian

|
Posted:
Tue May 20, 2008 9:23 am |
|
With the flash ticker. I need to chmod a txt file to 777 is that safe for a text file?
Or is there a way to throw a htaccess in there? The ticker is updated from admin control panel. |
|
|
|
 |
Raven

|
Posted:
Tue May 20, 2008 10:39 am |
|
vaudevillian wrote: | With the flash ticker. I need to chmod a txt file to 777 is that safe for a text file?
Or is there a way to throw a htaccess in there? The ticker is updated from admin control panel. |
No, it's not safe. Try 664. That can still be an issue but it is safer than 777. While a .htaccess file could also be used, I would suggest getting rid of the file completely and converting the file into a table and adjust the corresponding code to use MySQL |
|
|
|
 |
vaudevillian

|
Posted:
Tue May 20, 2008 12:24 pm |
|
Raven wrote: | I would suggest getting rid of the file completely and converting the file into a table and adjust the corresponding code to use MySQL |
I would definatly need help with something like that. If there is any takes out there. I would be glad for the assistance. If need be I will put the assosiated files in a download if need be. Or post the code here. |
|
|
|
 |
vaudevillian

|
Posted:
Mon Jun 02, 2008 8:25 am |
|
I have been trying for the last little while in my spare time to get it to work like raven said. But between work being a little on the busy side and not enough time to be at the computer. I dont think I can get the flash ticker working right from the sql data base. So I will have to leave it up to the user. I will comment out the associated files and add extra lines to the install howto. This way the user can decide on if the want it or not.
Sorry I have been really busy. |
|
|
|
 |
Raven

|
Posted:
Mon Jun 02, 2008 3:50 pm |
|
|
|
 |
vaudevillian

|
Posted:
Thu Jul 10, 2008 6:52 am |
|
Well, I have been rewriting everything from scratch to get the theme to work under IE6 and it is so far, but not yet complete the re-write. I hate going back to the drawing board but, I am sure raven would rather have a perfect them then a half put together one.
With this one I will leave out the flash news ticker as I cannot figure out pulling info from the database with it. The only way from what I see is making basicly the same config file for nukephp and do one for the flash but then its getting alot more complicated. |
|
|
|
 |
|