Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
scorpious
Worker
Worker



Joined: Dec 03, 2005
Posts: 153

PostPosted: Sun Oct 24, 2010 1:30 pm Reply with quote

Hi All

We have upgraded to Rn2.40.01, upgrade went fine, however
When a new user tries to create a new account they can fill in the Registration Form and when they click on Continue nothing happens
page dont change or anything.

We can sent out e-mails so we know the php()mail is working ok

I have re-uploaded the Your_Account module and still the same.

What could be causing this.

website is http://www.carp-in-on.com/
Cheers

Scorp


Last edited by scorpious on Sun Oct 24, 2010 5:06 pm; edited 1 time in total 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Oct 24, 2010 3:24 pm Reply with quote

Have you tried it with a standard RavenNuke theme? This would eliminate a theme conflict issue and help to narrow it down.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Oct 24, 2010 3:49 pm Reply with quote

In addition, just so you know, RavenNuke(tm) from 2.40.x on requires that JavaScript be enabled on the browser.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
scorpious







PostPosted: Sun Oct 24, 2010 4:29 pm Reply with quote

Hi

Cheers for the reply

I changed the theme back to RavenIce and it worked fine, once I changed the theme back to the custom theme it stopped working.

Will have to check through the theme to see if I can spot anything.

Update

Have checked all the .php files and they seam ok with the theme, they all have the correct
Code:
$db->sql_query($sql)  $db->sql_fetchrow($sql)


and so forth, what could be causing this, as it worked perfect before the upgrade.

Cheers
Scorp
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sun Oct 24, 2010 5:26 pm Reply with quote

This section at the very top of your code may be causing issues with the registration JS/form.
Code:
<script language="JavaScript">startColor="#8F8971";endColor="#C07C3F"; </script> <script language="JavaScript" src="themes/Apollyon/fade.js"></script>

try finding that in your theme and removing it, then creating/uploading a file includes/addons/head-Apollyon.php

Code:
if (stristr(htmlentities($_SERVER['PHP_SELF']), 'head-Apollyon.php')) {

   Header('Location: ../../index.php');
   die();
}
$inlineJS = '<script type="text/javascript">
startColor="#8F8971";endColor="#C07C3F";
</script>'."\n";
addJSToHead($inlineJS,'inline');
addJSToHead('themes/Apollyon/fade.js', 'file');


that may fix it, give it a try.
 
View user's profile Send private message Visit poster's website
scorpious







PostPosted: Sun Oct 24, 2010 5:43 pm Reply with quote

Hi spasticdonkey

Yes that works perfect now, however, at the top of the theme the code I placed in the head-Appllyon.php is visable ?

Cheers
Scorp
 
nuken







PostPosted: Sun Oct 24, 2010 5:48 pm Reply with quote

You need to add the opening php <? and closing ?>
 
scorpious







PostPosted: Sun Oct 24, 2010 5:58 pm Reply with quote

Blonde Moment

Cheers all, its all back and working perfect.

Many thanks for the Help and Advice Cheers

Scorp
 
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Sun Oct 24, 2010 6:06 pm Reply with quote

Does anyone know any fader who works with Mozilla? I tested the fader on that site from scorpious but looks like Mozilla doesn't like it at all.
 
View user's profile Send private message
spasticdonkey







PostPosted: Mon Oct 25, 2010 1:40 pm Reply with quote

I've never tried it, but this is from the author of colorbox which is included in the RN distro. [ Only registered users can see links on this board! Get registered or login! ]
 
hicuxunicorniobestbuildpc







PostPosted: Mon Oct 25, 2010 2:17 pm Reply with quote

Actually I don't want to fade menu, I would like to fade the entire site as I did already but the fader doesn't work with Mozzila, pitty because it is working with IE7, 8, Opera and Google Chrome but unfortunatly Mozilla 3.6 doesn't like that script.

Here is the script.

Code:
var fadeTo = "00FF00";



var fiBy = 6;


var foBy = 10;


var speed = 10;


var ignoreClass = "ignore";


var opera, ie, dom, x = 0, oc, fader, ocs = new Array();

if (navigator.userAgent.indexOf("Opera") != -1) opera = true
else if (document.all && !opera) ie = true
else if (!document.all && document.getElementById) dom = true;

function convertRGB(z)
   {
      var newfcS = "", splitter = "";
      splitter = z.split(",");
      splitter[0] = parseInt(splitter[0].substring(4, splitter[0].length));
      splitter[1] = parseInt(splitter[1]);
      splitter[2] = parseInt(splitter[2].substring(0, splitter[2].length-1));
      for (var q = 0; q < 3; q++)
         {
            splitter[q] = splitter[q].toString(16);
            if (splitter[q].length == 1) splitter[q] = "0" + splitter[q];
            newfcS += splitter[q];
         }
      return newfcS;
   }

function currentColour(index)
   {
      var temp, cc;
      if (opera) cc = document.links[index].style.color
      else if (ie) cc = document.links[index].currentStyle.color
      else if (dom) cc = document.defaultView.getComputedStyle(document.links[index], '').getPropertyValue("color");
      if (cc.length == 4 && cc.substring(0, 1) == "#")
         {
            temp = "";
            for (var a = 0; a < 3; a++)
               temp += cc.substring(a+1, a+2) + cc.substring(a+1, a+2);
            cc = temp;
         }
      else if (cc.indexOf("rgb") != -1) cc = convertRGB(cc)
      else if (cc.length == 7) cc = cc.substring(1, 7)
      else cc = fadeTo;
      return cc;
   }


function convert2Dec(hex)
   {   
      var rgb = new Array();
      for (var u = 0; u < 3; u++)
         rgb[u] = parseInt(hex.substring(u*2, u*2+2), 16);
      return rgb;
   }

function newRGB(f, n, d)
   {
      var change;
      if (d == 1) change = fiBy
      else change = foBy;
      for (var g = 0; g < 3; g++)
         {
            if (n[g] > f[g] && n[g] - change >= 0) n[g] -= change;
            if (n[g] < f[g] && n[g] + change <= 255) n[g] += change;
         }
      return n;
   }

function fade(index, d)
   {
      var fc, nc, temp = new Array(), finished = false;
      nc = convert2Dec(currentColour(index));
      if (d == 1) fc = convert2Dec(fadeTo)
      else fc = convert2Dec(ocs[x]);
      temp = convert2Dec(currentColour(index));
      nc = newRGB(fc, nc, d);
      if ((nc[0] == temp[0]) && (nc[1] == temp[1]) && (nc[2] == temp[2]))
         finished = true;
      if (!finished) document.links[x].style.color = "rgb(" + nc[0] + "," + nc[1] + "," + nc[2] + ")"
      else clearInterval(fader);
   }

function findLink(over)
   {
      if (document.layers) return;
      if (fader)
         {
            clearInterval(fader);
            document.links[x].style.color = "#" + ocs[x];
         }
      if (over && !this.id) this.id = over;
      x = 0;
      while (!(this.id == document.links[x].id) && (x < document.links.length))
         x++;
      if (this.id == document.links[x].id)
         {
            oc = currentColour(x);
            fader = setInterval("fade(" + x  + ", 1)", speed);
         }
   }

function clearFade()
   {
      if (document.layers) return;
      if (fader) clearInterval(fader);
      fader = setInterval("fade(" + x + ", 0)", speed);
   }

function init()
   {
      for (var i = 0; i < document.links.length; i++)
         {
            ocs[i] = currentColour(i);
            var currentOver = document.links[i].onmouseover;
            var currentOut = document.links[i].onmouseout;
            var ignoreIt = document.links[i].className == ignoreClass;
            if (!ignoreIt) document.links[i].id = "link" + i;
            if (!currentOver && !currentOut && !ignoreIt)
               {
                  document.links[i].onmouseover = findLink;
                  document.links[i].onmouseout = clearFade;
               }
         }      
}

