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

Reply
 
Thread Tools Display Modes
  #41  
Old 09-25-2005, 05:48 AM
AndyA AndyA is offline
Member
 
Join Date: Apr 2005
Posts: 99
Default Re: CMPS Module - Latest or Hot Links

Thanks for that.

I now have this installed but the links module isn't collapseable, can anyone advise ?

My site

Andy
Reply With Quote
  #42  
Old 11-05-2005, 08:59 PM
eden eden is offline
Member
 
Join Date: Dec 2004
Posts: 79
Default Re: CMPS Module - Latest or Hot Links

How can we use this with 3.5 ?
Reply With Quote
  #43  
Old 01-10-2006, 09:43 AM
terrymason terrymason is offline
Junior Member
 
Join Date: Nov 2005
Posts: 15
Default Re: CMPS Module - Latest or Hot Links

I'd like to have a new version too!
Reply With Quote
  #44  
Old 01-12-2006, 01:58 PM
Lance Carbuncle Lance Carbuncle is offline
Junior Member
 
Join Date: Oct 2004
Posts: 9
Default Re: CMPS Module - Latest or Hot Links

Will this work with 3.5x? any news on when it will be upgraded if so?

Thanks, Allen
Reply With Quote
  #45  
Old 02-20-2006, 12:41 PM
Benjamini Benjamini is offline
Junior Member
 
Join Date: Aug 2004
Posts: 15
Default Re: CMPS Module - Latest or Hot Links

Quote:
Originally Posted by Lance Carbuncle
Will this work with 3.5x? any news on when it will be upgraded if so?

Thanks, Allen
same question here
Reply With Quote
  #46  
Old 02-20-2006, 10:57 PM
IndyWebDesign IndyWebDesign is offline
Member
 
Join Date: Mar 2004
Posts: 45
Default Re: CMPS Module - Latest or Hot Links

Here is a modified version I did to work with vb 3.5.3 and CMPS 2.1.0.

I have it working here:

http://www.rchangout.com
Attached Files
File Type: module randomlinks.module (4.7 KB, 24 views)
Reply With Quote
  #47  
Old 02-21-2006, 04:41 PM
Benjamini Benjamini is offline
Junior Member
 
Join Date: Aug 2004
Posts: 15
Default Re: CMPS Module - Latest or Hot Links

Quote:
Originally Posted by IndyWebDesign
Here is a modified version I did to work with vb 3.5.3 and CMPS 2.1.0.

I have it working here:

http://www.rchangout.com
thank you very much!!!

edit:

Quote:
The file you have uploaded is not a valid module file.
whats wrong? i have a vb 3.5.2 & CMPS 2.0.0

Last edited by Benjamini; 02-21-2006 at 04:45 PM.
Reply With Quote
  #48  
Old 02-21-2006, 05:07 PM
Benjamini Benjamini is offline
Junior Member
 
Join Date: Aug 2004
Posts: 15
Default Re: CMPS Module - Latest or Hot Links

Here are the manually from your .module.

now it works, but i think there is a littele problem with the template or any other thing...



"title" "Random Links"
"identifier" "latestlinks"
"filename" "latestlinks.php"
"templatelist" "adv_portal_latestlinks, adv_portal_linkbits"

"adv_portal_latestlinks"

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
	<thead>
	<tr>
		<td class="tcat">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latestlinks')"><img id="collapseimg_latestlinks" 

src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_latestlinks.gif" alt="" border="0" /></a>
		<span class="smallfont"><strong>$vba_style[portal_blockbullet] $mods[title]</strong></span></td>
	</tr>
	</thead>
	<tbody id="collapseobj_latestlinks" style="$collapseobj_latestlinks">

$linkbits

</table>
<br />
"adv_portal_linkbits"

Code:
<tr>
		<td class="$getbgrow">
<div><a href="$linkurl/showlink.php?$session[sessionurl]do=showdetails&amp;l=$link[linkid]">$link[name]</a></div>
<div class="smallfont">
$vbphrase[by] 
<if condition="$link['userid']"><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$link[userid]">$link[username]</a>
<else />
$vbphrase[guest]
</if><br />
$link[date] <span class="time">$link[time]</span><br />
<a href="$linkurl/browselinks.php?$session[sessionurl]c=$link[catid]">$link[catname]</a><br />
$link[posts] $vbphrase[replies], $link[views] $vbphrase[views]

