Page 1 of 2 12 LastLast
Results 1 to 20 of 38

Thread: Fake vBalinks as forum

  1. #1
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Fake vBalinks as forum

    This requires a small file edit and will simulate vBalink as a forum, displaying latest link in forumhome

    Replace /showcase/ with your links directory foldername
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Lionel; 06-01-2008 at 01:38 AM.
    Real useful and Cool vBulletin addons

  2. #2
    Senior Member
    Join Date
    Aug 2005
    Posts
    250

    Default Re: Fake vBalinks as forum

    Nice work, thank you Lionel.

  3. #3
    Senior Member
    Join Date
    Jul 2005
    Posts
    120

    Default Re: Fake vBalinks as forum

    Thank you Lionel. I have not tried it yet (as I have to solve another problem first). But I definately like the idea. One question: Could it be possible to take a new link from a specific link category to a specific forum category (instead of all link categories to forum home) ? So instead of a parrot link goes to forum home it goes to the parrot forum.

    You could extend this idea even further - so every link would has its own link in its own forum category. This would incorporate the vbalinks even tighter to the forum. Just an idea...

  4. #4
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    Sure it's possible. You create as many forums as you want and link them to the category. Then you add a WHERE categoryid clause for each query.

    But why would you do that? Would be simpler to do one forum and link it to your main links folder where you have all info already the way you want it.
    Real useful and Cool vBulletin addons

  5. #5
    Junior Member Parabellum's Avatar
    Join Date
    Oct 2007
    Location
    Las Vegas, NV
    Posts
    21

    Default Re: Fake vBalinks as forum

    Thank you! Just what I was looking for.

    How can I get it to show the amount of posts in the link directory? It only shows threads.

    Thanks Again

  6. #6
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    Do you have any posts for the last link in there? They should display
    $forum['replycount'] = $link['posts'];
    Real useful and Cool vBulletin addons

  7. #7
    Junior Member Parabellum's Avatar
    Join Date
    Oct 2007
    Location
    Las Vegas, NV
    Posts
    21

    Default Re: Fake vBalinks as forum

    the latest link has no posts but the link directory it self does in other links

  8. #8
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    It display last post info for the last link only. To get for entire directory you would need to add another query to get it
    Real useful and Cool vBulletin addons

  9. #9
    Junior Member Parabellum's Avatar
    Join Date
    Oct 2007
    Location
    Las Vegas, NV
    Posts
    21

    Default Re: Fake vBalinks as forum

    what is the code I would need to add to get the total amount of posts for the link directory.

    Thank you for your time!

  10. #10
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    On top of my head (not tested)

    $totpost = $db->query_first("SELECT SUM(posts) as totpost FROM " . TABLE_PREFIX . "adv_links");
    and replace with

    $forum['replycount'] = $totpost['totpost'];
    Real useful and Cool vBulletin addons

  11. #11
    Junior Member Parabellum's Avatar
    Join Date
    Oct 2007
    Location
    Las Vegas, NV
    Posts
    21

    Default Re: Fake vBalinks as forum

    I tried it with this code and it worked

    I just added the code you gave me without replacing any. So far no problems that I can find.

    Code:
    $tot = $db->query_first("SELECT COUNT(*) as count FROM " . TABLE_PREFIX . "adv_links"); 
    $totpost = $db->query_first("SELECT SUM(posts) as totpost FROM " . TABLE_PREFIX . "adv_links");
    Code:
    $forum['threadcount'] = $tot['count'];
    $forum['replycount'] = $totpost['totpost'];

  12. #12
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    Cool. You could also fine tune the date by adding the extra css to the span. I think it's class="time" . This way the font will be the same size with the rest of your dates, and make the link title "smallfont" as it appears to be "smallfont" in your forumhome
    Last edited by Lionel; 06-02-2008 at 01:55 AM.
    Real useful and Cool vBulletin addons

  13. #13
    Junior Member Parabellum's Avatar
    Join Date
    Oct 2007
    Location
    Las Vegas, NV
    Posts
    21

    Thumbs up Re: Fake vBalinks as forum

    Changed the fonts like you said and looks perfect just like the rest of the forum. Thank you for all the help!

    Here is the link to my site with this great mod in action Demo
    Last edited by Parabellum; 06-02-2008 at 03:00 AM.

  14. #14
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    Post the link to your site for those who would want to see it, but are too lazy to click on your name or will not see it on the page or would not know to look in forums :-)
    Real useful and Cool vBulletin addons

  15. #15
    Member
    Join Date
    Jun 2008
    Location
    Brisbane
    Posts
    31

    Default Re: Fake vBalinks as forum

    I cannot get this working

    And its a great little hack.

    we have links directory in our domain root.
    forum is under /forum

    Have done the changes,

    PHP Code:
    if ($forum['forumid'] == '43')
                    {
                    global 
    $db
                    
    $tot $db->query_first("SELECT COUNT(*) as count FROM " TABLE_PREFIX "adv_links");
                    
    $link $db->query_first("SELECT linkid , name, posts, username, userid, dateline FROM " TABLE_PREFIX "adv_links ORDER BY linkid DESC");
                    
    $date vbdate($vbulletin->options['dateformat'], $link['dateline'], 1);
                    
    $time vbdate($vbulletin->options['timeformat'], $link['dateline']);        
                    
    $forum['lastpostinfo'] = '<div align="left"><strong><a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'">'.$link[name].'</a></strong><br />by <a href="member.php?find=lastposter&f='.$link[userid].'">'.$link[username].'</a><br /><span style="float:right;">'.$date.' '.$time.' <a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'"><img src="images/buttons/lastpost.gif" border="0" alt="View "></a></span></div>';
                    
    $forum['threadcount'] = $tot['count'];
                    
    $forum['replycount'] = $link['posts'];                
                    } 
    Have set up a new forum, id 43

    Dont work....

    Any suggestions?

    Ozzy

  16. #16
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    Did you link the forum? What happens when you click on it?
    Real useful and Cool vBulletin addons

  17. #17
    Member
    Join Date
    Jun 2008
    Location
    Brisbane
    Posts
    31

    Default Re: Fake vBalinks as forum

    Quote Originally Posted by Lionel View Post
    Did you link the forum? What happens when you click on it?
    Well,, I was presuming this hack... actually posts new links into the forum thread, on forum home page.

    So in the code you gave, we have replaced xx with the forum id.

    Am i missing something really obvious?

  18. #18
    Member
    Join Date
    Jun 2008
    Location
    Brisbane
    Posts
    31

    Default Re: Fake vBalinks as forum

    Here is what we have.

    in ourwebsite.com/links

    we have a category child called links.

    we have changed includes/functions_forumlist.php

    to..
    PHP Code:
    if ($forum['forumid'] == '43')
                    {
                    global 
    $db
                    
    $tot $db->query_first("SELECT COUNT(*) as count FROM " TABLE_PREFIX "adv_links");
                    
    $link $db->query_first("SELECT linkid , name, posts, username, userid, dateline FROM " TABLE_PREFIX "adv_links ORDER BY linkid DESC");
                    
    $date vbdate($vbulletin->options['dateformat'], $link['dateline'], 1);
                    
    $time vbdate($vbulletin->options['timeformat'], $link['dateline']);        
                    
    $forum['lastpostinfo'] = '<div align="left"><strong><a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'">'.$link[name].'</a></strong><br />by <a href="member.php?find=lastposter&f='.$link[userid].'">'.$link[username].'</a><br /><span style="float:right;">'.$date.' '.$time.' <a href="/links/showlink.php?do=showdetails&l='.$link[linkid].'"><img src="images/buttons/lastpost.gif" border="0" alt="View "></a></span></div>';
                    
    $forum['threadcount'] = $tot['count'];
                    
    $forum['replycount'] = $link['posts'];                
                    } 
    In admincp, for forums, we have created a forum with id 43 called links

    So where are we going wrong?

    When somone posts a link, in the vbalinks it doesnt appear on forum/links thread as this hack would suggest.

    Im sure we have got paths correct.

    Ozzy

  19. #19
    Senior Member
    Join Date
    Jan 2004
    Location
    Miami
    Posts
    1,040

    Default Re: Fake vBalinks as forum

    Just re-read simple instructions.
    Real useful and Cool vBulletin addons

  20. #20
    Member
    Join Date
    Jun 2008
    Location
    Brisbane
    Posts
    31

    Default Re: Fake vBalinks as forum

    Actually no they werent lol, well to me anyway.

    Have just got this working ^5 to you.

    Just so other eegits like me dont make the same mistake.

    In forum manager, create a new forum, and then link that forum, back to your VBALINKS

    Give it absolute url.

    Sorted at last, great hack.

    NEXT !

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fake stats help
    By daddy20 in forum Modifications (version 3.x & 2.x)
    Replies: 6
    Last Post: 01-12-2007, 10:32 PM
  2. VBaLinks 2.0?
    By interfx in forum Pre-Sale Questions
    Replies: 117
    Last Post: 10-02-2006, 12:37 PM
  3. Fake item in navigation.
    By DonLKSAB in forum "How Do I..." Questions
    Replies: 3
    Last Post: 08-16-2006, 09:48 AM
  4. VBaLinks 1.01
    By interfx in forum Pre-Sale Questions
    Replies: 15
    Last Post: 07-29-2005, 12:23 AM
  5. vBaLinks Power
    By Polo in forum Pre-Sale Questions
    Replies: 3
    Last Post: 12-15-2004, 07:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •