Author Topic: [Mod Req] Guestbook for every member  (Read 78241 times)

0 Members and 1 Guest are viewing this topic.

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: [Mod Req] Guestbook for every member
« Reply #30 on: March 07, 2006, 01:09:47 AM »
And based on IcEcReaM warning, here is how you can go without these lines:
Code: [Select]
  $id2 = intval($HTTP_POST_VARS[URL_ID]);
  $id  = $_GET['user_id']; // pazi zaradi sql injekcij!!!

Code: [Select]
$id2 = $id;
$id = $user_id;

variables $id and $user_id are being automaticaly populated and as IcEcReaM said, sanitized by 4images itself based on _POST and _GET data.
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 Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod Req] Guestbook for every member
« Reply #31 on: March 07, 2006, 01:48:53 AM »
I've tested in my test-gallery and there is the results :

Not have save/show message and error msg :

Quote
aloha tole pa je šlo na save book


DB Error: Bad SQL Query: SELECT user_id, user_allow_book FROM 4images_users WHERE user_id =
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
SELECT user_id, user_allow_book FROM 4images_users WHERE user_id =
DB Error: Bad SQL Query: SELECT c.book_id, c.profile_id, c.user_id, c.user_name AS book_user_name, c.book_headline, c.book_text, c.book_ip, c.book_date, u.user_level, u.user_name, u.user_email, u.user_showemail, u.user_invisible, u.user_joindate, u.user_lastaction, u.user_homepage, u.user_icq FROM 4images_book c LEFT JOIN 4images_users u ON (u.user_id = c.user_id) WHERE c.profile_id = ORDER BY c.book_date ASC
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY c.book_date ASC' at line 5

 8)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [Mod Req] Guestbook for every member
« Reply #32 on: March 07, 2006, 03:11:43 AM »
i've tested it and have the same errors, but the base is good! Hope you continue writing that MOD

just a little off-topic:

Quote
$id  = $_GET['user_id']; // pazi zaradi sql injekcij!!!

Whats that bulgarian language in your code ?? :)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod Req] Guestbook for every member
« Reply #33 on: March 07, 2006, 03:33:46 AM »
and maybe missing on book_form.html between
Quote
{if rate_form}{rate_form}{endif rate_form}


 :?:

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod Req] Guestbook for every member
« Reply #34 on: March 07, 2006, 07:41:35 AM »
i've tested it and have the same errors, but the base is good! Hope you continue writing that MOD

just a little off-topic:

Quote
$id  = $_GET['user_id']; // pazi zaradi sql injekcij!!!

Whats that bulgarian language in your code ?? :)

Bolgarian? lol it's Slovenian ;)

And it means: watch for sql injection :)

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [Mod Req] Guestbook for every member
« Reply #35 on: March 07, 2006, 09:16:45 AM »
strange, in bulgarian it meens exact the same :D whatever

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod Req] Guestbook for every member
« Reply #36 on: March 07, 2006, 03:41:13 PM »
lol. then you already seen this problem.
then it might be my post was unncessary..^^
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [Mod Req] Guestbook for every member
« Reply #37 on: March 08, 2006, 04:49:23 PM »
any progress?

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod Req] Guestbook for every member
« Reply #38 on: March 09, 2006, 08:49:15 PM »
how are going this MOD ?

 8)
« Last Edit: March 12, 2006, 07:40:04 PM by Stoleti »

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [Mod Req] Guestbook for every member
« Reply #39 on: March 14, 2006, 09:25:05 AM »

I am waiting every day for this mod! :-)

How does it going on? :D

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod Req] Guestbook for every member
« Reply #40 on: March 20, 2006, 10:01:10 PM »
Well I didn't do nothing till now, couse there is no free time in my life these days... if I get two days off I might do something, but nothing to promise.

But if there is anyone who could do something till then... well you are welcome to help ;)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod Req] Guestbook for every member
« Reply #41 on: March 21, 2006, 01:21:11 AM »
Well I didn't do nothing till now, couse there is no free time in my life these days... if I get two days off I might do something, but nothing to promise.

But if there is anyone who could do something till then... well you are welcome to help ;)

if you need help , just pm me  :mrgreen: (ps: i'm not php coder, but i can be beta-tester if you wish)  :wink:

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod Req] Guestbook for every member
« Reply #42 on: March 23, 2006, 07:22:51 PM »
I was hoping that anyone else will developed this mod, couse I'm sort of stucked... :)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod Req] Guestbook for every member
« Reply #43 on: March 24, 2006, 01:19:26 AM »
any progress , and any update ?  :mrgreen:

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [Mod Req] Guestbook for every member
« Reply #44 on: April 07, 2006, 10:32:08 PM »
hello? Is there anybody??  :(
i am waiting every day for this mod!

can you give us a update? How long will it take to create this mod?

thanks a lot for the creation!