</div>
	</td>
	</tr>
latestlinks.php

PHP Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS 1.0.0 - Latest Links for vBa Links Directory            ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved      ||
// || This file may not be redistributed in whole or significant part.        ||
// || http://vbadvanced.com                                                   ||
// ++ ========================================================================++
// || Modified to work with CMPS 2.1.0 and vB 3.5.3                      ||
// || Added option for Random Links                              ||
// ++ ========================================================================++

// The order you would like to pull the links in. 
// Enter 1 for newest, 2 for most viewed, 3 for most comments, 4 for highest rated, 5 for random
$order 5;

// Enter the number of links you would like to display here
$limit 5;

// The URL to your links directory with NO trailing slash '/'
$linkurl 'http://www.yoursite.com/links';

// Maximum characters of the links name before the rest will be replaced with '...'
// Set this to 0 to disable it.
$maxnamechars 0;

// No further editing necessary


switch($order)
{
    case 
2:
        
$orderby 'views DESC';
        break;
    case 
3:
        
$orderby 'posts DESC';
        break;
    case 
4:
        
$votequery 'IF(votenum >= ' $vboptions['showvotes'] . ', votenum, 0) AS votenum, IF(votenum >= ' $vboptions['showvotes'] . ' AND votenum> 0, votetotal / votenum, 0) AS voteavg,';
        
$orderby 'voteavg DESC, votenum DESC';
        break;
    case 
5:
        
$orderby 'RAND()';
        break;
    default:
        
$orderby 'dateline DESC';
}

// Get private directories
if ($catinfo unserialize($datastore['links_d_cache']))
{
    
$privcatids = array();
    foreach (
$catinfo as $cats)
    {
        if (
$cats['private'])
        {
            
$privcatids[] = $cats['catid'];
        }
    }
    
$privcats 'AND links.catid NOT IN (' implode(','$privcatids) . ')';
}

$getlinks $db->query("
    SELECT 
$votequery links.*, links_categories.title FROM " TABLE_PREFIX "links AS links
    LEFT JOIN " 
TABLE_PREFIX "links_categories AS links_categories ON (links.catid = links_categories.catid)
    WHERE valid = 1 AND suspended = 0 
$privcats
    ORDER BY 
$orderby
    LIMIT 
$limit
"
);
while (
$link $db->fetch_array($getlinks))
{
    
$link['catname'] = stripslashes($link['title']);
    
$link['name'] = fetch_trimmed_title(stripslashes($link['name']), $maxnamechars);
    
$link['username'] = stripslashes($link['username']);
    
$link['date'] = vbdate($vboptions['dateformat'], $link['dateline']);
    
$link['time'] = vbdate($vboptions['timeformat'], $link['dateline']);
    
$link['posts'] = number_format($link['posts']);
    
$link['replies'] = number_format($link['replies']);

    
$getbgrow exec_switch_bg();
    eval(
'$linkbits .= "' fetch_template('adv_portal_linkbits') . '";');
}

$collapseobj_latestlinks $vbcollapse['collapseobj_latestlinks'];
$collapseimg_latestlinks $vbcollapse['collapseimg_latestlinks'];

eval(
'$home[$mods[\'modid\']][\'content\'] = "' fetch_template('adv_portal_latestlinks') . '";');

?>
Reply With Quote
  #49  
Old 02-23-2006, 07:29 AM
Benjamini Benjamini is offline
Junior Member
 
Join Date: Aug 2004
Posts: 15
Default Re: CMPS Module - Latest or Hot Links

... nobody can help? here are a lot of vbadvanced users and nobody got a running hotest link module?
Reply With Quote
  #50  
Old 03-03-2006, 02:46 PM
Torqued Torqued is offline
Senior Member
 
Join Date: Oct 2004
Posts: 122
Default Re: CMPS Module - Latest or Hot Links

