You are not logged in. Please login or register.
Active topics Unanswered topics
Search options (Page 5 of 6)
esupergood wrote:Does version 1.2 still create stickies when you add a favourite topic?
I'm very excited to hear that you are working on more extensions
yes. my idea for this extension was to stick those topics.
if you want to remove that sticky part, just delete line 97 from manifest.xml:
$query['ORDER BY'] = 't.sticky DESC, favorite DESC, '.(($cur_forum['sort_by'] == '1') ? 't.posted' : 't.last_post').' DESC';
"View all your favorite topics" added
Check first post
Rest of discussion is here: http://punbb.informer.com/forums/topic/ … ide-topic/
I'll just add "View all your favorites" to user profile in few minutes.
I still have about 30 extensions to do on my list, so I will not work on this "most favorites" project right now. Fell free to modify my extension.
Nice discussion
In my opinion users should be able to add as many extensions as they want It's their choice.
But there should be some new extension section. Now we have: Official extensions and Unofficial extensions. There should be something between: Approved extensions, where only aprooved by PunBB developers extensions can be listed.
Back to subject
rahahm33 wrote:the ability for a user to hide his or her online status would be nice. sometimes you dont want people noticing that you're online. =\
I made similar modification in 1.2.x and I'll do same in 1.3.x.
My version was only for administrators/moderators, but it can be selectable through admin panel. In my plans normal user will be unable to posting while hidden (just read) and he/she will be unable to change visibility often than every half hour. Moderators/administrators (only!) will see hidden users as gray(css) in online list.
After you will complete your manual inserting, just run "index rebuild" in maintenance mode (but it will rebuild ALL indexes, not just new ones).
Remember to change topics's num_posts, forums's num_topics etc.
I will add this option to user profile. Its very easy. (edit: added)
But I don't see any reason to remove them from sticky area. Then there will be no difference between favorites and subscribed (except email confirmation).
No needed in my opinion. User have all his favorites topics on top of every forum.
I made this "Show hidden topics" link because otherwise there will be no way to find those.
Your favorites are on top all the time.
But.... I can do it later
Hello
This extension add "hide topic" option. User can hide some topics on viewforum page. Hide button is placed next to "Subscribe". User can find his hidden topics thru link in profile, next to "View all your subscriptions".
Complex extension including clearing unnecessary data in case of delete user/topic.
Version 1.0
hide_topic_1.0.zip
Version 1.1
-added listing hidden topics in topic footer (for moderators only)
hide_topic_1.1.zip
List is displayed in topic footer. I created new div for this, and I'm sharing this solution between 4 extensions:
-Favorite topic
-Hide topic
-Lock topic
-Show subscriptions
It mean that there is only one div (frame) created for all of them. Of course is working separately as well.
Not sure about this.
What need to be done:
-option in admin panel to assign some forum as "top favorites" (it can use "redirect_url" field with some special value)
-index.php - easy changes to mark this special forum
-viewforum.php - make a exception in "redirect_url" checking step, select topics list using favorites table. display as "moved", show no. of favorite selections in some column. Lots of work.
But what for? Most popular topics will became more and more popular, and list order will be constant.
Maybe just some short list in admin panel?
What do you think?
Style issue fixed - see first post.
Most popular topics - not too bad idea I can modify some existing extension which is showing newest topics in index.php Is there any good?
Edit: I read it again. You mean new forum with most frequently favorite topics. It can be done, but I'll need to think about it.
You're right. The diference is so little, that I haven't seen it on my laptop screen
I will fix it soon
If I'm right, there was no default function like this. Probably you had some modification installed.
You need to make some extension for yourself, or wait till someone will do similar.
Hello
This extension add "favorite topic" option. User can set some topics as favorite. Favorites topics are displayed after sticky ones, before any others.
Favorite button is placed next to "Subscribe".
Complex extension including clearing unnecessary data in case of delete user/topic.
In my opinion good alternative for subsriptions
Version 1.0
favorite_topic_1.0.zip
Version 1.1
-fixed style issue
favorite_topic_1.1.zip
Version 1.2
-added "View all your favorite topics" to user profile
favorite_topic_1.2.zip
Version 1.3
-added favorite topics listing in topic footer (for moderators only)
favorite_topic_1.3.zip
Version 1.4
-added new option in users profile to stick/unstick favorites topics
favorite_topic_1.4.zip
List of users who set topic as favorite is displayed in topic footer. I created new div for this, and I'm sharing this solution between 4 extensions:
-Favorite topic
-Hide topic
-Lock topic
-Show subscriptions
It mean that there is only one div (frame) created for all of them. Of course is working separately as well.
one bug fixed (important when use with diferent language than English)
new version in first post
all fixed
new version in first post
I think you can change it using JavaScript and "copyright" id.
Or maybe you can replace this using previous hook. Not sure if it will work.
footer.php
($hook = get_hook('ft_about_pre_copyright')) ? eval($hook) : null;
// End the transaction
$forum_db->end_transaction();
?>
<p id="copyright"><?php echo sprintf($lang_common['Powered by'], '<a href="http://punbb.informer.com/">PunBB</a>'.($forum_config['o_show_version'] == '1' ? ' '.$forum_config['o_cur_version'] : '')); ?></p>
<?php
($hook = get_hook('ft_about_end')) ? eval($hook) : null;
manifest.xml
<hooks>
<hook id="ft_about_pre_copyright"><![CDATA[
$forum_db->end_transaction();
if (true)
{
?>
<p id="copyright"><?php echo sprintf($lang_common['Powered by'], '<a href="http://punbb.informer.com/"><img src="'.$ext_info['path'].'/img/punbb.png" alt="PunBB" width="16" height="16" border="0"></a>')?></p>
<?php
}
else
{
]]></hook>
<hook id="ft_about_end"><![CDATA[
}
]]></hook>
</hooks>
I'm not specialist in encoding stuff, but it's looking like browser is diplaying page in some ISO(latin) encoding.
Check what is your page encoding in your browser. Try to force it to UTF-8.
You are right. I'll fix it.
Anyway in next version I'll try to use forum_link function.
slickplaid wrote:Now you say that if I want to share it, I should add new group permission options. How would I go about doing that? Are you talking about adding the option into the Admin panel?
I don't know what type of extension are you writting, but different admins would probably like to turn it on/off for selectable users group. But it's not to hard neither. Admin files have plenty of hooks
It can be easier for you, when you'll use my extension as example: http://punbb.informer.com/forums/topic/ … ce-period/
1. create field in database (USE punBB name-calling style!)
2. add option to admin menu
3. add value checker if necessary
4. use new permission variable in your code
5. drink beer
slickplaid wrote:So I'm trying to limit an extension so it can't be viewed by either a guest or the default user group (named "Visitor" on my forum). I'm not quite sure how to call that in the $forum_user variable.
if($forum_user['is_guest'] != true || $forum_user['Visitor'] != true) { blahblah }
returns
Notice: Undefined index: Visitor in header.php(133) : eval()'d code on line 28
How do I go about checking for both the guest and default user group (or specific group, in the case my "Visitor" group)?
Hi
If you are doing this extension only for yourself, then use:
if(!$forum_user['is_guest'] || $forum_user['g_id'] != X) { blahblah }
where X is ID of your default group
if it is your forum Default group ( configured in http://www.yourpunbb.com/admin/groups.php ), then use
if(!$forum_user['is_guest'] || $forum_user['g_id'] != $forum_config['o_default_user_group']) { blahblah }
But if you want to share your extension, you should add new group permission option
colak wrote:esupergood wrote:Anything like this for 1.3?
A 1 minute edit period would be great to help users correct typos etc.
This would be very useful, especially if the period is editable by forum admins
http://punbb.informer.com/forums/topic/ … ce-period/
Hello
This extension adds configurable grace period for editing posts without showing "Last edited by" (for users only).
Administrators and moderators are still chosing this by selecting/unselecting "Silent edit" checkbox.
edit_post_grace_period.zip version 1.0
Version 1.1
-Now it removes "Last edited by" only if it's last post still
post_edit_grace_period_1.1.zip
Hello
This extension change all links from posts, signatures and user websites to open in new browser window.
show_links_blank.zip version 1.0
Version 1.1
-fixed small bug with "first-item" class
show_links_blank_1.1.zip
======================
KeyDog Edit:
Version 1.1.1. for PunBB 1.4.1
Download
I know that I'm admin, and I'm checking it very often (I have 5-10 registrations daily). It's just some shortcut to the same link. One click instead of five.
Why only admins? In my opinion users doesn't need this shortcut. As fewer options they have, that better (but my forum is specific)
I'll prepare other version for all users
Edit: ready
Hello
Simple extension adds show more button, next to "Newest registered user". It works only for administrators and moderators with edit/ban user permission by default. Administrator can change availability. It let you to see latest registered users by one click.
Version 1.0
show_last_registered.zip version 1.0
Version 1.1
Fixed bug: disable button for groups without permission to see user list. Missing some "index.html" in directories.
show_last_registered_adm_1.1.zip (new extension id)
show_last_registered_1.1.zip - requested version for all users
Version 1.2
-fixed: & to &
-use forum_link()
-admin can set button availability in Administration/Settings/Features
show_last_registered_1.2.zip
Posts found: 101 to 125 of 142