4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Plugins => Topic started by: effemmess on June 21, 2003, 11:13:37 PM

Title: [Plugin][Mod] Extension for Votes saved in DB
Post by: effemmess on June 21, 2003, 11:13:37 PM
Ich hab wiedermal ein wenig gebastelt und will euch die Ergebnisse nicht vorenthalten...
Dieses Mod mit Plugin ist zur Erweiterung von v@no´s Mod "Votes saved in DB" Variante A gedacht. Darum hier der Link zum Thread (http://www.4homepages.de/forum/viewtopic.php?t=6123)

Das Mod ändert folgendes in der Tabelle "prefix_voted":
1. Ändern der Feldeigenschaft von user_id von unsigned auf signed.
    Bei der Übernahme der Standard-Votings muß eine user-id angegeben werden. Deshalb führe ich für diese Übernahmewerte die user_id=-2 ein.
2. Hinzufügen des Feldes vote_date
    Zur weiteren Auswertung will ich das Vote-Datum mit speichern.

Anwendung:
- auspacken
- in das Verzeichnis 4images/admin/plugins kopieren
- Backup der DB !!!
- in Adminkonsole anklicken...

Nachfolgend kann mein weiteres Plugin zur Übernahme der bestehenden Votes verwendet werden. Hier der Link zum Thread (http://www.4homepages.de/forum/viewtopic.php?t=6405)

Downloadlink (http://pub.comnetonline.de/change_voted_a_install.zip)
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: ascanio on April 05, 2005, 07:40:48 PM
Hi once u have install this plugungs can u delete the files from the admin/plugings folder? i don understand any german
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: knuffi on June 13, 2005, 06:42:57 PM
Hallo

Habe versucht das ganz zu installieren....

Es kommen  beim Anklicken im Adminbereich folgende Fehlermeldungen.....

Warning: main(./../admin/admin_global.php) [function.main.html]: failed to open stream: No such file or directory in /home/erotikpl/public_html/webandart/4images/admin/plugins/change_voted_a_install.php on line 5

Fatal error: main() [function.require.html]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/lib/php') in /home/erotikpl/public_html/webandart/4images/admin/plugins/change_voted_a_install.php on line 5

Und

Warning: main(./../admin/admin_global.php) [function.main.html]: failed to open stream: No such file or directory in /home/erotikpl/public_html/webandart/4images/admin/plugins/old_votes2db.php on line 8

Fatal error: main() [function.require.html]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/lib/php') in /home/erotikpl/public_html/webandart/4images/admin/plugins/old_votes2db.php on line 8


Wer kann mir helfen???

Hruss Hans-Ruedi
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: dosensteck on March 06, 2006, 12:17:04 AM
2. Hinzufügen des Feldes vote_date
    Zur weiteren Auswertung will ich das Vote-Datum mit speichern.

Kann ich das aktuelle datum der abgegeben votes mitspeichern? Also wenn ein User jetzt zb. Votet.
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: AntiNSA2 on March 01, 2009, 01:08:34 PM
Greetings..!

Im getting this error

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/lifephotography/htdocs/admin/plugins/change_voted_a_install.php on line 5

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/share/pear') in /home/lifephotography/htdocs/admin/plugins/change_voted_a_install.php on line 5




with 1.7.6...



Thanks...!
Anyone got this working? Im trying to use more than more stats.....
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: V@no on March 02, 2009, 04:56:18 PM
Attached package fixed, but for you future references, when you see such error in plugins, open the plugin and replace
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
define('ROOT_PATH', $root_path);

with this:
define('ROOT_PATH', "./../../");
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: AntiNSA2 on March 03, 2009, 05:13:59 AM
I tried your new attachment and recieved the error :

Warning: require(./../../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/lifephotography/htdocs/change_voted_a_install.php on line 4

Fatal error: require() [function.require]: Failed opening required './../../admin/admin_global.php' (include_path='.:/usr/local/share/pear') in /home/lifephotography/htdocs/change_voted_a_install.php on line 4

So I will try playing with the path and seing if I can make it work... I hate paths :)

Ill try... if you can fix it before me feel free to try again :)  THanks
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: AntiNSA2 on March 03, 2009, 05:24:02 AM
OK, I cant get it to work... when I change the paths nothing works, except when I change it to:

define('ROOT_PATH', "./");

Then it starts but I get a 404 error message right after it starts....
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: V@no on March 03, 2009, 07:42:59 AM
Yes well, what is doing in your 4image root directory? it's belong in admin/plugins/
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: AntiNSA2 on March 03, 2009, 08:20:43 AM
 :oops: :oops: :oops: :oops: :oops:

If all the greatest mountains were this easy to solve


thanks
Title: Re: [Plugin][Mod] Extension for Votes saved in DB
Post by: AntiNSA2 on March 03, 2009, 09:06:55 AM
So just to refresh my memory voted_a_install.php is no longer important.

change_voted_a_install.php is the one you need right?

Everytime I try to run the voted_a_install.php from the plugin panel I get the error

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/lifephotography/htdocs/admin/plugins/voted_a_install.php on line 4

Warning: include() [function.include]: Failed opening './global.php' for inclusion (include_path='.:/usr/local/share/pear') in /home/lifephotography/htdocs/admin/plugins/voted_a_install.php on line 4


SSo I guess it is the changed one we need.