Anyone else figure this one out?
Reply With Quote
  #51  
Old 08-19-2006, 01:23 AM
orphan's Avatar
orphan orphan is offline
Member
 
Join Date: Jan 2006
Location: Örebro, Sweden
Posts: 39
Default Re: CMPS Module - Latest or Hot Links

Quote:
Originally Posted by RetroDreams View Post
Is this not functional with 3.5? When I attempt to run it, I get the following error:

Fatal error: Call to a member function on a non-object in /home/dukecoun/public_html/indy/forums/modules/latestlinks.php on line 56

Got the same when trying this module on 3.6
Seems to be SQL related but cant really figure it out
Reply With Quote
  #52  
Old 09-06-2006, 01:20 PM
rolando rolando is offline
Member
 
Join Date: Jan 2006
Posts: 50
Exclamation Re: CMPS Module - Latest or Hot Links

I tried Benjiman's latest codes from above, check all characters, but got this, Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/vhosts/glamour1.com/htdocs/forums/modules/latestlinks.php on line 20

I checked, and this is what I have on the PHP file,
Code:
//*The*order*you*would*like*to*pull*the*links*in.*
//*Enter*1*for*newest,*2*for*most*viewed,*3*for*most*comments,*4*for*highest*rated,*5*for*random
$order*=*5;

//*Enter*the*number*of*links*you*would*like*to*display*here
$limit*=*5;

//*The*URL*to*your*links*directory*with*NO*trailing*slash
$linkurl*=*'http://www.glamour1.com/links';

//*Maximum*characters*of*the*links*name*before*the*rest*will*be*replaced*with*'...'
//*Set*this*to*0*to*disable*it.
$maxnamechars*=*0;

//*No*further*editing*necessary
Any ideas? I'd love to make it work, thanks, rg.
Reply With Quote
  #53  
Old 09-06-2006, 01:22 PM
rolando rolando is offline
Member
 
Join Date: Jan 2006
Posts: 50
Default Re: CMPS Module - Latest or Hot Links

I don't have *'s it printed this way on the post, it should be
Code:
//*The*order*you*would*like*to*pull*the*links*in.*
//*Enter*1*for*newest,*2*for*most*viewed,*3*for*most*comments,*4*for*highest*rated,*5*for*random
$order*=*5;

//*Enter*the*number*of*links*you*would*like*to*display*here
$limit*=*5;

//*The*URL*to*your*links*directory*with*NO*trailing*slash
$linkurl*=*'http://www.glamour1.com/links';

//*Maximum*characters*of*the*links*name*before*the*rest*will*be*replaced*with*'...'
//*Set*this*to*0*to*disable*it.
$maxnamechars*=*0;

//*No*further*editing*necessary
Reply With Quote
  #54  
Old 09-06-2006, 01:49 PM
ncangler's Avatar
ncangler ncangler is offline
Senior Member
 
Join Date: Dec 2004
Posts: 299
Default Re: CMPS Module - Latest or Hot Links

Try plugging this in:
Quote:
// The order you would like to pull the links in.
// Enter 1 for newest, 2 for most viewed, 3 for most comments, 4 for highest rated, 5 for random
$order=5;

// Enter the number of links you would like to display here
$limit=5;

// The URL to your links directory with NO trailing slash
$linkurl='http://www.glamour1.com/links';

// Maximum characters of the links name before the rest will be replaced with '...'
// Set this to 0 to disable it.
$maxnamechars=0;

// No further editing necessary
I just removed the *'s.
__________________
NCangler
Reply With Quote
  #55  
Old 09-06-2006, 02:39 PM
rolando rolando is offline
Member
 
Join Date: Jan 2006
Posts: 50
Default Re: CMPS Module - Latest or Hot Links

got it, thanks. Found the problem after I posted. Now, I'd like to break it into columns for the center colum where you could add the thumbnail...working it, thanks, rg.
Reply With Quote
  #56  
Old 09-17-2006, 02:32 PM
interfx interfx is offline
Senior Member
 
Join Date: Aug 2004
Posts: 340
Default Re: CMPS Module - Latest or Hot Links

