Long, long Admin pages

Version 3 Solutions you have discovered or come across should go here. Questions should go in the other three Version 3 forums, thank you.
Forum rules
Please do not ask questions here, this is for Version 3 Solutions you have discovered or come across.

Long, long Admin pages

Postby Dragonrider » 1:29pm, Fri 13 Sep, 2013

If you find your Admin pages getting longer and longer and like me, don't like to have to scroll manually back to the top of the page, especially the Settings page which I think is the longest, you might to consider the following modification.

Obviously make a backup of the two files affected and I accept no responsibility if it doesn't work!

files affected: lists/admin/ui/dressprow/footer.inc and lists/admin/ui/dressprow/header.inc

Header.inc changes: Find
<body class="<?php if(isset($GLOBALS['page'])) print $GLOBALS['page'];else print "home-not-auth"; ?>">
<div id="dialog"></div><div id="hiddendiv"></div>


Add After:
<a name="top"></a>


So it looks like this:
<body class="<?php if(isset($GLOBALS['page'])) print $GLOBALS['page'];else print "home-not-auth"; ?>">
<div id="dialog"></div><div id="hiddendiv"></div>
<a name="top"></a>

Re-save your file.

Now, to the footer.inc code. Add a new last line (directly following three </div>)
<a href="#top">Top of the page</a>


Re-save the footer.inc and voila, at the bottom of your admin pages, you will now find a Top of the Page link.
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Long, long Admin pages

Postby Dragonrider » 1:04pm, Mon 16 Sep, 2013

If you feel adventurous, another option is to add a couple of files to phpList3 and get a Back to top link that follows you down the page!

Visit this site and follow the instructions to copy, save and upload the two sets of code, or get the Zipped package on offer, and upload the two files as detailed here:

scrtop/scrolltop.js to phplist root, js/scrolltop.js
scrtop/scrolltop.css to phplist root, styles/scrolltop.css

Browse to phplist root> admin/ui/dressprow and open header.inc in a text editor and just before the </head> tag, add:-
Code: Select all
<link href="../styles/scrolltop.css" rel="stylesheet" type="text/css" />

Save the file, now open footer.inc in a text editor and at the very bottom of the file, just AFTER the final three </div> tags, add:
Code: Select all
<div id="sttop"></div>
<script type="text/javascript" src="../js/scrolltop.js"></script>


Save it and refresh your phplist admin pages. Scroll down the page, and as you pass what was the bottom of the page, a nice little up-arrow appears on the right hand side and this stays there as you move further down the page, allowing you to return to the top of the page at any point.

My thanks to the guys at Courses Web.Net for supplying and allowing the use of this code.

NB: You'll have to re-edit the header and footer inc files after any version update don't forget.
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom


Return to Answers, HowTos, Tips and Tricks

Who is online

Users browsing this forum: No registered users and 1 guest