Welcome Guest, Not a member yet? Register   Sign In
CodeExtinguisher v2.0 Release Candidate 12.3
#11

[eluser]abmcr[/eluser]
[quote author="jTaby" date="1209759456"]for some reason the inheritence isn't working...but the weird thing is that it's happening with the Image plugin. What steps did you take to install codex? Have you modified the YAML files? where are you seeing the error?[/quote]
No i have nothing modified: i have tried under MAC (MAMP) and all work fine
#12

[eluser]Majd Taby[/eluser]
abmcr, well it works on linux (the public preview) and it works on mac, so it's a windows specific issue. The only problem I can think of is the face that windows uses backslash as a directory separator as opposed to a forward slash....i'll look into it.
#13

[eluser]got 2 doodle[/eluser]
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Image::$params

Filename: plugins/image.php

Line Number: 38
....snip...Fatal error: Call to undefined method Image::setWrappers() in C:\xampp\htdocs\tatacentre.ca\codex\application\libraries\codexforms.php on line 58

I'm getting the same error, also running xampp and php5
Jeff
#14

[eluser]got 2 doodle[/eluser]
I can't even pretend to understand how codeextinguisher "works" but if it's any kind of clue I recently changed from apache 2.2 to xampp and I had to make the following changes to my code so that my index.php (not using codeigniter, just plain php that I cobbled together)

Code:
?php
session_start();
include('util.php'); // misc generic utils
/* edit on change to xampp was required to $_GET[ ''] passed vars */
$id=$_GET['id']; /* <----- line added */
if (empty($id)) {$id='0';}
$lang=$_GET['lang']; /* <----- line added */
if (empty($lang)) { $lang='en'; }

This is the contents of util.php
Code:
&lt;?php /*    util.php    */
/* Function to format varibles and not overwrite PHP session variables
sample call:
<a href="session_var.php&lt;?php echo UrlVars("id","1"); ?&gt;">Set id = 1</a>
example result:
session_var.php?lang=eng&id=1&PHPSESSID=afac9a4cf3ba13a3f3c845dfc73279a7
Call this way --&gt; UrlVar("variable name","variable value");
*/
function UrlVar() {
  $arg = array();
  $string = "?";
  $vars = $_GET;
  for ($i = 0; $i < func_num_args(); $i++)
    $arg[func_get_arg($i)] = func_get_arg(++$i);
  foreach (array_keys($arg) as $key)
    $vars[$key] = $arg[$key];
  foreach (array_keys($vars) as $key)
    if ($vars[$key] != "") $string.= $key . "=" . $vars[$key] . "&";
  if (SID != "" && SID != "SID" && $_GET["PHPSESSID"] == "")
    $string.= htmlspecialchars(SID) . "&";

  return htmlspecialchars(substr($string, 0, -1));
}

function VisitorIP()
    {
    if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
        $TheIp=$_SERVER['HTTP_X_FORWARDED_FOR'];
    else $TheIp=$_SERVER['REMOTE_ADDR'];

    return trim($TheIp);
}

?&gt;

(looks horrible I know)

Anyway before xampp the code worked without the
Code:
$_GET['id']

running windows XP and xampp 1.6.6a php5.2.5

Jeff
#15

[eluser]andjules[/eluser]
jTaby, I think you're on the right track with the WAMP problem... file path separators on uploads can be a real problem on windows from what I've seen, depending on the version of php.

I noticed you mentioned a fckeditor plugin coming... just my 2ยข: unless someone is building page-creation software, TinyMCE and Fckeditor have gotten a bit over-built... you might be interested (since you are using jQuery... great!) in jwysiwyg or wymeditor.
#16

[eluser]Ignacio[/eluser]
Interface Plugins? This is CI or Drupal?
#17

[eluser]Majd Taby[/eluser]
abmcr, try playing around with upload_path in definitions/example_form.yml (First thing I would try is changing / to \...not sure how windows treats relative paths.)

Ignacio, "Interface plugins" is a term i came up with off the top of my head...I was thinking "interface" as in..OOP interface, where you can't create instances of them (well, you _can_ but they won't be very useful).
#18

[eluser]minimal design[/eluser]
Just a little detail... looks like:

Code:
if(empty($link))
    $anchor = $value;
        else
    $anchor = anchor($link,$value);

didn't make it in the codex_navigation template file. So it doesn't output what you choose in the YAML file like it does in the crumbs. Easy enough to fix myself, but I though I'd point it out Smile

Thanks!
#19

[eluser]irvin[/eluser]
You can always change yours WAMP. After some problems with XAMPP I've switched to VertigoServ and... It's working right now Smile
#20

[eluser]Majd Taby[/eluser]
Just to let everyone know, I have updated the main post with a link to RC12.2, and updated the changelog, enjoy Smile




Theme © iAndrew 2016 - Forum software by © MyBB