Member Log In
Site Navigation
Latest Modifications
- [vB 3.6.x] StopSpam
By: flappi282 - [vB 3.8.x] vBulletin Chat Addon for...
By: 123flashchat - [vB 3.5.x] 404 Page Redirect To...
By: Ak Worm - [vB 3.8.x] 404 Page Redirect To...
By: Ak Worm - [vB 4.0.x] 404 Page Redirect To...
By: Ak Worm
Latest Template Mods
- [vB 3.8.4] Images PassWordBox...
By: cRs!MP - [vB 3.8.4] Footer Follow Ups
By: Ak Worm - [vB 3.7.2] Worldofwarcraft blue...
By: Mikeyodesigns - [vB 3.7.0] My Links
By: blind-eddie - [vB 3.7.0] Pop-Up Warning Before...
By: Thelonius Beck
Latest Styles
- [vB 3.8.4] CompletevB - Skylight
By: DreadKnight - [vB 3.8.3] [vB 3.8.4] Barcelona...
By: hoiquantinhoc.com - [vB 3.8.3] Natures Walk by vBSkin...
By: Chri5 - [vB 3.8.3] Green Theme
By: Robdog - [vB 3.8.2] Unreal T 3 - vB3.8.x
By: Butcher
Latest Graphics
- [vB ] [anim.]Team Ranks
By: cRs!MP - [vB ] Abstract Circles (3...
By: cRs!MP - [vB ] PlayStation Rank Images
By: cRs!MP - [vB 3.6.12] Heavy Stroked Button...
By: Shelley - [vB ] Minature Ranks.
By: Shelley
vBulletin Modifications »
vBulletin Modifications »
vBulletin 3.5 / 3.6 Hack Releases »
Major Additions - Recipe Mod
![]() |
| |||||||||||||||||||||||||||||||
| | #81 | |
| |
Status: Offline Quote:
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. | |
| |
| | #82 | |
| |
Status: Offline Quote:
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. | |
| |
| | #83 | ||||||||
| vB Newbie
![]() |
Status: Offline 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. | ||||||||
| |
| | #84 | |
| |
Status: Offline Quote:
I don't see anything in there that says vb_recipe. What am I supposed to be looking for? Thanks for the reply. | |
| |
| | #85 | ||||||||
| vB Newbie
![]() |
Status: Offline 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 07:09 PM. | ||||||||
| |
| | #86 |
| |
Status: Offline I'd say this is a sweet hack, just what I was looking for. Thanks! |
| |
| | #87 | |
| |
Status: Offline Quote:
Code: <if condition="$post[postcount] == 1 && $thread[forumid] == x(replace with forumid of your recipe mod)"> <else /> You should be fine now | |
| |
| | #88 |
| |
Status: Offline Mine says exactly what you have posted. But it still cuts off parts of recipe. I tested a few times to make sure. |
| |
| | #89 | |
| |
Status: Offline Quote:
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 04:54 PM. | |
| |
| | #90 |
| |
Status: Offline 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... |
| |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mod Request | Goku | vBulletin Modification Requests | 2 | 11-30-2006 04:04 PM |
| Only admin and Mod forum !!! | cyberman | vBulletin Modification Requests | 6 | 11-25-2006 08:36 AM |
| [Req] Transaction Mod For uCash/uShop..read please ;) | TwiSteD | vBulletin Modification Requests | 57 | 04-09-2005 11:55 AM |
All times are GMT. The time now is 10:17 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.






















