vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v3.0 Support > Modifications

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2008, 12:12 AM
Lionel Lionel is offline
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
File Type: jpg vblinks.jpg (8.6 KB, 242 views)
Attached Files
File Type: zip vbalinks.zip (721 Bytes, 88 views)
__________________
Real useful and Cool vBulletin addons

Last edited by Lionel; 06-01-2008 at 01:38 AM.
Reply With Quote
  #2  
Old 06-01-2008, 05:16 AM
Ramses Ramses is offline
Senior Member
 
Join Date: Aug 2005
Posts: 249
Default Re: Fake vBalinks as forum

Nice work, thank you Lionel.
Reply With Quote
  #3  
Old 06-01-2008, 06:09 PM
BWJ BWJ is offline
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...
Reply With Quote
  #4  
Old 06-01-2008, 06:14 PM
Lionel Lionel is offline
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
Reply With Quote
  #5  
Old 06-01-2008, 10:44 PM
Parabellum's Avatar
Parabellum Parabellum is offline
Junior Member
 
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
Reply With Quote
  #6  
Old 06-01-2008, 11:00 PM
Lionel Lionel is offline
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
Reply With Quote
  #7  
Old 06-01-2008, 11:03 PM
Parabellum's Avatar
Parabellum Parabellum is offline
Junior Member
 
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
Reply With Quote
  #8  
Old 06-01-2008, 11:06 PM
Lionel Lionel is offline
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
Reply With Quote
  #9  
Old 06-01-2008, 11:10 PM
Parabellum's Avatar
Parabellum Parabellum is offline
Junior Member
 
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!
Reply With Quote
  #10  
Old 06-01-2008, 11:15 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: Fake vBalinks as forum

On top of my head (not tested)

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

Quote:
$forum['replycount'] = $totpost['totpost'];
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #11  
Old 06-02-2008, 01:22 AM
Parabellum's Avatar
Parabellum Parabellum is offline
Junior Member
 
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'];
Reply With Quote
  #12  
Old 06-02-2008, 01:53 AM
Lionel Lionel is offline
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
__________________
Real useful and Cool vBulletin addons

Last edited by Lionel; 06-02-2008 at 01:55 AM.
Reply With Quote
  #13  
Old 06-02-2008, 02:51 AM
Parabellum's Avatar
Parabellum Parabellum is offline
Junior Member
 
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.
Reply With Quote
  #14  
Old 06-29-2008, 12:46 AM
ozidoggy ozidoggy is offline
Junior Member
 
Join Date: Jun 2008
Posts: 10
Default Re: Fake vBalinks as forum

Quote:
Originally Posted by Lionel View Post
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
Can someone please explain to me how and where I place this piece of code?

Thanks

By the way GREAT mod!
Reply With Quote
  #15  
Old 06-29-2008, 07:06 AM
PhilMcKrackon's Avatar
PhilMcKrackon PhilMcKrackon is offline
Senior Member
 
Join Date: Apr 2008
Posts: 523
Default Re: Fake vBalinks as forum

Quote:
Originally Posted by ozidoggy View Post
Can someone please explain to me how and where I place this piece of code?
Look at my example just above your post. You can see where I have placed class="smallfont" to control the font size on the $forum['lastpostinfo'] line (3rd from last).
Reply With Quote
  #16  
Old 06-29-2008, 07:23 AM
ozidoggy ozidoggy is offline
Junior Member
 
Join Date: Jun 2008
Posts: 10
Default Re: Fake vBalinks as forum

Thanks Phil.....
Reply With Quote
  #17  
Old 06-02-2008, 02:55 AM
Lionel Lionel is offline
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
Reply With Quote
  #18  
Old 06-03-2008, 01:37 AM
ozwebsites ozwebsites is offline
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
Reply With Quote
  #19  
Old 06-03-2008, 08:19 AM
Lionel Lionel is offline
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
Reply With Quote
  #20  
Old 06-03-2008, 03:52 PM
ozwebsites ozwebsites is offline
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?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


All times are GMT -4. The time now is 07:11 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.