|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
I keep getting this error if I define the dbh etc like I have seen you suggest in other threads
Cannot instantiate non-existent class:
If I just try and include them in the template I get call to a non member object
so any idea how to include them right? I know your working on it for 5.5 but just trying to do a little site design myself.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Omegatron. I never got this to work (or gave up before I did LOL) but I *think* (somebody shoot me if I'm wrong), I *think* the key is to go into the ubbt.inc.php file for the send footer function and add "$dbh" into the list of global call variables. There might be more... but I *think* this gets you on the right track. Then of course, make sure that you aren't requiring main.inc.php more than once.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
In threads 6.2 $dbh is in every global call I checked that. I will await word from the MASTER. Since he has them done up here.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
In threads 6.2.2 under the function send_footer function, it starts: global $config, $theme ..... On threadsdev... it's been changed to: global $dbh, $config, $theme so I don't think $dbh is in there by default. But there may be more to this puzzle. I havne't attempted it lately and am patiently awaiting the latest IIP.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
More to the puzzle. Call to a member non-object on newuserpal line 23: this is line 23 of that file $date = $html -> get_date();
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Dunno. LOL Waiting for Mr. Dave.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Yeah I think he is breaking out his notes. He was replying to this topic right after I made it but then left. We are definately missing something.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
There's a few things needed to make them work because they are used to being imbeded in the index page which provides a number of the checks/values they need. The non existant class may possibly be fixed by adding $dbh to the globals.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
I added $dbh to the send_footer global call Just thought I would ask since ya got them working here and are still running 5.3
Last edited by omegatron; 02/17/2003 7:56 PM.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Yes the version is 5.3 but there have been changes made. I just haven't dedicated any time to changing the version number. Its usually the last thing I do.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
LOL yeah I keep playing trying to get em working. Oh well I can cross my fingers hoping for 5.5 soon
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Thats alright so your really running 5.5 that we all have been waiting on.
If I follow you in all that has to be called to support calling the pals then you most likely are calling everything via a PHP file instead of a template. Sorta like a mini index file designed to display what pals one wants to and then your using your side bar mod and calling the PHP from the sidebar.tmpl
I am eagerly awaiting the release of that feature in IIP.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
That's right about the "mini index" which basically is what the sidebarpal.php script is. When the weekend hits I'll spend an all-nighter on IIP and kick 5.5 out by next Monday. I still need to make some changes to keep the table wrappers from being stored in cache. I also wanted to break the configure panel into 2 or 3 sections as that script is huge... lol I'll try and work a little here and there on 5.5 during the week. I just may be able to get it out by Friday.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
A mini Index is cool
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
After looking over what's needed to get 5.5 finished I believe that there also needs to be some sort of "high traffic" mode for the sidebar. The cache table would need to store a timestamp for when the last load was and if it is under a set amount of time then some of the more costly pal box queries would be skipped regardless if it's time to update the information. The information would still be updated by the index page anyhow. Just trying to allow for as little impact on the forums as possible. </thinkingoutloud>
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
Where are the instructions on how to add PALS into the Sidebar?
Thanks
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Never been successfully done by anyone but JustDave yet. I've done the shoutbox... but always had trouble with the rest. The "Sidebar.pal" will be part of IIP 5.5 which JustDave hopes to have out by Monday. <fingers crossed>
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
Ok... I am going to hold my breath!
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
in the mean time what about the shout box.. any instructions?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
The shoutbox seemed to work for me by putting include("/name/of/my/path/ubbthreads/pals/shoutboxpal.php"); In the sidebar. I think all the other pals depend on index.php to grab the info that they need. But aparently, 5.5 will offer this as a feature.
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
You can also include it in the iframe statement as well.
|
|
|
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.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,574
Posts293,926
Members13,850
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|