PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   General Discussion (http://www.photopost.com/forum/general-discussion/)
-   -   How do you alter randompal number? (http://www.photopost.com/forum/general-discussion/127619-how-do-you-alter-randompal-number.html)

b6gm6n October 1st, 2006 05:18 PM

How do you alter randompal number?
 
Hi... got a nice sidebar of random images (6) on my index after the smooth upgrade to 5.5...just wondering how can i alter the amount shown?

cheers

Chuck S October 1st, 2006 05:25 PM

That is what is sent to the script in your sidebar template

Code:

Content visible to verified customers only.
Curently in the sidebar templates and showframe.php its limited to one column of 6 photos or undercats pal 2 rows 2 photos. You could see easy enough where to change it in both places ;)

b6gm6n October 1st, 2006 05:46 PM

yeah got it...

$grabnum = $Globals['recentnum'] + 5;

got me for a bit also..sorted

b6gm6n October 1st, 2006 05:51 PM

nope aint got it... basically i thought it was this >

$rphotos = $Globals['recentnum'];
manually edited to 1...you see the index shows 6 regarless of what i do there... if i click more...then i get the number i want... what am i missing?

-b6

b6gm6n October 1st, 2006 05:56 PM

bizzare, showing 6 everytime i hit index...

tell ya what would be nice... an option to alter that number from admin someplace rather then these edits :)

Chuck S October 1st, 2006 05:58 PM

No neither of those lines. You will see the hard coded $rphotos = 6; line ;)

In your sidebar template you will see the line I posted above you change the 6 to something else if you want that as default

b6gm6n October 1st, 2006 06:04 PM

i have no template named 'sidebar' i thought i didnt before thus i started looking through showframe.php... i'll go looking for it... could find it anyways, i'll try again... i may have not uploaded it from 5.5

b6gm6n October 1st, 2006 06:08 PM

sidebar_leftopen got it!

Chuck S October 1st, 2006 06:11 PM

sidebar was a relative term meaning you would have looked in those templates are saw what I mean. I dont know what sidebar your using hense I said sidebar template and there are only 4 so.

To be exact its sidebar_leftopen and sidebar_rightclose


All times are GMT -5. The time now is 02:43 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97