Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
Okay, I had the trial version all nice and installed. Worked fine.
Bought the UBB Threads, installed on my Infopop server replaced all files except main, config and theme.php.
Uploaded all in ASCII but the images(binary)
Set permissions on the files and directories according to the install manual.
Now heres where I havent a clue what to do

It says "Open the file named main.inc.php and edit the top variable ($thispath=)."

How do I edit this? I opened the file with notepad but dont know what to put where. Its obviously a path thing right?

Am I to assume that once this is edited I then open "the file named altertable-demo-x.x.x.php in your web browser, in the same fashion that you originally ran the createtable.php script to set up the Trial version. (Running the altertable-demo-x.x.x.php utility will re-configure your database tables to match the licensed version.)"

Somehow I dont think it will be that easy <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

I didnt run the createtable.php script when I loaded the trial. it was the install.php file I ran and everything just fell into place..by fluke I am sure.

So please help me, how do I edit that main.inc file.

Thanks in advance <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
Yes, you're looking for a path to put in there. Basically you should see a line in that file that starts with $thispath = "....";

What you would need to do is change that so it is set to the path to your ubbthreads installation. So, it would probably look something like:

$thispath = "/path/to/ubbthreads";

There are also 2 other options. If you don't have alot setup in your trial install you could wipe out the database and just do a new install. Run install.php as you did before and then run the createtable.php script.

The second option would be to go ahead and run the install.php script. This will go through and setup all of your variables. But, don't click on the createtable.php link. Instead you will need to load up the altertable-demo.. script to alter your database.

Usually the first option I gave is the easiest because it's like a straight install <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Hi rick

Thanks for the response.

Okay, I am looking for a path to my ubbthreads location

Heres the php script ..raw:

<?

// THIS NEEDS TO BE SET, OTHERWISE ADMIN SCRIPTS WILL NOT WORK
// THIS IS THE ACTUAL PATH TO YOUR PHP INSTALLATION
$thispath = "";

// PATH TO YOUR config.inc.php file. BY DEFAULT THIS IS THE
// SAME AS $thispath, BUT IF YOU MOVE config.inc.php TO ANY
// OTHER LOCATION YOU MUST SPECIFY IT HERE.
$configdir = "";

// DO NOT EDIT ANYTHING BELOW THIS LINE!
include("$thispath/ubbt.inc.php");

// Page load times
$timea = getmicrotime();

?>


Now as for my absolute paths..this is what I am not sure of

my ubbthreads is installed on the InfoPop server
Heres my addy

cyabc.infopop.cc

when I log into my FTP the home dir is

home/cyabc

Then within WSfTp i click on the main html site
and my ubbthreads install folder path (I think) is

/var/www/html/ubbthreads

That puts me in the ubbthreads folder..what do I put in that main.in.php script above? Do I add it in notepad?

I set up some users and headers and footers in the trial so I dont really want to do that all over again
So the only files I didnt overwrite when I installed the licensed version were the config, main and theme.php files

Did I do that right?

Sigh

I am sure the questions in the forum will be numerous..but once I get this set up I think my only other issue will be(hopefully) is the attachments issues.


Oh, could I just run that install.php then import my settings I had before?


Thanks in advance


Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
It looks like you would put:

$thispath = "/var/www/html/ubbthreads";

in your main.inc.php file with notepad. You can run the install.php script if you would like. This will update all of your config settings, you'd just need to make sure you don't click on the createtable.php link since your tables are already there.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Okay now is this what I would do to my script:
(I just want to make sure before I do anything and screw things up)

Do I delete the first text"THIS NEEDS TO BE SET, OTHERWISE ADMIN SCRIPTS WILL NOT WORK
// THIS IS THE ACTUAL PATH TO YOUR PHP INSTALLATION
" ?

Then it will look like this:
right?


<?

//$thispath = "/var/www/html/ubbthreads";

