Current time: 08-01-2014, 11:51 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 16 Vote(s) - 4.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include your custom pages in Mybb
01-23-2010, 06:42 PM (This post was last modified: 01-23-2010 06:54 PM by FlexiiCodex.)
Post: #121
RE: Include your custom pages in Mybb
How do i make it have color. Like say my page is called Omg and its beside search, i want it to stand out more so how do i make it appear as pink color.

Edit: Nvm i figured it out, its <a href=http://www.(website) target=
<a style="color:#FF00FF">Omg

[Image: untitl11.jpg]
Find all posts by this user
Quote this message in a reply
02-03-2010, 11:50 PM
Post: #122
RE: Include your custom pages in Mybb
If your trying to add custom pages to the UCP, how would one add the usercpnav?
Find all posts by this user
Quote this message in a reply
02-21-2010, 04:00 PM
Post: #123
RE: Include your custom pages in Mybb
I am making my own custom pages using this tutorial, everything is going fine until trying to call to other templates. I am extending my usercp with a couple different sections, and trying to call to the usercp menu to keep everything looking uniform. However, I can't figure out how that template should/would be called to within the "php" file, then again in the template file I created.

Someone mentioned in this thread that it made a difference where the custom template was saved, either as a "global" or "default". I have tried saving my template as both of those and it doesn't make a difference.

How can my custom php and template file call to the other mybb templates?? Someone please shed some light on this.
Find all posts by this user
Quote this message in a reply
02-22-2010, 05:28 PM
Post: #124
RE: Include your custom pages in Mybb
Anyone??
Find all posts by this user
Quote this message in a reply
04-01-2011, 11:50 AM
Post: #125
RE: Include your custom pages in Mybb
Great tutotial - thanks!

I've used it to incorporate a Leaderboard on my forum, using ProStats:

http://brassmusician.com/forum/leaderboard.php

Thanks again!
Find all posts by this user
Quote this message in a reply
05-07-2011, 03:54 PM (This post was last modified: 05-07-2011 04:47 PM by Jack Clarke.)
Post: #126
RE: Include your custom pages in Mybb
(02-21-2010 04:00 PM)scott240 Wrote:  I am making my own custom pages using this tutorial, everything is going fine until trying to call to other templates. I am extending my usercp with a couple different sections, and trying to call to the usercp menu to keep everything looking uniform. However, I can't figure out how that template should/would be called to within the "php" file, then again in the template file I created.

Someone mentioned in this thread that it made a difference where the custom template was saved, either as a "global" or "default". I have tried saving my template as both of those and it doesn't make a difference.

How can my custom php and template file call to the other mybb templates?? Someone please shed some light on this.

Sorry for not replying sooner - this requires global.php edits I think.

I'm going to try this now and then I'll let you know how it works.

Done it.

Just copy the index file and add the bits you want to include at the top - should be fairly obvious.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-10-2012, 10:19 AM
Post: #127
RE: Include your custom pages in Mybb
How can I set the value of {$name}?
This is the template:

Code:
<html>

<head>

<title>{$mybb->settings[bbname]}</title>

{$headerinclude}

</head>

<body>

{$header}

<br />

<table width="100%" border="0">

<thead>

<tr>

<th>RULES</th>

</tr>

<tbody>

<tr>

<td>Our rules {$name}</td>

</tr>

</tbody>

</table>

{$footer}

</body>

</html>

This is the code in php file
PHP Code:
<?php

define
('IN_MYBB'1); // (1a)
require "./global.php"// (1b)

global $name;
add_breadcrumb("Rules page""rules.php"); // (2)

eval("\$rules = \"".$templates->get("rules")."\";"); // (3)

$name    =    'abc';

output_page($rules); // (4)
?>

Please help me, I am stuck in it.
Find all posts by this user
Quote this message in a reply
07-20-2012, 08:25 PM
Post: #128
RE: Include your custom pages in Mybb
This user has been denied support. This user has been denied support.
hahaha sorry but what is this i mean what this do when u change the codes i do not understand any photos to describe?!
Find all posts by this user
Quote this message in a reply
09-12-2012, 02:47 AM
Post: #129
RE: Include your custom pages in Mybb
I can't even begin to stress how amazing this is, well done.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication