 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
February 26th, 2006, 10:46 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
| Random photos block at top of index page
I couldn't find any previous post that answered my question on this.
I want to put a block of 4 or 5 random photos at the top of my Photopost index page above the category list. At the moment it is a block of 2 near the bottom. I can't even remember how I got it there.
Thanks
Bob
|
| |
February 26th, 2006, 11:22 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
You would need to move your random photo block up on showgallery.php like so and make sure to remove the call lower in the file Code: Content visible to verified customers only.
|
| |
February 26th, 2006, 11:38 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
Am I moving all that code or only the code in bold? Also, where do I move it to if I want it above the category list.
Bob
|
| |
February 26th, 2006, 11:59 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
I posted the code above where it would go |
| |
February 26th, 2006, 12:54 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
| Quote:
if ( $cattype == 'c' && empty($si) && empty($ppuser) ) {
if ( $Globals['features'] == "yes" && ($Globals['mostrecent'] == "yes" && $Globals['recentdefault'] == "no") ) {
display_gallery("latest", "", $cat);
}
if ( $Globals['disrandom'] == "yes" ) {
display_gallery("random", "", $cat);
}
}
// Cell alignment
$aligntb = ( $thumbsonly > 0 ? "middle" : "bottom" );
if ( $thumbsonly == 1 ) {
$views = "<option value=\"0\">{$Globals['pp_lang']['gallery']}</option><option value=\"1\" selected=\"selected\">{$Globals['pp_lang']['thumbnail']}</option><option value=\"2\">{$Globals['pp_lang']['withtitles']}</option><option value=\"3\">{$Globals['pp_lang']['groupby']}</option><option value=\"4\">{$Globals['pp_lang']['puzzle']}</option>";
}
elseif( $thumbsonly == 2 ) {
$views = "<option value=\"0\">{$Globals['pp_lang']['gallery']}</option><option value=\"1\">{$Globals['pp_lang']['thumbnail']}</option><option value=\"2\" selected=\"selected\">{$Globals['pp_lang']['withtitles']}</option><option value=\"3\">{$Globals['pp_lang']['groupby']}</option><option value=\"4\">{$Globals['pp_lang']['puzzle']}</option>";
}
elseif( $thumbsonly == 3 ) {
$views = "<option value=\"0\">{$Globals['pp_lang']['gallery']}</option><option value=\"1\">{$Globals['pp_lang']['thumbnail']}</option><option value=\"2\">{$Globals['pp_lang']['withtitles']}</option><option value=\"3\" selected=\"selected\">{$Globals['pp_lang']['groupby']}</option><option value=\"4\">{$Globals['pp_lang']['puzzle']}</option>";
}
elseif( $thumbsonly == 4 ) {
$views = "<option value=\"0\">{$Globals['pp_lang']['gallery']}</option><option value=\"1\">{$Globals['pp_lang']['thumbnail']}</option><option value=\"2\">{$Globals['pp_lang']['withtitles']}</option><option value=\"3\">{$Globals['pp_lang']['groupby']}</option><option value=\"4\" selected=\"selected\">{$Globals['pp_lang']['puzzle']}</option>";
// $thumbfudge is used to add a few thumbnails per line when using Puzzle view (since we have more room)
$thumbfudge = $Globals['thumbcols'] + 3;
}
else {
$views = "<option value=\"0\" selected=\"selected\">{$Globals['pp_lang']['gallery']}</option><option value=\"1\">{$Globals['pp_lang']['thumbnail']}</option><option value=\"2\">{$Globals['pp_lang']['withtitles']}</option><option value=\"3\">{$Globals['pp_lang']['groupby']}</option><option value=\"4\">{$Globals['pp_lang']['puzzle']}</option>";
}
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/menubar.tmpl" );
if ( $Globals['sidebar'] == "left" && $Globals['sidebar_global'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/sidebar_leftopen.tmpl" );
}
if ( $Globals['sidebar'] == "right" && $Globals['sidebar_global'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/sidebar_rightopen.tmpl" );
}
$whichgallery = ( $Globals['pplayout'] == "no" ? "categall" : "categories" );
$count = 0;
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/showgallery.tmpl" );
if ( $cattype == "c" && empty($si) && empty($ppuser) ) {
if ( $Globals['features'] == "yes" ) {
if ( $Globals['mostrecent'] == "yes" && $Globals['recentdefault'] == "yes" ) {
display_gallery("latest", "", $cat);
}
if ( $Globals['dispopular'] == "yes" ) {
display_gallery("most_views", "", $cat);
}
// if ( $Globals['disrandom'] == "yes" ) {
// display_gallery("random", "", $cat);
// }
| If this is how it should look after then it did not work. The random photos box was still at the bottom and the gallery index page took ages to load. I have reverted to the original showgallery.php file.
Bob
|
| |
February 26th, 2006, 01:17 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
You need to turn on random features in Admin => Index Options
Show Random images on Index page?
|
| |
February 26th, 2006, 01:44 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
Nope, that just put a block under the 'Recent Photos' and 'Most Popular Images', as well as the block of 2 'Random Images' under that.
I want to leave the 'Recent Photos' and 'Most Popular Images' blocks where they are and put the 'Random Images' under the Welcome/Search box bar at the top.
Bob
|
| |
February 26th, 2006, 03:10 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
The edit I provided which is above the category block shows fine on showgallery.php http://www.volvoclub.org.uk/photopos...ry.php?cat=510
Your talking about your index page do the same sort of edit to index.php
|
| |
February 26th, 2006, 03:49 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
If you read post #1 you will see I stated I wanted this on my index page. The code in put in post #2 is not in index.php
Bob
|
| |
January 26th, 2007, 01:26 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Oct 2003 Location: NJ
Posts: 31
|
Exactly what I was looking for, random on top, recent on the bottom!
Thanks http://www.sillyboymedia.com |
| |
April 4th, 2007, 05:34 AM
|
#11 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote:
Originally Posted by Tattooz | PP 5.62
I do not succedd with this.
I moved the code in bold to the approriate place within showgallery.php, but nothing changes...
Any ideas what i could have done wrong?
This is my php file now, in bold the change: Code: Content visible to verified customers only.
|
| |
April 4th, 2007, 09:13 AM
|
#12 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
|
Hi
I found the reason why it is not working. The changes have to be made in index.php.
Look here: Moving random image block what to edit?
Now it is working...
|
| |
April 7th, 2007, 12:39 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Dec 2006
Posts: 48
|
At least you got up a highest rated images block on your PhotoPost.
I have PP integrated into vB and have a random image bar on the index page but nobody can seem to tell me how to have a second horizontal bar above that that pulls from highest rated, which is odd, considering you have a version of it.
|
| |
April 7th, 2007, 02:39 PM
|
#14 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2006 Location: Yorkshire
Posts: 603
| Quote:
Originally Posted by Finster At least you got up a highest rated images block on your PhotoPost.
I have PP integrated into vB and have a random image bar on the index page but nobody can seem to tell me how to have a second horizontal bar above that that pulls from highest rated, which is odd, considering you have a version of it. | If you show us what you are after we may be able to help you  I am non to sure what it is you want from your vague description.
|
| |
April 10th, 2007, 10:37 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Dec 2006
Posts: 48
|
Sybaris,
I currently have a "Random Photos" block. This is pulled from PhotoPost pro integrated into the index page on my vB.
I have seen vB's where they have 2 horizontal image blocks. One is "Random Images" and the other one "Highest Rated" images.
I see in the PhotoPost Pro admin panel a toggle to have a 2nd image bar, and this is checked yes, but it does not make it appear.
I just one to have a "Highest Rated Images" or whatever it can be near the vB top and under that, a "Random Images" bar. The Highest Rated would have to be placed there as a result of members rating other members on individual photos as PhotoPost pro has the feature.
Thanks!
|
| |
May 9th, 2007, 04:02 AM
|
#16 (permalink)
| | Junior Member Verified Customer
Join Date: Aug 2006
Posts: 27
|
hi sybaris,
Could you please show the codes that show rating and vote on image block?
Thanks
|
| |
March 7th, 2008, 11:43 AM
|
#17 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
| Quote:
Originally Posted by Chuck S You would need to move your random photo block up on showgallery.php like so and make sure to remove the call lower in the file Code: Content visible to verified customers only.
|
Copy and pasted just as shown, and I am not seeing any results other than the most recent at top still. Random enabled, showing at the usual bottom location.
here is the test site: http://skidpics.com/galleries |
| |
March 7th, 2008, 12:25 PM
|
#18 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
Guess I should have read more. To display the random block on the main page, you have to edit the index.php instead..not the showgallery.php file..
|
| |
March 7th, 2008, 01:59 PM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Yep the thread initially was how to move the random block to the top on showgallery not index so if you want to do it to index you do pretty much the same just move the bold part up to where the latest display_gallery switch is.
|
| |
March 8th, 2008, 01:02 AM
|
#20 (permalink)
| | Ultimate Member
Join Date: Jun 2007
Posts: 1,340
|
I figured that after reading a bit. Okay, got all the implemented. How can I fix the showgallery.php recent and random to show below the menu bar instead of acting like a header for showgallery.
On the index page, the navigation bar (search,etc.) is above all the thumbs. In showgallery, the recent and random (as tweaked) go above this area.. http://skidpics.com/galleries (index) correct way http://skidpics.com/galleries/showgallery.php/cat/698 (category, incorrect way)
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:38 PM. | |