4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 16, 2018, 01:29:39 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support)
| | |-+  Plugins (Moderators: mawenzi, Rembrandt)
| | | |-+  [Plugin][Mod] Extension for Votes saved in DB
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: [Plugin][Mod] Extension for Votes saved in DB  (Read 26710 times)
effemmess
Sr. Member
****
Offline Offline

Posts: 304

Thank You
-Given: 0
-Receive: 0


View Profile
« 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

* change_voted_a_install.zip (2.05 KB - downloaded 24 times.)
« Last Edit: March 02, 2009, 04:56:53 PM by V@no » Logged

ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« 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
Logged
knuffi
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
dosensteck
Full Member
***
Offline Offline

Posts: 160

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged
AntiNSA2
Hero Member
*****
Offline Offline

Posts: 774

Thank You
-Given: 0
-Receive: 2

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


View Profile WWW
« 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.....
Logged

As long as I can finish my site before I die.
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« 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
1
2
$root_path = (eregi("\/plugins\/"$PHP_SELF)) ? "./../../" "./../";
define('ROOT_PATH'$root_path);

with this:
1
define('ROOT_PATH'"./../../");
Logged

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)
AntiNSA2
Hero Member
*****
Offline Offline

Posts: 774

Thank You
-Given: 0
-Receive: 2

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


View Profile WWW
« 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 Smile

Ill try... if you can fix it before me feel free to try again Smile  THanks
Logged

As long as I can finish my site before I die.
AntiNSA2
Hero Member
*****
Offline Offline

Posts: 774

Thank You
-Given: 0
-Receive: 2

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


View Profile WWW
« 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....
Logged

As long as I can finish my site before I die.
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 577

mmm PHP...


View Profile WWW
« 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/
Logged

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)
AntiNSA2
Hero Member
*****
Offline Offline

Posts: 774

Thank You
-Given: 0
-Receive: 2

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


View Profile WWW
« Reply #9 on: March 03, 2009, 08:20:43 AM »

 Embarassed Embarassed Embarassed Embarassed Embarassed

If all the greatest mountains were this easy to solve


thanks
Logged

As long as I can finish my site before I die.
AntiNSA2
Hero Member
*****
Offline Offline

Posts: 774

Thank You
-Given: 0
-Receive: 2

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


View Profile WWW
« 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.
Logged

As long as I can finish my site before I die.
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.08 seconds with 20 queries.
Post your comments here