I got the vocab down though. But im wanting to edit the main panel/box whatever. Like maybe add some text and possibly an image too. Just completely revamp the thing ~

2

(1 replies, posted in Discussions)

This is what I'm trying to do:

If you see there, Forum Register and Login text links i replaced with an image. But I don't know the CSS code to edit the Menu(originally labeled Index by default) text link.

I decided to test it myself =3 I needed to update from the pun_bbcode 1.3 version I was using anyways.

Federer Photography wrote:

"...When I install and enable the "BBCode buttons" (ver. 1.4.17) I get buttons (not pretty ones like here, just ones with words on them)..."

When you install pun_bb 1.4, by default it doesn't show the graphical buttions.

So to show them, go to:

Profile > Settings > Check "Use graphical buttons in BBcode Bar"

But there's a problem =3 dimkalinux, there isn't a setting in the Administration where you can show or not show the graphical buttons by default. Could you add that or was it intentional?

Like most places, an extension that lets you set your password in the registration page before verifying your email. And in case something happens that doesn't let you verify your email, you can contact the Admin about it. So the Admin will activate the new users email and they will be able to log-in the forum.

Simple enough? =3

Just wondering ~

     Would it make a difference in loading speed if you have two, three, or four separate CSS files than just having one huge CSS file? =3

EDIT: I also want to know where can I edit the "Redirect" page(that shows up after saving something). What file would it be?

Re-uploaded extension, cleared cache, tried to uninstall, but still gave me the same error.

I can give you the extension or post the php codes of the extension or anything else if you like, if it will help.

KeyDog wrote:

Did you delete the extension before uninstalling it via the admin interface?

I tried to uninstall the extension via admin interface a few times and it continues to give me that same error message. And just a few minutes ago, I deleted the extension from my extensions directory and tried uninstalling it. But it still gives me the same error.

Bump ~ !
More than 50 view and no one can help?? xD lol

Anyways, I have deleted the extension but still unable to uninstall it. Still giving me the same error message in my first post. =/

(I have the portal by daris extension installed, which is im asking about. So "Index" is the portal page while "Forum" is the new replacement for the original index. If you understand what im saying.)

What is the "Index" css code that displays in the navigation bar along with "Forum, Search, Profile.." and so on.

This is an example of what I'm talking about, in the punbb directory/include/functions.php file ~

    // Index should always be displayed
    $links['index'] = '<li id="navindex"'.((FORUM_PAGE == 'index') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['index']).'">'.$lang_common['Index'].'</a></li>';

    if ($forum_user['g_read_board'] == '1' && $forum_user['g_view_users'] == '1')
        $links['userlist'] = '<li id="navuserlist"'.((FORUM_PAGE == 'userlist') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['users']).'">'.$lang_common['User list'].'</a></li>'; 

These would show the Userlist link in the nav bar. I'm looking to edit the link in css like so:

BODY DIV#brd-wrap DIV.brd-page DIV#brd-navlinks UL LI#navuserlist A {}

(I used spinkbb to get this code lol xP lazy) Its confusing for me, I barley started learning php.
Anyways, I believe the Index code would be here in portal.php, but im not sure:

<?php
/***********************************************************************

    PunBB extension
    Portal
    Daris <daris91@gmail.com>

************************************************************************/


// Make sure no one attempts to run this script "directly"
if (!defined('FORUM'))
    exit;

if (file_exists(FORUM_ROOT.'extensions/portal_by_daris/lang/'.$forum_user['language'].'/admin_portal.php'))
    require FORUM_ROOT.'extensions/portal_by_daris/lang/'.$forum_user['language'].'/admin_portal.php';
else
    require FORUM_ROOT.'extensions/portal_by_daris/lang/English/admin_portal.php';

// Setup the form
$forum_page['part_count'] = $forum_page['fld_count'] = $forum_page['set_count'] = 0;

