Author Topic: Hits werden nur bis 32767 gezählt? Lösung hier:  (Read 9818 times)

0 Members and 1 Guest are viewing this topic.

Offline guest

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://3dcrew.com
Hits werden nur bis 32767 gezählt? Lösung hier:
« on: November 24, 2002, 07:11:46 PM »
Hallo,

ich hatte eben das Problem, daß die Hits einer Kategorie insgesamt nur bis 32767 gezählt werden; vielleicht hat ja noch jemand das Problem.
Ich habe es durch eine Änderung des Feldparameters von der Tabelle 4images_categories -> cat_hits gelöst, einfach von smallint auf int stellen.

Vielleicht hilft es ja irgendwann mal jemandem :)

Greetz - der Gast ;)
^.^

Offline totaldämlich

  • Newbie
  • *
  • Posts: 48
    • View Profile
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #1 on: March 12, 2003, 03:13:28 PM »
Danke Mensch!
Wollt gerade danach fragen und hab aber vorher die Suchfuntion benutzt.
Hat geholfen! Tolle Sache.
Hab mich irgentwann gewundert das die Kategorien bei 32767 stehen geblieben sind...   8O ´

Aber geht ja jetzt

FETES DANK SCHÖN

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #2 on: May 15, 2003, 10:31:02 PM »

Offline guest

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://3dcrew.com
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #3 on: May 16, 2003, 04:28:28 PM »
thx HelpMeNow,

but this this thread wasn't for asking anything, it was the solution for that prob ;)

thx anyway :) - theGuest
^.^

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
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #4 on: May 16, 2003, 06:20:28 PM »
Quote from: guest
but this this thread wasn't for asking anything, it was the solution for that prob ;)

 :? u got us....lol
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 HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #5 on: May 16, 2003, 06:46:55 PM »
Quote from: guest
thx HelpMeNow,

but this this thread wasn't for asking anything, it was the solution for that prob ;)

thx anyway :) - theGuest


lol, well that's what I get for not understanding German!  :oops:

 :D

Offline balu

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://www.coverengine.de/4images
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #6 on: May 21, 2003, 08:46:03 PM »
wo muss man das ändern?
where have i change this and how?
total newbie in php lol  :oops:
Jürgen
-------------------------------------------------------
Wer Rechtschreibfehler findet, darf sie behalten!


Offline guest

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://3dcrew.com
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #7 on: May 21, 2003, 08:52:46 PM »
am besten geht das in phpmyadmin oder auch webmin...
Die Datenbank auswählen und dann die folgende Anweisung als SQL ausführen:
Quote
ALTER TABLE `4images_categories` CHANGE `cat_hits` `cat_hits` MEDIUMINT( 10 ) DEFAULT '0' NOT NULL
So wie es V@no hier auch geschrieben hat. :)

Gruss - Guest ;)
^.^

Offline balu

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://www.coverengine.de/4images
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #8 on: May 21, 2003, 09:18:06 PM »
das sind für mich "Bömische Dörfer"
geht das nicht ohne irgendwelche programme?
Jürgen
-------------------------------------------------------
Wer Rechtschreibfehler findet, darf sie behalten!


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
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #9 on: May 21, 2003, 10:03:22 PM »
Quote from: balu
where have i change this and how?
total newbie in php lol  :oops:

ok, heres is a quick script for u ;)
Code: [Select]
<?php
define
&#40;'ROOT_PATH', './'&#41;;
include&#40;ROOT_PATH.'global.php'&#41;;
echo &#40;$site_db->query&#40;"ALTER TABLE ".CATEGORIES_TABLE." CHANGE `cat_hits` `cat_hits` MEDIUMINT&#40; 10 &#41; DEFAULT '0' NOT NULL"&#41;&#41; ? "Ok" &#58; "Error";
?>

save it as whatever_name_u_want.php
upload it into your 4images root dir and start it from the address bar of your browser:
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 balu

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://www.coverengine.de/4images
Hits werden nur bis 32767 gezählt? Lösung hier:
« Reply #10 on: May 22, 2003, 07:33:13 AM »
Great Sir, many THX!!!!
Jürgen
-------------------------------------------------------
Wer Rechtschreibfehler findet, darf sie behalten!