Author Topic: [Plugin][Mod] Extension for Votes saved in DB  (Read 34382 times)

0 Members and 2 Guests are viewing this topic.

Offline effemmess

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
[Plugin][Mod] Extension for Votes saved in DB
« 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

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

Downloadlink
« Last Edit: March 02, 2009, 04:56:53 PM by V@no »

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #1 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

Offline knuffi

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #2 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

Offline dosensteck

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #3 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.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #4 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.....
As long as I can finish my site before I die.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #5 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'"./../../");
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #6 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
As long as I can finish my site before I die.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #7 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....
As long as I can finish my site before I die.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #8 on: March 03, 2009, 07:42:59 AM »
Yes well, what is doing in your 4image root directory? it's belong in admin/plugins/
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #9 on: March 03, 2009, 08:20:43 AM »
 :oops: :oops: :oops: :oops: :oops:

If all the greatest mountains were this easy to solve


thanks
As long as I can finish my site before I die.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Plugin][Mod] Extension for Votes saved in DB
« Reply #10 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.
As long as I can finish my site before I die.