Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Hack

This hack places your PhotoPost forums on the index page of UBBThreads.

Additions for v2:

- XHTML compliant (Thanks Omegatron)
- Lightbulbs now work
- Cleaned up some html code
- Additional documentation

Example site: http://www.extremefitness.com

Left To Do:

- Optimize MySQL calls (doesnt cache data like threads does)
- Security not implemented (shows all groups)

Instructions:

In your ubbthreads.tmpl file in your templates/defaults directory, find around line 84:

echo <<<UBBTPRINT
<!-- END CATEGORY LOOP -->

AFTER that insert the contents of the attachment here.

Be sure to edit the paths and paramters for MySQL access to fit your site.

In my installation, I editted the pp-inc.php (topmenu function), showgallery.php and showphoto.php files to point HOME to the UBBThreads index.
Attachments
51892-photopost2.txt (0 Bytes, 101 downloads)

Last edited by extremebikini; 12/18/2002 12:51 PM.
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
looks good... does the search pages tie-in to each other?


- Allen wavey
- What Drives You?
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 would suggest making the html part of the mod xhtml-compliant as well... a lot of work went into threads getting it there. I can assist if you like


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Quick question, would having the pics displayed on the index page cause greater bandwidth?

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
My next "project" is to convert all the HTML over to templates; so will get your help when I do that. I didnt want to put in all the effort upfront since I knew I would be redoing all of that soon enough. But as soon as I get going on templates, you're the guy I am going to call.

And, no, there is no other integration at this point. I plan to make a "deep intergration" hack which will use UBBThreads Whose Online, Last Visit, Search and others areas. (Don't ask, I dont know when I will be able to do all that; but hopefully not too far off!)

If the thumbnails are served off your host, then you will incur the bandwidth of displaying those thumbnails.

Sponsored Links
Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157


Yors Truly

Who? Me? Worry?
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I saw that and replied over there, I would immagine that is the problem since it can't be remotely calling his script I'm going to install mine later today so I'll let everyone know how it goes.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Well, that link would only be displayed if it were displaying the categories in the first place. I guess the question is - why arent any of your categories showing up.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
oops, didn't see you reply here, I sent you another PM.

The more I looked at the code I realized that stuff before that should be showing up to begin with... but I can't tell what would be throwing it off. Its not displaying any errors or anything, so I dunno. I'm not a coder unfortunately

Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
Ok, done!! Thanks Michael. A couple of creases still, and I have posted in the PP forum, whenever you have time

Thanks again


Yors Truly

Who? Me? Worry?
Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay I have managed to make this hack XHTML Compliant. For those that want this the updated hack is attached.

Very simple to install. Just fill out your database info and paths to gallery etc. Place the code right above the send_footer line in ubbthreads.php

Totally XHTML Compliant.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I've made an update to use the light bulbs. I'll doc the changes tomorrow and post it. Here's my site with the hack in place:

http://www.extremefitness.com

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I have posted the updated script in the first post of this thread. Enjoy!

Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi

Edit : I'v just had PhotoPost3.2 installed by them and threads is supposed to be integrated but there was no links between them.

I have made the link from II5.2 to PP. JUST A LINK

Q1. Does this hack put a link on the PPost index page so I can return to Threads/II5.2 ?

Q2. If so which attachment do I use as there is 2 on this thread ?

Edit: I've just re-read this thread and still don't know what it does?

Thanks

Last edited by Liahona; 01/08/2003 4:48 PM.

Thanks

Liahona
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
George,

This hack does not place a link back to UBBThreads. However that is very easy. In your photopost gallery find the file pp-inc.php. Look for the following code below:


if ( $rows > 0 )
$menu .= "<img border="0" src="{$Globals['idir']}/check.gif" alt="New Photos" /> ";

$menu .= "<a href="{$Globals['maindir']}/adm-index.php">{$Globals['pp_lang']['admin']}</a> | <a href="{$Globals['maindir']}/index.php">{$Globals['pp_lang']['home']}</a>";
}
else
$menu .= "<a href="{$Globals['maindir']}/index.php">{$Globals['pp_lang']['home']}</a>";


REPLACE IT WITH THE FOLLOWING FILLING OUT YOUR PATH TO THREADS:


if ( $rows > 0 )
$menu .= "<img border="0" src="{$Globals['idir']}/check.gif" alt="New Photos" /> ";

$menu .= "<a href="{$Globals['maindir']}/adm-index.php">{$Globals['pp_lang']['admin']}</a> | <a href="http://www.PATHTO/ubbthreads.php">{$Globals['pp_lang']['home']}</a>";
}
else
$menu .= "<a href="http://www.PATHTO/ubbthreads.php">{$Globals['pp_lang']['home']}</a>";



Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
Hey!

I posted this on the PP site but thought I might have better luck here. I cannot get the 3rd level categories to show on the totals of the homepage.

I ahve attached a screenshot of what is showing for a single category.

Thanks for the help,

-Jason
Attachments
64556-index.jpg (0 Bytes, 46 downloads)

Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
This is the corresponding pp index screenshot
Attachments
64557-ppindex.jpg (0 Bytes, 44 downloads)

Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
Contents of my ubbtemplate-

Attachments
64558-ubbthreadstmpl.txt (0 Bytes, 307 downloads)

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
When I add this as directed, I get this error:

[]
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\wwwroot\fiebre.com\ubbthreads\templates\default\ubbthreads.tmpl on line 126
[/]


- Allen wavey
- What Drives You?
Joined: Dec 2002
Posts: 173
Member
Member
Offline
Joined: Dec 2002
Posts: 173
Hi Chuck

Just read your reply, been busy adding lots of hacks (some with your help - thanks).

Yes it works fine - just changed the address to index.php to point to II5.2

Thanks


Thanks

Liahona
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Allen,

That's usually a misplaced bracket or something somewhere before that line.

Paste that section (a little before that line number here) and I'll look.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thank you... I added some print statements and it shows up, but needs some other html (perhaps an open and close table) for it to look right

http://www.fiebre.com/ubbthreads/ubbthreads.php


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ok

this is what it needs:

==========================================================

FIND in ubbthreads.tmpl:
Code
<br />echo <<<UBBTPRINT<br /><!-- END CATEGORY LOOP --><br /><!-- END OF FORUM LOOP --><br /></table><br /></td><br /></tr><br /></table><br /><br /><br /><br />$tbopen<br />

REPLACE WITH:
Code
<br />echo <<<UBBTPRINT<br /><!-- END CATEGORY LOOP --><br /><br /><!-- END OF FORUM LOOP --><br /></table><br /></td><br /></tr><br /></table><br />UBBTPRINT;<br /><br />echo <<<UBBTPRINT<br /><br /><br />$tbopen<br />

=============================================

then place the code provided in the first post in this thread above :
Code
<br />echo <<<UBBTPRINT<br /><br /><br />$tbopen<br />


that will fix the layout probs


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Actually if we look at the mistake made in the release version of the template I use this and it works

echo <<<UBBTPRINT
<!-- END CATEGORY LOOP -->
<!-- END OF FORUM LOOP -->
$tbclose
UBBTPRINT;
photopost code here!
echo <<<UBBTPRINT
<br />
$tbopen

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
good eye it does need a tbclose there instead of the html


- Allen wavey
- What Drives You?
Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
I actually managed to integrate this hack into my site and it kinda works! No one is more surprised that I could do this than I am

The issues I'm having:

My biggest PP subcat shows on the UBBT page as having 0 posts and 0 uploads. Why won't the correct numbers show?

One of my top-level gallery categories isn't showing up -- I'm only seeing two of the three. It's the only category with no sub-categories, if that's related.

The "lightbulbs" don't change once gallery threads are viewed. If the category has photos in it, the lightbulb stays yellow.

How do I put a title above the displayed photos (something like, "Most recent additions to our gallery"?


I'm using the current release of Photopost, and UBBT 6.2.

Thanks!

Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
Yeah, same problem I posted above, lower level cats arent totalling up for some reason.

-Jason

Joined: Oct 2000
Posts: 53
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 53
Me too!
I'm having same problem here....

I'm using Photopost 3.2 with Ubbtheads 6.2(last release)

Thanks
Junhyok

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Guys Extremebikini has noted all problems with this hack and in his spare time has said over in the photopost forum that he is working on this when time permits.

I have updated it use the $tbopen and $tbclose variables for flexibility and those that use the table wrappers from here.

I will look into the categories and try a few things out myself although I have never used subcategories I shall see if I can get it to work.

I posted another update in my next post to correct most issues.

Last edited by omegatron; 01/20/2003 8:57 PM.
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Sorry, guys; been real busy with some new products and havent had time to go back and work on this. I havent even been able to load 6.2 myself yet!

I was able to make light bulbs work on my current release - but I havent tried it with 6.2 yet. Unless someone gets to it before me it will be a week or two (at least).

Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
No problem and thanks for the hard work!

Joined: Oct 2000
Posts: 53
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 53
Thanks a lot! guys...

Junhyok

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay,

To summarize what has been done. The only issue I that has to be cleared up is the cookie issue which Michael is working on.

1) Totally XHTML Compliant
2) Updated to use $tbopen and $tbclose
3) Subcategories are now being included in the main count ( Keep in mind this hack does not display subcategories on the main threads page nor is it designed to. )

The only issue I see left is cookies. Follow the directions in the attachment.

ADDED 2-9-03:

Directions have been tweaked to take the user information out of template and put into PHP file for security issue.
Attachments
65702-photopost.zip (0 Bytes, 28 downloads)

Last edited by omegatron; 02/09/2003 8:21 AM.
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Hate to be the doorknob, but I cant remember what cookie problem.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
For the cookies to work and update

Right now the lightbulbs stay on all the time.

You had meantioned you might have had a bit of code also in ubbthreads.php so that it would recognize and update the lightbulbs. Just like you had that query routine that got the counts for the thread totals and such.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Oh, right; I have the code for that. Its not a cookie thing, its just the code I had to add. I'll email you my new ubbthreads file so you can see if and yank it out.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Thanks thats the one thing left. I guess I should have said light bulb problem. God knows I hate seeing those yellow light bulbs all the time.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ennyone tried this recently? I kept getting table problems around the photopost stuff, like something was missing... anyways I used the code from the first post and the touchups from the second page and it looks ok.


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I use the last version I posted and it validates and looks okay. I am still waiting on Michael to send what code he has inserted into ubbthreads.php to make the lightbulbs work.

The original one posted here is not XHTML compliant and uses the old table structure.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I'll send it in the morning; just about got 3.3 done and finished ReviewPost this week, too!..... phew*

Page 1 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
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)