php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#314395 - 06/12/07 04:38 PM Re: [7.x] Generic Page Outside of forum directory [Re: Calpy]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Originally Posted By: Calpy
Was there any response to how to disable portal boxes/side bars on these pages? =)


Haven't found a way yet frown



_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#314648 - 07/06/07 01:28 PM Re: [7.x] Generic Page Outside of forum directory [Re: Calpy]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Quote:
In UBB.Threads 7, a /scripts/sample.inc.php file is provided to help you create your own custom pages as needed.

For example, you can duplicate the /scripts/sample.inc.php file to /scripts/mypage.inc.php Then create a /templates/default/mypage.tpl template file with the HTML for your page.

Then visiting ubbthreads.php?ubb=mypage will load that page.


This works great for my custom pages.

Code:
// Set this variable to whatever scriptname.inc.php file you have included in /scripts
 $_REQUEST['ubb'] = "mypage";

// Set the full path to your ubbthreads.php file
include("/home/threads/public_html/ubb7/ubbthreads.php");
?>


When I follow the instructions for that, it works BUT when visiting the generated page it shows me as logged out. What do I need to add?
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#314651 - 07/07/07 11:24 PM Re: [7.x] Generic Page Outside of forum directory [Re: GEN]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
should work fine, check to make sure you have cookies set to be used site-wide

/
_________________________
- Allen wavey
- What Drives You?

Top
#314652 - 07/08/07 04:14 AM Re: [7.x] Generic Page Outside of forum directory [Re: AllenAyres]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Hmmmm

It works now with no changes but the other day...

Hmmmm

Thanks anyway Allen

smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315042 - 07/29/07 11:11 PM Re: [7.x] Generic Page Outside of forum directory [Re: Calpy]
swebs Offline
User

Registered: 10/13/04
Posts: 29
It was much easier on the old 6.4 boards to do everything in 1 file. Is there anyway to do that now?

How can I check to see if a user belongs to a specific group to display certain data to?

Also, I want to open a custom database table to display data from if the user belongs to a certain group.

For me this was easy with the old wrapper. Where do I put my php code for this?

Here is just a little sample of the code.

Code:
if ( (ereg ("-8-", $groups)) || (ereg ("-15-",$groups)) ) {
        echo "<br>(Member access)";
} else {
        echo "<br>Public access";
}
        echo "</center><p>";

        // Get all the info
        $wowConnect = mysql_connect($config['dbserver'], $config['dbuser'], $config['dbpass']);
        if ($wowConnect){
           mysql_select_db($config['dbname'], $wowConnect);
        }


thanks in advance for any help.

Top
#315074 - 08/03/07 07:58 AM Re: [7.x] Generic Page Outside of forum directory [Re: Calpy]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
I followed AllenAyres txt file
got the paths from my control panel and works a treat.

Its easier than you think wink

Top
#315076 - 08/03/07 08:13 PM Re: [7.x] Generic Page Outside of forum directory [Re: Calpy]
JonMcG Offline
Lurker

Registered: 08/03/07
Posts: 2
could someone explain to me in layman's terms what this all allows me to do? I think this is an answer i've been looking for, but i'm a little confused about it, and would like to clear it up before I start to really dig into it and get moving on it.

Thanks in advance!


Edited by JonMcG (08/03/07 08:14 PM)

Top
#315078 - 08/04/07 02:26 AM Re: [7.x] Generic Page Outside of forum directory [Re: JonMcG]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
essentially it allows you to have one or more pages with your own content (within the template page) on your site, whilst still retaining the header, footer, sidebars, breadcrumbs etc.

We have around 100 other pages on our site.

It can be used for anything.

Of course it is simple to add further scripting into those pages.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#315079 - 08/04/07 02:43 PM Re: [7.x] Generic Page Outside of forum directory [Re: Ian_W]
JonMcG Offline
Lurker

Registered: 08/03/07
Posts: 2
and the pages are built into UBB? Or do I need to setup an external HTML site and link it to my UBB somehow?

Also, is this something i do through the admin panel? Or will the owner of the forums need to do it?

Thanks for responding wink

Top
#315080 - 08/04/07 03:15 PM Re: [7.x] Generic Page Outside of forum directory [Re: JonMcG]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
The page that the user sees is external to UBB (and can be anywhere on your domain) - however you will need to upload the script page to the scripts folder and the template page to the templates/default folder.

For the various scripts and template pages I preceded these files with ff for FansFocus.Com so that I can easily find them within the folders. They do not need to be the same name as the page the user sees on your site.

Just follow the examples shown above and you should be fine smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#316119 - 10/24/07 07:01 AM Re: [7.x] Generic Page Outside of forum directory [Re: JoshPet]
Myke Offline
Power User

Registered: 09/06/99
Posts: 87
Loc: Sydney, Australia
Would it be possible to have this generic page configured such that the left and/or right columns could be on or off? Or does the user's preference setting prevent this?

Top
#316120 - 10/24/07 01:31 PM Re: [7.x] Generic Page Outside of forum directory [Re: Myke]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
It would follow what you have set in the control panel.
_________________________
- Allen wavey
- What Drives You?

Top
#317527 - 08/30/08 03:34 PM Re: [7.x] Generic Page Outside of forum directory [Re: JoshPet]
Claus1 Offline
Lurker

Registered: 08/30/08
Posts: 1
Originally Posted By: JoshPet
In UBB.Threads 7, a /scripts/sample.inc.php file is provided to help you create your own custom pages as needed.

For example, you can duplicate the /scripts/sample.inc.php file to /scripts/mypage.inc.php Then create a /templates/default/mypage.tpl template file with the HTML for your page.

Then visiting ubbthreads.php?ubb=mypage will load that page.


I have tried unsuccessfully to make a generic page (inside of the forum directory). While there is a sample.inc.php script, there is no sample.tpl file I can use, and as a complete newbie with no real desire to learn php, I have no idea where to start.

Is this documented somewhere? I guess what I need is a step by step instruction on how to make generic pages (for dummies) - which I will use for static link collections, about-texts etc.

I am not trying to make anything complicated, just a static custom page with some plain html content.

While fiddling around with this, I got the following error when trying to view my page:

page_about_gpc not found!

Any help/pointers or links to instructions would be highly appreciated.


Edited by Claus1 (08/30/08 03:34 PM)

Top
#317528 - 08/30/08 05:43 PM Re: [7.x] Generic Page Outside of forum directory [Re: Claus1]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
well, all the tpl file is would be your html code... you can use smarty code in it, which examples would be every .tpl file in the directory.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
Page 2 of 2 < 1 2


Moderator:  sirdude 
Who's Online
0 registered (), 18 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks