Jump to content


- - - - -

Managment > Add Category


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts

Posted 18 March 2007 - 03:31 PM

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.

#2 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,973 posts

Posted 18 March 2007 - 03:40 PM

I think it's cp_skin_managment.php in skin_acp folder.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


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 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts

Posted 18 March 2007 - 03:43 PM

that file doesnt even have the word "category" in it. Anywhere else?

#4 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,973 posts

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.
Posted ImagePosted ImagePosted Image


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 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

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

#6 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts

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.


Edited by -Calypso-, 18 March 2007 - 04:23 PM.


#7 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts

Posted 18 March 2007 - 04:29 PM

Find:
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>

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

Save and upload.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#8 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts

Posted 18 March 2007 - 05:00 PM

Much thanks. smile.gif