Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
in my never ending quest to try to build up the "rest of my site" i have installed yet another CMS to try to bring some more valuable content to the site besides the message board.

my board is very active, and is related to climbing/outdoor pursuits in the Pacific NW region of the US. the main problem i have encountered is that the non-ubb pages just don't get used as much, and great content that has been added to the message board often gets buried under new posts, so my goal is to have a system that can pull/mirror great posts from threads, into the "front-end" part of the site... sound confusing, well it is.

in the past, my problem has been of course, lack of integration between CMS and my message board software, so i've searched around for a CMS that isn't very robust, is easily modifiable (is that a word?) and *does not* have an integrated forum package (many CMS systems already come either bundled with one or integrate with phpBB), after trying about a dozen i found Mambo (www.mamboserver.com). It's GNU, its lightweight, and ready to be hacked away at.

what i've done.... so far i've got it to the point where all user privledges are pulled from w3t_Users, so there is one centralized point of account administration. unfortunatley i don't have the sessions integrated yet, so one has to log in to the main poriton to post there as well as the bbs, but nevertheless, its one registration, one user name.

i've made some modules to pull latest posts from threads, used the great photopost pal (with some tweaks) to grab some images as well, and am working on a who's online script as well.

I also have added in a very basic events calendar into the mambo server which i can pull events into a sidebar pal, so things are coming together very nicely.

eventually, i'll have it so admins/mods can mirror a great post by one click into the CMS site, as well as users being able to post to the CMS and have the content in a thread as well, but that is a ways off.

nevertheless, its starting to look pretty cool, and just thought i'd share my adventure into threads integration with y'all.

www.cascadeclimbers.com

if you have any questions, critiques or suggestions send me a pm!

chillin

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Thanks for the insight

Will you be posting your modules and code changes for the mambo cms package?

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125

i don't know if i want to release my sloppyness onto the world! if there is interest i'll do it so it will have configurable variables to go along side any threads install.

but my little setup shy's in comparison to IIP!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
hehe don't be surprised if it grows on you... (sorta how IIP happened, it just grew) LoL

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Nice one chillin. Thanks for the link.


Nikos
Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
A friend of mine started using Mambo some time ago and I got interested in it. I've been thinking of changing from my own cms for some time since I never find the time to add the features I need and Mambo seems to have what I need. If you would share your threads integration when it's finished that would be incredible.

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
DOH, time to unsloppify my code a bit

imho, mambo is pretty nice, light, but it really gets the job done.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
That would be great. I'll try to get to trying it out myself soon, but I have some other stuff to do at the moment.

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
great, i'd love to work with someone on getting an integrated login so threads/cookies/sessions would match up with mambo's... but i'm not well versed in threads sessions and such, so any help would be appreciated.

I'll post my modifications tonight hopefully.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Sounds good, maybe I should make a trial installation until then. =]

Sponsored Links
Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
ok, i got the integration working. now if you are logged into threads or mambo, both recognize, well you are really only logged into threads but you know what i mean

i'm still working out some kinks, but should have a zip of the install ready tomorrow.

chillin

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Perfect. I've installed Mambo and have been playing around with for a while now. The functionality of most of the modules seem to be very basic, to say the least. There aren't any extra information for links in the link directory, not even a visit count... Some other things are really neat though, and having all scripts in one package is really neat.

I'm trying to get it to look the way I want it to now, I'm well on my way, but there are some things I haven't quite worked out yet.

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
nice, yeah there is quite a bit of stuff i've stripped out: who's online, polls are a few of them.

the main things i've done to get things really tied in is to modify includes/accesscheck.php to use threads session info, but i've done this by including the following in index.php for mambo:

Code
<br />include "{$mosthreadspath}/main.inc.php";<br />// Get the user info<br />$Username = $w3t_myname;<br />$Password = $w3t_mypass;<br />$userob = new user;<br />$usert = $userob -> authenticate("");<br />