Anyone get this working with 3.6.1? I've tried above, but doesn't work... Not sure what I am doing wrong... (or if it even works with 3.6.1)

Thanks -
InterFX
__________________
InterFX
<br><br>

my Clients using VBa:
ChristianMom.com | BrassReview.com | TrumpetForum.com
Reply With Quote
  #57  
Old 10-01-2006, 11:37 PM
ang2el ang2el is offline
Member
 
Join Date: Oct 2005
Posts: 44
Default CMPS Module - Latest or Hot Links

I am also looking for random links in the CMPS page please let me know if 3.6.1 with CMPS v2.2.0. is there

Thanks for the help.

Last edited by ang2el; 10-03-2006 at 10:57 PM.
Reply With Quote
  #58  
Old 10-20-2006, 03:14 PM
Nuguru Nuguru is offline
Junior Member
 
Join Date: Jun 2006
Posts: 29
Question Re: CMPS Module - Latest or Hot Links

Quote:
Originally Posted by Brian View Post
For all of those running both the CMPS and the links directory, here's a module that will allow you to display the latest, highest rated, most viewed, or most replied to links on your CMPS pages. To install, first add these two templates:

adv_portal_latestlinks
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
	<tr>
		<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] $mods[title]</strong></span></td>
	</tr>

	$linkbits

</table>
<br />
adv_portal_linkbits
Code:
<tr>
<td class="$getbgrow">
<div><a href="$linkurl/showlink.php?$session[sessionurl]do=showdetails&amp;l=$link[linkid]">$link[name]</a></div>
<div class="smallfont">
$vbphrase[by] 
<if condition="$link['userid']"><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$link[userid]">$link[username]</a>
<else />
$vbphrase[guest]
</if><br />
$link[date] <span class="time">$link[time]</span><br />
<a href="$linkurl/browselinks.php?$session[sessionurl]c=$link[catid]">$link[catname]</a><br />
$link[posts] $vbphrase[replies], $link[views] $vbphrase[views]

</div>
</td>
</tr>

Then download the latestlinks.php attachement below. In the first few lines of the file you will see a place to set the different options. Once you have them set as you would like, upload the file to your /forum/modules directory.

Now add a new module with the following information:

Module Title: Latest Links (or whatever you would like to call this module on your CMPS)
File to Include: latestlinks.php
Templates Used: adv_portal_latestlinks, adv_portal_linkbits

Save the module and you're done.

Hello Everyone,

This looks like a really good mod but I am wondering if it will work with vb3.5.4 and 3.5.5?

If so, is there anything special that has to be done (other than following the given directions) to get it working in those 2 vb editions?


Thank You,

Nuguru
Reply With Quote
  #59  
Old 10-21-2006, 01:06 PM
Nuguru Nuguru is offline
Junior Member
 
Join Date: Jun 2006
Posts: 29
Question Re: CMPS Module - Latest or Hot Links

Quote:
Originally Posted by Nuguru View Post
Hello Everyone,

This looks like a really good mod but I am wondering if it will work with vb3.5.4 and 3.5.5?

If so, is there anything special that has to be done (other than following the given directions) to get it working in those 2 vb editions?


Thank You,

Nuguru
Hello,

Does anyone know?
Reply With Quote
  #60  
Old 10-23-2006, 11:37 AM
drewbe121212 drewbe121212 is offline
Member
 
Join Date: Jul 2005
Posts: 63
Default Re: CMPS Module - Latest or Hot Links

V 3.6:

http://www.vbadvanced.com/forum/showthread.php?t=18416
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
Add Links Awaiting Moderation to Your vBa CMPS Quick Moderation Module Brian Modifications 27 10-09-2010 02:21 PM
Integrate the Links Directory with the CMPS Brian Modifications 48 08-19-2006 12:57 AM
[REQ] - Top 10 or Latest Links side block. ricoche Modifications 1 01-27-2005 09:36 AM
Links Module suttercane Add-On Modules & Modifications 0 07-08-2004 03:13 PM


All times are GMT -4. The time now is 03:21 AM.

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.