View Full Version : Add multiple phrases
VBDev
04-17-2004, 10:00 PM
Add multiple phrases
Total hack's description : http://www.vbulletindev.net/forums/hacks_root.php?do=aff_hack&hackid=67
Support thread : http://www.vbulletindev.net/forums/showthread.php?t=210
Please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=64055) if you like this hack
This hack add an option in the right menu of your admincp for the phrases and lets you add multiple phrases in just one form :o)
When you click on the link, you're redirected to a page where you set the maximum number of phrases you may add.
And then you can fill in the informations of your phrases.
Logik
04-18-2004, 06:24 PM
good idea, thanks!
Vivi Ornitier
04-18-2004, 07:50 PM
nice man, improving the lives and ease of hackin for the vb community. good job.
Red Blaze
04-19-2004, 03:33 AM
Excellent, I'll add this. :)
Boofo
04-19-2004, 09:51 AM
Nice idea, thanks. ;)
gmarik
04-19-2004, 03:47 PM
Oh, this should be by default, really good!
Vivi Ornitier
04-19-2004, 11:15 PM
next step, add multiple templates at the same time ;)
Red Blaze
04-20-2004, 02:58 AM
Works like a charm and makes hacks faster. Thanks. :) *installs*
VBDev
04-20-2004, 05:01 AM
next step, add multiple templates at the same time ;)
It already exists, doesn't it ?!
BigJohnson
04-20-2004, 09:20 AM
I am having trouble with this hack. When i user this feature it adds an extra phrase so there is now 2 of them in my database.
The language ID for all my phrases are 0 for english.
But this hack makes a duplicate of the one I added but the phrases have the language ID of 1 and -1. Something is wrong. Is anyone else having this probelm?
VBDev
04-20-2004, 09:56 AM
the language id -1 means it has been added to the master language file.
But for the id 1 are you sure ?
Floris
04-20-2004, 12:37 PM
the language id -1 means it has been added to the master language file.
But for the id 1 are you sure ?
I always just import the .xml file to overwrite the existing language, this way the floris_custom phrases get appended to the existing language. Saves me time.
However, for creating phrases from scratch, this is a nice tool to speed that up for those who don't know how to edit .xml files :)
Nice job vbdev
Boofo
04-20-2004, 04:03 PM
How do you edit xml files? Is there an xml editor out there somewhere?
insanctus
04-20-2004, 05:10 PM
/me Installs, nice hack.
VBDev
04-20-2004, 05:38 PM
I'll do one for multi templates in wanted styles :)
Scrub
04-20-2004, 07:31 PM
Hello there,
Is there anyway to make it so I can choose a certain phrasegroup and have the add new phrase boxes show that phrasegroup I chose instead of being global by defualt? Much appreciated. :)
BigJohnson
04-20-2004, 07:38 PM
yes i am positive i can show u a pic if u would like.
How about you check your database.
My english language id is 0.
It is creating TWO phrases once i add one phrase
Scrub
04-20-2004, 08:10 PM
Since I can't post a picture for some reason, I guess I will give you a link to what my database looks like. I belive I have the same thing BigJohnson has? :o
http://scrubby.olddh.com/mydatabase.gif
VBDev
04-20-2004, 09:06 PM
And could you make me a screenshot of the content of your language table please.
For your answer Scrub, actually there are no option for that but I could add a small dropdown in the page where you set the number and then it would set all the dropdown menu to that value
Scrub
04-20-2004, 09:44 PM
That's what I mean! :) And here is the screenshout of my language table.
http://scrubby.olddh.com/mydatabase2.gif
BigJohnson
04-21-2004, 01:54 AM
ya thats exactly what i mean scrub. I hope there can be a fix for this. Whats the reason for adding it twice though?
VBDev
04-21-2004, 09:26 AM
It may come from that piece of code:
foreach($languages AS $languageid => $lang)
{
$languageid = intval($languageid);
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "phrase
(languageid, varname, text, phrasetypeid)
VALUES
($languageid, '" . addslashes($varname[$compteur]) . "', '" . addslashes($text[$compteur]) . "', '" . $phrasetypeid[$compteur] . "')
");
}
I'll have a look at it at the end of the week while I am quite busy actually
Boofo
04-21-2004, 09:37 AM
Come on, grog buddy, you can't keep us hanging. ;)
VBDev
04-21-2004, 04:18 PM
This is not grog but Mtor ;)
I am going to have a look now at the bug
VBDev
04-21-2004, 04:35 PM
This is not a bug guys !
If you have a look at the phrase table, you'll see that every phrases are duplicate id 0,1 & -1 so that's a vbulletin issue :)
I have modify the hack so that you can select the phrase type that dropdown menu should have by default in the add page as the request!
For those that have already installed it, just replace the modification in the phrase.php file of the admin by the one in the updated txt file :)
Scrub
04-21-2004, 05:35 PM
Thanks for clearing that issue up. :D. Now off to testing again. :D
Boofo
04-21-2004, 06:02 PM
This is not grog but Mtor ;)
I am going to have a look now at the bug
Doesn't grog use this account, too, though? Or am I mistaken (again)? ;)
VBDev
04-21-2004, 08:41 PM
Yes but that hack is mine ;)
jd-inflames
10-27-2004, 12:15 AM
You are a life saver, sir. Thanks.
Lethal
12-13-2004, 10:42 PM
was the Add multiple templates ever released?
we_scooter
01-04-2005, 09:36 PM
woow
I havereq this once thanx master
*installed and clicked
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.