Search Results for 'code'
-
Search Results
-
Hi,
I’m trying to add a new custom page to my forum. It’s very simple, this is what I have so far:
– 1 custom page called test.php
– the page includes the forum header and footer
– The content (middle) part is pulled from the db aswell
All works fine except hyperlinks! Links like http://www.test.com will NOT appear as a hyperlink, but just as plain text. How to fix this? I want this to behave just like this textfield I am typing in right now (auto hyperlink converting).
bbcodes like bold do work.
_Null
This plugin can validate more deeper. Not only the HTML tag’s attributes, but also the contents of attributes. You can set your own regular expression for attributes. For example, you want limit users to post Flash videos only from YouTube or Google, then you can restrain the
srcattribute.Sample posts: This post shows you an embedded YouTube video and this has a image floating at right side.
Visit Plugin page or directly download HTMLTagAttributesValidator.php.
Any comments on this plugin are very welcome.
Topic: No New posts for members
Hello!
I want to restrict new posts in bbpress only to moderators and admins. What is the best way to do it?
I’ve found a very simple way editing capabilities.php but I would like to avoid editing the source code.
'member' => array(
'name' => __('Member'),
'capabilities' => array(
(...)
'write_posts' => false,Thanks.
Topic: Paginated search results
I’m looking for advice on how to modify the search functionality to paginate the results that are returned; i.e. the default functionality returns N matches in each of the following categories: thread title, recent posts and relevant posts, but I would like to allow a user to scroll through repeated pages of search results.
I’ve had a look at search.php and this is structured around returning a fixed number of results for each query, which effectively hides anything that doesn’t come up in the first N results of the search. The concept of listing the results of 3 different queries in one results page also seems to be incompatible with providing a pagination mechanism (which list do you paginate?). I feel that the default method of handling search results is a bit limited and confusing for users familiar with a typical Google-style search that returns one simple list in multiple pages.
I have had a look at the code, but I’m no PHP guru; is there any way of getting the sort of results I would like without fundamentally rewriting the search mechanism?
p.s. not being overly critical here – I think bbPress is a great piece of work!
Topic: Plugin: Gravatar
I wrote a simple plugin for Gravatar. I am planning to put files on Extend, but I am still waiting. You can download it from Google Code for now, please visit this plugin’s homepage. You can find a download link and know how to modify your theme in the page.
It is relatively simple:
- Gravatar Email field – This plugin doesn’t use user’s registered email.
- Email Verification – Users need to own the Gravatar Emails which they input.
- Support Default Image
- Size customized (1..80px)
I hope I can hear your thoughts about this plugin.
I just hacked in gravatar support by using the wordpress plugin. Since I didn’t see any listed in the extensions section I went ahead and applied to have mine added. I will go ahead and delete mine since their is really no point in having two.