View previous topic :: View next topic |
Author |
Message |
Cyberian75
Joined: 26 Sep 2002 Posts: 967 Location: Washington
|
|
Back to top |
|
 |
thefaded
Joined: 19 Mar 2003 Posts: 15
|
Posted: Wed Mar 19, 2003 10:10 pm Post subject: |
|
|
thanks |
|
Back to top |
|
 |
thefaded
Joined: 19 Mar 2003 Posts: 15
|
Posted: Wed Mar 19, 2003 10:32 pm Post subject: |
|
|
Quote: |
$post_title = addslashes($HTTP_POST_VARS["post_title"]);
$post_category = intval($HTTP_POST_VARS["post_category"]);
$post_mood = intval($HTTP_POST_VARS["post_mood"]);
if ($user_level == 0)
die ("Cheatin' uh ?");
|
I don't have the $post_category = intval($HTTP_POST_VARS["post_category"]); Part?
also
Quote: |
Add the code in RED at approximately line 72
$query = "INSERT INTO $tableposts (ID, post_author, post_date, post_content, post_title, post_category, post_mood) VALUES ('0','$user_ID','$now','$content','".$post_title."','".$post_category."','".$post_mood."')";
$result = mysql_query($query) or mysql_oops($query);
|
So i searched for $result = mysql_query($query) or mysql_oops($query);
so i could put the code before it, and it couldn't find that ?
I do't know what version of B2 I have, it was the auto-installer one from hostradius.. so what should i do? |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 967 Location: Washington
|
Posted: Wed Mar 19, 2003 10:42 pm Post subject: |
|
|
The version is at the bottom of b2edit page. Let me know. _________________ Michael P. |
|
Back to top |
|
 |
thefaded
Joined: 19 Mar 2003 Posts: 15
|
Posted: Wed Mar 19, 2003 10:44 pm Post subject: |
|
|
b2 v0.6pre |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 967 Location: Washington
|
Posted: Wed Mar 19, 2003 10:49 pm Post subject: Important Notice |
|
|
After you install this hack, it is imperative that you change the type of mood_id field to "primary" and "unique". Also, you have to change the "Extra" type to "auto_increment" if you are planning to add more moods.
You can change all those under "Action" section you see when you first enter a page for that specific table. To change "Extra," click on "Change" and then select it from the "Extra" drop-down box. _________________ Michael P.
Last edited by Cyberian75 on Wed Mar 19, 2003 10:53 pm; edited 1 time in total |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 967 Location: Washington
|
Posted: Wed Mar 19, 2003 10:51 pm Post subject: |
|
|
thefaded wrote: | b2 v0.6pre |
You have to upgrade your b2. I suggest that you do it manually. _________________ Michael P. |
|
Back to top |
|
 |
thefaded
Joined: 19 Mar 2003 Posts: 15
|
Posted: Wed Mar 19, 2003 10:54 pm Post subject: |
|
|
Cyberian75 wrote: | thefaded wrote: | b2 v0.6pre |
You have to upgrade your b2. I suggest that you do it manually. |
mmkay |
|
Back to top |
|
 |
rong
Joined: 14 Feb 2003 Posts: 3
|
|
Back to top |
|
 |
|