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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2010, 09:03 AM
ozidoggy ozidoggy is offline
Junior Member
 
Join Date: Jun 2008
Posts: 10
Default widgets

Has anyone any idea how to place recent or random links in a widget for the cms?
Reply With Quote
  #2  
Old 03-14-2010, 02:14 PM
Dennis Kaczor's Avatar
Dennis Kaczor Dennis Kaczor is offline
Member
 
Join Date: Sep 2005
Posts: 57
Default

Great idea and I too would like to see this as well.

Dennis
Reply With Quote
  #3  
Old 03-18-2010, 05:12 AM
KristerSwe's Avatar
KristerSwe KristerSwe is offline
Junior Member
 
Join Date: Dec 2006
Posts: 13
Default

+1
Reply With Quote
  #4  
Old 03-19-2010, 04:59 AM
rotor rotor is offline
Member
 
Join Date: Aug 2007
Posts: 43
Default

That would be great - anyone looking at this??
Reply With Quote
  #5  
Old 03-19-2010, 05:34 AM
KristerSwe's Avatar
KristerSwe KristerSwe is offline
Junior Member
 
Join Date: Dec 2006
Posts: 13
Thumbs up

Quote:
Originally Posted by ozidoggy View Post
Has anyone any idea how to place recent or random links in a widget for the cms?
Yeah but that is already there on the mainpage. widget could have hottest, featured or something else. anyone with skills who can jump in on this
__________________
Best Regards / Chris
Reply With Quote
  #6  
Old 03-28-2010, 07:36 PM
interfx interfx is offline
Senior Member
 
Join Date: Aug 2004
Posts: 340
Default

I am also looking for this... It's so great to have VBaLinks working on VB4.x now...
__________________
InterFX
<br><br>

my Clients using VBa:
ChristianMom.com | BrassReview.com | TrumpetForum.com
Reply With Quote
  #7  
Old 04-01-2010, 09:36 PM
karlm karlm is offline
Misandry is a hate crime
 
Join Date: Jul 2006
Location: England
Posts: 145
Default

+1 more
__________________
What is misandry anyway?
Reply With Quote
  #8  
Old 04-05-2010, 12:25 PM
roymogg roymogg is offline
Member
 
Join Date: Jul 2007
Location: London UK
Posts: 30
Post Random links home page in a widget

Hi All,

I put random links on the CMS homepage with this code which is a mod to the classifieds hack. Needs tidying up and it is work in progress and the thumshots do fail to turn up occasionally.

PHP Code:
$host 'localhost';
$dbUser 'forum';
$dbPass 'pass';
$db 'your_forum';
mysql_connect("$host""$dbUser""$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());

ob_start();

$result mysql_query("SELECT linkid,name,linkurl,catid,username FROM bf_adv_links ORDER BY rand() LIMIT 5" ) or die(mysql_error());

while(
$link mysql_fetch_array$result )) {

print
"<center>";
print 
"<a href=" $link['linkurl'] . " " "target=\"_blank\">" ."<img src=\"http://open.thumbshots.org/image.aspx?url=".$link['linkurl']." ""width=\"120\" height=\"90\" border=\"0\" />" "</a>";
print 
"<br />";
print 
$link['name'] . " listed by " $link['username'];
print 
"</center>";
}

$output .= ob_get_contents();
ob_end_clean(); 
but it works for me

Cheers

RoyMogg
__________________
RoyMogg at:
http://www.bizface.co.uk
Reply With Quote
  #9  
Old 04-08-2010, 11:23 AM
claystation claystation is offline
Junior Member
 
Join Date: Mar 2010
Posts: 16
Default

rss feed widget works as well
Reply With Quote
  #10  
Old 04-09-2010, 11:39 AM
roymogg roymogg is offline
Member
 
Join Date: Jul 2007
Location: London UK
Posts: 30
Post RSS feed

can you get the thumnails to show up in the RSS feed?
__________________
RoyMogg at:
http://www.bizface.co.uk
Reply With Quote
  #11  
Old 04-09-2010, 11:42 AM
claystation claystation is offline
Junior Member
 
Join Date: Mar 2010
Posts: 16
Default

no thumbnails show, That would be nice though.
Reply With Quote
  #12  
Old 04-18-2010, 07:23 PM
NashChristian's Avatar
NashChristian NashChristian is offline
Senior Member
 
Join Date: Nov 2007
Location: Nashville, Tennessee
Posts: 249
Question

Quote:
Originally Posted by roymogg View Post
Hi All,

I put random links on the CMS homepage with this code which is a mod to the classifieds hack. Needs tidying up and it is work in progress and the thumshots do fail to turn up occasionally.

