<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Have cats on all pages (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Have cats on all pages
#1560
Tim (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Have cats on all pages 1 Year, 4 Months ago Karma: 0  
Is it possible to have the cats on all pages, to save people having to click on 'Top' or Browse to see other sections?
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1561
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Have cats on all pages 1 Year, 4 Months ago Karma: 9  
Hrm, can't think of a good place to put it, but maybe
this will work for you.. Commonly called a jump menu,
or jump box.

This requires some javascript be added ...
You can find code snippets here,
which I believe I have used before

The javascript snippet would need to be added to the "directory" file. (remember "directory" is a plain text PHP script, just lacking the .php file extension)

Add the javascript snippet near line #106, just above the closing HEAD tag.


Then, near trhe bottom of /include/line.cat.php , locate the line
Code:

$htmlsrc .= "</td></tr></table>";
First I changed the surrounding double quotes to single quotes, just to make things a bit easier, then added another TD pair to contain the form . . . .
Code:

$htmlsrc .= '</td> <td> PASTE FORM SNIPPET HERE, after correcting the URLs of course </td> </tr></table>';
Since line.cat.php is only included when viewing a category page, the jump menu wont appear on the main page, or the whats new/cool etc pages.
 
Report to moderator   Logged Logged  
 
Last Edit: 2011/01/16 10:03 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1568
Tim (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Re:Have cats on all pages 1 Year, 3 Months ago Karma: 0  
um, will have a think about it... may add something above the script under the main banner we have added.. just don't want it to feel like our forum... but will let you know what we do
thanks
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1569
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Have cats on all pages 1 Year, 3 Months ago Karma: 9  
There is also the related categories feature, I suppose you could potentially go though each of your categories and make them related to all the others, not what it was designed for, but hey it might just work for you.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1570
Tim (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Re:Have cats on all pages 1 Year, 3 Months ago Karma: 0  
yeah I did look at that, but like you said - not what it was designed for...
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008