Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Articles Thread, Easily create 50-state Thread Prefixes in vBulletin; Easily create 50-state Thread Prefixes Don't feel like entering 50 states selecting all the options each time for prefixes? I ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3626


Reply
LinkBack Thread Tools Display Modes
Easily create 50-state Thread Prefixes
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
19-09-2008, 08:54 AM
 
Easily create 50-state Thread Prefixes



Don't feel like entering 50 states selecting all the options each time for prefixes? I didn't either.

If your comfortable with phpmyadmin, this will be easy for you.

Step 1) Make a new Prefix Group.
  • ID = states1
  • name = States
  • Display order = (any you want, given your other lists)
  • forums = select which forums which the prefixes should appear on (i used it on my classifieds area)
  • Save
(Note: The ID of states1 is important, as it must match the file below. The other options can be any values you wish)

Step 2) Run the attached code block from the txt file in phpmyadmin -> SQL tab
  • Note 1: You will need to edit the file FIRST if you used a table prefix (perhaps, vb_ or forum_) on your database. ie, replace "INSERT INTO prefix" with "INSERT INTO vb_prefix" and "insert into phrase" with "insert into vb_phrase". Any decent text editor will allow you do to a global replace.
  • Note 2: This assumes language ID of 0, the default language. I would imagine most people using the states list would have English as their language set. If you are using a different language than default where you want this prefix associated with, you will need to alter the code block from 0 to your language ID as well.
Step 3) verify that you have uploaded everything properly by visiting the prefix group in the ACP. you should see something like the screen shot below.

If not, you may need to click on 'edit' as described in post 3 of this thread.
http://www.vbulletin.org/forum/showp...09&postcount=3

Step 4) Finally, go to a forum you selected in step one, and click new thread. you should see your prefixes listed there.



This list also includes Washington DC.

and feel free to add in Canadian provinces as well if you wish, just follow the same format.
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Articles Thread, Easily create 50-state Thread Prefixes in vBulletin; Easily create 50-state Thread Prefixes Don't feel like entering 50 states selecting all the options each time for prefixes? I ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3626


Bookmarks

Tags
50state, create, easily, prefixes, thread


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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Duplicate Files Easily 4.37 Developer Software and Programs 2 06-05-2009 09:49 PM
Change prefixes with AJAX Developer Mods for 3.7.x 0 01-11-2008 11:12 PM
Download music from Myspace easily! No install required Developer Software and Programs 0 23-10-2008 03:44 PM
RSLoad v1.00 - Easily generate your daily 255 Rapid points. Developer Software and Programs 1 04-10-2008 02:09 PM
Bombed New Thread - On Index Under Thread Count Per Forum Developer Mods for 3.7.x 0 12-09-2008 06:18 AM