where $mosthreadspath= path to ubb install and is a variable i use throughout the scripts for other items

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
So you just added that to index.php? What was it you did in includes/accesscheck.php?

I've created a couple of modules now, so that I've been able to make the front page look like I want it. It's starting to look really nice. =]

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
my stuff is *very* sloppy right now, i'm just in the hack away and see if it works mood here goes:

Code
<br />function checkaccess($cook, $db, $dbprefix){<br />	/* Get the visitor's GroupID */<br />	$gidf = 0;<br />	if ($cook<>"" && $usert['U_Number']>'0'){<br />		//pulled this shizzy out to use threads cookie, if U_Number is set, then they are registered ~ chillin<br />		//$cryptSessionID=md5($cook);<br />		//$queryg = "SELECT gid FROM ".$dbprefix."session WHERE session_ID='$cryptSessionID'";<br />		//$resultg = mysql_db_query($db, $queryg) or die("Did not execute query");<br />		//while ($rowg = mysql_fetch_object($resultg)){<br />			$gidf = '1';<br />	} else {<br />		$gidf = '0';<br />	}<br />	<br />	return $gidf;<br />}


as you can see, the access check would just see what group the person is in (0=unregistered 1=registered 3=special) so if the U_Number is set via authenticate() then we know they are registered so i set group id=1 else gid=0

the main other files i've modded to get things all tied in:
leftcomponent
userpage
usermenu

so now users can login via the mambo index.php or via the boards and all is normal

modules i have so far:
latest threads
a disfunctional pm inbox
photopost
events

i'm going to tweak the included weather module so folks can set their favorite location and auto change the weather to that location when they login, this is big for outdoor enthusiasts that visit my site. speaking of which, i need to get outside

i'm having some issues making this friendly for others to mod, so many of my ubb.t queries are customized for my site's table prefixes.. i'm afraid to share the mods since this is the case cuz it could really mess some folks up.

next on the docket:
adding buttons to editpost.php in threads so admin/mods can publish threads to news/events/articles

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
ok, so i'm happy now....

i have added in a "mambo it" function to my threads, where admins/mods/and users who originally posted a message can choose to publish said content to the CMS.

it works pretty much like choosing who gets access to the 'edit' button in showflat/threaded.

user's get a new icon in their "post extras" row, the mambo-it icon as i like to call it. they click on that and then choose which portion of the CMS they would like to publish to

cms script grabs post number/unumber and does the rest, grabs the content from _Posts, and notifies the admin that a new submission has been made.

way cool. like i said, my code is very customized at this point to my site (table names, cms field types as well) that i can't really relase it.

i'll work to clean it up and then post.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
That sounds really good, it would make my editors happy, they already know how to use threads.

If you get it cleaned up and release it, I would greatly appreciate it. I would probably use it to publish content on my site which I'm hard at work converting to mambo (which is coming along rather nicely) with the added bonus of being able to discuss all articles and news stories and such. Do you have a link back to the discussion of an article? I will probably add a threads comment box on the article page, and possibly a quick list of the discussion as well, if I get the time.

I've made some modules and a component for mambo as well, but they are probably not interesting to others since they are very specific to my site. I did redo mainbody.php to show the recent articles instead of the news stories published for the front page. And two modules are for listing the latest news instead, in two different ways. Those I could actually modify a bit to make it customizable to list them in different ways (like most viewed and stuff like that) if you're interested.

I will probably also modify my old newsletter script to be a mambo module, but since there already is a module released for that it probably isn't of interest. I also have a small module that lists the info of the latest link added.

The next thing I'm going to do is to add a table for Reviews and corresponding components and modules, because I need extra grade info added.

While waiting for the threads link system add-on I'll probably write a small module to search in Links 2.0 from Gossamer Threads, which is the system I use at the moment, as well as a random link viewer.

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
sweet! i'll try to clean up the code today at work (its pretty slow) and then we can coloborate on it a bit more, so far here is a run down of what i've got:

- various modules (who's online, login, latest threads, pm inbox)
- integrated search: mambo search looks in w3t_posts as well and returns the 5 most recent threads that match
- mambo-it: posting threads to CMS
- integrated login

with the mambo it, i'm copying over thread info: post # and forum, and plan on adding a link back to the thread, i like the idea of displaying a quick synopsis of the last reply to the thread though, and a quick reply box would be splendid as well.

i'm not very intimate with GNU/open source licensing but is it ok legally for me to modify, and repost their code... as long as I keep their script header tags in place?

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
Ok here it is.

Please remember that this is setup is not for the faint hearted. To compound that, i'm not the biggest php/mysql guru out there so the code can be slopy at times!

I've had a bunch of fun hackin this thing out and will continue to add on more features to my setup, but it will be a custom job.

If you use the readme.txt in this .zip file, you will have a mambo site server cms that is integrated with your threads install nicely. Integrated login, one user db (threads), some great modules (just like PALS), and of course a pretty nice CMS system to boot.

As always, backup your stuff, no threads db modifciations are necessary at all so have fun, and PM me or post questions here.

-chillin
Attachments
69069-mambothreads.zip (0 Bytes, 36 downloads)

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for your code, I'll get started on implementing it for my setup.

Since Mambo is GPL:ed you are free to release any changes you have made.

Adding post search to the search is excellent, and to show a summary of the latest comment to an article sounds like a good idea as well.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I can't find the changes to add the Mambo It-link to threads, did you include that bit?

I've also written alter table queries to update an existing Mambo database:
Code
<br />ALTER TABLE `mos_articles` ADD `board` varchar(10) NULL default 'na';<br />ALTER TABLE `mos_articles` ADD `post` int(15) NULL default '0';<br /><br />ALTER TABLE `mos_stories` ADD `eventdate` date NULL default '';<br />ALTER TABLE `mos_stories` ADD `monthid` varchar(6) NULL default '';<br />ALTER TABLE `mos_stories` ADD `board` varchar(10) NULL default 'na';<br />ALTER TABLE `mos_stories` ADD `post` int(15) NULL default '0';<br />ALTER TABLE `mos_stories` ADD `threads_number` int(15) NULL default '0';<br />


I'll get started on getting your mambo scripts to work now, I'll get back to you later.

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
nope still need to clean up the mambo it code a little bit, its just hacked together for my site for now.

I'll tidy it up and send it out with recent posts per news article/quick reply.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Great. I did a quick link to insert a post using the copyThread function, but it dowsn't allow for choosing type of article and such, so I'll just wait for your scripts.

I've done two threads modules, one that shows online users and one that creates a quick list of all the boards on the forum. If you want them, I'll write get them translated into english and send them over.

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
mmmm tasty! post em or email em to me, thanks!

tc

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
OK, here you go, I rewrote them so that they are using the language modules of Mambo 4.0.12 RC2 and included an english translation. If you haven't upgraded yet, you could just copy the lines from the english file into the mod_w3tonline.php script and remove the include() line.

Also, the module that lists forums only lists them if they are logged in, but if you want it to list for everyone you just need to remove this line:
if ($usert['U_Number'] != "") {

And it's closing brace as well.
Attachments
69584-threadsmambo_modules.zip (0 Bytes, 228 downloads)

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
hey guys
been trying to get this running, and run up with an error, which i'm thinking is a path error?

Warning: main(/version.php): failed to open stream: No such file or directory in /home/fordmond/public_html/mambo/mambo/classes/mambo.php on line 28

Warning: main(): Failed opening '/version.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fordmond/public_html/mambo/mambo/classes/mambo.php on line 28

Warning: main(/classes/database.php): failed to open stream: No such file or directory in /home/fordmond/public_html/mambo/mambo/classes/mambo.php on line 30

Fatal error: main(): Failed opening required '/classes/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fordmond/public_html/mambo/mambo/classes/mambo.php on line 30


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)