Broken link, 404
3 2013-10-24 00:07
Re: [Request] Guest can see hidden forums in home page (5 replies, posted in PunBB 1.3 extensions)
Ok lol before I removed a wrong thing.
To do what I need, you must go on line 70 of index.php and replace
// Print the categories and forums
$query = array(
'SELECT' => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',
'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',
'ORDER BY' => 'c.disp_position, c.id, f.disp_position'
);
with
// Print the categories and forums
$query = array(
'SELECT' => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',
'FROM' => 'categories AS c',
'JOINS' => array(
array(
'INNER JOIN' => 'forums AS f',
'ON' => 'c.id=f.cat_id'
)
),
'ORDER BY' => 'c.disp_position, c.id, f.disp_position'
);
to make the query for get all forums.
Then, open lang/your_language/common.php and search
'Bad request'
and edit the text.
This works for me on PunBB 1.4
Enjoy PunBB!
4 2013-10-23 17:30
Topic: [Request] Guest can see hidden forums in home page (5 replies, posted in PunBB 1.3 extensions)
WRONG TOPIC, MOVE IT WHERE YOU WANT, MODERATORS
Hi, how can I set permissions to make guests able to see forums (in homepage) only for members, showing them "You must be registred to view this forum"?
I tried to edit index.php at line 26 removing
if (!$forum_user['is_guest']) { }
from the query but nothing appears
5 2013-10-23 17:22
Re: Guests permissions (8 replies, posted in PunBB 1.4 troubleshooting)
I need this thing too, ppl needs to view them, so they subscribe to the forum
6 2013-10-16 14:26
Re: Tapatalk for PunBB (change.org) (4 replies, posted in Discussions)
Please, share the petition to your forum users and ask them to sign up!
7 2013-10-08 06:50
Re: Tapatalk for PunBB (change.org) (4 replies, posted in Discussions)
I've edited the post, now it is in english
8 2013-09-30 08:50
Re: how to delete post? (solved) (2 replies, posted in Discussions)
In some forums, "Remove post" is disabled. I think they don't enable it here
9 2013-09-27 10:32
Topic: Tapatalk for PunBB (change.org) (4 replies, posted in Discussions)
Subscribe this petition if you want Tapatalk for PunBB. Let's try
10 2013-06-07 12:27
Topic: Sitemap for PunBB 1.4 (0 replies, posted in PunBB 1.4 additions)
Where can I find this extension? I've found it only for PunBB 1.3
EDIT:
Ok, sitemap extension for 1.3 works well with 1.4, just change manifest.xml from "1.3" to "1.4".
For those who have problems, just download it from the following link (manifest.xml is already edited)
Then install and visit YOUR_SITE/sitemap.xml
11 2013-06-06 09:47
Re: How do you add custom profile fields? (3 replies, posted in PunBB 1.4 troubleshooting)
Hi.
just edit profile.php in root, find "linkedin" and make a copy of a block source, then change all matches "linkedin" in "yourfield" (change only in the copied block of source).
Example
<?php ($hook = get_hook('pf_change_details_identity_pre_linkedin')) ? 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_profile['LinkedIn'] ?></span></label><br />
<span class="fld-input"><input type="url" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[linkedin]" value="<?php echo(isset($form['linkedin']) ? forum_htmlencode($form['linkedin']) : forum_htmlencode($user['linkedin'])) ?>" size="35" maxlength="80" /></span>
</div>
</div>
Copy, paste and edit like this:
<?php ($hook = get_hook('pf_change_details_identity_pre_yourfield')) ? 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>Your field/span></label><br />
<span class="fld-input"><input type="url" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[yourfield]" value="<?php echo(isset($form['yourfield']) ? forum_htmlencode($form['yourfield']) : forum_htmlencode($user['yourfield'])) ?>" size="35" maxlength="80" /></span>
</div>
</div>
You must do this for each "linkedin" matches