| Autor |
Nachricht |
Hudjw
phpBB2.de User


Anmeldungsdatum: 16.06.2004
Beiträge: 5
Wohnort: Greece !
|
Verfasst am:
Mi 16 Jun, 2004 13:12 |
  |
hi !
How i can add the hidden mod to phpbb plus 1.3 , i tried it but some other buttons at post reply screen dissapeard , someone here can help me ? |
|
|
   |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
jonny-b
phpBB2.de User


Anmeldungsdatum: 19.05.2004
Beiträge: 2400
Wohnort: New York City
|
Verfasst am:
Mi 16 Jun, 2004 16:13 |
  |
what hidden mod? |
_________________ I make themes for Plus 1.53a and phpBB2.
Check out mergenine for more info. |
|
     |
 |
Hudjw
phpBB2.de User


Anmeldungsdatum: 16.06.2004
Beiträge: 5
Wohnort: Greece !
|
Verfasst am:
Mi 16 Jun, 2004 17:44 |
  |
|
   |
 |
JoeHK2003
phpBB2.de User


Anmeldungsdatum: 08.12.2003
Beiträge: 178
|
Verfasst am:
Do 17 Jun, 2004 03:15 |
  |
| Hudjw hat folgendes geschrieben: |
hi !
How i can add the hidden mod to phpbb plus 1.3 , i tried it but some other buttons at post reply screen dissapeard , someone here can help me ? |
Hide bbcode mods : http://www.phpbbhacks.com/viewhack.php?id=870
Open the export.php & printview.php
Find :
| Code: |
if ( $bbcode_uid != "" )
{
$message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
} |
Replace with :
| Code: |
if ( $bbcode_uid != "" )
{
$message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
$message = bbencode_third_pass($message, $bbcode_uid, $valid);
} |
For portal page articles
Open fetchposts.php and find :
| Code: |
//
// fetch all postings
//
$posts = array();
if ($row = $db->sql_fetchrow($result))
{
$i = 0;
do
{
$posts[$i]['forum_id'] = $row['forum_id'];
$posts[$i]['bbcode_uid'] = $row['bbcode_uid'];
$posts[$i]['enable_smilies'] = $row['enable_smilies'];
$posts[$i]['post_text'] = $row['post_text'];
$posts[$i]['topic_id'] = $row['topic_id'];
$posts[$i]['topic_replies'] = $row['topic_replies'];
$posts[$i]['topic_time'] = create_date($board_config['default_dateformat'], $row['topic_time'], $board_config['board_timezone']);
$posts[$i]['topic_title'] = $row['topic_title'];
$posts[$i]['user_id'] = $row['user_id'];
$posts[$i]['username'] = $row['username']; |
Add after
| Code: |
$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $posts[$i]['topic_id']
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;} |
Find:
| Code: |
$posts[$i]['post_text'] = nl2br($posts[$i]['post_text']);
$i++; |
replace with :
| Code: |
$posts[$i]['post_text'] = nl2br($posts[$i]['post_text']);
$posts[$i]['post_text'] = bbencode_third_pass($posts[$i]['post_text'], $posts[$i]['bbcode_uid'], $valid);
$i++;
|
Open includes/news.php Then find :
| Code: |
| $message = str_replace("\n", "\n<br />\n", $message); |
Replace with
| Code: |
$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = " . $news[$i]['topic_id'] . "
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}
$message = str_replace("\n", "\n<br />\n", $message);
$message = bbencode_third_pass($message, $bbcode_uid, $valid);
|
fm http://www.freetalkarea.com/phpBB2/kb.php?mode=article&k=17 |
_________________
 |
|
    |
 |
JoeHK2003
phpBB2.de User


Anmeldungsdatum: 08.12.2003
Beiträge: 178
|
Verfasst am:
Do 17 Jun, 2004 03:19 |
  |
The above code can solved the problem of print-topic , export topic to text , portal page & news mods in plus1.3 when the post use the hide bbcode and it lost the funtion of this bbcode.  |
_________________
 |
|
    |
 |
Hudjw
phpBB2.de User


Anmeldungsdatum: 16.06.2004
Beiträge: 5
Wohnort: Greece !
|
Verfasst am:
Do 17 Jun, 2004 20:29 |
  |
|
   |
 |
BladeM
phpBB2.de User

Anmeldungsdatum: 11.03.2005
Beiträge: 229
|
Verfasst am:
Fr 20 Apr, 2007 01:43 |
  |
Hi
Bei mir im portal.php werden die hide links auch angeziegt.Ich habe das von JoeHK2003 Durchgeführt leider ist das hide link immer noch fehlerhaft.Ich benutze plus 153a
Kan mir bitte jemand sagen wie ich das hinbekomme.Habe schon überall danach gesucht.
Danke |
Zuletzt bearbeitet von BladeM am So 22 Apr, 2007 22:48, insgesamt einmal bearbeitet |
|
   |
 |
BladeM
phpBB2.de User

Anmeldungsdatum: 11.03.2005
Beiträge: 229
|
Verfasst am:
So 22 Apr, 2007 22:47 |
  |
Kan mir hier bei keiner helfen |
|
|
   |
 |
|
|
|
|