Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Plugins Page: 1  Previous   Next
How to get phpDVDProfiler to display Front Cover Gallery with boxsets expanded by default
Author Message
DVD Profiler Desktop and Mobile RegistrantJMM
Registered: May 18, 2007
Bermuda Posts: 13
Posted:
PM this userEmail this userVisit this user's homepageDirect link to this postReply with quote
Hello, all.

I realize that this is not a plugin question, but no idea where else to ask this .

In phpDVDProfiler, in my localsiteconfig.php, I have it set to by default expand boxsets ($expandboxsets = true;), and this works fine.

Does anyone know how (i.e. what code to modify) to make gallery.php display with all boxsets expanded by default?  Currently, when the Front (and Back) Cover Gallery is displayed, all boxsets are collapsed, and users need to physically click on the + in the top-left corner of boxset thumbnails individually to expand them.  What I am trying to do is, whenever Front (and Back) Cover Gallery is displayed, all boxsets to be expanded.

Any coders out there know how to do that?  Hopefully it is just a simple coding change .

On a side note, decades ago, Fred mentioned extra text that could be appended to phpDVDProfiler URLs, that would show a page displaying the phpDVDProfiler version, in addition to PHP & MySQL versions.  Anyone remember what that extra text is?

Thank you in advance & have yourselves a great day.

Regards & be safe,
John

phpDVDProfiler v3.8.2.1 r20200130
PHP v7.4.0
MySQL v8.0.28
phpDVDProfiler site ... heavily-modified to display my coins
 Last edited: by JMM
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Very clever.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Open gallery.php and look for

Quote:

$plusgif = 'gfx/plus.gif';
$plusdisplay = 'none';
$plusclass = 'hide';


it should be around line 807 or so.

Try to replace it with

Quote:

if($expandboxsets) {
$plusgif = 'gfx/minus.gif';
$plusdisplay = '';
$plusclass = '';
} else {
$plusgif = 'gfx/plus.gif';
$plusdisplay = 'none';
$plusclass = 'hide';
}
Karsten
DVD Collectors Online

 Last edited: by DJ Doena
DVD Profiler Desktop and Mobile RegistrantJMM
Registered: May 18, 2007
Bermuda Posts: 13
Posted:
PM this userEmail this userVisit this user's homepageDirect link to this postReply with quote
Karsten, you're the best... it works like magic.

Much appreciated for your fast reply, and your expertise.

Have a great weekend, everyone, and be safe.

John
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Glad it worked.

BTW: I see your coins and raise you by books, comics and table-top games 
Karsten
DVD Collectors Online

    Invelos Forums->DVD Profiler: Plugins Page: 1  Previous   Next