PHP Code:
$host 'localhost';
$dbUser 'forum';
$dbPass 'pass';
$db 'your_forum';
mysql_connect("$host""$dbUser""$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());

ob_start();

$result mysql_query("SELECT linkid,name,linkurl,catid,username FROM bf_adv_links ORDER BY rand() LIMIT 5" ) or die(mysql_error());

while(
$link mysql_fetch_array$result )) {

print
"<center>";
print 
"<a href=" $link['linkurl'] . " " "target=\"_blank\">" ."<img src=\"http://open.thumbshots.org/image.aspx?url=".$link['linkurl']." ""width=\"120\" height=\"90\" border=\"0\" />" "</a>";
print 
"<br />";
print 
$link['name'] . " listed by " $link['username'];
print 
"</center>";
}

$output .= ob_get_contents();
ob_end_clean(); 
but it works for me

Cheers

RoyMogg
I was actually kind of hopefull about this, but after visiting your site, not one single thumbnail showed up, even for TLD's.

Has anyone found a solution yet, which includes the thumbshots?
Reply With Quote
  #13  
Old 04-19-2010, 05:16 AM
roymogg roymogg is offline
Member
 
Join Date: Jul 2007
Location: London UK
Posts: 30
Post Latest Links CMS Home

Hi Nashchristian

I did change this to select the latest links as they seem to show up more regularly. So include 'dateline' in the SQL select statement and ORDER BY dateline DESC limit 5

REM
__________________
RoyMogg at:
http://www.bizface.co.uk
Reply With Quote
  #14  
Old 04-19-2010, 06:25 AM
NashChristian's Avatar
NashChristian NashChristian is offline
Senior Member
 
Join Date: Nov 2007
Location: Nashville, Tennessee
Posts: 249
Default

Quote:
Originally Posted by roymogg View Post
Hi Nashchristian

I did change this to select the latest links as they seem to show up more regularly. So include 'dateline' in the SQL select statement and ORDER BY dateline DESC limit 5

REM
Hello Roymogg,

I am really looking for a widget that will do the random links... otherwise it keeps the SAME links on the page and that gets boring.

Thanks anyway. If you ever get this to work right, with thumbs, on random, let me know! I'll be the first to install it.

THanks. Jeff
Reply With Quote
  #15  
Old 06-02-2010, 12:56 PM
Bergler Bergler is offline
Member
 
Join Date: Dec 2006
Posts: 59
Default

I tried to install this widget but I get this error, any ideas?

Quote:
Table 'db*****_bcfr2009.bf_adv_links' doesn't exist
Reply With Quote
  #16  
Old 06-02-2010, 02:49 PM
roymogg roymogg is offline
Member
 
Join Date: Jul 2007
Location: London UK
Posts: 30
Post error is prefix on my forum

Quote:
Originally Posted by Bergler View Post
I tried to install this widget but I get this error, any ideas?
If you look at the query ( bf_adv_links) it is from my forum) the prefix is the one I use for the links directory tables. So you should just edit the above code to replace the bf_ with the prefix you use (or if you don't) then just remove it.

I did not notice when I copied accross the code.

regards

RoyMogg
__________________
RoyMogg at:
http://www.bizface.co.uk
Reply With Quote
  #17  
Old 06-02-2010, 03:03 PM
Bergler Bergler is offline
Member
 
Join Date: Dec 2006
Posts: 59
Default

That worked, thank you! How do you change it to show new instead of random? Also is there away to have the link in the widget go to the redirection link or details page instead of the direct link, to the link?

Last edited by Bergler; 06-02-2010 at 03:29 PM.
Reply With Quote
  #18  
Old 06-03-2010, 02:58 AM
roymogg roymogg is offline
Member
 
Join Date: Jul 2007
Location: London UK
Posts: 30
Post Links CMS

This should work:

PHP Code:
$result mysql_query("SELECT dateline,linkid,name,linkurl,catid,username FROM adv_links ORDER BY dateline DESC LIMIT 5" ) or die(mysql_error()); 
RoyMogg
__________________
RoyMogg at:
http://www.bizface.co.uk
Reply With Quote
  #19  
Old 06-03-2010, 01:03 PM
Bergler Bergler is offline
Member
 
Join Date: Dec 2006
Posts: 59
Default

Thats worked good, thanks for that! Any suggestions on the other, "away to have the link in the widget go to the redirection link or details page instead of the direct link, to the link?"

Thanks
Reply With Quote
  #20  
Old 06-10-2010, 11:37 PM
Bergler Bergler is offline
Member
 
Join Date: Dec 2006
Posts: 59
Default

Quote:
Originally Posted by Bergler View Post
how to have the link in the widget go to the redirection link or details page instead of the direct link?[/I]"

Thanks
Any one know if this is possible?
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
Widgets on vbadvance page wmlvb Module & Modification Discussion & Requests 0 09-13-2008 11:00 AM
How can I create module to show these widgets? GentleOceanWind "How Do I..." Questions 3 04-30-2008 12:06 PM
weather and fox nfl widgets StuntFactoryX Add-On Modules (version 3.x & 2.x) 13 12-12-2007 02:16 AM


All times are GMT -4. The time now is 08:21 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.