Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (SteveS, Jake), 47 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 709
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 13
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 5 1 2 3 4 5 >
Topic Options
#221640 - 01/27/09 06:30 AM Create Additional Pages
FordDoctor Offline
enthusiast
Registered: 06/05/06
Posts: 261
Loc: New Joisey!
I could swear this was a topic but I could not find one so...

Is there a way to create additional pages "like" the FAQ where you can put your own content? What I would like to do is actually place my chat room within the forum. I have created a page for my chat room and placed my chat within an iframe but it is a separate page from the forum which is a little clunky to me. If I could say, clone the FAQ page and change the content to display my chat iframe it would have a completely integrated feel and look perfect.
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#221643 - 01/27/09 07:11 AM Re: Create Additional Pages [Re: FordDoctor]
gliderdad Offline
Registered: 06/08/06
Posts: 1466
Loc: NY
I did this, not for chat though. Using the FAQ which takes 3 files one in the languages, one in templates and one in scripts. Grab the faq.php, faq.tpl, faq.inc.php. Rename them to something like chat.php, chat.tpl and chat.inc.php and put your new content in there.
Top
#221644 - 01/27/09 07:21 AM Re: Create Additional Pages [Re: FordDoctor]
ScriptKeeper Offline

veteran
Registered: 12/09/06
Posts: 1420
Loc: UK
Are you looking for something similar to this page? This uses iframe tag. Just click Submit without filling in the form to get an idea of how it works.

You need to create 2 files. As an example we'll call it chat.

--------------------------------------------------------------

In your scripts directory copy sample.inc.php, rename it chat.inc.php and edit the following lines:

33. Change page_sample_gpc to page_chat_gpc
59. Change page_sample_run to page_chat_run
79. Change PAGE TITLE to Chat (or whatever page title you want)
86. After <<<BREADCRUMB press enter to drop to a new line and type Chat (line 87)
93. Change sample to chat (this is what your template will be called in the next stage)

--------------------------------------------------------------

Next, go to your template directory, create a new template called chat.tpl and do something similar to this:
Code:
{$tbopen}
<tr><td class="lefttdheader">
Chat
</td></tr>
<tr><td class="alt-1">
<table align="center" width="98%" cellpadding="6" cellspacing="0">
<tr><td class="alt-1" valign="top">

<iframe width="100%" frameborder="0" allowtransparency="true" align="top" height="400" src="/chat.php"></iframe>

</td></tr></table>
</td></tr>
{$tbclose}

You'll obviously have to change the src="/chat.php" to your own details.

--------------------------------------------------------------

Once you have done that, you can edit the language file so that it will show who is using that page on Who's Online.

CP > Display Options > Languages > Language Editor > Choose Specific Language File: online.php > Go

Then add:
Key - chat
String - Viewing the Chat page
Top
#221645 - 01/27/09 07:25 AM Re: Create Additional Pages [Re: ScriptKeeper]
ScriptKeeper Offline

veteran
Registered: 12/09/06
Posts: 1420
Loc: UK
Top
#221646 - 01/27/09 08:18 AM Re: Create Additional Pages [Re: ScriptKeeper]
FordDoctor Offline
enthusiast
Registered: 06/05/06
Posts: 261
Loc: New Joisey!
Yes, that is exactly what I thought could be done, I was just not 100% sure how to do it but it looks like I was on the right track.

THANK YOU!!!
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Top
#221649 - 01/27/09 10:17 AM Re: Create Additional Pages [Re: FordDoctor]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
There is a file called "sample" in the script/template directories to get you started; I generally recommend people grab my pJIRC mod at UBBDev and tear it apart as I had already had to discover how everything works while making that tongue
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#221650 - 01/27/09 12:39 PM Re: Create Additional Pages [Re: Gizmo]
FordDoctor Offline
enthusiast
Registered: 06/05/06
Posts: 261
Loc: New Joisey!
Technically, you could also tuck your PhotoPost page in an iframe too?
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Top
#221660 - 01/27/09 07:17 PM Re: Create Additional Pages [Re: ScriptKeeper]
FordDoctor Offline
enthusiast
Registered: 06/05/06
Posts: 261
Loc: New Joisey!
ScriprKeeper - EXCELLENT instructions!!! That is AWESOME!!!
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Top
#221667 - 01/28/09 04:11 AM Re: Create Additional Pages [Re: FordDoctor]
ScriptKeeper Offline

veteran
Registered: 12/09/06
Posts: 1420
Loc: UK
Looks good. You just need to add the extra details to the language files to finish it off. If you go to your chat page then go directly to your online page it shows a blank in the location field.

Just add the lines below to the online.php language file and it will then display the location as chat rather than blank.

Originally Posted By: ScriptKeeper
Once you have done that, you can edit the language file so that it will show who is using that page on Who's Online.

CP > Display Options > Languages > Language Editor > Choose Specific Language File: online.php > Go

Then add:
Key - chat
String - Viewing the Chat page

smile
Top
#221668 - 01/28/09 06:27 AM Re: Create Additional Pages [Re: ScriptKeeper]
JAISP Offline
old hand
Registered: 02/10/07
Posts: 1144
Remember to be sure to do this every time you upgrade your message board to a newer version.
Top
Page 1 of 5 1 2 3 4 5 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image