Is there a place to download more templates...? and free plugins ?
Jul 20, 2004, 12:09 AM
Veteran (1264 posts)
Jul 20, 2004, 12:09 AM
Post #2 of 35
Views: 12642
in the downloads area (where you downloaded linksql) there is a template set there with about 5 different sorts there.
for plugins look in the plugin manager in your admin area, click on Plugins, Plugin Download, List plugins at Gossamer... under there is a whole list of plugins, some free some paid. Click on some of the plugin authors names to visit their web sites - some have more plugins listed there too.
r
Jul 20, 2004, 5:11 PM
User (108 posts)
Jul 20, 2004, 5:11 PM
Post #5 of 35
Views: 12446
From the link you showed me, it sounds like if I change the default template, it will overwrite the first set. I need both template sets up there, with different number of links per page...
-------
I need to explain the situation better. I'd like the following setup...say my default links pages are here:
domain.com/links/
I'd like to automatically build a second set of pages based on a second template either here:
domain.com/links/yahoo/
or here:
domain.com/yahoo/
BTW, I run the nph-build every night in cron so that daily hits are updated. If I can even get this thing to work I suppose I'd need to run it again with a switch to get the second template set built.
-------
I need to explain the situation better. I'd like the following setup...say my default links pages are here:
domain.com/links/
I'd like to automatically build a second set of pages based on a second template either here:
domain.com/links/yahoo/
or here:
domain.com/yahoo/
BTW, I run the nph-build every night in cron so that daily hits are updated. If I can even get this thing to work I suppose I'd need to run it again with a switch to get the second template set built.
Jul 20, 2004, 5:14 PM
Veteran (1264 posts)
Jul 20, 2004, 5:14 PM
Post #6 of 35
Views: 12461
I'm not sure you can bulid 2 different template sets standard - it sounds like you might need to do some hacking!
As a rough guess you might be able to duplicate the nph-build script and actually hard code the template set to use inside the two scripts, and also the build paths. Then run each script individually via your cron.
Others might know of a different way to do it...
r
As a rough guess you might be able to duplicate the nph-build script and actually hard code the template set to use inside the two scripts, and also the build paths. Then run each script individually via your cron.
Others might know of a different way to do it...
r
Jul 21, 2004, 1:11 AM
User (226 posts)
Jul 21, 2004, 1:11 AM
Post #9 of 35
Views: 12578
Why not simply have a complete second /cgi-bin/links/... and a cgi-bin/links2/...
You can make 50 of these and set each one up as you want and play links all day long to your hearts content to different base directories. Sould not affect the database one way or the other as far as I am aware - you really only are dealing with a different template set and a different build path. Maybe some-one with better knowledge can advise if this way is not possible.
You can make 50 of these and set each one up as you want and play links all day long to your hearts content to different base directories. Sould not affect the database one way or the other as far as I am aware - you really only are dealing with a different template set and a different build path. Maybe some-one with better knowledge can advise if this way is not possible.
Jul 21, 2004, 1:33 AM
Veteran / Moderator (18441 posts)
Jul 21, 2004, 1:33 AM
Post #11 of 35
Views: 12466
Please note, you will need another license of LSQL if you want to run 2 copies of it.
Using different template sets with a shared database would be fine. You would just edit the settings appropriatly for each install, but have them sharing the same database :)
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Using different template sets with a shared database would be fine. You would just edit the settings appropriatly for each install, but have them sharing the same database :)
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 21, 2004, 1:48 AM
User (108 posts)
Jul 21, 2004, 1:48 AM
Post #12 of 35
Views: 12521
So what you're saying is, just copy the entire directory structure from whereever you installed Links, this will cause it to point to the same database and not require a second license. And setting it to a different template will allow you to build to separate directories? So the template setting is NOT kept on the db?
Jul 21, 2004, 1:55 AM
Veteran / Moderator (18441 posts)
Jul 21, 2004, 1:55 AM
Post #13 of 35
Views: 12541
Quote:
So what you're saying is, just copy the entire directory structure from whereever you installed Links, this will cause it to point to the same database and not require a second license. And setting it to a different template will allow you to build to separate directories? So the template setting is NOT kept on the db?Not quite :(
If you are going to have 2 installations; then you would be required to have 2 licenses. The settings are stored in /admin/Links/Config/Data.pm, but this will vary.
Not sure if that makes sense
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 21, 2004, 1:55 AM
User (226 posts)
Jul 21, 2004, 1:55 AM
Post #14 of 35
Views: 12426
Jul 21, 2004, 1:59 AM
User (108 posts)
Jul 21, 2004, 1:59 AM
Post #15 of 35
Views: 12439
How about copying just the admin directory into admin2? This way it isn't a new installation. Your files are still pointing to the same add.cgi etc... it's ONLY for the purpose to create that additional set of template pages. Do you think that would work?
Or maybe you have some other idea how to build a second template?
Jul 21, 2004, 2:03 AM
Veteran / Moderator (18441 posts)
Jul 21, 2004, 2:03 AM
Post #16 of 35
Views: 12435
Are you looking at having the 2 "installs" running on one server? If so, it may be possible with mod_rewrite. Something like;
RewriteRule ^directory/.*? /cgi-bin/links/page.cgi?g=$1&t=default
RewriteRule ^directory2/.*? /cgi-bin/links/page.cgi?g=$1&t=directory2
It would need to be a bit more complicated that this (to pick up things like "Cool", detailed pages, etc .. but the idea is there :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
RewriteRule ^directory/.*? /cgi-bin/links/page.cgi?g=$1&t=default
RewriteRule ^directory2/.*? /cgi-bin/links/page.cgi?g=$1&t=directory2
It would need to be a bit more complicated that this (to pick up things like "Cool", detailed pages, etc .. but the idea is there :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 21, 2004, 2:37 AM
Veteran / Moderator (18441 posts)
Jul 21, 2004, 2:37 AM
Post #20 of 35
Views: 12559
Its not the "skinning/template sets" that is the problem. If you were to have ONE install, then it would only require ONE license. However, if you were to make a duplicate of LSQL, then it would be TWO physical installs, which would require a new license :(
DWH: Regarding mod_rewrite... do you have it on your server? It would make your site a LOT easier to work with, as you could get away with one LSQL install, and pretty much as many template sets as you want :)
Hope that helps.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 21, 2004, 2:42 AM
Veteran / Moderator (18441 posts)
Jul 21, 2004, 2:42 AM
Post #22 of 35
Views: 12398
Chances are, you will have it. To check, log in via SSH, and type;
locate mod_rewrite
... what does that give you?
We do offer a service for setting up mod_rewrite for LSQL: http://www.ultranerds.com/cgi-bin/details/54.html ... Not sure if you would be intersted in this... but I thought I would throw it in too :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
locate mod_rewrite
... what does that give you?
We do offer a service for setting up mod_rewrite for LSQL: http://www.ultranerds.com/cgi-bin/details/54.html ... Not sure if you would be intersted in this... but I thought I would throw it in too :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 21, 2004, 2:48 AM
User (108 posts)
Jul 21, 2004, 2:48 AM
Post #23 of 35
Views: 12458
I get a listing of files with that command so I guess it's installed. And now I get what you're saying, using mod rewrite I can make it look like it's static even though it's dynamic. I guess in a worst case it can work, but it's rather a shame that GT has 99.9% of this built in to write out static pages to do this and is missing the final step in writing out these pages.
Jul 21, 2004, 2:51 AM
Veteran / Moderator (18441 posts)
Jul 21, 2004, 2:51 AM
Post #24 of 35
Views: 12406
Quote:
I guess in a worst case it can work, but it's rather a shame that GT has 99.9% of this built in to write out static pages to do this and is missing the final step in writing out these pages.Its a very niche feature, that most people wouldn't need (and take it from me, ita a LOT of work to put in).
Quote:
And now I get what you're saying, using mod rewrite I can make it look like it's static even though it's dynamic.Exactly :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 26, 2004, 9:38 AM
Enthusiast (519 posts)
Jul 26, 2004, 9:38 AM
Post #25 of 35
Views: 12378
The Multilanguage-Plugin seems to be what you need. Have a look here in the forum or at the products pages of GT.
Regards,
Manu
Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Aug 11, 2004, 10:38 PM
User (108 posts)
Aug 11, 2004, 10:38 PM
Post #26 of 35
Views: 4325
I just thought of a new idea on how to do this skinning.
Since the data is in /admin/Links/Config/Data.pm, then you copy that file into /admin/Links/Config/DataAlt.pm...manually modify the line which says which template to use.
In the cron job, first you call the initial nph-build, and then you cp /admin/Links/Config/Data.pm to /admin/Links/Config/DataBak.pm
Then cp /admin/Links/Config/DataAlt.pm to /admin/Links/Config/Data.pm.
Then you call nph-build again.
Then you cp /admin/Links/Config/DataBak.pm to /admin/Links/Config/Data.pm
BUT, you have to always remember if you ever change anything in the setup, you need to manually copy
/admin/Links/Config/Data.pm to /admin/Links/Config/DataAlt.pm and put in the alternate template line in there.
Do the Links pros here think that would work?
Since the data is in /admin/Links/Config/Data.pm, then you copy that file into /admin/Links/Config/DataAlt.pm...manually modify the line which says which template to use.
In the cron job, first you call the initial nph-build, and then you cp /admin/Links/Config/Data.pm to /admin/Links/Config/DataBak.pm
Then cp /admin/Links/Config/DataAlt.pm to /admin/Links/Config/Data.pm.
Then you call nph-build again.
Then you cp /admin/Links/Config/DataBak.pm to /admin/Links/Config/Data.pm
BUT, you have to always remember if you ever change anything in the setup, you need to manually copy
/admin/Links/Config/Data.pm to /admin/Links/Config/DataAlt.pm and put in the alternate template line in there.
Do the Links pros here think that would work?
Aug 12, 2004, 1:05 AM
User (108 posts)
Aug 12, 2004, 1:05 AM
Post #27 of 35
Views: 4310
I'm testing this out and it seems to be working. It's a little more complex though, because you also need to make a copy of your skinned directory in the /templates directory. Then you need to rename the templates/default dir to a temp dir, and rename the templates/yourskin dir to /default and then after building, reverse it.
Aug 12, 2004, 2:22 AM
Veteran / Moderator (18441 posts)
Aug 12, 2004, 2:22 AM
Post #28 of 35
Views: 4287
Hi. Are you running this statically?
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Aug 12, 2004, 12:53 PM
User (108 posts)
Aug 12, 2004, 12:53 PM
Post #29 of 35
Views: 4319
Yes, and the test worked. But first I did it the tough way until I realized/noticed that I can change which template gets built. No need to bother changing around the template directories.
Here are the steps (I will copy this to a new release thread. I don't know the procedures here so if a mod wants to help add the new thread to the resources section that would be great):
1. Make sure your setup options are exactly how you want them and then backup your ConfigData.pm just in case anything goes wrong. In fact, a local copy of everything in your links install would be optimal.
cp /path/to/admin/Links/ConfigData.pm /path/to/admin/Links/ConfigData.pm.bak
2. Don't forget to have your extra template(s) set up first. And if there are any links pointing to hard paths, make sure to change them to the path you will be setting up below.
3. Click on "Setup". Then click on "Paths and URLS". Modify the "build_root_url" and "build_root_path" to the new path you want for your skin.
!MAKE SURE TO CHECK THE update_others Check box at the bottom and hit submit.
4. Click on "Build Options" then on "build_default_tpl" you need to change it to the template you will want to be skinning. Submit.
5. Issue this command (on Linux boxes) but change the template name and the path to what you need:
cp /path/to/admin/Links/ConfigData.pm /path/to/admin/Links/ConfigData.pm.templatename
Then in case there are any problems, you want another backup of the new ConfigData.pm.templatename so do this command too:
cp /path/to/admin/Links/ConfigData.pm.templatename /path/to/admin/Links/ConfigData.pm.templatename.bak
6. Create a file called LinksNightly.sh and put this code inside after you've changed the paths to match your system
(you'll have to modify these instructions if you're on a Windows system)
#!/bin/sh
##IMPORTANT NOTE...in case any of this
##dies in the middle of running,
##it can cause some loss of preferences.
##Therefore, copies of the two versions of
##ConfigData.pm are kept in ConfigData.pm.bak
##and ConfigData.pm.templatename.bak
#run normal verify and build process
/path/to/admin/nph-verify.cgi --check_all
/path/to/admin/nph-build.cgi --all
#Copy normal configuration data into a temp file. It will be returned later
cp /path/to/admin/Links/ConfigData.pm /path/to/admin/Links/ConfigData.pm.temporary
#Copy newtemplate configration into regular config file
cp /path/to/admin/Links/ConfigData.pm.templatename /path/to/admin/Links/ConfigData.pm
#Build newtemplate
/path/to/admin/nph-build.cgi --all
#Copy back temp file to normal configuration file.
cp /path/to/admin/Links/ConfigData.pm.temporary /path/to/admin/Links/ConfigData.pm
7. You can run that code manually every time you want to build. But much better is to put it into a cron job and run it every night. It will build both versions of your skins every night as well as verify all links in your database. (Using the same principle, you can build as many template skins as you want). Here's is how I would set up cron:
crontab -e
then it will allow you to add an entry (if you have any entries there already, do NOT erase them, simply add this to the bottom)
15 4 * * * /path/to/LinksNightly.sh
Then it will run every night at 4:15 am.
Good luck!
Here are the steps (I will copy this to a new release thread. I don't know the procedures here so if a mod wants to help add the new thread to the resources section that would be great):
1. Make sure your setup options are exactly how you want them and then backup your ConfigData.pm just in case anything goes wrong. In fact, a local copy of everything in your links install would be optimal.
cp /path/to/admin/Links/ConfigData.pm /path/to/admin/Links/ConfigData.pm.bak
2. Don't forget to have your extra template(s) set up first. And if there are any links pointing to hard paths, make sure to change them to the path you will be setting up below.
3. Click on "Setup". Then click on "Paths and URLS". Modify the "build_root_url" and "build_root_path" to the new path you want for your skin.
!MAKE SURE TO CHECK THE update_others Check box at the bottom and hit submit.
4. Click on "Build Options" then on "build_default_tpl" you need to change it to the template you will want to be skinning. Submit.
5. Issue this command (on Linux boxes) but change the template name and the path to what you need:
cp /path/to/admin/Links/ConfigData.pm /path/to/admin/Links/ConfigData.pm.templatename
Then in case there are any problems, you want another backup of the new ConfigData.pm.templatename so do this command too:
cp /path/to/admin/Links/ConfigData.pm.templatename /path/to/admin/Links/ConfigData.pm.templatename.bak
6. Create a file called LinksNightly.sh and put this code inside after you've changed the paths to match your system
(you'll have to modify these instructions if you're on a Windows system)
#!/bin/sh
##IMPORTANT NOTE...in case any of this
##dies in the middle of running,
##it can cause some loss of preferences.
##Therefore, copies of the two versions of
##ConfigData.pm are kept in ConfigData.pm.bak
##and ConfigData.pm.templatename.bak
#run normal verify and build process
/path/to/admin/nph-verify.cgi --check_all
/path/to/admin/nph-build.cgi --all
#Copy normal configuration data into a temp file. It will be returned later
cp /path/to/admin/Links/ConfigData.pm /path/to/admin/Links/ConfigData.pm.temporary
#Copy newtemplate configration into regular config file
cp /path/to/admin/Links/ConfigData.pm.templatename /path/to/admin/Links/ConfigData.pm
#Build newtemplate
/path/to/admin/nph-build.cgi --all
#Copy back temp file to normal configuration file.
cp /path/to/admin/Links/ConfigData.pm.temporary /path/to/admin/Links/ConfigData.pm
7. You can run that code manually every time you want to build. But much better is to put it into a cron job and run it every night. It will build both versions of your skins every night as well as verify all links in your database. (Using the same principle, you can build as many template skins as you want). Here's is how I would set up cron:
crontab -e
then it will allow you to add an entry (if you have any entries there already, do NOT erase them, simply add this to the bottom)
15 4 * * * /path/to/LinksNightly.sh
Then it will run every night at 4:15 am.
Good luck!
Aug 12, 2004, 2:48 PM
Veteran / Moderator (18441 posts)
Aug 12, 2004, 2:48 PM
Post #30 of 35
Views: 4337
There is an easier way :)
Have a script, which has your default settings, and the new builds settings (i.e with a different template set), and then switch the config file, run a build, switch it back, and then redo the build (for the other site).
I do this on a couple of sites :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Have a script, which has your default settings, and the new builds settings (i.e with a different template set), and then switch the config file, run a build, switch it back, and then redo the build (for the other site).
I do this on a couple of sites :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Aug 12, 2004, 2:53 PM
Veteran / Moderator (18441 posts)
Aug 12, 2004, 2:53 PM
Post #32 of 35
Views: 4290
Yeah, a little easier though :) (about 50 lines of code I think). I'm sure your way works... just mine does too :)
Night.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Night.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Aug 13, 2004, 12:08 AM
Veteran / Moderator (18441 posts)
Aug 13, 2004, 12:08 AM
Post #34 of 35
Views: 4231
Yup :)
I would post it... but seeing as a client paid for my time to develop it, I'm not sure it would be very fair on them :(
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I would post it... but seeing as a client paid for my time to develop it, I'm not sure it would be very fair on them :(
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Aug 13, 2004, 12:08 AM
Veteran / Moderator (18441 posts)
Aug 13, 2004, 12:08 AM
Post #35 of 35
Views: 4219
Yup :)
I would post it... but seeing as a client paid for my time to develop it, I'm not sure it would be very fair on them :(
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I would post it... but seeing as a client paid for my time to develop it, I'm not sure it would be very fair on them :(
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!