vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Print Address Labels for subscribers (https://vborg.vbsupport.ru/showthread.php?t=127669)

Spiker 09-27-2006 03:15 AM

Print Address Labels for subscribers
 
It would be awesome if there was a mod that allowed you to print address labels for current subscribers.

For example, if you have a printed newsletter and manage the annual subscriptions through vbulletin, you can print mailing labels directly from vbulletin and possibly have an expiration date next to their name.

If this would be way too hard does anyone know of a subscription manager that would so something like this (not associated with vbulletin)? Currently we have all memberships ending on Dec. 31st (if they sign up in june they pay for half a year) but would like to have memberships run 1 year from date of sign-up. However, it seems like a logistical nightmare to do this by hand as we have lots of members. Thanks

misterhyde 03-13-2007 12:36 PM

This would be a great tool for me. Can anyone point me in the right direction?

ccaldwell 01-18-2008 04:11 PM

I as well would love to see some report printing capability.

Marco van Herwaarden 01-19-2008 08:15 AM

The easiest would be to just select the data and use a PC application to print the labels.

emailapphost 01-22-2009 08:29 AM

I want this to.
Thanks.

emailapphost 01-27-2009 08:54 AM

Marco,
When you say "select the data" in vBulletin.

Do you mean to have a PC application access the data directly in the vBulletin database?
Or,
Do you mean to export it as a comma separated file?

Or something else?

Marco van Herwaarden 01-27-2009 09:21 AM

Whichever suits you.

Address information is not stored in vBulletin by default, so it will always be a custum task to retrieve the information and to print it.

emailapphost 01-28-2009 05:56 AM

Marco, thanks for helping in this,

I have added address fields in the "User Profile Fields", but it does not show up in the users signup page.
Is this how you add address fields?
How do you get it to appear on the singup page?

Is this data then stored in the database?

Ted S 01-28-2009 07:10 AM

The data is stored in a seperate table for user profile fields and can be pulled up through a query or in the user view page.

To get the fields to show in the signup page change them to either required or optional, but show during registration. This option can be found in the settings of each profile field (look for the drop down about 2/3rds down the page).

As far as getting this data into address labels, all you need to do is run a query for the custom fields to store address and perhaps the username if you plan to use that. You can copy the output into a text file, save it as .csv and use word or any other desktop publishing program to create labels from it.

An example query to fetch 5 userfields, the userid and username:

Code:

SELECT u.username,uf.userid,uf.field2 as address,uf.field3 as city,uf.field4 as state,uf.field5 as zipcode,uf.field6 as country
FROM userfield AS uf
LEFT JOIN user AS u ON(u.userid = uf.userid)
WHERE uf.field2 <> ''
LIMIT 5

This can be run through your AdminCP if you have SQL rights for your admin user. Be sure to add any table prefects before both userfield and user if necessary (user vb_userfield). Change the field numbers to whatever your actual settings are.

emailapphost 01-28-2009 08:16 AM

Ted (thanks a lot btw),

If I want to use the vBulletin database to keep internal administrative track of my newsletter subscribers payments, expirations etc, can I add fields in the db using using profile fields and manipulate this data using phpMyAdmin?

Is there a big risk of corrupt data and vBulletin corruption if I manipulate data (like address uppdates, passwords, etc) using phpMyAdmin?

Ted S 01-28-2009 04:26 PM

You could definitely add custom profile fields and set them as hidden to track information. phpMyAdmin would let you edit the data (there's little chance of corruption from just editing a record) but you can also do it through vB. Once you have a profile field that field will appear when you view a user through the admin cp and can be edited directly without any external tools.


All times are GMT. The time now is 08:08 PM.

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.01164 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete