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.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
Reply
Page 9 of 15 « 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: 07-02-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, 1247 views)
File Type: jpg screen2.JPG (38.3 KB, 1331 views)

Old 03-11-2007, 06:06 PM   #81
radicalman
vB Newbie

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 59
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   #82
michael_s
vB Newbie

Activity Longevity
0/20 12/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   #83
B34ST
Coder

B34ST's Avatar

Activity Longevity
0/20 18/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   #84
B34ST
Coder

B34ST's Avatar

Activity Longevity
0/20 18/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   #85
radicalman
vB Newbie

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 59
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   #86
radicalman
vB Newbie

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 59
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   #87
B34ST
Coder

B34ST's Avatar

Activity Longevity
0/20 18/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
Old 03-12-2007, 09:39 PM   #88
radicalman
vB Newbie

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 59
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

Thank you...now I know a little more about VB.
And that worked perfectly.

Now to figure out why it cuts off text.
Reply With Quote Installed
Old 03-13-2007, 06:26 AM   #89
Michael Biddle
Staff
Michael Biddle's Avatar

Activity Longevity
1/20 18/20
Today Posts
0/3 sssss2818
Location: Anaheim
Age: 22
Michael Biddle is on a distinguished road
Status: Offline Default
what do u mean it cuts off text?
Support will only be offered through forums
Michael Biddle / vBHackers.com
vBSEO 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
Reply With Quote Author of thread
Old 03-25-2007, 11:49 PM   #90
radicalman
vB Newbie

radicalman's Avatar

Activity Longevity
0/20 11/20
Today Posts
0/3 sssssss26
Location: Minnesota, USA
Age: 59
radicalman is on a distinguished road
Status: Offline Default
Quote:
Originally Posted by whitemike View Post
what do u mean it cuts off text?
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!
Reply With Quote Installed

Reply
Page 9 of 15 « 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 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.
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!