Member Log In
Site Navigation
Latest Modifications
- [vB 3.8.4] THX - Hack for VB. 3.8.4
By: bluedog - [vB 3.8.4] Cyb - Chatbox V.2.3
By: bluedog - [vB 4.0.x] PHPKD - Advanced Quick...
By: PHPKD - [vB 3.6.x] StopSpam
By: flappi282 - [vB 3.8.x] vBulletin Chat Addon for...
By: 123flashchat
Latest Template Mods
- [vB 4.0.x] Remove My Profile Link...
By: Ak Worm - [vB 3.8.x] Images DownloadBox...
By: cRs!MP - [vB 3.8.x] Adviertise Mod On Forum...
By: MG4 - [vB 3.8.4] Images PassWordBox...
By: cRs!MP - [vB 3.8.4] Footer Follow Ups
By: Ak Worm
Latest Styles
- [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
By: Belon - [vB 4.0.x] [4.0.3] vbdesigns.de...
By: Belon - [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
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 don't see anything in there that says vb_recipe. What am I supposed to be looking for? Thanks for the reply. | |
| |
| | #82 | ||||||||
| 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. | ||||||||
| |
| | #83 |
| |
Status: Offline I'd say this is a sweet hack, just what I was looking for. Thanks! |
| |
| | #84 | |
| |
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 | |
| |
| | #85 |
| |
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. |
| |
| | #86 | |
| |
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. | |
| |
| | #87 |
| |
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... |
| |
| | #88 | |
| |
Status: Offline Quote:
Thank you...now I know a little more about VB. And that worked perfectly. Now to figure out why it cuts off text. | |
| |
| | #89 | |||||||||
Location: Anaheim Age: 22 ![]() |
Status: Offline what do u mean it cuts off text? Support will only be offered through forums Michael Biddle / vBHackers.comvBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for download now vBSEO Google Sitemap Generator - Version 2.5 Released Crawlability Network: vBulletin SEO | vBulletin Hackers | |||||||||
| |
| | #90 |
| |
Status: Offline I'll just let one of the many letters I get from my members explain it. LETTER::: I first tried to post my red beans and rice...to no avail... First off, when I clicked to preview...it only gave me a partial preview. I thought this was how it was supposed to look, so I clicked on submit thread and I got a message telling me that priority fields or something like that, were not filled in...and sure enough I scrolled down the page and all the other fields were blank and I had to fill them in again ( after several tries) from the preview page. Only to find out I evidently, used too many characters as certain fields just cut me off...like ingredients and description. I tried to delete the thread....but it still shows. I would like to just delete the whole thing. What is the advantage of leaving a dead thread that you can still view even tho it has been deleted? People will just be buggin' the hell out of me for the rest of the recipe! lol! Then I went and posted a shorter recipe...mac and cheese...I see it automatically numbers things....but not correctly...I looked at other threads and they were not numbered correctly either. The script kinda has a mind of its own. lol! |
| |
![]() |
| 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 05:52 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.



























