Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2007, 07:51 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Is it possible to create a new group of phrases ?

Hi,

I developed a custom page and I am thinking to use the build-in phrase-system from Vbulletin for all the texts that will be displayed in my custom page. In order to add a phrase to an existing group of phrases you need to go to "ACP >> Languages & Phrases >> Phrase Manager >> Add New Phrase".

The problem is that I would like to keep things organized. Is it possible to have my own custom phrase group ? Or perhaps there is an already existing group used for custom phrases ? (unfortunately, I listed all the phrases from VB and I did not found anything like this, but I was thinking that it could not hurt to ask)

Regards,
Razvan M.
Reply With Quote
  #2  
Old 08-04-2007, 10:41 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Turn on Debug Mode, and see what happens .
Reply With Quote
  #3  
Old 08-04-2007, 11:19 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Turn on Debug Mode, and see what happens .
But I am working with DEBUG mode ON !

What should I look for ?
Reply With Quote
  #4  
Old 08-04-2007, 10:08 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When debug mode is on you are then able to create Phrasegroups
Reply With Quote
  #5  
Old 08-05-2007, 04:28 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I attach a screen shot of my "language manager" and "phrase manager". There is no option to create "phrase groups".

Where exactly must I look for the option to create "phrase groups" ?
Attached Images
File Type: png language_manager.png (11.2 KB, 0 views)
File Type: png phrase_manager.png (13.7 KB, 0 views)
Reply With Quote
  #6  
Old 08-06-2007, 02:10 PM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody else ?
Reply With Quote
  #7  
Old 08-06-2007, 07:23 PM
LlamaBE LlamaBE is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't find it either, where i should add a custom phrase group. I also have put debug mode on.
Reply With Quote
  #8  
Old 08-07-2007, 06:59 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this possible or not ?! I looked at the damn options 100 times. There is no option to create phrase groups. If this is not possible please don't suggest that the debug mode will allow me to do this.

Instead of loosing time, I would be looking for alternatives.
Reply With Quote
  #9  
Old 08-07-2007, 07:32 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is possible, but there is no GUI for doing that.

1) Create a new entry in table phrasetype (editrows=3, special=0)
2) Add a new field phrasegroup_fieldname to table langage (MEDIUMTEXT NULL)
Reply With Quote
  #10  
Old 08-07-2007, 09:31 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas View Post
It is possible, but there is no GUI for doing that.

1) Create a new entry in table phrasetype (editrows=3, special=0)
2) Add a new field phrasegroup_fieldname to table langage (MEDIUMTEXT NULL)
It is working !!! I just created a new phrase group called "Digg style plugin" and inside this phrase group I created a phrase "test_hello" ! Please take a look at the attached picture.

Thank you for providing this information. Now my project will be a bit better organized.

Regarding the procedure of adding a custom phrase group: I don't think that the Vbulletin team choosed the best solution in this case. I mean, adding a new phrase group is an operation that many plugin developers might want to do. It should involve inserting some rows in some tables, not ALTERING tables in order to add new columns. I certainly hope that they will change this design in the future.


Regards,
Razvan M.


NB: These are the SQL commands that I used to create a new phrase group:

Code:
insert into ro_phrasetype (fieldname, title, editrows, product, special) values ('diggplugin', 'Digg style plugin', 3, '', 0);

ALTER TABLE ro_language ADD phrasegroup_diggplugin MEDIUMTEXT AFTER phrasegroup_infractionlevel;
Attached Images
File Type: png custom_phrase_group.png (9.0 KB, 0 views)
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:17 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.04262 seconds
  • Memory Usage 2,277KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete