Omegatron
12-03-2005, 08:44 PM
Okay just here to pick your brain. I have seen this deficiency in every who's online addition on vbulletin.org so I am trying to understand what is stopping things here. Most addon's to vbulletin have an index.php file at least major ones. Another common name is search.php
Now I can write plugins to rename files that exist on other apps like so to display correctly with vb3.5 who's online
<phpcode><![CDATA[if (strpos($loc, '/directory1/') !== false)
{
switch ($filename)
{
case '':
case 'test.php':
$filename = 'test1.php';
break;
then in plugin for another product this
<phpcode><![CDATA[if (strpos($loc, '/directory2/') !== false)
{
switch ($filename)
{
case '':
case 'test.php':
$filename = 'test2.php';
break;
and the files are renamed accordingly which allows the rest of the plugin to function normally and assign different case and phrases and display great in who's online.
Now this is not the case with a filename that might be the same name as a vbulletin file.
<phpcode><![CDATA[if (strpos($loc, '/directory3/') !== false)
{
switch ($filename)
{
case '':
case 'index.php':
$filename = 'newindex.php';
break;
So basically if the filename is the same as vbulletin's the phrase is always vb's phrase. So my question is if this works with other products to rename files and work fine how come vbulletins location which is say for instance in the session table location field is this
/forums/index.php?
say we have another location
/directory3/index.php
How come if we rename the file which works for other products just fine based on location statement of the directory vbulletin will not allow this when the filename is the same as vb3's. Seems to me you could take your own location into the mixture here. Seems to me with all the products that integrate with vbulletin that it could be simple enough that vb would play nice if we could write plugins to specify correctly different index files etc. Most programs that integrate with vbulletin have common filenames like index.php and search.php etc. I was hoping the whole vbulletin plugin system was a step forward. In the old vb3 you could modify the online file to rename a common filename to something else and build a phrase for it. So something in VB3.5 is done differently
Any thoughts here guys. Thanks
Now I can write plugins to rename files that exist on other apps like so to display correctly with vb3.5 who's online
<phpcode><![CDATA[if (strpos($loc, '/directory1/') !== false)
{
switch ($filename)
{
case '':
case 'test.php':
$filename = 'test1.php';
break;
then in plugin for another product this
<phpcode><![CDATA[if (strpos($loc, '/directory2/') !== false)
{
switch ($filename)
{
case '':
case 'test.php':
$filename = 'test2.php';
break;
and the files are renamed accordingly which allows the rest of the plugin to function normally and assign different case and phrases and display great in who's online.
Now this is not the case with a filename that might be the same name as a vbulletin file.
<phpcode><![CDATA[if (strpos($loc, '/directory3/') !== false)
{
switch ($filename)
{
case '':
case 'index.php':
$filename = 'newindex.php';
break;
So basically if the filename is the same as vbulletin's the phrase is always vb's phrase. So my question is if this works with other products to rename files and work fine how come vbulletins location which is say for instance in the session table location field is this
/forums/index.php?
say we have another location
/directory3/index.php
How come if we rename the file which works for other products just fine based on location statement of the directory vbulletin will not allow this when the filename is the same as vb3's. Seems to me you could take your own location into the mixture here. Seems to me with all the products that integrate with vbulletin that it could be simple enough that vb would play nice if we could write plugins to specify correctly different index files etc. Most programs that integrate with vbulletin have common filenames like index.php and search.php etc. I was hoping the whole vbulletin plugin system was a step forward. In the old vb3 you could modify the online file to rename a common filename to something else and build a phrase for it. So something in VB3.5 is done differently
Any thoughts here guys. Thanks