View Full Version : Change Identifier
xtremeoff-road
11-30-2005, 07:14 PM
Is there any way to change the identifier of a php module once you have created it?? I noticed that when you go back in to edit module, the identifier field is no longer there.
Thanks for the help!
xtremeoff-road
11-30-2005, 09:29 PM
There must be a way, I still cannot find it :(
xtremeoff-road
12-01-2005, 03:29 PM
**BUMP**
Kevin, Brian, anyone :)
KW802
12-01-2005, 04:29 PM
Short of changing the DB values directly I don't see an alternative.
... but I ran into the same thing and suggested it as change for the next release (http://www.vbadvanced.com/forum/showthread.php?t=13143). ;)
Brian
12-01-2005, 04:48 PM
Currently the only way to change the identifier is by manually editing it through the database. The identifier is used as part of the module's settings and such, so allowing it to be changed any other way would be a bit of a pain. Plus, in the 1.x series, too many people would change the identifier for the news module, which would completely disable it. The only thing the identifier is really used for is a unique way to identify each module, so there really shouldn't be many times that it needs to be changed anyways.
xtremeoff-road
12-01-2005, 05:02 PM
Thanks for the response.
Well I built a new module and put the identifier in, however, I have changed the function of the module and wanted to change the identifier accordingly due to the fact that down the line I may make another module and I want to use the initial indentifier. So, where in the db is this stored?
If I wanted to change an identifier from test to testing what would I need to look for in the db??
Thanks both of you!
xtremeoff-road
12-01-2005, 05:08 PM
Ok I found where to change it in the database...so if I go ahead and change it in the db, does that screw up the module?
xtremeoff-road
12-01-2005, 05:26 PM
Alright, well I went ahead and edited the module in phpmyadmin...The module was originally a php module, however, I changed it to a template module. Within mysql it still had a value in templatelist which was incorrect, it was pointing to a template that I renamed and added different code, yet it still had the old name in the sql?
That probably did not make sense, however, bottom line I changed the identifier and deleted the value in the templatelist field, saved it, and the module appears to still be working fine.
I assume I did this correct :)
Brian
12-01-2005, 06:19 PM
That's one way to do it. :)
xtremeoff-road
12-01-2005, 06:27 PM
That's one way to do it. :)
Is there a better way?
Brian
12-01-2005, 06:55 PM
Actually, I think I just misread your post. The method you used should work just fine and be pretty complete. :)
xtremeoff-road
12-02-2005, 12:47 AM
Thanks Brian :)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.