Author Topic: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!  (Read 192128 times)

0 Members and 1 Guest are viewing this topic.

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #45 on: April 21, 2005, 08:06:46 AM »
I have 5 times reinstall the script!
Do you have a good zip for me, so i know it works fine!

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #46 on: April 21, 2005, 09:07:49 AM »
@ lachendepaul

here my downloaded encuestas_v_2.zip.

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #47 on: April 21, 2005, 04:03:04 PM »
Thanks, i will try it next week!

Offline excitex2

  • Addicted member
  • ******
  • Posts: 1.590
  • He desactivado la galería y el buscador
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #48 on: April 22, 2005, 08:39:51 PM »
Regards lachendepaul ,,,

Thanks, i will try it next week!

You have changed the templates of the v1 into those of the v2 ??

 If you have not realized this change the MOD it will not work.

Excitex2

Lo importante no es saber,,, lo importante es tener el E-Mail de quien sabe

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #49 on: April 22, 2005, 10:01:32 PM »
I've never change a version of a template.
I've download a template with the name blue and change it to my choice.

But how can i change my version of my template?
Or how can i change the script to make it working?

Thank you very much for your time for me..

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #50 on: April 26, 2005, 01:47:09 PM »
Ok thanks for your help.
I've tried it for 7 times, and it still dont work.

I am busy for 2 weeks and now it is over, i dont want it anymore.

Only change i must do is:
$root_path = (eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../../" : "./../";

Thanks for your help,
I will try to make a poll by myself!


Offline joco976

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #51 on: May 19, 2005, 04:27:01 PM »
Hello

I've instaled the 4images gallery and all mods i need on a linux machine running apache. But now i have transfered my instalation to windows machine running IIS 5 and am having problems with the Poll v2 (encustas).

On the page when i vote there are no results shown, but when i try to acces the admin plugin i got Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.;c:\php4\pear') in ... I fixed that by adding additional ../ to the end of the $root_path.
That worked fot that part so i can acces the admin part. But i cannot do anything in admin. I get no errors, no messages to update the the poll.

Help please!!

Thank you.

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #52 on: May 19, 2005, 05:02:04 PM »
Change this in your file:

$root_path = (eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../../" : "./../";

Its on the 5 or 6 line..

Offline joco976

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #53 on: May 19, 2005, 05:34:00 PM »
HI

I've tried you suggestion but it does not work. The folders are in c:\inetpub\wwwroot\slike\admin..
Still nothing show on the page and in the admin page (page id displayed but nothing can be changed).

I even tried with clean install of 4images and poll v2.

THX

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #54 on: May 19, 2005, 07:44:01 PM »
I had the same error, so that was my problem.
There is a old and a new version of PHP_SELF i think.
Your server use PHP 5 i quess?

Offline joco976

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #55 on: May 19, 2005, 09:04:27 PM »
Actualy no. I am using latest of the 4 fork, 4.3.11 (i also tried with exactly the same version as on linux box. 4.3.4). No luck.

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #56 on: May 19, 2005, 10:09:58 PM »
can you give me the first rules of the admin file?

Offline joco976

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #57 on: May 19, 2005, 10:20:30 PM »
admin/index.php:

define('IN_CP', 1);
define('ROOT_PATH', './../');
require('admin_global.php');

admin_global.php:
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

define('GET_CACHES', 1);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
include(ROOT_PATH.'admin/admin_functions.php');

admin/plugins/admin_encuestas.php

<?php // PLUGIN_TITLE: Control de encuestas
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
define('ROOT_PATH', $root_path);
require(ROOT_PATH.'admin/admin_global.php');
show_admin_header();

Those are the settings from my linux box. Here it worls. On my windows box does not work. Did also try your suggestion $root_path = (eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../../" : "./../";

Did not work either.

Thanks for all your help trying to figure this one out.

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #58 on: May 20, 2005, 02:31:00 AM »
ascanio  thanks for this mod  :D

all OK  with V1.71

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Poll v2.0 (with ACP integration) NEW VERSION!!!
« Reply #59 on: May 20, 2005, 03:39:28 AM »
you don't have to thanks me, thanks to excitec2 I just translate it into english becuase i thought it is a grat mod to share :):)

 

Post your comments here