if (opera || ie || dom) window.onload = init;



I hope someone give me a hand on this issue.
 
spasticdonkey







PostPosted: Mon Oct 25, 2010 3:05 pm Reply with quote

I didn't really look at what that code was doing Smile
But I have a feeling it's kinda old. Not sure I'm 100% convinced about page transitions in general, but here's one you can try. Although it would be horrible for search engines as it uses body { display: none; }
[ Only registered users can see links on this board! Get registered or login! ]
 
hicuxunicorniobestbuildpc







PostPosted: Mon Oct 25, 2010 3:56 pm Reply with quote

Wow my friend! This is exactly what I want to do. Amazing, I will try to implement it on RavenNuke and then I will come back asap. Thank you very much. With this effect you don't want to go away from the site. This is so cool. I love it. This should be sticky forever. Step by Step we will fullfill and I am very sure we can bring Joomla users back for sure but it is still a long way to go.


Last edited by hicuxunicorniobestbuildpc on Mon Oct 25, 2010 4:42 pm; edited 1 time in total 
hicuxunicorniobestbuildpc







PostPosted: Mon Oct 25, 2010 4:41 pm Reply with quote

Crying or Very sad Dissapointed with that effect. I tested on RavenNuke but the effect is not better than I have.

example to call the script I show u above.

Code:
if (stristr(htmlentities($_SERVER['PHP_SELF']), 'head-fade.php')) {

   Header('Location: ../../index.php');
   die();
}

echo "<script type=\"text/javascript\" src=\"scripts/fader.js\"> </script>"
  . "<meta http-equiv=\"Page-Enter\" content=\"blendTrans(Duration=1.0)\">"
  . "<meta http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=1.0)\">"
  . "<meta http-equiv=\"Site-Enter\" content=\"blendTrans(Duration=1.0)\">"
  . "<meta http-equiv=\"Site-Exit\" content=\"blendTrans(Duration=1.0)\">\n";
 
hicuxunicorniobestbuildpc







PostPosted: Mon Oct 25, 2010 5:21 pm Reply with quote

Wave Working now finally

Code:
// Color for links to fade to:

var fadeTo = "FF0000";

// # of iterations from link color to fadeTo (1-255):
var fiBy = 5;

// # of iterations from fadeTo to link color (1-255):
var foBy = 5;

// Speed - milliseconds between each color change in the fade
// Less than 10ms doesn't really make all that much difference,
// 40-50 is recommended.
var speed = 50;

// Class name to ignore. You can ignore a link like this:
// <A HREF="some-file" CLASS="ignore">click me!</A>
var ignoreClass = "ignore";

// No more changes required (unless you know what you are doing)
// Enjoy...and email Daga and/or Fayez and let them know what
// site(s) you are using it on :)
var opera, ie, dom, ocs = new Array();
var fader = new Array(), scriptover = new Array();
var scriptout = new Array(), triplet = new Array();
var loader;

if (navigator.userAgent.indexOf("Opera") != -1) opera = true
else if (document.all && !opera) ie = true
else if (!document.all && document.getElementById) dom = true;

function convertRGB(z)
{
   var newfcS = "", splitter = "";
   splitter = z.split(",");
   splitter[0] = parseInt(splitter[0].substring(4, splitter[0].length));
   splitter[1] = parseInt(splitter[1]);
   splitter[2] = parseInt(splitter[2].substring(0, splitter[2].length-1));
   for (var q = 0; q < 3; q++)
   {
      splitter[q] = splitter[q].toString(16);
      if (splitter[q].length == 1) splitter[q] = "0" + splitter[q];
      newfcS += splitter[q];
   }
   return newfcS;
}

