Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Pages
Author Message
Donkey
Junior Member


Posts: 7
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #71
RE: Custom Pages

Awesome mod!

07-22-2009 09:35 PM
LosTZealoT
Junior Member


Posts: 5
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #72
RE: Custom Pages

Ive looked through this thread a bit, but have not found an answer. Do custom pages support php and/or Javascript?

Because when I tried adding a script tag for Javascript and tried a simple document.write(), I couldnt get it to work. I got the page and the myBB table, but nothing was writen inside.

Also, whenever I tried adding PHP tags (<?php ... ?>) and a simple echo(); command, I get this error:

Code:
Parse error: syntax error, unexpected '>' in /home/jaketfg/public_html/lostzealot/pages/index.php(74) : eval()'d code on line 1

Not sure if I did something wrong or what, but it would really be great if I could code PHP on my pages...

07-23-2009 01:10 PM


wWs
Junior Member


Posts: 6
Joined: Feb 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 6
Post: #73
RE: Custom Pages

For beginner very well

Yesterday 06:21 AM
Nickman
Manager



Posts: 1,907
Joined: May 2008
Reputation: 37
Thanked 28 Times in 14 Posts
MyBux: 934
Post: #74
RE: Custom Pages

(07-23-2009 01:10 PM)LosTZealoT Wrote:  Ive looked through this thread a bit, but have not found an answer. Do custom pages support php and/or Javascript?

Because when I tried adding a script tag for Javascript and tried a simple document.write(), I couldnt get it to work. I got the page and the myBB table, but nothing was writen inside.

Also, whenever I tried adding PHP tags (<?php ... ?>) and a simple echo(); command, I get this error:
Code:
Parse error: syntax error, unexpected '>' in /home/jaketfg/public_html/lostzealot/pages/index.php(74) : eval()'d code on line 1

Not sure if I did something wrong or what, but it would really be great if I could code PHP on my pages...

Javascript you should be able to do as long as you don't use Design mode. PHP must be done in the PHP box and not in the actual content box.



My Blog
Yesterday 06:36 AM


LosTZealoT
Junior Member


Posts: 5
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 0
Post: #75
RE: Custom Pages

But it seems as if the PHP is run before the page, so I cannot put things in the page with that data. What I am trying to do is create a few pages that allow users to modify groups without ACP access. Im using user groups like ranks for a clan forum and using custom pages I hoped to add a promotion/demotion system using custom pages, seeing as myBB seems to have no plugins or features that can do this(Group Promotions in the ACP are only based on time/posts/rep; I need group promotions to be decided by higher groups).

Thus, in order to form a list of all users whom the user using the page can modify, I need to access the MySQL database and run a loop to create the pulldown menu for selection.

Is there any way to get this data and create the form(pulldown menu) on a custom page?

Yesterday 07:59 AM
 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Custom Who is online locations Nickman 20 411 07-12-2009 10:42 PM
Last Post: Blueskid1
  Custom ACP Links Nickman 3 128 07-09-2009 10:41 PM
Last Post: wugcommunity
  How to work with custom pages plugin blood 3 55 07-09-2009 10:40 PM
Last Post: wugcommunity
  My Custom Errors Nickman 17 347 05-31-2009 10:43 PM
Last Post: Mandar



New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?




Theme created by AK-47. Find more great themes and skins at K! Dezign Web Design
Wordpress Web Design