vBulletin Modifications

Major Additions - Recipe Mod

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Supported
[vB 3.6.7] Major Additions - Recipe Mod (166)
Released: 12-31-2006, 04:27 PM
Modification Information:
Michael Biddle's Avatar Author: Michael Biddle
Last Online: 08-30-2008
Demo: View Online Demo!
Hack Version: 1.6 Installer Included: 1 Additional queries added to database: 1
New Templates: 3 Template Edits: 3 File Edits: 0
New Files: 0 New Phrases: 12 Installation Time (In Minutes): 5

vB 3.6.0 Compatible!
Plugin
Recipe Mod
By: whitemike
Demo: Here

NOTE: Support will be provided here, but I will get to it sooner on my official site. vBulletin Zone

Installation:
  1. Templates to add:3
  2. Templates to edit:3
  3. Plugins Added: 14
  4. Phrases Added: 12
  5. Quires ran: 9

Instructions:
  1. Import the Product .xml
  2. Edit templates
Editpost:

Find:

You must first be a registered member to view any code.


Add Under:

You must first be a registered member to view any code.
Find:
You must first be a registered member to view any code.


Add After:

You must first be a registered member to view any code.


Showthread:

Find:

You must first be a registered member to view any code.


Add Under:

You must first be a registered member to view any code.


Find:
You must first be a registered member to view any code.


Add Under:
You must first be a registered member to view any code.


Find:
You must first be a registered member to view any code.


Add Above:
You must first be a registered member to view any code.


Newthread:

Find:
You must first be a registered member to view any code.


Add Under:
You must first be a registered member to view any code.


Find:

You must first be a registered member to view any code.


Add After:
You must first be a registered member to view any code.
Find:
You must first be a registered member to view any code.
Replace with:
You must first be a registered member to view any code.

Postbit(_legacy):

Add at Top:


You must first be a registered member to view any code.


Add at End:

You must first be a registered member to view any code.


Find:

You must first be a registered member to view any code.
Add After:
You must first be a registered member to view any code.


Fixes:

1.6
  1. Added another template edit into the newthread template to remove the preview post option

1.5
  1. Added a vboption for the forumid's for the templates to make easier on client side
1.4
  1. Added Template Grouping
  2. Cached Templates
  3. Other small minor changes
1.3
  1. Fixed Spelling - Duh
1.2
  1. Fixed Major Edit Post Bug - Thanks to Nick for opening my eyes
1.1
  1. Fixed Edit Post Bug
  2. Fixed Spelling Error

Thats it!

Configure
  1. Go to ACP -> Forums & Moderators -> Forum Manager -> Pick a forum and at bottom it has a new yesno setting
  2. Go to ACP -> vBulletin Options -> Recipe Mod Database -> Enter the forumid's used for your forum

Please Click Install if you use



Screenshots
Screenshots
File Type: jpg screen1.JPG (39.2 KB, 1218 views)
File Type: jpg screen2.JPG (38.3 KB, 1299 views)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 03-11-2007, 02:30 PM   #81
I'ma VB Newbie, I'm Not Stupid
radicalman's Avatar
Join Date: Feb 2007
Real Name: Leo
Location: Minnesota, USA
radicalman is on a distinguished road

Default

Quote:
Originally Posted by michael_s View Post
So is there any way to get this to stop showing?

See the screenshot. Basically a post is being shown with the exact same contents as the instrcutions box.

I added the part to showthread that is supposed to kill this section but it is not quite working right I think.

I get that to and it looks bad and confuses the members.
It should have just a reply ... and not that additional section.

I also notced it cuts off parts of the recipe in the Ingredients and Instructions.
Not sure about the other ones.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 03-11-2007, 02:43 PM   #82
I'ma VB Newbie, I'm Not Stupid
radicalman's Avatar
Join Date: Feb 2007
Real Name: Leo
Location: Minnesota, USA
radicalman is on a distinguished road

Default

Quote:
Originally Posted by rogersnm View Post
If you look at the install code you'll see:
You must first be a registered member to view any code.
That means it the max length you can have it is 250, the highest you can make it before it will error is 255, you need to change it to mediumtext which is unlimited.

Where do you change it to mediumtext?
Since most recipes are much larger than this hack allows, I need more characters. Or most recipes are cut of... and sort of useless.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-2007, 02:55 PM   #83
vB Newbie
Join Date: Jan 2007
michael_s is on a distinguished road

Default

Quote:
Originally Posted by radicalman View Post
Where do you change it to mediumtext?
Since most recipes are much larger than this hack allows, I need more characters. Or most recipes are cut of... and sort of useless.
You need to change the field properties of the database. Use phpmyadmin and change it from varchar to mediumtext. It is a pretty easy operation.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-2007, 03:06 PM   #84
I'ma VB Newbie, I'm Not Stupid
radicalman's Avatar
Join Date: Feb 2007
Real Name: Leo
Location: Minnesota, USA
radicalman is on a distinguished road

Default

Quote:
Originally Posted by michael_s View Post
You need to change the field properties of the database. Use phpmyadmin and change it from varchar to mediumtext. It is a pretty easy operation.
Oh great! Now there's a place I am not familiar with and not even sure what to look for.
I don't see anything in there that says vb_recipe.
What am I supposed to be looking for?

Thanks for the reply.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-2007, 04:06 PM   #85
vB Newbie
Join Date: Jan 2007
michael_s is on a distinguished road

Default

Look in the thread table:

recipe_time varchar(250)
recipe_description varchar(250)
recipe_prep varchar(250)
recipe_difficult varchar(250)
recipe_ingrediants varchar(250)
recipe_size varchar(250)
recipe_steps mediumtext

To find where the new fields were added, all you needed to do was go to the Mange Products section in the vbCP and edit the recipe database plugin. You would then see the sql that is inserted into the database in the section called Existing Install/Uninstall Code. That tells exactly where it is putting things. You have all the info available to you right in your admin panel.


$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD enable_recipe TINYINT( 1 ) NOT NULL");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_time VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_description VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_prep VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_difficult VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_ingrediants VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_size VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD (recipe_steps MEDIUMTEXT NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD (recipe_stats INT(5) NOT NULL DEFAULT '0')");

Last edited by michael_s; 03-11-2007 at 04:09 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-2007, 10:04 PM   #86
Coder
B34ST's Avatar
Join Date: Feb 2005
B34ST is on a distinguished road

Default

I'd say this is a sweet hack, just what I was looking for. Thanks!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2007, 12:13 PM   #87
Coder
B34ST's Avatar
Join Date: Feb 2005
B34ST is on a distinguished road

Default

Quote:
Originally Posted by michael_s View Post
So is there any way to get this to stop showing?

See the screenshot. Basically a post is being shown with the exact same contents as the instrcutions box.

I added the part to showthread that is supposed to kill this section but it is not quite working right I think.
Open postbit template put above all:

You must first be a registered member to view any code.
and place </if> at the end of your postbit template.

You should be fine now




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2007, 01:41 PM   #88
I'ma VB Newbie, I'm Not Stupid
radicalman's Avatar
Join Date: Feb 2007
Real Name: Leo
Location: Minnesota, USA
radicalman is on a distinguished road

Default

Mine says exactly what you have posted.
But it still cuts off parts of recipe.

I tested a few times to make sure.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2007, 01:51 PM   #89
I'ma VB Newbie, I'm Not Stupid
radicalman's Avatar
Join Date: Feb 2007
Real Name: Leo
Location: Minnesota, USA
radicalman is on a distinguished road

Default

Quote:
Originally Posted by B34ST View Post
Open postbit template put above all:

You must first be a registered member to view any code.
and place </if> at the end of your postbit template.

You should be fine now
I tried that and get this message::

The following template conditional expression contains function calls:

<if condition="$post[postcount] == 1 && $thread[forumid] == x(replace with forumid of your recipe mod)">

Function Name Usage in Expression xx(replace with forumid of your recipe mod)
With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()


OOOOOOPS! I see what I did wrong...sorry.

Ok..stupid question.
What would the forum id look like?

Last edited by radicalman; 03-12-2007 at 01:54 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2007, 03:47 PM   #90
Coder
B34ST's Avatar
Join Date: Feb 2005
B34ST is on a distinguished road

Default

Quote:
Originally Posted by radicalman View Post
.
What would the forum id look like?
There are many ways to discover the forumid ill try to make it easy as possible... When you select a forum your url changes to hxxp://www.yoursite.com/forums/forumdisplay.php?f=x probably. The number on place of last x is the forumid...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mod Request Goku vBulletin Modification Requests 2 11-30-2006 01:04 PM
Only admin and Mod forum !!! cyberman vBulletin Modification Requests 6 11-25-2006 05:36 AM
[Req] Transaction Mod For uCash/uShop..read please ;) TwiSteD vBulletin Modification Requests 57 04-09-2005 08:55 AM


All times are GMT -3. The time now is 06:47 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)