PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Thu Apr 24, 2008 11:54 am Reply with quote Back to top

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
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Thu Apr 24, 2008 2:05 pm Reply with quote Back to top

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
Code:
if ... {}
wrapper from that logic.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Fri Apr 25, 2008 10:42 am Reply with quote Back to top

Sweet, thanks Raven.
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Fri Apr 25, 2008 11:04 am Reply with quote Back to top

RavensScripts
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Fri Apr 25, 2008 9:10 pm Reply with quote Back to top

Some time next week, I should have a theme ready for you if you want it. Smile. 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.
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Fri Apr 25, 2008 10:36 pm Reply with quote Back to top

Thanks so much! Can't wait to see it Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Thu May 01, 2008 2:34 pm Reply with quote Back to top

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. Wink
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Thu May 01, 2008 4:34 pm Reply with quote Back to top

Great!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Sat May 03, 2008 3:01 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Wed May 07, 2008 12:32 pm Reply with quote Back to top

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:

Image
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Wed May 07, 2008 4:34 pm Reply with quote Back to top

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 Wink it all borders among the following:

Life
Wife - actually my wife is my life wuvUbaby
Taxes
RavenNuke(tm)
Sleep
Life

I promise I WILL get all caught up just as soon as I can!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Sun May 11, 2008 8:00 am Reply with quote Back to top

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?
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Sun May 11, 2008 11:40 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Sun May 11, 2008 1:42 pm Reply with quote Back to top

here it is in action:
Only registered users can see links on this board!
Get registered or login to the forums!


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. Smile

Hopefuly I get the colum switch working right soon.

Edit: All text is good now. Fixed it all. Smile
View user's profile Send private message Send e-mail
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Sun May 11, 2008 2:46 pm Reply with quote Back to top

Toggles are FIXED!!!!!!!!!!!!!!!!!!!

Edit: Poooo spoke too soon, they are only working in firefox.
Edit: All fixed Again Smile
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Sun May 11, 2008 5:18 pm Reply with quote Back to top

Very nice! Wave
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Mon May 12, 2008 9:28 am Reply with quote Back to top

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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Tue May 13, 2008 6:29 am Reply with quote Back to top

Shocked Bang Head ROTFL
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Tue May 13, 2008 3:19 pm Reply with quote Back to top

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 Smile .
View user's profile Send private message Send e-mail
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Tue May 20, 2008 9:23 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Tue May 20, 2008 10:39 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Tue May 20, 2008 12:24 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Mon Jun 02, 2008 8:25 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15210
Location: Kansas

PostPosted: Mon Jun 02, 2008 3:50 pm Reply with quote Back to top

No problem at all!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
vaudevillian
Worker
Worker


Joined: Jan 18, 2008
Posts: 135

PostPosted: Thu Jul 10, 2008 6:52 am Reply with quote Back to top

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. Wink

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.
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic