1

(82 replies, posted in PunBB 1.3 extensions)

Hello Rich,
sorry to bump this. because im still using 1.3. so i made a change about bbcode_extended.
i making this because the spoiler doesnt work. default installed just hiding a content below the 'spoiler' bar.
so this is my mood. this mod making animate to spoiler. and must have jquery extension. im using fancy_jquery.
( *please dont ask about coding. im just making a little mod and put some javascript from jquery. basicly im not coder, im just GUI designer smile )

At manifest.xml just adding spoiler.js below .css

<?xml version="1.0" encoding="utf-8"?>
    <extension engine="1.0">
    <id>bbcode_extended</id>
    <title>BBCode Extended</title>
    <version>0.1</version>
    <description>This extension adds extra BBCode tags.</description>
    <author>Rich Pedley</author>
    <minversion>1.3</minversion>
    <maxtestedon>1.3.4</maxtestedon>
    <hooks>
        <hook id="he_start"><![CDATA[
            // Include language
            if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php'))
                require $ext_info['path'].'/lang/'.$forum_user['language'].'.php';
            else
                require $ext_info['path'].'/lang/English.php';
        ]]></hook>
        <hook id="ps_do_bbcode_replace"><![CDATA[
            // Include language
            if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php'))
                require $ext_info['path'].'/lang/'.$forum_user['language'].'.php';
            else
                require $ext_info['path'].'/lang/English.php';
            //strikethrough
            $pattern[] = '#\[s\](.*?)\[/s\]#s';
            $replace[] = '<del>$1</del>';
            //spoiler
            $pattern[] = '#\[spoiler\](.*?)\[/spoiler\]#s';
            $replace[] = '</p><div class="spoiler"><strong>'.$lang_bbcode_extended['Spoiler'].'</strong><div class="spoilContent">$1</div></div><p>';
        ]]></hook>
        <hook id="ps_preparse_tags_start"><![CDATA[
            $tags_block[]='spoiler';
        ]]></hook>
        <hook id="ps_preparse_bbcode_start"><![CDATA[
            //strike
            $tags[] = 's';
            
            $tags_opened[] = 's';
            $tags_closed[] = 's';
            $tags_inline[] = 's';
            
            $tags_limit_bbcode['*'][] = 's';
            $tags_limit_bbcode['url'][] = 's';
            $tags_limit_bbcode['email'][] = 's';
            
            $tags_fix[] = 's';
            //spoiler
            $tags[] = 'spoiler';
            $tags_opened[] = 'spoiler';
            $tags_closed[] = 'spoiler';
            
            $tags_fix[] = 'spoiler';            
        ]]></hook>
        <hook id="he_new_bbcode_text_style"><![CDATA[
            ?>
            <li>
                <code>[s]<?php echo $lang_bbcode_extended['Deleted text'] ?>[/s]</code> <span><?php echo $lang_help['produces'] ?></span>
                <samp><del><?php echo $lang_bbcode_extended['Deleted text'] ?></del></samp>
            </li>
            <li>
                <code>[spoiler]<?php echo $lang_bbcode_extended['Spoiler'] ?>[/spoiler]</code> <span><?php echo $lang_help['produces'] ?></span>
                <samp><div class="spoiler"><?php echo $lang_bbcode_extended['Spoiler'] ?></div></samp>
            </li>
            <?php
        ]]></hook>
        <hook id="hd_head">
            <![CDATA[
            $forum_head[] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/bbcode_extended.css" />';
            $forum_head[] = '<script type="text/javascript" src="'.$ext_info['url'].'/spoiler.js"></script>';
            ]]>
        </hook>
        <hook id="hd_viewtopic_head">
            <![CDATA[
                $forum_head[] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/bbcode_extended.css" />';
                $forum_head[] = '<script type="text/javascript" src="'.$ext_info['url'].'/spoiler.js"></script>';
            ]]>
        </hook>
        <hook id="hd_post_head">
            <![CDATA[
                $forum_head[] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/bbcode_extended.css" />';
                            $forum_head[] = '<script type="text/javascript" src="'.$ext_info['url'].'/spoiler.js"></script>';

            ]]>
        </hook>
        <hook id="hd_profile-signature_head">
            <![CDATA[
                $forum_head[] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/bbcode_extended.css" />';
                            $forum_head[] = '<script type="text/javascript" src="'.$ext_info['url'].'/spoiler.js"></script>';

            ]]>
        </hook>
        <hook id="hd_postedit_head">
            <![CDATA[
                $forum_head[] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/bbcode_extended.css" />';
                            $forum_head[] = '<script type="text/javascript" src="'.$ext_info['url'].'/spoiler.js"></script>';

            ]]>
        </hook>
    </hooks>
