vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBaCMPS Most Recent Subscribers Module (https://vborg.vbsupport.ru/showthread.php?t=69141)

mholtum 01-27-2005 12:59 AM

Quote:

Originally Posted by kall
http://www.nzboards.com - bottom right.

That would be left...

kall 01-27-2005 01:07 AM

Quote:

Originally Posted by mholtum
That would be left...

Heh, I had to re-add it to see why on earth mySQL had decided to not recognise the username column.

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).

steven s 01-27-2005 01:11 AM

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.

kall 01-27-2005 01:51 AM

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.

steven s 01-27-2005 02:00 AM

Quote:

Originally Posted by kall
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.

Not a problem. I have several books on mySQL and php. I pick them up and put them down. Just can't grasp it. I find I learn more by copying code and asking questions. I help people where I can. Maybe not with vB but in other things. It all evens out in the end.

I still have unopened boxes from moving several years ago.
My wife won't let me throw them out. :squareeyed:

mholtum 05-02-2005 11:15 PM

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:

Invalid SQL:
                SELECT user.userid,username
                FROM user
                LEFT JOIN subscriptionlog as subscriptionlog ON (subscriptionlog.userid = user.userid)
                WHERE subscriptionlog.status = '1' ORDER BY regdate DESC LIMIT 10
       
mysql error: Table 'theflyfi_forums.user' doesn't exist

mysql error number: 1146

Date: Monday 02nd of May 2005 05:09:17 PM
Script: http://www.theflyfishingforum.com/
Referer:
Username:
IP Address:


kall 07-21-2005 10:37 AM

Very sorry .. I don't use TABLE_PREFIX on my sites..

Change the query in subscribers.php to
PHP Code:

$getusers $DB_site->query("
        SELECT user.userid,username
        FROM " 
TABLE_PREFIX "user
        LEFT JOIN " 
TABLE_PREFIX "subscriptionlog as subscriptionlog ON (subscriptionlog.userid = user.userid)
        WHERE subscriptionlog.status = '1' ORDER BY regdate DESC LIMIT 10
    "
); 


mholtum 07-21-2005 04:02 PM

Code:

Database error in vBulletin 3.0.7:

Invalid SQL: 
        SELECT user.userid,username
        FROM vb3_user
        LEFT JOIN vb3_subscriptionlog as subscriptionlog ON (subscriptionlog.userid = user.userid)
        WHERE subscriptionlog.status = '1' ORDER BY regdate DESC LIMIT 10
   
mysql error: Unknown table 'user' in field list

mysql error number: 1109

Date: Thursday 21st of July 2005 10:01:35 AM
Script: http://www.theflyfishingforum.com/
Referer:
Username: fshfanatic
IP Address: 68.99.209.240


mholtum 07-21-2005 04:56 PM

figured out a fix yours generated a error

Code:

SELECT user.userid,username
        FROM vb3_user user
        LEFT JOIN vb3_subscriptionlog as subscriptionlog ON (subscriptionlog.userid = user.userid)
        WHERE subscriptionlog.status = '1' ORDER BY regdate DESC LIMIT 10


Marco van Herwaarden 07-21-2005 07:47 PM

In PHP the correct query should be:
PHP Code:

 $getusers $DB_site->query(
SELECT user.userid,username 
FROM " 
TABLE_PREFIX "user AS user
LEFT JOIN " 
TABLE_PREFIX "subscriptionlog as subscriptionlog ON (subscriptionlog.userid = user.userid) 
WHERE subscriptionlog.status = '1' ORDER BY regdate DESC LIMIT 10 
"
); 

PS I always use a table prefix on my testsite, tou avoid this kind of problems.


All times are GMT. The time now is 01:45 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
  • Page Generation 0.01166 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete