176

(1 replies, posted in PunBB 1.3 bug reports)

Topic title replacement with hardcoded line "being approved". It can not be localized.
function.php line ~1542:

$new_subject = str_replace(' (being approved)', '', $row['subject']);

manifest.xml lin ~844:

'SET'        => 'subject=\''.$forum_db->escape($res_posts['subject']).' (being approved)\', first_post_id='.$new_pid.', last_post_id='.$new_pid.', last_post='.$res_posts['posted'],

177

(151 replies, posted in PunBB 1.3 extensions)

Need hook to change display out on installed extensions on extensions.php before line 1013

echo "\t".implode("\n\t", $forum_page['ext_item'])."\n";

Similar hook aex_section_install_pre_display_available_ext_list for available extesions is exist.

This patch contain sql-inject vulnerability in part:

+                                'group_id'                => $_POST['req_group'],

1)

    <hook id="in_pre_header_load"><![CDATA[

$forum_head['Hide_Categories'] = <<<HTML

        <script type="text/javascript">

        $(document).ready(function() {
        $('#hidecategory1').toggle(
        $('div.showhide,category1').hide(),
        $('div.showhide,category1').show())
        });

      </script>
HTML;

        ]]></hook>

better use of extension.

Code the wrong, second event handler owerload first, and always will work only

 $ (' div.showhide, category1 ').show ()

Use toggle function - http://api.jquery.com/toggle/

 $(document).ready(function() {
   $('#hidecategory1').toggle(
    $('div.showhide,category1').hide(),
    $('div.showhide,category1').show())
 });

Declared variable - $lang_url_replace
Checked variable - $lang_replace (without url)

function sef_friendly($str)
{
    global $forum_config, $forum_user;
    static $lang_url_replace, $forum_reserved_strings;

    if (!isset($lang_replace))
        require FORUM_ROOT.'lang/'.$forum_user['language'].'/url_replace.php';

183

(20 replies, posted in PunBB 1.3 extensions)

http://punbb.ru/downloads/reputation.zip

184

(20 replies, posted in PunBB 1.3 extensions)

Reputation is an alternative to pun_karma.
Based on Reputation mod 2.* for punBB 1.2
Convert old version if exist.

Current version 3.2.2
Download: http://punbb.ru/downloads/reputation.zip

Viewtopic:
http://punbb.ru/downloads/reputation/viewtopic.JPG

Add voice:
http://punbb.ru/downloads/reputation/add-voice.JPG

Reputation view:
http://punbb.ru/downloads/reputation/rep-view.JPG

Profile view:
http://punbb.ru/downloads/reputation/profile-view.JPG

Profile settings (is different for admin and users):
http://punbb.ru/downloads/reputation/profile-admin-settings.JPG

Administration > Settings > Features:
http://punbb.ru/downloads/reputation/admin-settings.JPG

Administration > Users > Groups:
http://punbb.ru/downloads/reputation/admin-groups.JPG


Current version 3.2.2
Download: http://punbb.ru/downloads/reputation.zip

get anycodetool here: http://punbb.ru/downloads/anycodetool.zip
http://punbb.ru/downloads/anycodetool.7z

186

(21 replies, posted in PunBB 1.3 extensions)

Yes, this page have problem:

\\xc2\\xad\\xc2\\xad;pun_quote_authors[119561] = "Garciat";pun_quote_posts[119586] = "

YonasH wrote:

No - there is no table for guests. It will need new table.

Not table, use cache file

The best! thanks

189

(22 replies, posted in PunBB 1.3 extensions)

use forum_htmlencode for escape username:

$online_today[] = '<a href="'.forum_link($forum_url['user'], $ot_id).'">'.forum_htmlencode($ot_username).'</a>';

to remove XSS vulnerability

190

(22 replies, posted in PunBB 1.3 extensions)

replace

$todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.$username.'</a>';

to

$todays_users[] = '<a href="'.forum_link($forum_url['user'], $id).'">'.forum_htmlencode($username).'</a>';

This good idea.
I have made extension jsHelper. The same idea - to prevent collisions.
Except for it  jsHelper solved other task - to include a js-script in html-header at any time generating of a content. Use hook hd-head and in general anyone hooks from header.php narrows opportunities of the developer. It happens it is necessary to include a js-script already after header.php has been caused.
jsHelper extension solves also this problem too.
That it worked, it is necessary to have js-scripts in one directory on server, for example root/js/
It should become the agreement.

Example of connection jquery:

$jsHelper->add ($base_url.'/js/jquery.js');

Some extensions, can  make this call.
In html-header will be only once:

<script type = "text/javascript" src = "http://example.forum/js/jquery.js"> </script>

Try extension: http://punbb.ru/downloads/jshelper.zip (1kb)

sorry my english

192

(28 replies, posted in PunBB 1.3 additions)

iniara wrote:

Spasiba!

Nezachto! :-)

193

(28 replies, posted in PunBB 1.3 additions)

For you. Load Extension - http://punbb.informer.com/wiki/_media/p … ache=cache

mixcelebs wrote:

No help

http://punbb.ru/extensions/attach/download.php?aid=118

The error occurred on line 1806 in admin\db_update.php
Database reported: Data too long for column 'message' at row 1 (Errno: 1406).

Message have max size =64k.
There are also longer messages.
For them the field in a database sets to mediumtext, but the script of updating ignores this fact sad

padizar wrote:

Subject!

Can somebody help with it or make a mod?

Its triviall,  use  AnyCode extension:  http://punbb.ru/viewtopic.php?pid=21149#p21149

Get Anycode 1.0.0b extension: 
http://punbb.ru/extensions/attach/download.php?aid=118

Make solution on Admin Panel: google_adsense
Add Hook for google_adsense solution: vt_row_pre_display
Add code for this hook:

if ($forum_page['item_count'] == 2) {
    echo '<script type="text/javascript"><!--
google_ad_client = "PLACE YOUR CODE HERE";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<div style="text-align:center;">
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
';
}

Press Submit
Add another hook: vt_end
and code for this hook:

if ($forum_page['item_count'] == 1) {
    echo '<script type="text/javascript"><!--
google_ad_client = "PLACE YOUR CODE HERE";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<div style="text-align:center;">
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
';
}

Submit, go "Solutions" page and activate   google_adsense solution.

Âíèìàíèå!
Íàéäåíà ñåðúåçíàÿ óÿçâèìîñòü â ìîäå PunUploadExtra 1.1
Îðèãèíàëüíàÿ òåìà:
http://punbb.ru/viewtopic.php?pid=1895#p1895
Âñåì ñðî÷íî ïðåêàòèòü èñïîëüçîâàíèå ìîäà, âî èçáåæàíèå ñåðüåçíûõ ïðîáëåì, äî âûïóñêà îáíîâëåíèÿ!

? ??? ???? ??? ???????? ? ??? ????????, ? ???????? ??????????? ???.

KCEOH , òû ëó÷øå åñëè âèäèøü ïðîáëåìó - óêàæè íà íåå è ïðåäëîæè ñïîñîá åå ðåøåíèÿ. À ÷òîáû îáîñðàòü ìíîãî óìà íå íàäî.