boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RELEASE: b2moods 0.1
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Cyberian75



Joined: 26 Sep 2002
Posts: 967
Location: Washington

PostPosted: Wed Mar 19, 2003 10:02 pm    Post subject: Reply with quote

You can get it at http://www.indiboi.com/b2work/b2mood/
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
thefaded



Joined: 19 Mar 2003
Posts: 15

PostPosted: Wed Mar 19, 2003 10:10 pm    Post subject: Reply with quote

thanks
Back to top
View user's profile Send private message
thefaded



Joined: 19 Mar 2003
Posts: 15

PostPosted: Wed Mar 19, 2003 10:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 967
Location: Washington

PostPosted: Wed Mar 19, 2003 10:42 pm    Post subject: Reply with quote

The version is at the bottom of b2edit page. Let me know.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
thefaded



Joined: 19 Mar 2003
Posts: 15

PostPosted: Wed Mar 19, 2003 10:44 pm    Post subject: Reply with quote

b2 v0.6pre
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 967
Location: Washington

PostPosted: Wed Mar 19, 2003 10:49 pm    Post subject: Important Notice Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 967
Location: Washington

PostPosted: Wed Mar 19, 2003 10:51 pm    Post subject: Reply with quote

thefaded wrote:
b2 v0.6pre



You have to upgrade your b2. I suggest that you do it manually.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
thefaded



Joined: 19 Mar 2003
Posts: 15

PostPosted: Wed Mar 19, 2003 10:54 pm    Post subject: Reply with quote

Cyberian75 wrote:
thefaded wrote:
b2 v0.6pre



You have to upgrade your b2. I suggest that you do it manually.

mmkay
Back to top
View user's profile Send private message
rong



Joined: 14 Feb 2003
Posts: 3

PostPosted: Fri Nov 07, 2003 3:53 am    Post subject: SourceForge project location Reply with quote

FYI: Find the code at http://emotif.sourceforge.net/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group