Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

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
Reply
Page 9 of 16 « First < 78 9 1011 > Last »

 

  • Thread Tools
Download Options
You Must Register First
To Download This Modification

Report A Bug
Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs
  
Supported
[vB 3.6.7] Major Additions - Recipe Mod (174)
Released: 12-31-2006, 07:27 PM
Modification Information: Version: 1.6
Michael Biddle's Avatar Author: Michael Biddle
Last Online: 03-14-2010
Demo: View Online Demo!
Installer Included: 1 Additional queries added to database: 1 Template Edits: 3
File Edits: New Files: New Phrases: 12

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:

Code:
<!-- / subject field -->


Add Under:

Code:
<if condition="$threadinfo[firstpostid] == $postinfo[postid] AND $foruminfo[enable_recipe]">
$editrecipe 
<else />
Find:
Code:
        $messagearea
        <!-- / message area -->

        $posticons
        
            </td>
        </tr>
        </table>
        
        </div>
    </div>


Add After:

Code:
</if>


Showthread:

Find:

Code:
 $Navbar


Add Under:

Code:
<if condition="$foruminfo[enable_recipe]">
$recipe
</if>


Find:
Code:
<a name="poststop" id="poststop"></a>


Add Under:
Code:
<if condition="$no_posts">
<else />


Find:
Code:
<div id="posts">$postbits<div id="lastpost"></div></div>


Add Above:
Code:
</if>


Newthread:

Find:
Code:
<!-- / subject field -->


Add Under:
Code:
<if condition="$foruminfo[enable_recipe]">
$newrecipe
<else />


Find:

Code:
        <!-- / message area -->

        $imagereg

        $posticons
        
            </td>
        </tr>
        </table>
        
        </div>
    </div>


Add After:
Code:
</if>
Find:
Code:
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
Replace with:
Code:
<if condition="$foruminfo[enable_recipe]"></else><input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" /></if>

Postbit(_legacy):

Add at Top:


Code:
<if condition="$post[postcount] == 1 && in_array($thread['forumid'], array($vboptions[recipe_forums]))">
<if condition="$show['attachments']">
        <!-- attachments -->
            <div style="padding:$stylevar[cellpadding]px">
            
            <if condition="$show['thumbnailattachment']">
                <fieldset class="fieldset">
                    <legend>$vbphrase[attached_thumbnails]</legend>
                    <div style="padding:$stylevar[formspacer]px">
                    $post[thumbnailattachments]
                    </div>
                </fieldset>
            </if>
        
            <if condition="$show['imageattachment']">
                <fieldset class="fieldset">
                    <legend>$vbphrase[attached_images]</legend>
                    <div style="padding:$stylevar[formspacer]px">
                    $post[imageattachments]
                    </div>
                </fieldset>
            </if>
            
            <if condition="$show['imageattachmentlink']">
                <fieldset class="fieldset">
                    <legend>$vbphrase[attached_images]</legend>
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                    $post[imageattachmentlinks]
                    </table>
                    </fieldset>
            </if>
            
            <if condition="$show['otherattachment']">
                <fieldset class="fieldset">
                    <legend>$vbphrase[attached_files]</legend>
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                    $post[otherattachments]
                    </table>
                </fieldset>
            </if>
            
            <if condition="$show['moderatedattachment']">
                <fieldset class="fieldset">
                    <legend>$vbphrase[attachments_pending_approval]</legend>
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                    $post[moderatedattachments]
                    </table>
                </fieldset>        
            </if>
            
            </div>
        <!-- / attachments -->
        </if>
<else />


Add at End:

Code:
</if>


Find:

Code:
<div>$vbphrase[posts]: $post[posts]</div>
Add After:
Code:
<div>$vbphrase[recipe_stats]: $post[recipe_stats]</div>


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, 1246 views)
File Type: jpg screen2.JPG (38.3 KB, 1329 views)

Old 03-11-2007, 05:30 PM   #81
radicalman
I'ma VB Newbie, I'm Not Stupid

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 58
radicalman is on a distinguished road
Status: Offline 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.
Reply With Quote Installed
Old 03-11-2007, 05:43 PM   #82
radicalman
I'ma VB Newbie, I'm Not Stupid

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 58
radicalman is on a distinguished road
Status: Offline Default
Quote:
Originally Posted by rogersnm View Post
If you look at the install code you'll see:
Code:
VARCHAR(250)
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.
Reply With Quote Installed
Old 03-11-2007, 05:55 PM   #83
michael_s
vB Newbie

Activity Longevity
0/20 11/20
Today Posts
0/3 ssssssss5
michael_s is on a distinguished road
Status: Offline 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.
Reply With Quote Installed
Old 03-11-2007, 06:06 PM   #84
radicalman
I'ma VB Newbie, I'm Not Stupid

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 58
radicalman is on a distinguished road
Status: Offline 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.
Reply With Quote Installed
Old 03-11-2007, 07:06 PM   #85
michael_s
vB Newbie

Activity Longevity
0/20 11/20
Today Posts
0/3 ssssssss5
michael_s is on a distinguished road
Status: Offline 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 07:09 PM.
Reply With Quote Installed
Old 03-12-2007, 01:04 AM   #86
B34ST
Coder

B34ST's Avatar

Activity Longevity
0/20 17/20
Today Posts
0/3 sssssss94
B34ST is on a distinguished road
Status: Offline Default
I'd say this is a sweet hack, just what I was looking for. Thanks!
Reply With Quote Installed
Old 03-12-2007, 03:13 PM   #87
B34ST
Coder

B34ST's Avatar

Activity Longevity
0/20 17/20
Today Posts
0/3 sssssss94
B34ST is on a distinguished road
Status: Offline 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:

Code:
<if condition="$post[postcount] == 1 && $thread[forumid] == x(replace with forumid of your recipe mod)">
<else />
and place </if> at the end of your postbit template.

You should be fine now
Reply With Quote Installed
Old 03-12-2007, 04:41 PM   #88
radicalman
I'ma VB Newbie, I'm Not Stupid

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 58
radicalman is on a distinguished road
Status: Offline Default
Mine says exactly what you have posted.
But it still cuts off parts of recipe.

I tested a few times to make sure.
Reply With Quote Installed
Old 03-12-2007, 04:51 PM   #89
radicalman
I'ma VB Newbie, I'm Not Stupid

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 58
radicalman is on a distinguished road
Status: Offline Default
Quote:
Originally Posted by B34ST View Post
Open postbit template put above all:

Code:
<if condition="$post[postcount] == 1 && $thread[forumid] == x(replace with forumid of your recipe mod)">
<else />
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 04:54 PM.
Reply With Quote Installed
Old 03-12-2007, 06:47 PM   #90
B34ST
Coder

B34ST's Avatar

Activity Longevity
0/20 17/20
Today Posts
0/3 sssssss94
B34ST is on a distinguished road
Status: Offline 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...
Reply With Quote Installed

Reply
Page 9 of 16 « First < 78 9 1011 > Last »

« [vBulletin 3.5.x - 3.6.x] Cash Casino Center 2.4 | Time Count Down »

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

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

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 Rules

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.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!