What tags are you talking about? Just add the code as I mentioned above, if you know how to work with code.
2 2010-06-08 21:43
Re: favicon (21 replies, posted in Discussions)
It's not good to spawn extensions...
Just add
// favicon
$forum_head['favicon'] = '<link rel="shortcut icon" href="favicon.ico" />';
after
89 $forum_head['title'] = '<title>'.generate_crumbs(true).'</title>';
in the header.php
3 2010-05-12 13:03
Topic: Nested subforums (0 replies, posted in Feature requests)
The index page is the same as it is now.
But when you click on one of the forums, a page with more forums shows up (similar to the index page), and so on until you get to the topics page. The number of these subforum levels may be set arbitrarily.
Anyone know how to do that?
4 2010-05-01 20:27
Re: [Release] Subforums (60 replies, posted in PunBB 1.3 extensions)
Someone got to get this working.
5 2010-03-07 10:22
Re: Quick Quote fails to work right-to-left (1 replies, posted in PunBB 1.3 extensions)
I can't believe I'm the only one with this problem. It's in IE8 too (full quote copied)! Maybe I just accidently deleted something. Does your silence mean you've never seen it?
6 2010-03-06 03:14
Re: Show-my-topics feature (17 replies, posted in PunBB 1.3 additions)
Or does this have to do with the SQL?
How do you show just one topic in the search results, even if a user posted in that topic multiple times?
7 2010-03-04 23:25
Re: Show-my-topics feature (17 replies, posted in PunBB 1.3 additions)
How do you remove the multiple posts from the search results?
How would you set up the variable?
if ( )
8 2010-03-04 20:10
Topic: Quick Quote fails to work right-to-left (1 replies, posted in PunBB 1.3 extensions)
(1) Some users report that when text is copied right-to-left or upward, Quick Quote copies the whole quote, not just the selected piece.
(2) At least in FireFox 1.5, it apparently always copies the whole quote.
(3) There are also some negative reports for IE6 (I'll find out in detail)
Anyone have any similar problems (name your browser)? What can be done?
9 2010-03-04 19:06
Re: Sort userlist by default? (2 replies, posted in PunBB 1.3 additions)
Oh, thanks a lot, I've been searching for it for hours.
10 2010-03-04 17:15
Topic: Sort userlist by default? (2 replies, posted in PunBB 1.3 additions)
Which part sets the default sorting of the userlist.php?
How do you set it to 'registration date' by default?
I've tried various solutions and I'm stuck.
11 2010-03-03 15:41
Re: Show-my-topics feature (17 replies, posted in PunBB 1.3 additions)
But it now repeats the same post if you posted there more than once.
12 2010-02-27 14:18
Re: Show-my-topics feature (17 replies, posted in PunBB 1.3 additions)
It has to do with the following code in the search.php (320-...)
if ($cur_set['sticky'] == '1')
{
$forum_page['item_title_status']['sticky'] = '<em class="sticky">'.$lang_forum['Sticky'].'</em>';
$forum_page['item_status']['sticky'] = 'sticky';
}
if ($cur_set['closed'] != '0')
{
$forum_page['item_title_status']['closed'] = '<em class="closed">'.$lang_forum['closed'].'</em>';
$forum_page['item_status']['closed'] = 'closed';
}
If you just delete it, or nulify the values, it comes out just fine, but it won't show closed and sticky topics during the search (which may be just okay).
However, this expression can somehow be fixed to show them (using ELSE, etc). (I played around with the values, that's not sufficient to fix it). Developers' help is needed!
13 2010-02-27 11:54
Re: Number-of-views in the show-my-topics feature (experience needed!) (2 replies, posted in PunBB 1.3 additions)
Well, well, well, not quite. It didn't seem to work when I inserted that code JUST in that place. But when I dumbly copied t.num_views NEAR t.num_replies THROUGHOUT the search-functions.php (over 7 times) inside the "$query = array( )", it finally came out!
As to the header (search.php 173- ), in case someone uses the info in this thread, it should look as follows (one may have to correct lang/../forum.php too, if necessary), but that's easy:
$forum_page['item_header']['subject']['title'] = '<strong class="subject-title">'.$lang_forum['Topics'].'</strong>';
$forum_page['item_header']['info']['replies'] = '<strong class="info-replies-search">'.$lang_forum['Replies'].'</strong>';
$forum_page['item_header']['info']['views'] = '<strong class="info-views-search">'.$lang_forum['Views'].'</strong>';
$forum_page['item_header']['info']['lastpost'] = '<strong class="info-lastpost-search">'.$lang_forum['Last post'].'</strong>';
Could you please place blocks of php code in the tag "code"?
It normally shows as a long string in a frame that's hard to view or copy.
14 2010-02-25 18:05
Re: Show-my-topics feature (17 replies, posted in PunBB 1.3 additions)
"It's just that it would be nice if everything doesn't seems to be closed & sticky"
It's probably going to be another long torture with editing oxygen.css
15 2010-02-25 17:57
Re: QuickQuote in PM reply (6 replies, posted in PunBB 1.3 additions)
The problem with this problem is that it's AN EXTENSION INSIDE AN EXTENSION. You have to take a feature from the QQ extension and insert into the code of the PM extension and I don't know how extensions work. Any ideas?
16 2010-02-25 17:51
Topic: Number-of-views in the show-my-topics feature (experience needed!) (2 replies, posted in PunBB 1.3 additions)
When show-my-topics feature is posted via the search.php, it should show something like this
Replies | Views | Last post
23 34 09-Feb-2010 04:03 by Amelotti
But it doesn't show Views.
In order to insert the number-of-views, we steal the following expression from the viewforum.php, where it knows how to show it
if ($forum_config['o_topic_views'] == '1')
$forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['view'] : $lang_forum['views']).'</span></li>';
then change $cur_topic to $cur_set (by analogy) and put into the correspondent part of search.php between "replies" and "last post" (371-372)
However, it ain't workin' and shows only zeros, instead of the exact count, probably because $cur_set['num_views'] points in the wrong direction. (Neither does it work if we leave $cur_topic).
How can this be fixed?
17 2010-01-27 13:08
Re: QuickQuote in PM reply (6 replies, posted in PunBB 1.3 additions)
There is option "Quote the beginning of the message in message lists." at the <FORUM_URL>/profile.php?section=settings&id=<user_id> page. Is this what you need?
No, I need the message text in the PM reply box quick-quotable via clipboard (with the JS on).
18 2010-01-26 21:13
Re: QuickQuote in PM reply (6 replies, posted in PunBB 1.3 additions)
The final html line after interpretation in the normal post looks like this:
<span class="edit-post first-item"><a href="http:/ ... /post.php?tid=1&qid=25" onclick="QuickQuote(25); return false;">QuickQuote</a></span>
19 2010-01-26 20:56
Re: QuickQuote in PM reply (6 replies, posted in PunBB 1.3 additions)
If that can't be done via the temporary hooks system, to me it would be okay, if it's a permanent pointer.
20 2010-01-26 20:51
Topic: QuickQuote in PM reply (6 replies, posted in PunBB 1.3 additions)
I need to insert QuickQuote into the PM reply box (My knowledge of the php is just basic)
I found this line in the PM function.php where to insert
<div class="main-subhead">
<h2 class="hn"><span><?php echo $forum_page['heading'] ?></span></h2>
Now I found this line in the QuickQuote manifest that looks like about right:
$forum_page['post_actions']['quote'] = '<span class="edit-post first-item"><a href="'.$quote_link.'" onclick="QuickQuote('.$cur_post['id'].'); return false;">'.$lang_pun_quote['Quote'].'</a></span>';
Any suggestions how to combine the two?
21 2009-10-30 07:59
Re: What's manifest.xml? (5 replies, posted in PunBB 1.3 discussion)
My mistake, i found the prob, it works.
22 2009-10-28 06:56
Re: What's manifest.xml? (5 replies, posted in PunBB 1.3 discussion)
No. I've deleted or ruined the manifest, refreshed the hooks, and everything still works as if the system didn't know the changes were made. What's the deal? How does it work?
23 2009-10-27 06:56
Re: What's manifest.xml? (5 replies, posted in PunBB 1.3 discussion)
We have the pun_admin_manage_extensions_improved extension for developers that allows to refresh hooks without reinstalling.
Okay, you mean if I install this particular extension I don't have to reinstall each time I debug something, I just have to click the Refresh-the-hooks button.
24 2009-10-26 13:17
Topic: What's manifest.xml? (5 replies, posted in PunBB 1.3 discussion)
How does manifest.xml work? I remove it and nothing happens. What should I do to make changes in there known to the forum?
25 2009-10-15 18:03
Re: Show-my-topics feature (17 replies, posted in PunBB 1.3 additions)
Correction:
To avoid the "My topics" feature from appearing when you're not logged in and coming as Guest, you should put
if (!$forum_user['is_guest'])
before the previous paragraph that you must have inserted into the header.php
The final code (header.php) may look as follows:
if ($forum_user['g_read_board'] == '1' && $forum_user['g_search'] == '1')
{
$visit_links = array();
if (!$forum_user['is_guest'])
$visit_links['newposts'] = '<span id="visit-new"'.(empty($visit_links) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_new']).'" title="'.$lang_common['New posts title'].'">'.$lang_common['New posts'].'</a></span>';
if (!$forum_user['is_guest'])
$visit_links['search_topics'] = '<span id="search_topics"'.(empty($visit_links) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_topics'], $forum_user['id']).'"title="'.$lang_common['My topics title'].'">'.$lang_common['My topics'].'</a></span>';
$visit_links['recent'] = '<span id="visit-recent"'.(empty($visit_links) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_recent']).'" title="'.$lang_common['Active topics title'].'">'.$lang_common['Active topics'].'</a></span>';
INSTEAD OF
if ($forum_user['g_read_board'] == '1' && $forum_user['g_search'] == '1')
{
$visit_links = array();
if (!$forum_user['is_guest'])
$visit_links['newposts'] = '<span id="visit-new"'.(empty($visit_links) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_new']).'" title="'.$lang_common['New posts title'].'">'.$lang_common['New posts'].'</a></span>';
$visit_links['recent'] = '<span id="visit-recent"'.(empty($visit_links) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_recent']).'" title="'.$lang_common['Active topics title'].'">'.$lang_common['Active topics'].'</a></span>';
$visit_links['unanswered'] = '<span id="visit-unanswered"'.(empty($visit_links) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_unanswered']).'" title="'.$lang_common['Unanswered topics title'].'">'.$lang_common['Unanswered topics'].'</a></span>';
}