// Setup breadcrumbs
$forum_page['crumbs'] = array(
    array($forum_config['o_board_title'], forum_link($forum_url['index'])),
    array($lang_admin_common['Forum administration'], forum_link($forum_url['admin_index'])),
    array($lang_admin_common['Settings'], forum_link($forum_url['admin_settings_setup'])),
    $lang_admin_portal['Portal']
);

($hook = get_hook('aop_portal_pre_header_load')) ? eval($hook) : null;

define('FORUM_PAGE_SECTION', 'settings');
define('FORUM_PAGE', 'admin-settings-portal');
require FORUM_ROOT.'header.php';

ob_start();

// Reset counter
$forum_page['group_count'] = $forum_page['item_count'] = 0;


?>
    <div class="main-content main-frm">
        <div class="content-head">
            <h2 class="hn"><span><?php echo $lang_admin_portal['Index page head']  ?></span></h2>
        </div>
        <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_settings_portal']) ?>">
            <div class="hidden">
                <input type="hidden" name="csrf_token" value="<?php echo generate_form_token(forum_link($forum_url['admin_settings_portal'])) ?>" />
                <input type="hidden" name="form_sent" value="1" />
            </div>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset')) ? eval($hook) : null; ?>
            <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
                <legend class="group-legend"><strong><?php echo $lang_admin_portal['Forums for news legend'] ?></strong></legend>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_checkbox')) ? eval($hook) : null; ?>
                <div class="txt-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="txt-box textarea">
                        <label for="fld<?php echo $forum_page['fld_count']+1 ?>"><span><?php echo $lang_admin_portal['Forums for news label'] ?></span></label>
                        <div class="txt-input">
                            <div class="checklist">
<?php

$forums_for_news = explode(',', $forum_config['o_portal_news_forums']);

// Get the list of categories and forums
$query = array(
    'SELECT'    => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.redirect_url',
    'FROM'        => 'categories AS c',
    'JOINS'        => array(
        array(
            'INNER JOIN'    => 'forums AS f',
            'ON'            => 'c.id=f.cat_id'
        ),
        array(
            'LEFT JOIN'        => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
        )
    ),
    'WHERE'        => '(fp.read_forum IS NULL OR fp.read_forum=1) AND f.redirect_url IS NULL',
    'ORDER BY'    => 'c.disp_position, c.id, f.disp_position'
);

($hook = get_hook('se_qr_get_cats_and_forums')) ? eval($hook) : null;
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);

$cur_category = 0;
while ($cur_forum = $forum_db->fetch_assoc($result))
{
    ($hook = get_hook('se_forum_loop_start')) ? eval($hook) : null;

    if ($cur_forum['cid'] != $cur_category)    // A new category since last iteration?
    {
        if ($cur_category)
            echo "\t\t\t\t\t\t\t".'</fieldset>'."\n";

        echo "\t\t\t\t\t\t\t".'<fieldset>'."\n\t\t\t\t\t\t\t\t".'<legend><span>'.forum_htmlencode($cur_forum['cat_name']).':</span></legend>'."\n";
        $cur_category = $cur_forum['cid'];
    }

    echo "\t\t\t\t\t\t\t\t".'<div class="checklist-item"><span class="fld-input"><input type="checkbox" id="fld'.(++$forum_page['fld_count']).'"  name="form[portal_news_forums][]" value="'.$cur_forum['fid'].'"'.(in_array($cur_forum['fid'], $forums_for_news) ? ' checked="checked"' : '').'/></span> <label for="fld'.$forum_page['fld_count'].'">'.forum_htmlencode($cur_forum['forum_name']).'</label></div>'."\n";
}

?>
                                </fieldset>
                            </div>
                        </div>
                    </div>
                </div>
<? ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box text">
                        <label for="fld<?php echo ++$forum_page['fld_count'] ?>">
                            <span><?php echo $lang_admin_portal['News count label'] ?></span>
                        </label><br />
                        <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[portal_news_count]" size="5" maxlength="5" value="<?php echo forum_htmlencode($forum_config['o_portal_news_count']) ?>" /></span>
                    </div>
                </div>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box text">
                        <label for="fld<?php echo ++$forum_page['fld_count'] ?>">
                            <span><?php echo $lang_admin_portal['News description length'] ?></span>
                        </label><br />
                        <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[portal_news_description_length]" size="5" maxlength="5" value="<?php echo forum_htmlencode($forum_config['o_portal_news_description_length']) ?>" /></span>
                    </div>
                </div>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset_end')) ? eval($hook) : null; ?>
            </fieldset>
