When you go to Managment > Add Category, where is the html located for the category name and the forum selector under it? I have looked in several files and cant see to find it.
Managment > Add Category
Started by -Calypso-, Mar 18 2007 03:31 PM
7 replies to this topic
#1
Posted 18 March 2007 - 03:31 PM
#2
Posted 18 March 2007 - 03:40 PM
I think it's cp_skin_managment.php in skin_acp folder.
Vince Gabriel, Lead Developer.



Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com
formerly known as vadimg88



Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com
formerly known as vadimg88
#3
Posted 18 March 2007 - 03:43 PM
that file doesnt even have the word "category" in it. Anywhere else?
#4
Posted 18 March 2007 - 03:46 PM
try searching inside the source category file in action_admin for the skin file that being loaded, there are some parts in acp that loads skin files.
Vince Gabriel, Lead Developer.



Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com
formerly known as vadimg88



Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com
formerly known as vadimg88
#5
Posted 18 March 2007 - 04:09 PM
The actual HTML is the function forum_form in skin_acp/IPB2_Standard/acp_skin_html/cp_skin_forums.php. The reason you don't see the word category is that it uses that same function for both adding a new forum and adding a new category, it just passes in variables to switch between what needs changed. What exactly do you want to change on this page?
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#6
Posted 18 March 2007 - 04:21 PM
Category Description mod.
I want to add a textarea box that will allow admins to add a description to a category. I was gonna use html logic also, if the field is empty for that category then no html is shown for the area under the category.
I want to add a textarea box that will allow admins to add a description to a category. I was gonna use html logic also, if the field is empty for that category then no html is shown for the area under the category.
Edited by -Calypso-, 18 March 2007 - 04:23 PM.
#7
Posted 18 March 2007 - 04:29 PM
Find:
Change to:
Save and upload.
CODE
EOF;
if( $form['addnew_type'] != 'category' )
{
$IPBHTML .= <<<EOF
<tr>
<td width='40%' class='tablerow1'><strong>Forum Description</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to
</div></td>
<td width='60%' class='tablerow2'>{$form['description']}</td>
</tr>
if( $form['addnew_type'] != 'category' )
{
$IPBHTML .= <<<EOF
<tr>
<td width='40%' class='tablerow1'><strong>Forum Description</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to
</div></td>
<td width='60%' class='tablerow2'>{$form['description']}</td>
</tr>
Change to:
CODE
<tr>
<td width='40%' class='tablerow1'><strong>{$form['addnew_type_upper']} Description</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to
</div></td>
<td width='60%' class='tablerow2'>{$form['description']}</td>
</tr>
EOF;
if( $form['addnew_type'] != 'category' )
{
$IPBHTML .= <<<EOF
<td width='40%' class='tablerow1'><strong>{$form['addnew_type_upper']} Description</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to
</div></td>
<td width='60%' class='tablerow2'>{$form['description']}</td>
</tr>
EOF;
if( $form['addnew_type'] != 'category' )
{
$IPBHTML .= <<<EOF
Save and upload.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#8
Posted 18 March 2007 - 05:00 PM
Much thanks.
















