PDA

View Full Version : CMPS Module - Latest or Hot Links


Pages : 1 [2]

orphan
08-19-2006, 01:23 AM
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

rolando
09-06-2006, 01:20 PM
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, //*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.

Our Sponsors
 

rolando
09-06-2006, 01:22 PM
I don't have *'s it printed this way on the post, it should be
//*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

ncangler
09-06-2006, 01:49 PM
Try plugging this in:
// 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.

Our Sponsors
 

rolando
09-06-2006, 02:39 PM
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.

interfx
09-17-2006, 02:32 PM
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

ang2el
10-01-2006, 11:37 PM
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.

Nuguru
10-20-2006, 03:14 PM
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
<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
<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 :)

Nuguru
10-21-2006, 01:06 PM
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?

drewbe121212
10-23-2006, 11:37 AM
V 3.6:

http://www.vbadvanced.com/forum/showthread.php?t=18416

redg8r
07-02-2008, 04:05 AM
Fatal error: Call to a member function on a non-object in /home/dukecoun/public_html/indy/forums/modules/latestlinks.php on line 56

I'm getting the same error with vb 3.7.1 & cmps 3.0

Any ideas?

cws
08-20-2008, 08:35 AM
Same problem :(

Brian
08-21-2008, 05:13 PM
An update for this module was posted quite some time ago in the v2.0 forum.
http://www.vbadvanced.com/forum/showthread.php?t=18416

Make sure to read the last page of the thread if you are using vBa Links v3.0.

cws
08-21-2008, 08:34 PM
Thanks for guiding the blind :)

Now everything works fine.