<?php

    ($hook = get_hook('aop_features_sig_fieldset_end')) ? eval($hook) : null;

    // Reset counter
    $forum_page['group_count'] = $forum_page['item_count'] = 0;

?>
            <div class="content-head">
                <h2 class="hn"><span><?php echo $lang_admin_portal['Size head'] ?></span></h2>
            </div>
            
            <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
                <legend class="group-legend"><strong><?php echo $lang_admin_portal['Size legend'] ?></strong></legend>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box text">
                        <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_portal['Left side width'] ?></span><small><?php echo $lang_admin_portal['Left side width help'] ?></small></label><br />
                        <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[portal_left_width]" size="3" maxlength="3" value="<?php echo $forum_config['o_portal_left_width'] ?>" /></span>
                    </div>
                </div>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box text">
                        <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_portal['Right side width'] ?></span><small><?php echo $lang_admin_portal['Right side width help'] ?></small></label><br />
                        <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[portal_right_width]" size="3" maxlength="3" value="<?php echo $forum_config['o_portal_right_width'] ?>" /></span>
                    </div>
                </div>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset_end')) ? eval($hook) : null; ?>
            </fieldset>
<?php


    ($hook = get_hook('aop_features_sig_fieldset_end')) ? eval($hook) : null;

    // Reset counter
    $forum_page['group_count'] = $forum_page['item_count'] = 0;

?>
            <div class="content-head">
                <h2 class="hn"><span><?php echo $lang_admin_portal['Advanced settings head'] ?></span></h2>
            </div>
            
            <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
                <legend class="group-legend"><strong><?php echo $lang_admin_portal['Advanced settings legend'] ?></strong></legend>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box checkbox">
                        <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="form[portal_panels_all_pages]" value="1"<?php if ($forum_config['o_portal_panels_all_pages'] == '1') echo ' checked="checked"' ?> /></span>
                        <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_admin_portal['Panels on all pages'] ?></span> <?php echo $lang_admin_portal['Panels on all pages info'] ?></label>
                    </div>
                </div>
<?php ($hook = get_hook('aop_maintenance_pre_maintenance_fieldset_end')) ? eval($hook) : null; ?>
            </fieldset>
            
<?php ($hook = get_hook('aop_maintenance_maintenance_fieldset_end')) ? eval($hook) : null; ?>
            <div class="frm-buttons">
                <span class="submit"><input type="submit" name="save" value="<?php echo $lang_admin_common['Save changes'] ?>" /></span>
            </div>
        </form>
    </div>
<?php

I just dont know what code to get out of it so i can edit the text, color, and so on in css.

I have installed an extension by accident. It's currently disabled but I want to remove it. I'm not sure if deleting the files on the server is safe.

Would deleting the extension folder be alright? or should I get around this error somehow and try to uninstall it(then later deleting the folder). This is the error that was shown:
(NOTE! There's 3 w's, not 2. Because the forum thinks I'm posting web links. So its actually: /www/zxq.net)

Warning: require() [function.require]: Unable to access ../cache/cache_fields.php in /ww/zxq.net/a/u/d/audiotofu/htdocs/admin/extensions.php(434) : eval()'d code on line 1

Warning: require(../cache/cache_fields.php) [function.require]: failed to open stream: No such file or directory in /ww/zxq.net/a/u/d/audiotofu/htdocs/admin/extensions.php(434) : eval()'d code on line 1

Fatal error: require() [function.require]: Failed opening required '../cache/cache_fields.php' (include_path='.:/usr/lib/php') in /ww/zxq.net/a/u/d/audiotofu/htdocs/admin/extensions.php(434) : eval()'d code on line 1