</extension>

CSS mod (bbcode_extended.css)

.spoiler>strong {
    color:#fff;
    background:#333;
    padding:10px;
    border-radius:4px;
    display:block;
    
}
div.spoiler{
    color:#333;
    background:#e5e5e5;
    cursor: pointer;
    -webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding:10px;
border-radius:6px;
}
.spoilContent {
    display:none;
}

and here's spoiler.js

// JavaScript Document
$(document).ready(function(){
    $.each($('.spoiler'), function(){
        $(this).click(function(){
            $(this).find('.spoilContent').toggle('normal', 'linear');
        });
    });
});

2

(22 replies, posted in PunBB 1.3 extensions)

wtfworks wrote:

i just tested. but why in first post and last post only share roots URL? it should be topics page.
im using file based (fancy) thanks.

Anyone? sad

3

(1 replies, posted in PunBB 1.3 troubleshooting)

Somebody? sad

4

(22 replies, posted in PunBB 1.3 extensions)

i just tested. but why in first post and last post only share roots URL? it should be topics page.
im using file based (fancy) thanks.

5

(1 replies, posted in PunBB 1.3 troubleshooting)

Hallo there,
basicly im not php or coder experts. im just ordinary man who love to punbb smile
i just creating an mode for my header and nav. the css positioned as fixed.
so if user scroll up / down the header will not going anywhere. but
i had problem to the new post. everytime im post the new post always banged by fixed
header. i just wanna show new post under wlcome messages.
i cant find at the viewforum.php also css theme. please direct to image...

http://i1301.photobucket.com/albums/ag120/netmorks3volve/newpost.jpg

thanks for advice before

6

(0 replies, posted in PunBB 1.3 extensions)

Hi all, im new here. im used punbb 1.2.x since i developing my forums.
and now just wanna trying to migrating to 1.3.x while 1.4.x still develop for extension e.t.c big_smile...

im just wanna ask.
- i was activating invitation. it works for administrator. but no works for regular user. is there any edit php files for this?
- how to disable edit subject for regular user?
- how to find extended bbcode. ( spoiler, video, extended smiles, e.t.c ). im found the links but the file missing. can direct for this?
- how to put SHARE and AJAX RATINGS in the first post?

those all is needed for me. since i dont have skill for php big_smile....

here some extension im used:
Admin add user by PunBB Development Team
Ajax Rating by Radoslav Salov
Animated avatars by PunBB Development Team
Antispam System by PunBB Development Team
BBCode buttons by PunBB Development Team
BBCode buttons extended by Rich Pedley
Broadcast e-mail by PunBB Development Team
Colored usergroups by PunBB Development Team
Custom Favicon by Eliot Friedman
Default Avatar by Garciat
Disallowing spammers urls by Grez &amp; KeyDog
Events registration by PunBB Development Team
Fancy Video Tag by dimka
Forum news by PunBB Development Team
Genders by Garciat
Icon Images by KeyDog
Invitation of new users PunBB Development Team
jQuery by KANekT
jQuery (YonasH) by YonasH
jQuery Chat by KANekT
JS post quote PunBB Development Team
Latest posts on profile by Garciat
Logging of events PunBB Development Team
Post Share by Tareq
Private Messaging by PunBB Development Team
Pun Admin Manage Extensions Improved by PunBB Development Team
Pun Move Posts by PunBB Development Team
Pun tags by PunBB Development Team
PunBB Repository by PunBB Development Team
Reputation by hcs
Show links in new window by YonasH
topic description by KANekT

Sorry for my request and my english. thank you smile
wtfworks