function currentColour(index)
{
   var temp, cc;
   if (opera) cc = document.links[index].style.color;
   else if (ie) cc = document.links[index].currentStyle.color;
   else if (dom) cc = document.defaultView.getComputedStyle(document.links[index], '').getPropertyValue("color");
   if (cc.length == 4 && cc.substring(0, 1) == "#")
   {
      temp = "";
      for (var a = 0; a < 3; a++) temp += cc.substring(a+1, a+2) + cc.substring(a+1, a+2);
      cc = temp;
   }
   else if (cc.length == 7) cc = cc.substring(1, 7);
   else if (cc.indexOf("rgb") != -1) cc = convertRGB(cc);
   else cc = fadeTo;
   return cc;
}


function convert2Dec(hex)
{   
   var rgb = new Array();
   for (var u = 0; u < 3; u++) rgb[u] = parseInt(hex.substring(u*2, u*2+2), 16);
   return rgb;
}

function fade(index, fi)
{
   var newCol, curCol, endCol, i;
   
   curCol = parseInt(currentColour(index), 16);
   (fi) ? endCol = parseInt(fadeTo, 16) : endCol = parseInt(ocs[index], 16);
   newCol = curCol + (triplet[index][0] * 65536) + (triplet[index][1] * 256) + triplet[index][2];
   if (((newCol < endCol) && (curCol > endCol)) || ((newCol > endCol) && (curCol < endCol)) || (newCol == endCol) || (newCol <= 0) || (newCol >= 16777215))
   {
      clearInterval(fader[index]);
      newCol = endCol;
   }
   newCol = newCol.toString(16);
   for (i = newCol.length; i < 6; i++) newCol = "0" + newCol;
   document.links[index].style.color = "#" + newCol;
}

function startFade(over, idNum, fi, start, fin, steps)
{
   var current, fade, i;

   if (over == document.links[idNum].id)
   {
      current = convert2Dec(start);
      fade = convert2Dec(fin);
      for (i = 0; i < 3; i++)
      {
         (fade[i] > current[i]) ?
         fade[i] = Math.round((fade[i] - current[i] - 1) / steps) :
         fade[i] = Math.round((current[i] - fade[i] - 1) / steps) * -1;
      }
      triplet[idNum] = fade;
      if (fader[idNum]) clearInterval(fader[idNum]);
      fader[idNum] = setInterval("fade(" + idNum  + ", " + fi + ")", speed);
      (fi) ? eval(scriptover[idNum]) : eval(scriptout[idNum]);
   }
   
   return true;
}

function findLink()
{
   var idNum = 0;
   if (document.layers) return;
   while (!(this.id == document.links[idNum].id) && (idNum++ < document.links.length));
   startFade(this.id, idNum, 1, ocs[idNum], fadeTo, fiBy);
   return true;
}

function clearFade()
{
   var idNum = 0;
   if (document.layers) return;
   while (!(this.id == document.links[idNum].id) && (idNum++ < document.links.length));
   startFade(this.id, idNum, 0, fadeTo, ocs[idNum], foBy);

   return true;
}

function init()
{
   var x, i;
   
   eval(loader);
   for (i = 0; i < document.links.length; i++)
   {
      ocs[i] = currentColour(i);
      var currentOver = document.links[i].onmouseover;
      var currentOut = document.links[i].onmouseout;
      var ignoreIt = document.links[i].className == ignoreClass;
      if (!ignoreIt)
      {
         document.links[i].id = "link" + i;
         if (document.links[i].onmouseover)
         {
            scriptover[i] = document.links[i].onmouseover.toString();
            x = scriptover[i].indexOf("{") + 2;
            scriptover[i] = scriptover[i].substring(x, scriptover[i].length - 2);
         }
         if (document.links[i].onmouseout)
         {
            scriptout[i] = document.links[i].onmouseout.toString();
            x = scriptout[i].indexOf("{") + 2;
            scriptout[i] = scriptout[i].substring(x, scriptout[i].length - 2);
         }
         document.links[i].onmouseover = findLink;
         document.links[i].onmouseout = clearFade;
      }
   }
}

if (opera || ie || dom) window.onload = init;
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©