well, well... then it is better use the extension. see above.
301 2016-08-21 19:09
Re: how about add button next or previous topic ? (6 replies, posted in Discussions)
302 2016-08-20 08:51
Re: Change sensitive files name (8 replies, posted in Feature requests)
Very good!
I use fancy_stopspam
303 2016-08-18 10:50
Re: Change sensitive files name (8 replies, posted in Feature requests)
What if you change the name of the file. Then, adjust the URL scheme.
Excemple:
Rename reg.php
Go to include/url/ ???/
Edite
forum_urls.php string
'register' => 'register.php',
replace to
'register' => 'reg.php',
304 2016-08-11 11:27
Re: how about add button next or previous topic ? (6 replies, posted in Discussions)
Разберешься?
$bquery = array(
'SELECT' => 'MIN(bt.id), bt.subject',
'FROM' => 'topics AS bt',
'WHERE' => 'bt.id>'.$id,
);
$bresult = $forum_db->query_build($bquery) or error(__FILE__, __LINE__);
$back = $forum_db->fetch_assoc($bresult);
if(isset($back['MIN(bt.id)']))
$tback = '<a href="'.forum_link($forum_url['topic'], array($back['MIN(bt.id)'], sef_friendly($back['subject']))).'">'.$back['subject'].'</a>';
$nquery = array(
'SELECT' => 'MAX(nt.id), nt.subject',
'FROM' => 'topics AS nt',
'WHERE' => 'nt.id<'.$id,
);
$nresult = $forum_db->query_build($nquery) or error(__FILE__, __LINE__);
$next = $forum_db->fetch_assoc($nresult);
if(isset($next['MAX(nt.id)']))
$tnext = '<a href="'.forum_link($forum_url['topic'], array($next['MAX(nt.id)'], sef_friendly($next['subject']))).'">'.$next['subject'].'</a>';
echo $tback;
echo $tnext;
will you understand?
Or second embodiment:
$query = array(
'SELECT' => 't.id, t.subject',
'FROM' => 'topics AS t',
'WHERE' => 't.forum_id='.$cur_topic['forum_id']
);
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
$back = array();
$next = array();
while($topics = $forum_db->fetch_assoc($result))
{
if($topics['id'] < $id)
$back[$topics['id']] = $topics['subject'];
else if ($topics['id'] > $id)
$next[$topics['id']] = $topics['subject'];
}
$back_id = max(array_keys($back));
$back_subject = $back[$back_id];
$next_id = min(array_keys($next));
$next_subject = $next[$next_id];
$tback = !empty($back_id) ? '<a href="'.forum_link($forum_url['topic'], array($back_id, sef_friendly($back_subject))).'" title="Old topic">'.$back_subject.' ◄◄ </a>' : '';
$tnext = !empty($next_id) ? '<a href="'.forum_link($forum_url['topic'], array($next_id, sef_friendly($next_subject))).'" title="Next topic"> ►► '.$next_subject.'</a>' : '';
305 2016-08-06 09:56
Re: how to create or add div on viewforum? (8 replies, posted in PunBB 1.4 additions)
After hook vf_row_pre_display
Add
if($forum_page['item_count'] == '5')
{
?>
<div class="main-item<?php echo $forum_page['item_style'] ?>" >
<span>Some Div Here</span>
</div>
<?php
}
306 2016-08-03 04:13
Re: Pan Uploader - upload files and images in the post (83 replies, posted in PunBB 1.4 additions)
Updated to 0.3.6 version.
Added:
It allows you to send pictures and files with personal messages.
307 2016-08-01 19:57
Re: RSS Aggregator Extension? (22 replies, posted in Feature requests)
it is still on test. need help in refining. if you often visited here, I could collaborate with you. otherwise, I am afraid that only wasted time.
308 2016-08-01 15:55
Re: how to create or add div on viewforum? (8 replies, posted in PunBB 1.4 additions)
or you need to insert a div is editing the file itself viewforum.php ?
310 2016-07-30 10:54
Re: Fancy Media (49 replies, posted in Supported extensions)
Hi... Aparat.com Get Support?
is requested in the ban list? or I do not understand something?
311 2016-07-30 06:08
Re: how to create or add div on viewforum? (8 replies, posted in PunBB 1.4 additions)
312 2016-07-29 19:24
Re: Full Path Disclosure (Multi) (3 replies, posted in PunBB 1.4 bug reports)
You found a hole in a forum? how dangerous it is?
313 2016-07-29 07:28
Re: Login Integration (3 replies, posted in Programming)
I have an active punBB forum and I would like to use the login throughout the rest of the site.
On a system running the site? WordPress?
314 2016-07-29 04:01
Re: How do I change quicklinks (11 replies, posted in Discussions)
Yes thank you. If you mean bread crumbs , then the variable is called crumbs.
Just add to the array another link:
In extension cPage open page.php and find code:
$forum_page['crumbs'] = array(
array($forum_config['o_board_title'], forum_link($forum_url['index'])),
$row['title']
);
Replace to:
$forum_page['crumbs'] = array(
array('Title', 'custom_url'),
array($forum_config['o_board_title'], forum_link($forum_url['index'])),
$row['title']
);
315 2016-07-28 19:43
Re: How do I change quicklinks (11 replies, posted in Discussions)
I need help
What a question, this is the answer...
You find it hard to change the name of the theme?
Will find anyone or answer to your question among these names:
- help me!
- nothing works!
- Please help urgently!
How will people find for themselves something useful as a forum similar to the trash?
So many and can not find the answer to your question...
316 2016-07-28 04:23
Re: How do I change quicklinks (11 replies, posted in Discussions)
here all need help . but users are properly called a theme.
317 2016-07-27 10:40
Re: Pan Uploader - upload files and images in the post (83 replies, posted in PunBB 1.4 additions)
file is uploaded with correct chmod, but still cannot use it immediately in the post
so the file or picture? for the file you want to paste to another area.
where can I watch it?
318 2016-07-27 09:12
Re: Pan Uploader - upload files and images in the post (83 replies, posted in PunBB 1.4 additions)
@chmod($dir_of_image.$base_name, 0644);
319 2016-07-27 06:45
Re: Pan Uploader - upload files and images in the post (83 replies, posted in PunBB 1.4 additions)
Find str 102 code
$new_image = $dir_of_image.$base_name;
add after str:
chmod($dir_of_image.$base_name, 0644);
320 2016-07-27 04:53
Re: Pan Uploader - upload files and images in the post (83 replies, posted in PunBB 1.4 additions)
Is it possible to grant a chmod 644 to new files via a php command ?
for files or folders?
Why do you need it?
321 2016-07-27 04:48
Re: How do I change quicklinks (11 replies, posted in Discussions)
If you need help , rename your theme to start. Make the subject meaningful.
There is a theme with this extension. It could be the best out there to ask?
322 2016-07-25 09:26
Re: RSS Aggregator Extension? (22 replies, posted in Feature requests)
I like that I wrote one extension that displays the RSS on the forum.
Another I've got an extension that allows you to post topics on the scheduled time.
If they unite , it may turn out that you were looking for?
323 2016-07-25 04:21
Re: Error on icon android post (3 replies, posted in PunBB 1.4 bug reports)
why do you need it? what do you get?
324 2016-07-24 04:41
Re: Help disabling userlist (4 replies, posted in PunBB 1.4 additions)
userlist.php file modification or the need to write an extension
Mod:
Open fileuserlist.php
In start after require common.php add code:
if($forum_user != FORUM_ADMIN)
message('You are not allowed to view the list of users.');
You are in the settings to allow users to browse the profiles of other users.
325 2016-07-22 21:47
Re: Advertising Extension (3 replies, posted in Feature requests)
I mean i could not program in php. I asked for a extension for punbb as support request.
View your private messages