Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Forum Instructions 1.0

Description: This allows you to add a bit of text to the top of the postlist page. It's forum specific, so you can have different info at the the top of each forum on the postlist page.
Demo here at threadsdev.

Working Under: UBB.Threads 6.3

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 06/14/03

Credits: Needed it here for threadsdev

Files Altered: postlist.php, postlist.tmpl

New Files: none

Database Altered: none

Info/Instructions: I wasn't going to release this - it was just something I needed here at threadsdev but while I was doing it, I got 2 private messages asking how I did it. So here's the instructions. It's a down and dirty modification which requires you to alter code to edit the text. But it works.


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
84815-ForumInstructions1.0.txt (0 Bytes, 110 downloads)

Last edited by JoshPet; 06/16/2003 4:19 PM.
Sponsored Links
Joined: Jul 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Jul 2002
Posts: 15
[]JoshPet said:

Info/Instructions: I wasn't going to release this - it was just something I needed here at threadsdev but while I was doing it, I got 2 private messages asking how I did it. So here's the instructions. It's a down and dirty modification which requires you to alter code to edit the text. But it works.
[/b] [/]

Thanks

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
He he

Told you.... "stay tuned".

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Nice one Josh!

I've actually been using something very similar for years at my forum, but I have an extra directory in my includes dir where I put a new file named after the forum which contains the extra text. This way no extra code is needed when adding extra info to a new forum.

Never thought anyone was interested in this so I've never released it. =] I can write it up if anyone is interested though.

Sponsored Links
Joined: Sep 2000
Posts: 49
Power User
Power User
Offline
Joined: Sep 2000
Posts: 49
Josh this is fantastic, but I had a glitch which I finally resolved but here it was:

In postlist.php's changes, you indicate that the lines to add are, for example,

Code
 if ($Board == "boardkeyword") { \\ Edit the board keyword <br />		$extratext = "Put your text here"; \\ Edit the text <br />		$extralinks = "<tr><td class=\"lighttable\" align=\"center\" colspan=\"3\">$extratext</td></tr>"; <br />	} 


The problem I came across was that the "commented out" edit instructions (ie., \\ Edit the board ) added to the end of the first two lines are double back-slashes, which caused an error. When I changed them to the more usual double front-slashes (in each instance), it worked.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thank you -
I'm a dope.

I obviously threw the comments in there at the last minute. I decided to write it up and post it because a couple people PMed me while I was doing it. But I really should write up and post mods when I've skipped a nights sleep. LOL

I corrected the instructions - had my brain been working I'd have remember that // is for comments in PHP code.
thanks.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
[]Gardener said:
I've actually been using something very similar for years at my forum, but I have an extra directory in my includes dir where I put a new file named after the forum which contains the extra text. This way no extra code is needed when adding extra info to a new forum.

Never thought anyone was interested in this so I've never released it. =] I can write it up if anyone is interested though. [/]

Would be useful to have it automated for new forums


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
I did something similar as Gardener.
You're able to edit the files like you can with the header files.

I sent Josh the intructions for 6.2, maybe he can port them to version 6.3. I won't update to 6.3 in the next weeks.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Sounds good. My hack doesn't allow for that.

Sponsored Links
Joined: Jun 2003
Posts: 131
Journeyman
Journeyman
Offline
Joined: Jun 2003
Posts: 131
Hi, Josh etc...

I'm about to try this on my test board, and I will...but I had a thought...

...what would you think about my looking a bit into extending this to a message (maybe different than for the postlist)on the showflat/threaded pages? Would it be along the same lines that you've done for postlist? Or maybe somebody's already considered it and rejected it!

Thanks Tony (couldn't resist this new one!)

Last edited by TonyN; 08/10/2003 3:47 PM.
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Can you slap HTML in there?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, that's what it puts up there.... HTML. That what we use here for links and such. You just need to be sure to comment out every " mark within the strings.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Closed. Version 2.0 has been posted here:

https://www.ubbdev.com/forum/showflat.php?Cat=0&Number=94723

Last edited by JoshPet; 09/14/2003 12:55 AM.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)