Gossamer Forum
Home : Products : DBMan : Customization :

MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End)

Quote Reply
MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End)
I have made up some doc and zip files for the MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) for anyone needing them.

http://incorp.net/demos/dbman_links_integration.zip

Please use this thread if you have any question. It will email me when you post. Smile

Thanks
TimRyan
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
Hi Tim!

I have downloaded your files and had a read.

At the moment I run DCs (pulldogs) modified version of links to run as a Classified Ads directory.

http://www.nzcid.godzone.net.nz/classifieds-pages

This mod is using the Yahoo style templates. Will the mod intergate itself with the templates etc?



------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
I will have a look at the URL you gave above. At first glance of your question I would say the answer is yes. However, keep in mind that, just as in links templates, you have to make some changes to accomodate for what you want to do.

In theory, I designed dbm_templates_html.pl to use the same routines as html.pl while still keeping a touch of style that site_html_templates.pl (of links) has. This was done to help keep the learning curve to a minimum. In other words if one is familiar with all the mods and uses of links templates then using dbman templates becomes a "snap".

Note: I have not yet uploaded a current version of dbman templates that includes the %rec pass. This is an important update that allows dbman templates to work on your current %rec/def with out making any changes to the code. I will try and find some time to do this in the next few days. If you need it right away let me know.

Hope this helps.
TimRyan
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
Timryan, have you had the chance to allow global variables such as fonts, spacer images etc. to be called once instead of from every sub? Also, I have not been able to get a header file to work - I put in the newer footer file that you made but I can't replicate it so it works for a header as well. Can you please help me out on this one?

Thanks a ton in advance!

------------------
Jason
Extreme mtb
http://extreme.nas.net
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
jdulberg,

Did you see my thread on the header mod at:
http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000892.html

On the globals question; not yet. I had some trouble getting that to work so I put it on hold. But will try to see what I can do with it soon. Smile

UPDATE on the latter: Smile Smile
OK! Smile I just did the globals thingy for us. Smile
see:
MOD: How to pass a global in DBMan Templates mod. at:

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000929.html


Hope this helps.
TimRyan



[This message has been edited by timryan (edited September 07, 1999).]
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
Is this reality? I think it's what I am looking for but the url above doesn't work and it's not in the resource center.

Thanks
Adam
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
It was a reality. I recall when this was first put up. Seems like the file is no longer available.

Tim did two things -- he used templates unstead of the html.pl file (I don't see that mod in the Resource Center either) and he used DBMan to maintain the Links database.

Using DBMan to maintain the Links database would be pretty simple. All you would need to do is set up your DBMan .cfg file to match the fields in Links and point your $db_file_name to the Links .db file.

I don't know about templates. I never use them.


------------------
JPD





Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
I would like to use templates since that's what I am used to with links, and being able to use my links db would be good too.

If someone has the files, I would appreciate you posting it in the resource center or just providing a link to download.

Thanks!
Adam
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
HI Folks,
1. Use search..
http://www.gossamer-threads.com/perl/search.cgi
2. Search...
dbman templates
Match exact words
DBMan Discussion

3. This will give you lots of threads that pertain to templates.

One thread with zip file location..
http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000870.html

Hope this helps.
TimRYan
PS. Sorry, but I did this all on my last vacation week and am now working OT... so I do not have time to answer any ???? But I put a lot of threads in here so a search in both DBMAN and LINKS forums of TimRyan might help also... Smile
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
Tim, I understand that you don't have the time to answer questions. However, none of the URLs you have given that start with

http://incorp.net/

work -- at least not with my browser. The response I get is

"Unable to locate the server incorp.net"

If these files are still available, could you post the URL where they can be picked up?

Thanks much!


------------------
JPD





Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
I get the same with my browser.

Adam
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
Well there is a lesson on what happens when one ignores NIC domain payments due notice... Frown

That site should be ok again once NIC gets off there butt and re-instates me. Till then use this to get around the big Corporate arm....

http://209.150.139.206/demos/

Then just pick the files you want. JP... feel free to have fun with em and you have my permission to put them in the resource or on your fine site if you wish.

Also, to those who have used these mods... feel free to give some support. I know this works nice with links and dbman working together in many combos...

TimRyan
Smile
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
Thanks for fixing the links. I did have a few problems getting the script to work. It wasn't recognizing any database as being present. Since you had some extra lines in there for the R&D I decided to take it line by line and add everything that wasn't part of the R&D. Now it does work, except for the categories. I get the following error when in the view:

error building select field: no select fields specified in config for field 'Category'!

This is what i have:
Code:
# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
isNew => 'Yes,No',
isPopular => 'Yes,No',
ReceiveMail => 'Yes,No'
);
# added Dbman/links2:
# Select fields. for dbman/links2 categories field.
$db_select_fields_category = 'Category';

Any ideas?

Thanks!!!
Adam
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
I have another question. Is it possible to use (or add the ability to use) if and ifnot statements?

Thanks!
Adam
Quote Reply
Re: MOD: DBMan/Links Integration in zip file (uses DBMan as Links Front End) In reply to
I'm going to close this thread. Tim really doesn't have the time to answer questions about templates now and every time someone posts to the thread, Tim gets an email. No point in filling up his "in" box.

Please start a new thread and I'm sure someone with experience in templates will help you out.


------------------
JPD