It is currently 04 Feb 2012 10:09

  • Quotes of the day
  • Women are like hurricanes: when they come they are wet and wild, and when they leave they take the house and the car... ~ Unknown
  • Forum
  • Knowledge Base
  • Configure internal BBcode Hide
    How to set BBcode Hide to my hand?
    On 14 Dec 2011 10:53 from: DaMysterious
    Views: 55

    A mod hide bbcode does come with the standard custom bbCodes in our Premod.



    Portal XL 5.0 Premod bbCode "Hide" if not installed already:

    BBCode usage
    code: Select all
    [hide]{TEXT}[/hide]

    HTML replacement
    code: Select all
    <!-- GuestHideBBCodeMODStart -->{TEXT}<!-- GuestHideBBCodeMODEnd -->

    Help line
    code: Select all
    Insert hidden text for guests: [hide]text[/hide]


    Change the language part.

    Open file /language/en/mods/portal_xl.php

    code: Select all
       // Guest Hide BBCode MOD   
       'HIDE_REG'       => 'Available only to registered users.',
       'HIDE_ON'       => '<strong>Hidden text</strong>: ON',
       'HIDE_OFF'       => '<strong>Hidden text</strong>: OFF',


    For a more neutral language set-up you can use the code from below ;).
    code: Select all
       // Guest Hide BBCode MOD   
       'HIDE_REG'       => 'Content visible only to registered forum users.',
       'HIDE_ON'       => '<strong>Content is hidden</strong>: Hi ' . get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']) . ', register to view the content!',
       'HIDE_OFF'       => '<strong>Content is visible</strong>: To ' . get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']) . '.',


    Change the css part.

    Open styles/prosilver/theme/portal_adds.css search and set to your likeness.

    code: Select all
    /* --------------------------------------------------------------
       Guest Hide BBCode MOD version 1.4.0 of 14.04.2009
       -------------------------------------------------------------- */
    /* FOR USER */
    .HideBlockA {
      background-color: #FFFFCC;
      border: 2px dotted #DEDEDE;
      padding: 5px;
      margin: 5px;
    }

    /* FOR GUEST */
    .HideBlockB {
      background-color: #F2F2F2;
      border: 2px dotted #DEDEDE;
      padding: 5px;
      margin: 5px;
    }

    /* LINE */
    hr.HideBlockLine {
      margin: 3px 0px 3px 0px;
      height: 2px;
      background-color: #DEDEDE;
      border-width: 0px;
      color: #DEDEDE; /* IE6 fix */
    }
    /* --------------------------------------------------------------
       Guest Hide BBCode MOD version 1.4.0 of 14.04.2009
       -------------------------------------------------------------- */
    I, You, We and Us Filter in posts
    How to create a funny I, You, We and Us Filter filter in premod's viewtopic.
    On 13 Nov 2011 11:29 from: DaMysterious
    Views: 194

    Replaces [I] with poster etc. name.

    Open viewtopic.php
    search
    code: Select all
       // Second parse bbcode here
       if ($row['bbcode_bitfield'])
       {
          $bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']);
       }


    add below
    code: Select all
    /*
    * I, You, We and Us Filter
    */
    $display_poster = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $row['post_username']);

    $message = str_replace('I know', $display_poster . ' knows', $message);
    $message = str_replace('can I', 'can '. $display_poster, $message);
    /*
    * I, You, We and Us Filter
    */


    More filters can be added by expanding the $message = str_replace with a new defined row.
    Resize the arcade submit pop-up
    How to resize the arcade submit pop-up
    On 04 Nov 2011 13:49 from: DaMysterious
    Views: 20

    If you have problems with a big arcade score submit pop-up follow the edits below than.

    To adjust open /template/arcade/score_body.html
    search
    code: Select all
    <!-- IF S_USE_SIMPLE_HEADER -->
    <script type="text/javascript">
    // <![CDATA[
       arcade_resize_screen(.7, .95);
    // ]]>
    </script>
    <!-- ENDIF -->

    replace with
    code: Select all
    <!-- IF S_USE_SIMPLE_HEADER -->
    <script type="text/javascript">
    // <![CDATA[
       arcade_resize_screen(.6, .76);
    // ]]>
    </script>
    <!-- ENDIF -->


    or any smaller value.

    Result is as below after editing the values.
    Configuring the internal "First Topic [pic] on Forum Index"
    How to set-up First Topic [pic] on Forum Index.
    On 24 Oct 2011 22:37 from: DaMysterious
    Views: 41

    To set the forum where attached images should visible on forum index you need to edit the configuration file for that mod.

    Open /includes/first_x_in_forum_index_config.php
    search
    code: Select all
    $affected_forum_att   = array(1,2);

    and
    code: Select all
    $affected_forum_img   = array(1,2);


    enter the forum id's that will show thumbing of attached images. The default example is set to forum number(s) 1 and 2 by default.
    Reset of edit article
    How to reset the "This article was last edited by" value.
    On 20 Oct 2011 23:40 from: DaMysterious
    Views: 21

    To reset the "This article was last edited by" value go to your Cpanel -> phpMyAdmin and run the query below to rest all edit article values to zero.

    Change the prefix phpbb if you use a different one.

    code: Select all
    UPDATE `phpbb_articles` SET `article_last_edit_time` = '0',
    `article_last_edit_id` = '0',
    `article_edit_type` = '0';
    How to setup last topic title
    Last topic title depends on internal SEO configuration.
    On 11 Oct 2011 23:12 from: DaMysterious
    Views: 40

    In ACP - MODS - PHPBBSEO - phpBB SEO Class settings setup - set "No duplictate" and "Zero duplictate" as on picture below.

    If those standalone settings are not bringing up the last topic titles you have to configure SEO completely to have that option visible as on this site.

    Total articles [ 170 ] 
    [ KBase ]

Who is online

In total there are 9 users online :: 0 registered, 0 hidden, 1 bot and 8 guests (based on users active over the past 5 minutes)
Most users ever online was 208 on 18 Oct 2011 01:10

Registered users: No registered users
Bots: Google [Bot]
Legend: Administrators, Bots, Forum Spammers, Language Support, Mondial Support, Registered users, Unwanted Users



 Cumulus Tags

Please download Flash Player 10 or higher to view this content.

How to repurpose Roy Tanck's tag cloud Flash movie

 Affiliates
MySQLDumper - Back it up the easy way
MySQLDumper - Back it up the easy way
Home site of Portal XL
Home site of Portal XL
XAMPP
XAMPP
La prima comunità europea dedicata a Portal XL in italiano
La prima comunità europea dedicata a Portal XL in italiano