View Full Version : unique template Pro v2.x
As an example. I create a unique template at browse.
When I click make unique, It doesn't tell you to create a new "index0.tpl" file.
It just shows a message "Category will use unique template now."
Pro v2.x
Dave Baker
01-15-2007, 12:33 AM
Hello Greg,
Yes, small bug but causing the big troubles.
***Open admin/browse.php and find code***
if ($_GET['action'] == 'unique')
{
$gAdminDb->setUniqueCategory($_GET['id']);
$msg = $gDirLang['category_unique'];
}
***Replace with the following code***
if ($_GET['action'] == 'unique')
{
$gAdminDb->setUniqueCategory($_GET['id']);
$msg = $gDirLang['category_unique']." Please create a new \"index{$_GET['id']}.tpl\" file";
}
***Save file***
Thanks Dave
I will apply it. I take it this will be fixed in the Feb. 1 update?
Dave Baker
01-15-2007, 12:46 AM
Yes, of course Greg :)
gitschi
02-06-2007, 11:46 AM
Message after doing the unique job: (Vers.2.1)
Message: Category will use unique template now. Please create a new "index.tpl" file
ERROR: If you do this ALL files use the same (index.tpl) - stupid!!!
PLEASE can you fix the error for the correct functionallity ???
Like:
index01.tpl
index02.tpl
index03.tpl etc as in the version 1.2 !!!
THANKS gitschi
Sergey Ten
02-06-2007, 05:54 PM
Hello gitschi!
Try to apply the Dave's code. And post the result.
gitschi
02-07-2007, 07:20 AM
I tryed but it DONT WORK - did you read the tickets in the supportdesk?
KR gitschi
Michael Hill
02-07-2007, 08:01 AM
It is upset, but the same bug in 2.1
For fix it :
In advance to Dave's code please add follow mods:
**Open admin/browse.php and find follow code (41 line)**
unset($_GET['id']);
**Cut this string and paste after next code (line 67), as it shows below:**
elseif ($_GET['action'] == 'ununique')
{
$Category->setUnique($category_id, FALSE);
$msg = $gDirLang['category_ununique'];
}
unset($_GET['id']);
**Save and close file**
Now it must work.
Thanks!
gitschi
02-07-2007, 09:10 AM
Thanks - please can you put the file in the download- aera - I did the modifications and I get an empty site after "making unique !!!
The function unique template is aviable, in the moment you must do the job manually (lookig for ID and "produce the index***.tpl) .
Thanks gitschi
Do we apply what you posted Dave and what Michael Hill posted. Both fixes together? I tried it and got a blank screen. The code in Daves differs from 2.0 and 2.1.
Thanks
John Turner
02-16-2007, 06:16 AM
Hi there,
In compliance with Dave's and Michael's post.
open '../admin/browse.php'
*** find following code
elseif ($_GET['action'] == 'unique')
{
$Category->setUnique($category_id);
$msg = $gDirLang['category_unique'];
}
elseif ($_GET['action'] == 'ununique')
{
$Category->setUnique($category_id, FALSE);
$msg = $gDirLang['category_ununique'];
}
*** replace with following code
elseif ($_GET['action'] == 'unique')
{
$Category->setUnique($category_id);
$msg = $gDirLang['category_unique'];
$msg .= "<br /> It's necessary to create 'index{$category_id}.tpl' in the templates directory";
}
elseif ($_GET['action'] == 'ununique')
{
$Category->setUnique($category_id, FALSE);
$msg = $gDirLang['category_ununique'];
$msg .= "<br /> There is no need to 'index{$category_id}.tpl' in the templates directory";
}
*** save and close it.
It might helps.
Least post in this thread was in February...
Now we are almost in June and version 2.1.03 but this bug is still there!!!
Sometimes it makes me wonder if anyone on eSyndicat team pays attention to bugs reported???
Least post in this thread was in February...
Now we are almost in June and version 2.1.03 but this bug is still there!!!
Sometimes it makes me wonder if anyone on eSyndicat team pays attention to bugs reported???
Same problem here. Just as in my first post in this thread. Will this be fixed in the next patch? (2.1.04) Maybe this was one of the 16 bugs???
http://www.esyndicat.com/forum/post65073-1.html
Simon Gooffin
11-25-2007, 01:41 PM
Fixed. Thread unstuck
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.