Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I can't seem to get this to work Omegatron. My problem is in the ubbthreads.tmpl file that I edited. I added the text to the file as instructed (I'm even attatching a copy of the file here, assuming I can attatch .tmpl files) and the photopost index is not added to the ubbthreads.php page:
http://www.estrellasdetelenovela.com/foros/ubbthreads.php?Cat=
If you highlight the area under the last forum you'll see the error that I'm getting. How can I fix this? I've tried several times already w/o asking for help and it always does the same thing. I'm sure I'm missing something.
Attachments
96678-ubbthreads.tmpl (0 Bytes, 84 downloads)

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Check your paths

The file is in the templates directory

I would assume the path is not correct here

/home/estrella/public_html/foros/templates/default/ubbt_photopost.tmpl

Also you photopost.inc.php file located here

/home/estrella/photopost.inc.php

Is it there?

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]Omegatron said:
Check your paths

The file is in the templates directory

I would assume the path is not correct here

/home/estrella/public_html/foros/templates/default/ubbt_photopost.tmpl

Also you photopost.inc.php file located here

/home/estrella/photopost.inc.php

Is it there? [/]

All the paths look right to me. The ubbthreads.tmpl file is in the templates/default directory and so is ubbt_photopost.tmpl. The path in ubbt_photopost.tmpl is set to /home/estrella/photopost.inc.php and the urls are set correctly in the photopost.inc.php file (which I keep above the web root). Any ideas?

**********EDIT**************
It's probably some stupid operator error, but if you can't think of what it is and you're willing to help, I can PM you login information so you can SSH into the account a look at the files.

Last edited by donJulio; 10/09/2003 8:32 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Well if you PM with FTP login I will look at it for you.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep operator error.

You indented the UBBTPRINT AND echo <<<UBBTPRINT statements

Thats a NO-NO

Since there was space before those statement which control the switching from HTML to PHP code that require statement was chocking as a result.

Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]Omegatron said:
Yep operator error.

You indented the UBBTPRINT AND echo <<<UBBTPRINT statements

Thats a NO-NO

Since there was space before those statement which control the switching from HTML to PHP code that require statement was chocking as a result. [/]
Thank you Omegatron. I will confess that doesn't make much sense to me, but I will take a look at the template file you changed to see what it was I did wrong. Thanks for the help! BTW, it looks very nice

************EDIT*************
OK. I looked at it and I see what I did wrong clearly. Thanks!

Last edited by donJulio; 10/10/2003 11:57 AM.
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Ok. I've got another question. First look at this:
http://www.laondalatina.com/foros/ubbthreads.php?Cat=&C=4

Look at the bright orange going all way around the ubbt_footer template as well as the footer. That's all from the tablesurround class, but it wasn't happening before. What do I need to edit in the ubbt_photopost.tmpl so that the orange from this class stops at the end of the photopost template. Currently it just keeps on going, as if maybe a table wasn't closed. Any ideas?

**********EDIT************
It looks like a $tbclose may be missing from the ubbt_photopost.tmpl file after the first category of photos. Which means that the $tbclose at the end of the file closes the second category, but not the whole table. I don't know if this makes sense the way I'm writing it, but it's better illustrated by looking at this page:
http://www.telenovelas-online.com/foros/ubbthreads.php?Cat=&C=4

See how the second category is a little indented from the first? I think that there was supposed to be a $tbclose between the two.

Last edited by donJulio; 10/10/2003 1:43 PM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Try using the template from Estrella.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I'll tell ya what, it worked! I have no idea why, but thanks Omegatron!

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I've got another problem w/ this Omegatron. You can see the problem right here:
http://www.estrellasdetelenovela.com/foros/ubbthreads.php?Cat=&C=4
For the date of the last photo uploaded in the last 10+ categories it says 12-31-1969 at 4:00 p.m. I double checked the photo gallery itself:
http://www.estrellasdetelenovela.com/galeria/
and it doesn't say that. I'm leaning towards the theory that this is a problem w/ the modification.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I remember this being a problem with some posts in threads as well. I will have to research the fix.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
FYI Omegatron, if anyone else has the same problem of users who haven't activated their account logging in through the Photopost login link, I have the solution:
Copy the threads login.php and login.tmpl files to the appropriate folders in the photopost folder. Then edit login.php and change the path to main.inc.php and to the path to /ubbthreads/languages/*/login.php. Worked for me!

In my case, I had Photopost and UBB.Threads in separate folders. So I changed the path from main.inc.php to ../nameofthreadsfolder/main.inc.php. I also added ../nameofthreads before the path to the languages/login.php file.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I would have looked at why you had problems!!! before doing that.

UbbThreads and Photopost work right out of the box together. You have obviously something set wrong if you could not login.

The date thing seems to happen with translation of sticky dates in threads so that might be something similar here. I will look at the code and see.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]Omegatron said:
I would have looked at why you had problems!!! before doing that.

UbbThreads and Photopost work right out of the box together. You have obviously something set wrong if you could not login.
[/]

It's not that I couldn't login, but rathter that other users could login through the photopost login page w/o first verifying their email, which is a problem with photopost. I just removed that login page and replaced it with a threads one because that login script won't let them login until they've activated their accoount. Though I have let them know of the issue at the Photopost forums.

I didn't mean to confuse you. I was actually referencing a post in a different thread:
https://www.ubbdev.com/forum/showflat...ll/fpart/4/vc/1

Last edited by donJulio; 10/15/2003 12:48 PM.
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
https://www.ubbdev.com/forum/showflat...5/o/all/fpart/1

An updated module has been posted which dramatically reduces the number of queries necessary to display the index and improves the formatting.

Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
Any word on the lightbulbs thing? I saw another thread about this stuff, and said adding $UserID = $user['U_Number'];
in the ubbthreads.php would fix it, but it doesnt.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
??

I think this has been fixed in the newer versions? This topic is more than a year old now


- Allen wavey
- What Drives You?
Page 2 of 2 1 2

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
Posts: 70
Joined: January 2007
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 20240506)