MyBB Community Forums

Full Version: [Page Manager] Share your custom pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
(2010-01-29, 10:18 AM)querschlaeger Wrote: [ -> ]Here is another one: A contact form!

It includes everything you need: Captcha (if enabled in Admin CP) for guest, email verification etc. This page is also language-independent.

Hi, I have this contact form in my forum, but I don't want "selectbox", I want all options just visibles.

From:


To:


My code:

<td width="60%" class="trow1portal">
<select name="issue">
<option value="Object 1">Object 1</option>
<option value="Object 2">Object 2</option>
<option value="Object 3">Object 3</option>
<option value="Object 4">Object 4</option>
</select>

Thank you in advance
I really am thankful that you have made this wonderful plugin. Smile I have been using it for a few weeks now and I have already made quite a few pages that benefit my forum greatly.

IRC Chat Page

Using the php.xml file as a template it was easy to add a column for instructions and load the qwebirc extension into an iframe.

To use it for your own IRC channel just edit the iframe's src property to point to the correct channel. It will automatically enter the username of the current user as the channel nick. (If you don't want a prompt just delete prompt=1 from the iframe's src property.

Also applying a rewrite rule in .htacces will make the chat page a lot easier to find:

RewriteRule ^Chat.*$ misc.php?page=chat [L,QSA,NC]

This rule would make the chat link: www.myforum.com/chat

Rules Page

I had used a global announcement as my rules link for some time, but having the rules on an separate page was much better for several reasons, not the least being that moderators can no longer edit the rules. Wink

Another bonus was that I could use an easier rewrite rule to make the rules link www.myforum.com/rules

RewriteRule ^Rules.*$ misc.php?page=rules [L,QSA,NC]

I just use set the "Use MyBB Template?" to Yes and entered the HTML for my rule as an ordered list.

Full Member Info and IP Search Page

My Super Moderators get frustrated with the IP Search page MyBB provides. I have coded a simple page that displays the users email(which they previously couldn't see at all), regIP and lastIP- and automatically searches for puppets (users with matching IP addresses).

Once the page was installed, I inserted a link to the page into the template Member-->member_profile_modoptions to provide a link for mods to the page on every profile page in the Moderator Options section:

<li><a href="{$mybb->settings['bburl']}/misc.php?page=mod&amp;uid={$uid}">Full User Info and IP Search</a></li>

The page's permissions are set to only allow admins and smods to access it, but the link will show up for mods as well. If someone knows how to fix that I would listen Wink

So thanks again for this great plugin!

Smile
Both sound very interesting. I may have to try them.
I'll definitely have to try the IRC one. Normally, for my chats I have to hook up a Mibbit iframe.
(2012-09-10, 04:59 AM)AiedailEclipsed Wrote: [ -> ]I'll definitely have to try the IRC one. Normally, for my chats I have to hook up a Mibbit iframe.

I'm not sure if qwebirc source I've used works for other IRC networks or not. My channel is on EFnet, but if you have a channel on another network you may need to find another source for the frame.
Mibbit works fine, either way. ^^;;
(2010-03-08, 04:34 PM)EviLito Wrote: [ -> ]Ok this is how I say thanks for this plugin ^^

Everybody may have this nice ban list:


Features:
  • Language-independent
  • It won't show to guests
  • Recent bans are shown first
  • Dates are shown according to the forum date format
  • The code is pretty clean so you can easily edit it if you want to

Screenshots:



This page is released under the terms of the GNU General Public License (GPL) version 3.

I've made a couple of updates to the ban list. I haven't rewritten it or anything, but there are two new features involved (very basic, but for PHP/HTML newbies, can save time):
  • Only shows to Moderators, Super Moderators and Administrators (MyBB Default - if you have more staff groups or have edited those groups, you may need to edit them in)
  • Adds link to the ModCP Banning Page

Download:
[attachment=27285]

There is one optional, but recommended, edit. Open the modcp_banning template.

Find:

<div class="float_right"><a href="modcp.php?action=banuser">{$lang->ban_user}</a></div>

Replace with:

<div class="float_right"><a href="modcp.php?action=banuser">{$lang->ban_user}</a> &bull; <a href="misc.php?page=banlist2">View the Ban List</a></div>

Once again, I know it's a basic replacement, but if you're new, it can be helpful. Smile
Hello...I would like to block my pages from guest viewing. I tried entering this code from page 5:

if($mybb->user['uid'] == 0)
{
    error_no_permission();
} 

But I get errors...how or where should I put this code so it doesn't error?

Parse error: syntax error, unexpected ';' in /home/bigmackt/public_html/pa2a.org/inc/plugins/pagemanager.php(799) : eval()'d code on line 2
You need to use the page as PHP page, not as MyBB template.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49