• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki Modifications
    • vBulletin 3.x Addons
    • [Miscellaneous Hacks] Newest Wiki pages link, in Forumhome, and in Wiki front page

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    2. Notes About Third-Party Modifications

      The product modifications posted in this forum were created by end-users like yourself, who have shared them for the benefit of their peers. However, these modifications have not been reviewed by VaultWiki staff, are not endorsed by the VaultWiki Team or Cracked Egg Studios LLC, and our staff does not provide support services for such modifications. Unless otherwise stated in a third-party agreement, please use third-party modifications at your own risk.

    Results 1 to 6 of 6

    Thread: Newest Wiki pages link, in Forumhome, and in Wiki front page

    • Thread Tools
      • Show Printable Version
    1. Newest Wiki pages link, in Forumhome, and in Wiki front page Details »

      Newest Wiki pages link, in Forumhome, and in Wiki front page

      MOD Information

      • Add a Comment
      • Jump to Comments
      • The Developer
      • About Developer
      Version: 1.0, by
      basketmen
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      (Junior Member) basketmen is offline
      Developer Last Online: Apr 2015 Show Printable Version Email this Page

      Category: [Miscellaneous Hacks] Version: 3.0.x Rating: 
      Released: July 18, 2011 Last Update: Never Installs: 1
      Supported Uses Plugins Template Edits
      Re-useable Code Additional Files Is in Beta Stage  

      Warning : please make backup before doing this, use it with your own risk

      before, i asked about this in this thread https://www.vaultwiki.org/threads/5050/ , but its says its not available, so i decided to create it by my self, and i did it for Forumhome, here is how.

      Newest Wiki pages link, in Forumhome
      It is by using our vaultwiki feed, based on this hack : Latest Blog Feed in Postbit using Carp RSS http://www.vbulletin.org/forum/showthread.php?t=91781 , that mod is for showing rss feed in postbit, but we will showing vaultwiki rss feed in forumhome. So same methode, only different template, they are using postbit template, we are using forumhome template

      1. download and install carp http://www.geckotribe.com/rss/carp/ in your site, make sure its working first by read they instruction, i use the free version its works too. Carp is RSS Parser, it will get vaultwiki rss link

      2. go to admincp >> Plugins & Products >> Add New Plugin, with below content
      Product : vbulletin
      Hook Location : global_start
      Title : Carp Configuration
      Execution Order : 5
      Plugin PHP Code :
      Code:
      if (in_array(THIS_SCRIPT, array('index', 'showwiki')))
      {
      require_once '/path/to/carp/carp.php';  // change the path to your carp.php path installation
      CarpConf('cacheinterval',120); 
      
      /** You can omit the above two lines without a problem **/ 
      CarpConf('cborder',''); 
      CarpConf('poweredby',''); 
      CarpConf('maxitems',10); // i set to showing 10 newest vaultwiki page links, you can showing to another number
      CarpConf('iorder','link'); 
      }
      3. go to admincp >> Plugins & Products >> Add New Plugin, another one, with below content
      Product : vbulletin
      Hook Location : forumhome_start
      Title : wiki rss feed for forumhome
      Execution Order : 5
      Plugin PHP Code :
      Code:
      ob_start(); 
      CarpCacheShow("http://www.domain.com/forum/external.php?type=rss2&forumids=xxx");  // change the forum path with yours, and xxx to forumid that used for your vaultwiki
      $wikirssfeedforforumhome = ob_get_contents(); 
      ob_end_clean();
      4. Put this code anywhere that you want in your forumhome template : $wikirssfeedforforumhome
      i put it above 'What's Going On?' box, it will showing 10 newest vaultwiki pages in forum home

      screenshot
      newest-wiki-pages-jpg

      5. Thats it, its simple enough

      Newest Wiki pages link, in Wiki front page

      Step 1 and 2 you dont need do again, if you already do it above, only need to do it once above

      3. go to admincp >> Plugins & Products >> Add New Plugin, another one, with below content
      Product : VaultWiki
      Hook Location : vault_showthread_complete
      Title : wiki rss feed for wiki home
      Execution Order : 5
      Plugin PHP Code :
      Code:
      if ($vault->error & VAULT_NOID) {
      ob_start(); 
      CarpCacheShow("http://www.domain.com/forum/external.php?type=rss2&forumids=xxx");  // change the forum path with yours, and xxx to forumid that used for your vaultwiki
      $wikirssfeedforwikihome = ob_get_contents(); 
      ob_end_clean();
      }
      4.
      - Open vault_article_main template
      - Search for :
      Code:
      $footer
      - add this code above it :
      Code:
      <if condition="$vault->error & VAULT_NOID">
      $wikirssfeedforwikihome
      </if>
      - this will showing Newest wiki Pages in your vault wiki front page, screenshot
      newest-wiki-pages2-jpg

      5. Thats it, its simple enough

      this mod maybe working for vb4 too

      Screenshots

      • File Type: jpg newest wiki pages.jpg (12.7 KB, 30 views)
      • File Type: jpg newest wiki pages2.jpg (16.2 KB, 24 views)


      Show Your Support

      • This modification may not be copied, reproduced or published elsewhere without author's permission.

    2. July 20, 2011 #2
      basketmen
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      basketmen is offline
      Junior Member
      Join Date
      August 19, 2007
      Posts
      7
      Rep Power
      0
      added for Wiki front page, thank you pegasus for the hook used clue
      Reply With Quote Reply With Quote

    3. July 21, 2011 #3
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      If you're only using Carp on forum home and wiki home, maybe you don't need to load its config on every forum page. Instead you can just test:
      Code:
      THIS_SCRIPT == 'index' OR $vault->error & VAULT_NOID
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    4. July 24, 2011 #4
      basketmen
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      basketmen is offline
      Junior Member
      Join Date
      August 19, 2007
      Posts
      7
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      If you're only using Carp on forum home and wiki home, maybe you don't need to load its config on every forum page. Instead you can just test:
      Code:
      THIS_SCRIPT == 'index' OR $vault->error & VAULT_NOID
      i think its not working, but this is working, the hack above updated, thank you for the clue again, make the hack better
      Code:
      if (in_array(THIS_SCRIPT, array('index', 'showwiki')))
      Reply With Quote Reply With Quote

    5. July 24, 2011 #5
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Hi, you also suggest this mod will work for vB4. In vB4, the template edit won't work.
      Code:
      &lt;if condition="...">...&lt;/if>
      This is deprecated and won't work in the vault_article_main template.
      Instead vB4 syntax should be used:
      Code:
      &lt;vb:if condition="...">...&lt;/vb:if>
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    6. July 27, 2011 #6
      basketmen
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      basketmen is offline
      Junior Member
      Join Date
      August 19, 2007
      Posts
      7
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      Hi, you also suggest this mod will work for vB4. In vB4, the template edit won't work.
      Instead vB4 syntax should be used:
      ah yes, i just said maybe, since i am never using vb4, but the concept is same, only need change some part like the template code like you said sbove for vb4
      Reply With Quote Reply With Quote

    Similar Threads

    1. Hide wiki link in menu for guests and users. Only for mods and admins till wiki is filled
      By domenico in forum VaultWiki Questions
      Replies: 2
      Last Post: March 12, 2013, 12:39 PM
    2. Link directly to Book from Wiki splash page?
      By Tzu-Theory in forum VaultWiki Questions
      Replies: 2
      Last Post: August 22, 2011, 7:05 PM
    3. Add 'New pages' and 'New pages' content to wiki front page
      By basketmen in forum VaultWiki Questions
      Replies: 6
      Last Post: July 20, 2011, 10:55 PM
    4. Promote a wiki article to CMS front page
      By stev in forum General Discussion
      Replies: 6
      Last Post: December 7, 2010, 3:57 PM
    5. Newest / most read wiki post widget
      By stev in forum Ideas & Suggestions
      Replies: 4
      Last Post: May 24, 2010, 3:22 PM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • 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 Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 2:11 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.