![]() |
vBaCMPS Most Recent Subscribers Module
This will place a box on your vBa CMPS homepage showing the 10 most recent Paid Subscriptions.
It works by querying the subscriptionlog table for the expiry date of the subscription. If you want it to show them by expiry date, or change the number shown, instructions are in the .zip. *edit* They are now. |
There are no instructions in the zip?
|
Quote:
Updated. |
Hi,
Now there is nothing in the .zip file except instructions. Any chance of update the .zip file? I'd love to have this hack. Jeff |
Quote:
*fixes it* |
got a demo? :)
|
Quote:
|
Hello,
Its pretty scary when the demo site has this written all over it: Warning: chdir(): No such file or directory (errno 2) in /home2/nzboards/public_html/index.php on line 19 Warning: main(./global.php): failed to open stream: No such file or directory in /home2/nzboards/public_html/index.php on line 25 Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/nzboards/public_html/index.php on line 25 |
Quote:
I am switching hosts at the moment. Here's a screenshot: |
Excellent, works flawlessly.
/me clicks install. |
This worked very well, thanks.
But shouldn't 'subscribers_bit' be 'adv_portal_subsribers_bit' to conform with the other templates? |
/me clicks install
thx! |
Is it possible to sort by username?
|
Again, is it possible to sort by username and is it possible to make this block run in 2 columns?
|
if there is anything I could do to help you out in any way id be more than willing to my friend, thanks you once again for beiing such a great person you are, please If I run into troule would you be willing to help me out? I can ususally figure it out on my won but nothing like good company to keep you entertained, many thanks once again m8 and hope you and your familay are doing great, talk with you later on, take care and hope to hear from you soon ;)
|
Quote:
Change PHP Code:
PHP Code:
Just in case it crops up, swap DESC to ASC if you want the order reversed and LIMIT 10 to LIMIT * (where * is the number you want to display). As for the columns, I wouldn't know. HTML is the devil. |
Thanks but that doesn't work either.
The choices in subscription.status are subscriptionlogid subscriptionid pusergroupid regdate expirydate |
Quote:
The choices you mention have nothing to do with what was asked, which was 'can we sort them by username?' As username was already being called from the db, it would seem really obvious that simply substituting regdate for username would work. And it does. *shakes head* All you had to do was replace one word with another, and you couldn't manage it? Examples below. |
Quote:
Did you edit your original post? In the email that vB sent me you clearly said to change regdate to userid. In the text below the change you mention username. I tried username and naturally it works. Thank you. |
Quote:
From that, I would have assumed that you would have *read* the post prior to trying the changes. Also, given the total lack of a tick in the 'Supported' box above, you should be a little more appreciative of the support. As it was such a simple change, may I suggest you take the time to learn a little about how mySQL queries work? If you had done this prior, it would have saved you a lot of time, and me having to post to point out that the table is already included, and all you have to do is change the name of the one it is sorted by. |
Quote:
|
Quote:
Of course, it hadn't, I was right, and it was a case of 'following instructions contained in a 'new post' notification, rather than those that were on the page' (and had been for over 2 hours). |
I made the edits based on the email in the morning before leaving for work.
When it didn't work I sent a reply. I thought I needed a field from subscription.status. I am appreciative of the support. It is one of the most useful modules on my portal page. I bumped the message hoping someone would see it as a new post and if they new the answer they would reply. I also had that additional question. I realize support is not clicked so I subscribed to this thread for the day someone searched for this topic and could answer my question. Thanks again. |
That's cool. :)
Sorry I missed it, I had unsubscribed from all threads cos my inbox was filling up...and sorry for the way I came across in the last few posts, I'm hecticly busy with moving house and am getting a little stressed. |
Quote:
I still have unopened boxes from moving several years ago. My wife won't let me throw them out. :squareeyed: |
Odd It works great on my site, yet when I try to do it on another I get some SQL Error.
Code:
Database error in vBulletin 3.0.7: |
Very sorry .. I don't use TABLE_PREFIX on my sites..
Change the query in subscribers.php to PHP Code:
|
Code:
Database error in vBulletin 3.0.7: |
figured out a fix yours generated a error
Code:
SELECT user.userid,username |
In PHP the correct query should be:
PHP Code:
|
Quote:
But your point is well made. Table Prefixes always end up biting me in the ass. :) |
Quote:
FROM " . TABLE_PREFIX . "user AS user |
All times are GMT. The time now is 01:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|