// PATH TO YOUR config.inc.php file. BY DEFAULT THIS IS THE
// SAME AS $thispath, BUT IF YOU MOVE config.inc.php TO ANY
// OTHER LOCATION YOU MUST SPECIFY IT HERE.
$configdir = "";

// DO NOT EDIT ANYTHING BELOW THIS LINE!
include("$thispath/ubbt.inc.php");

// Page load times
$timea = getmicrotime();

?>


Do i delete the "by default this is the//same.."

Is there any detailed step by step instructions for this kinda thing?
I dont know code other than html. This scares the you know what outa me <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
..ran the install php and it went through fine
Now I am at the checking of the paths and it cant open urls.
why wouldnt it be able to open the urls?

heres what the errors are:

Step 5

Checking all path/url information. Please make sure you have all files uploaded, or you will get
false reporing. NOTE: The first 3 might fail if PHP is unable to open files via a URL. If that is the
case you may continue to the next step.
phpurl
(http://www.cyabc.infopop.cc/ubbthreads) UNABLE TO OPEN
images
(http://www.cyabc.infopop.cc/ubbthreads/images) UNABLE TO
OPEN
styledir
(http://www.cyabc.infopop.cc/ubbthreads/stylesheets) UNABLE TO
OPEN
path
(/home/virtual/site5/fst/var/www/html/ubbthreads) PASSED
imagepath
(/home/virtual/site5/fst/var/www/html/ubbthreads/images) PASSED
stylepath
(/home/virtual/site5/fst/var/www/html/ubbthreads/stylesheets)
PASSED

Then I go to check my urls paths and there are ? marks next the ones that didnt pass obviously

Heres how it looks:

Step 4

Next we need to gather information on the paths and url of your installation. Some of these values
are pre-filled but may not be correct depending on your system. Please change if necessary.

The domain UBB.threads will be run on
http://www.cyabc.infopop.cc/

Absolute URL to the UBB.threads install

/ubbthreads
Absolute URL to image directory
/ubbthreads/images

Absolute URL to stylesheets directory

/ubbthreads/stylesheets
Path to your UBB.threads install

/home/virtual/site5/fst/var/www/html/ubbthreads
Path to your images directory
/home/virtual/site5/fst/var/www/html/ubbthreads/images

Path to your stylesheets directory

/home/virtual/site5/fst/var/www/html/ubbthreads/stylesheets


Now my threads, images and stylesheets are located there but I cant open them in a url with that addy
Am I missing a directory?
I get a FORBIDDEN access to that directory when I do the actual URL in a browser
The permissions are set to 777 on the folders to

Anonymous
Unregistered
Anonymous
Unregistered
I just was trying your URLs and can't get your site at all using the WWW. I think you need to take out the www.

Anonymous
Unregistered
Anonymous
Unregistered
I bypassed the above URL errors and just went to next step, it told me my tables were already created..and theres no *next*
So i went the url of where my threads board is and...well take a look
http://www.cyabc.infopop.cc/ubbthreads/ubbthreads.php

Now I have no idea what to do

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
I took out the www ..still didnt work

Dont know if its a permission issue or a sql issue or what

I was trying to upgrade from the trial, I may just have to reinstall everything from scratch

But the URL issue is driving me crazy..and I am tired so that isnt helping <img border="0" title="" alt="[Frown]" src="images/icons/frown.gif" />

I refuse to give up until its installed


<img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
The URL you posted didnt' work (server not found) until I took the "www" out. Make sure you're not using that anywhere else, or people will get errors.

When I took the www out, I saw your errors. It sure looks to me that the $thispath variable is set incorrectly.

What Path do you have in your main.inc.php file for $thispath?

From the errors, I'm thinking that you should have something like:

/home/virtual/site5/fst/var/www/html/ubbthreads

Anonymous
Unregistered
Anonymous
Unregistered
Now I get what you meant..

I fixed the path in the main.php(not sure if thats what fixed it) BUT I tool the www out of the phpurl config in the installation wizard and they all passed

..

not out of the woods yet but thanks..that helped me through that step:)


Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
http://www.cyabc.infopop.cc/ubbthreads/ubbthreads.php

I still have all that mysql error stuff

Theres not instruction manual for this is there?

What have I got to do here?

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
OK -
Just looked at your forums. Everything is there now, so you must have your paths correct.

Now I see the MySQL errors.

Did you run the altertable-demo-6.0.php script yet to upgrade your database from the demo?

Anonymous
Unregistered
Anonymous
Unregistered
Hi Josh

Yes I did use that altertable demo thing.

But it still wasnt wworking so i did what Rick suggested and just re-installed

In fact I am just going to delete the folder ubbthreads and start from scratch

The errors on the page are referring to line 83 and all unknown SQL errors

So I am going to start from scratch and see what happens

stay tuned for more panic <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
I think you've got all the proper files in place.... as threads itself is working.

It seems as if the database isn't right.

You might have needed to dump all the tables in the database, then do the install. If you installed and it tried to create the tables on top of the others, it might have screwed it up. The threads files seem as if they are installed OK.

Don't know what kind of access your host gives you to the database. You might ask them to give you a "fresh clean" database, then run the createtable script and you should be all set.

Anonymous
Unregistered
Anonymous
Unregistered
I am actually on the Infopop hosting plan ..so they are the ones hosting everything

I am re upping and startingfrom scratch

I think the createtables thing might have been the problem

We shall see

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
You might still need to clear all the tables out of the database... I don't know what it does to it when you keep doing the createtable on the same database.

Infopop might need to help you with the database.

Anonymous
Unregistered
Anonymous
Unregistered
I went through all the reinstall..get to step 6..says that all my config files are set up right..please go on to create tables

then this is the messageI receive:

"Createtable.php has already been run. Your tables already exist."

How do I clear the tables?

sigh

Any thoughts appreciated

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face="">Originally posted by Rick Baker:
Yes, you're looking for a path to put in there. Basically you should see a line in that file that starts with $thispath = "....";

What you would need to do is change that so it is set to the path to your ubbthreads installation. So, it would probably look something like:

$thispath = "/path/to/ubbthreads";

There are also 2 other options. If you don't have alot setup in your trial install you could wipe out the database and just do a new install. Run install.php as you did before and then run the createtable.php script.

The second option would be to go ahead and run the install.php script. This will go through and setup all of your variables. But, don't click on the createtable.php link. Instead you will need to load up the altertable-demo.. script to alter your database.

Usually the first option I gave is the easiest because it's like a straight install <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

</font><hr /></blockquote><font size="" face="">Hello again Rick

Well I followed all the above install instructions to no avail
I then deleted the whole Ubbthreads folder and reinstallled went through the whole process again and it still said my tables were already created
Do you have to do something on your end?

I am using InfoPops webhosting package btw, I was using UBBx but it didnt have the features I needed so I decided to buy Ubb threads instead

I just dont know SQL or what I am doing wrong and going into the database admin area is greek to me
I dont know what it is that I have to configure if I do at all

I am going to install the demo again..then try an upgrade again
If that doesnt work I will just delete it all and start from scratch again

Any help is appreciated

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
Okay I re-loaded the trial and its working wonderfully
Its all pretty and I seem to have it configured properly

But the strange thing was my old tables were still in there even though I deleted the whole ubbthreads folder and started from scratch.

I am going to attempt to upgrade to the licensed version now

But for future reference how do I clear my tables?
As I asked above, is that something on your end or mine?

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
Well guess what..I upgraded to the license version

Followed every instruction to the letter replacing all files except config and theme,(ASCII & binary for images) checked permissions, then edited the main.php thispath to point to my directory, then went to my browser and ran the altertable-demo-6.0.php and this is the error I get:

Warning: Unable to access /var/www/html/ubbthreads/ubbt.inc.php in /home/virtual/site5/fst/var/www/html/ubbthreads/main.inc.php on line 13

Warning: Failed opening '/var/www/html/ubbthreads/ubbt.inc.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in
/home/virtual/site5/fst/var/www/html/ubbthreads/main.inc.php on line 13

Fatal error: Call to undefined function: getmicrotime() in /home/virtual/site5/fst/var/www/html/ubbthreads/main.inc.php on line 16

I checked permissions on main & ubbt they are set to 777

I am all out of ideas and am going to quit right now.

So if you can take a look at it Rick and let me know whatssup <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

http://cyabc.infopop.cc/ubbthreads/ubbthreads.php


Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
Ok, it looks like the $thispath variable isn't quite set correctly. I need to get a script that will report this one clearly <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> Basically, what you want to do at this point is edit your main.inc.php file again. Your $thispath setting should actually be this:

$thispath = "/home/virtual/site5/fst/var/www/html/ubbthreads";

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
You kinda had it working last night. Just the database wasn goofed from running the install again I believe.

Deleting the threads install won't delete the database.... so as I said, you really didn't need to start over. I don't know if you've got access to something called "PHPMyAdmin" to go in and delete the database tables, then run the createtable over again.

If not, try to Contact the InfoPop webhosting support and ask them to clear your database out, so you can start fresh.

Anonymous
Unregistered
Anonymous
Unregistered
Yes I do have access to the myPhp admin thing but what exactly do I delete?

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
Delete each table in the database so that it's totally empty.
Then run the install script only once to create the table, and you should be good.

It's been a long time since I used PHP My Admin (my site has something similar but different)... but you should be able to select each table inside your database and then click either delete or drop table. Something like that.

If it lets you delete the whole database and make a new one that would work too. When you run install just make sure you are putting the right name of the database and password etc.. in when you install.

Anonymous
Unregistered
Anonymous
Unregistered
Yes, you would drop all the tables. Don't use empty, that wouldn't do what you want here.

Anonymous
Unregistered
Anonymous
Unregistered
..all went well and my original theme setup was still there which was good.

But..

Now I go to the ADMIN panel and I got this error at the top of the page, left frame and right frame:

Warning: Unable to access /home/virtual/site5/fst/var/www/html/ubbthreads/languages/c/generic.php in /home/virtual/site5/fst/var/www/html/ubbthreads/ubbt.inc.php on line 197


Whassup?

I will do a search through the support forums...yet again

Any help of course is appreciated.

And thanks Josh by the way, your posts have been very helpful

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
When it says in an error
" Warning: Unable to access /home/virtual/site5/fst/var/www/html/ubbthreads/languages/c/generic.php in /home/virtual/site5/fst/var/www/html/ubbthreads/ubbt.inc.php on line 197"

I viewed the file within my WSFTP by right clicking then viewing and it opens it in Notepad and its all ascii text

What exactly is the ubbt.onc.php file anyways?
And /languages/c/generic.php ...what is that?

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
It looks like somehow the language isn't defined properly. Where it says "c" it should say the name of a language. It should look something like this:
/languages/english/generic.php

Try manually editing your config.inc.php file. Look down about halfway for this line.

$config['language']= "english";

I'm guessing instead of "english" it says "c". Try changing it to "english" and I think what you have will work.

Anonymous
Unregistered
Anonymous
Unregistered
Those were my thoughts exactly, I did a search in my config file for the word "language" to see if /c followed it anywhere and theres nothing


My config files says "english"

heres the line in my config.inc.php file:

(I have pasted the above and below lines as well so you can see the order its in)

// If you are using cookies you can specify a path to make them available
// to other areas of your website. If you only want them to be available
// to things within your UBB.threads installation directory leave this blank
// If you want them available to your whole website, specify a path of "/";
$config['cookiepath'] = "";

$config['language'] = "english";

// --------------------------
// Site specific / Navigation

// Do you want to do full new post tracking? Show the number of new posts on
// a board/thread and show which posts are new in a thread?

I also did a global search in my ubbt.inc.php file to see if it referred to /c anywhere there..but nothing

Any other ideas?

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
The errors I seem to be having are prevalent all over the board.

It seems like the same issue keeps coming up just with a few minor differences.

Someone might think about writing an error manual so the same questions dont get asked over and over again.

The answers always vary though..ever so slightly..but always path-related.

Am I right or is just my eyes buggin out at 5:30 am? <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

I still cant find the error in any of my php files

Thinking I might have to get my tables cleared again???

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
ubbt.inc.php (version 6.0.2), lines 196-198:
<pre>if (isset($user['newlanguage'])) {
require ("{$config['path']}/languages/{$user['newlanguage']}/generic.php");
}</pre>

(A text editor which displays line numbers is useful. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> )

I don't know why the language is getting set to "c". That's not one of the existing subdirectories.

Anonymous
Unregistered
Anonymous
Unregistered
Thanks..of course you are right about the text editor
Beleive or not I have never had the need to see line numbers..no programming type experience here

A graphics geek myself

Anyways I downloaded BoxEditor(very cool proggie btw) and here is my lines 196-198)
(I dont know why its displaying/c either)

I think I am going to start a new topic
This is getting too big I think
So here are my lines 196-198 in ubbt.inc.php

if (isset($user['newlanguage'])) {
require ("{$config['path']}/languages/{$user['newlanguage']}/generic.php");
}
if (!$ubbt_language) { $ubbt_language = $config['language']; }


Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face="">Originally posted by JoshPet:
It looks like somehow the language isn't defined properly. Where it says "c" it should say the name of a language. It should look something like this:
/languages/english/generic.php

Try manually editing your config.inc.php file. Look down about halfway for this line.

$config['language']= "english";

I'm guessing instead of "english" it says "c". Try changing it to "english" and I think what you have will work.</font><hr /></blockquote><font size="" face="">You know all this trouble I am having..would it make a difference if I have UBBx installed on my database as well?
I have the hosting/ubbx plan and decided to buy the ubbthreads..does it install on top of each other?
I ask this because I am trying to figure out how to drop tables in phpmyadmin and the database tables look very much like my ubbx files ..so if i drop everything(and I am still not exactly sure how to do that) would that make a difference?

Do these products conflict or are the two different animals?

Lerosi

Anonymous
Unregistered
Anonymous
Unregistered
I don't believe that should make a difference. I just went to your forums and when I go to:

http://cyabc.infopop.cc/ubbthreads/ubbthreads.php

That works fine. No errors. But when I click on a link it takes me to something like:

http://www.cyabc.infopop.cc/ubbthreads/postlist.php

I think one thing you might need to do is edit your config file. The config.inc.php file. THere is one variable called $config['phpurl']. This is probably set to "http://www.cyabc.infopop.cc" It looks like it needs to be "http://cyabc.infopop.cc"

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Hi Rick

Actually that www error was corrected 6 errors ago <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

The program was looking for a languages/c/ directrly within the ubbt.inc.php file

I ended up creating a c directory and playing with it and voila it worked!

Then I deleted everything and started from scratch yet again

After I purged and deleted everything on my server 4 times its finally working

I am touching wood big time now coz I have no idea what I did to fix it

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
That's a wierd one.

Just looked at your site and it looks good!!!! <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

"Happiness comes through doors you didn't even know you left open. "

Anonymous
Unregistered
Anonymous
Unregistered
Yes I cant believe I got the forum up and running and I have no idea whether I did something right or somebody on the other end fixed something

Regardless..I am a configuring fool now <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

I posted a new topic on how to add users to the Admin section..then read a couple of posts from you awhile back

But not sure exactly what they meant..can you add users to Admin by editing templates?

Lerosia

Anonymous
Unregistered
Anonymous
Unregistered
No,
Under Admin you'll search for your users.... Or click on their username in the Userlist. Then click "Edit this User".... then "grant Admin Priv". It's simple really.

Hope that helps!
Josh

"Happiness comes through doors you didn't even know you left open. "

Anonymous
Unregistered
Anonymous
Unregistered
Yes Josh I figured it out finally <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Silly me didnt see the field give admin priv

All is right with configging today


Lerosia


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)