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
  #172  
Old 05-03-2007, 12:32 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and u changed the top line of the modification? like x=3, also if so, then do you have multiple forums or just this one for recipes?
Reply With Quote
  #173  
Old 05-03-2007, 12:33 AM
thepub thepub is offline
 
Join Date: Aug 2006
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

only one forum that I use this mod in and I changed X to "59" (the forumID)
Reply With Quote
  #174  
Old 05-03-2007, 12:55 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK well are you using postbit or postbit_legacy?

Make sure the first line reads this:

<if condition="$post[postcount] == 1 && $thread[forumid] == 59">
Reply With Quote
  #175  
Old 05-03-2007, 01:06 AM
thepub thepub is offline
 
Join Date: Aug 2006
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same code you posted. I used postbit_legacy, here is an attachment of a screenshot.
Reply With Quote
  #176  
Old 05-03-2007, 01:06 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wierd. Setup an admin account for me and I will look into it.
Reply With Quote
  #177  
Old 05-03-2007, 01:08 AM
thepub thepub is offline
 
Join Date: Aug 2006
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll pm you the info...
Reply With Quote
  #178  
Old 05-03-2007, 02:00 AM
thepub thepub is offline
 
Join Date: Aug 2006
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you look into it?
Reply With Quote
  #179  
Old 05-03-2007, 06:04 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant get my [img tags to work inside of it....any ideas why?

Peace
Reply With Quote
  #180  
Old 05-04-2007, 02:07 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thepub View Post
did you look into it?
Fixed, you had

<else />
</if>

The if was supposed to be at very bottom of postbit
Reply With Quote
  #181  
Old 05-04-2007, 02:13 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nymyth View Post
cant get my [img tags to work inside of it....any ideas why?

Peace
What section you want the bbcode in?
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 05:01 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.24971 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
  • (2)bbcode_quote
  • (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