Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Recipe Mod Database Details »»
Recipe Mod Database
Version: 1.6, by Michael Biddle Michael Biddle is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.x Rating:
Released: 03-22-2007 Last Update: 06-24-2007 Installs: 117
Supported Uses Plugins Template Edits
 

Recipe Mod
By: whitemike
Demo: Here
Official Requests: 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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sternenfee

Comments
  #192  
Old 05-14-2007, 08:44 AM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are several spelling errors, including "recipies" in postbit. It should be spelled recipes.

Is there any chance of getting those corrected? I can't read code and I don't know how to edit the xml or if I even have to to fix them.
Reply With Quote
  #193  
Old 05-15-2007, 02:55 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought I already updated this.

SOrry, redownload, let me know if i mistyped anything else
Reply With Quote
  #194  
Old 05-15-2007, 05:11 AM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yay, it looks all right now. It's entirely possible you had updated it after I downloaded it. I dawdled getting mods installed while I reorganized the forum.
Reply With Quote
  #195  
Old 05-18-2007, 07:12 PM
Aimee1969 Aimee1969 is offline
 
Join Date: Apr 2007
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When we go to post a recipe we get this:
Please complete both the subject and message fields.

What is wrong? Please help...
Reply With Quote
  #196  
Old 05-19-2007, 12:29 AM
niteslave niteslave is offline
 
Join Date: Feb 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive followed your instructions and double checked them but alas this still doesnt work for me. Any suggestions?
Reply With Quote
  #197  
Old 05-19-2007, 12:43 PM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be used with multiple boards? My members LOVE the mod, but they want their recipes organized. When I tried to add more forumid numbers with commas between though, I got a code error.

Let me just clarify I'm talking about the postbit. I reread and realized how poorly worded this was for my question.

The postbit legacy shows how many recipies have been posted. I want it to count posts in all the forums being used for recipes.

Obviously I can and have enabled this mod for all the recipe forums.
Reply With Quote
  #198  
Old 05-19-2007, 05:59 PM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry reread instuctions i just updated it. Just where X was in the postbit make it

array(x,x,x,x,x)

where x being all of the forumid's. View my demo, it shows it is possiable
Reply With Quote
  #199  
Old 05-19-2007, 09:08 PM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok product updated.
Reply With Quote
  #200  
Old 05-20-2007, 11:39 AM
talenak talenak is offline
 
Join Date: Feb 2006
Location: Washington
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're awesome! Thanks,

I tried to rate the mod excellent and it my mouse went crazy and picked terrible!! I feel so guilty and it won't let me rerate it! *blush* I nominated for mod of the month though.
Reply With Quote
  #201  
Old 05-20-2007, 03:42 PM
Shelly Shelly is offline
 
Join Date: Feb 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome mod, we have a ton of recipes submitted by all users, is there any way to add a rating system to them similar to this boards?
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 10:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05355 seconds
  • Memory Usage 2,323KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (20)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete