PDA

View Full Version : [Listing Details] Mod


VSDan
01-02-2006, 10:39 PM
Description: Displays separate details page (containing more information including Author's name and other listings by same author) for each listing, which can be bookmarked for later retrieval or passed along to others.

Demo: http://www.monster-submit.com/directory/index.php?p=d
(click on any listing 'Details' link)

Download: http://www.monster-submit.com/phpld/


To download this and other VS mods, please go here : VS phpLD Mods (http://www.monster-submit.com/phpld/)

thompson
01-03-2006, 12:04 AM
congratulation. it´s better than my simple mod, but i am not a programmer. ;)

problem at linkdirectory is, that mods are only a problem of money. this is free software an it should work one for another. and only so phplinkdirectory fans will grow up like at other software. ;)

VSDan
01-03-2006, 03:47 AM
I didn't actually looked at your mod, but I think the problem was due to an inherent flaw in the mod of mine that you used a template - note that all of my mods will be updated to correct for this issue (couple extra lines required to capture $id on some servers - the correct way). So cudos to you for your great work!

webwriter
01-04-2006, 06:06 PM
Hi- what does this do? Is there a demo somewhere? Thanks!

VSDan
01-04-2006, 06:09 PM
This demo gnerates a dynamic details page for links. You can see a demo below:

http://www.monster-submit.com/directory/Web_Hosting/
(click on the [Details] link)

thompson
01-04-2006, 06:20 PM
hi,

have you looked at the sourccode of the page ? if you list the categories in a box it is bad bexause sourcecode have the complete listing of all categories.

is there another method to display categorie or / and subcat ?

VSDan
01-04-2006, 07:23 PM
For the time being, this is how it is done - along the lines of submit.php, but with existing category / subcategory fixed. I will in the very near future just have it display the category tree in text string. But, unless you have a huge number of categories / subcategories (1000s), there should not be a problem.

Bill
01-04-2006, 07:51 PM
Very nice mod! :)

VSDan
01-06-2006, 02:28 AM
I've revised the mod (not uploaded here yet) to display category tree as text string rather than how it is now. Have a look:

http://www.monster-submit.com/directory/details.php?&id=3

(I'll be modifying my other mods to do same thing)

thompson
01-06-2006, 12:11 PM
this is really good. how did you this ? (categories ?)

VSDan
01-06-2006, 07:43 PM
The script loops backwards to grab PARENT_IDs from database until PARENT_ID equals 0. A few lines code that seems to do the trick =)

VSDan
01-08-2006, 09:02 PM
[Listings Details] mod updated - Other Listings by same author are displayed on details page. Based on email address - mod searches database on OWNER_EMAIL, and collects listings with same OWNER_EMAIL that matches current record. A good example can be seen here:

http://www.monster-submit.com/directory/details.php?id=21

Existing Mod Users : only change since v1.00 so you omit upgrade if you do not want use this feature

This new feature can be disabled by editing details.tpl template file

gustotelmy
01-11-2006, 09:29 PM
nice work!

Question: as i have a directory that i have created that points to specific pages of information, i was hoping that i could alter the mod to remove direct links from my directory, and place the links _only_ in the details page....

is this easy? i thought I could simply remove the link out from the template and keep the one from details....
:?:

thanks again for the stash of great mods!

Funky Monk
01-28-2006, 09:10 AM
I've installed this and I get an error:

"Warning: Smarty error: unable to read resource: "details.tpl" in /******/****/*****/libs/smarty/Smarty.class.php on line 1088"

Can you help me out please.

VSDan
01-28-2006, 09:17 AM
gustotelmy: Yes, you can simply remove the link HTML from link.tpl template.

Funky Monk: No idea, sorry.

thompson
01-28-2006, 12:29 PM
link your details.tpl an we can have a look of it. (only if you changed something on it) ;)

Funky Monk
01-28-2006, 01:47 PM
The site's being constructed at the moment so not much there. If you want to see the problem look at it.

thompson
01-28-2006, 06:08 PM
i can not see an error like you write. ???

you have to upload the grafik files for rating. thats all.

Funky Monk
01-28-2006, 06:21 PM
Thompson. Do you mean that when you click on it you don't get the error that I described?

I guess it's a dumb question but there were no graphics supplied. Should there have been or do I need to supply my own?

VSDan
01-28-2006, 08:21 PM
If you look at the details.tpl template file, you will see commented code that says to exclude certain lines if not using [Image-Based Rating System] mod:

http://www.phplinkdirectory.com/forum/viewtopic.php?t=811

You can either omit the lines, or use mod above - assuming you have [Rating] mod installed, as required first.

gustotelmy
01-30-2006, 06:37 PM
Content visible to registered users only.


cool! 8)

mikedippel
02-06-2006, 10:48 PM
Dan. Not sure if this is a bug in your latest Details mod or if I did something wrong. Check out this page: /directory/details.php?id=72 and you will see that the related links point to an invalid section of the directory. It points to the root, and not the sub-directory I setup the program in.

Any ideas?

VSDan
02-06-2006, 10:55 PM
Hi Michael:

Edit details.php by changing two incidences of:

Content visible to registered users only.

to:

Content visible to registered users only.

mikedippel
02-07-2006, 01:13 AM
Not sure why I couldn't have figured that out for myself. Sorry to trouble you.

VSDan
02-07-2006, 02:25 AM
Not a problem =)

gustotelmy
02-08-2006, 05:09 AM
I have an idea...need help. Is there a way we can make the details page show the title of the link? ie instead of title = "Listing Details", can we make this "(Link Title)"?

is this easy and possible? :)

thank u to all in advance

timon
02-27-2006, 10:46 AM
Hi,
I agree has anyone got details on how to turn the details page to have the title of the link that is added -

eg Emu Store - Listing Details

Emu Store being the title that was submitted.
Any details appreciated - i have tried a few things.

Kind Regards
Timon

VSDan
02-27-2006, 06:08 PM
Hi Timon:

In details.php, try changing:

Content visible to registered users only.

to:

Content visible to registered users only.

timon
02-28-2006, 01:00 AM
Hi,
Thanks heaps for your solution!!!
have a great day.
{$TITLE} solved it in details.tpl

Timon

IGonza
02-28-2006, 01:12 PM
And how to make it works for title tag also?

VSDan
03-20-2006, 10:52 PM
As requested by someone, here are changes you can make to make the mod more SEO-friendly (separate dynamically generated on-the-fly HTML page per listing):

1. Edit link.tpl by changing:

Content visible to registered users only.

to:

Content visible to registered users only.

2. In the .htaccess file, find the following:

Content visible to registered users only.

and add the following line afterwards:

Content visible to registered users only.

... so result looks like the following:

Content visible to registered users only.

bobby9101
03-21-2006, 03:51 PM
thanx for the mod

bobby9101
03-22-2006, 05:21 PM
i tried the seo friendly verison and that doesn't work :(
i know that you now charge for this mod, so tell me how much it'll cost for support and I'll try to scrape up some money :-D

VSDan
03-22-2006, 07:08 PM
I'm only charging for downloading the mods now (note: see my other post later today as I might be taking a new tact). I continue to support the mods - even if you are using the freeware one. What happens exactly when you implement the SEO-friendly changes? Have an URL that I can see this in action?

bobby9101
03-22-2006, 07:14 PM
i get my 404 page
you can try it here: http://www.ranktips.com/homepage/Computers_and_Internet/
i am lost lol
here is my .htaccess and link.tpl codes
Content visible to registered users only.
Content visible to registered users only.

VSDan
03-22-2006, 07:30 PM
Try changing:

Content visible to registered users only.

to:

Content visible to registered users only.

bobby9101
03-22-2006, 07:48 PM
thank you, i should have seen that myself :-D
i assume using this same principal i can get this to work on your other mods also
like report and refer?

VSDan
03-22-2006, 07:52 PM
Should work with other mods. Give it a whirl to see how it goes =)

timon
04-07-2006, 02:42 AM
Hi People,
I think this is a awesome mode. Does anyone know how to make the details page Search engine friendly? Eg /details.php?id=1 to details1.htm or details1.php etc etc.

Looking forward to a reply,
Timon

dotcompals
08-06-2006, 08:15 AM
Installed this mod. but how can i get
Visit | Rate | Report | Refer | Save | Contact
links on the top of the page working.

lauren4521
08-14-2006, 08:22 PM
Hi there....newbie here taking a shot at helping.

Most of the links you refer to in the details mod are all mods themselves (except for the visit). I had the "save" mod installed so that works nicely. I changed my "rate" to "review" as that is the mod I am using. I am on my way now to add the Refer and the Email Author Mod.

HTH
Lauren

dontrustthisposter
08-24-2006, 08:22 PM
Ok so I bought this mod and made the necessary changes to make it SEO friendly but it still is SEO unfriendly namely the portion that has other links by the author. Hot to change the {RELATED} code to be pointing to point to a SE friendly such as... /details/1.html

Also I can't show custom fields I'd like to but they show up fine in the main directory.

For example
Content visible to registered users only.

here are links;

Notice the deep links directly under the description for /shopping/jewelry/hip-hop-jewelry/

but not showing up here for details page
/details/159.html

Thanks in advance

VSDan
08-24-2006, 09:30 PM
Content visible to registered users only.

Can you posr your .htaccess file.


Try changing:

Content visible to registered users only.

to:

Content visible to registered users only.

dontrustthisposter
08-24-2006, 10:00 PM
Thanks for the speedy reply

here is htaccess
Content visible to registered users only.

As far as my deeplinks it still won't show I changed to
Content visible to registered users only.

But no dice:(

VSDan
08-24-2006, 10:17 PM
Content visible to registered users only.

1. I've got to update that mod how it populates. After the following line in details.php:

Content visible to registered users only.

add the following 2 lines:

Content visible to registered users only.

do for each custom field.

2. In details.php, find the following (there are 2 incidences):

Content visible to registered users only.

...and change to:

Content visible to registered users only.

dontrustthisposter
08-24-2006, 10:47 PM
Ok this thing is looking pretty sweet now.

Also I was wondering how to have the page title and the <H1></H1> reflect the Listing title instead of saying
<h1>Listing Details</h1>

for SEO purposes.

One last thing (sorry lotta things) this Mod like a lot of your mods plays with the CAT_TREE thing so for intance in the details.tpl

Content visible to registered users only.

Are you familiar with the Ajax category mod and how one would go about implementing to your mods? You can see on my details page how it gets kinda odd on the category thing.

Thanks so much this MOD is probably the best in adding a new dynamic to directories.

VSDan
08-24-2006, 11:23 PM
Thanks =) Glad you got it working!

1. Try <h1>{$TITLE|escape}</h1>

2. All I can suggest is that you play around with AJAX Category mod to see if you can get it to work.

lauren4521
08-29-2006, 08:08 PM
Just noticed on the details mod.....if someone submits more than one listing and I approve only one listing. The details page lists the pending links under "other listings" as well. Does that make sense? I'd like to keep the other listings if it only lists active links.

Thanks for any help.
Lauren

VSDan
08-29-2006, 08:13 PM
Content visible to registered users only.

Hi Lauren:

That's not right, I will update the mod - thanks for the heads up! Edit details.php by changing:

Content visible to registered users only.

to:

Content visible to registered users only.

lauren4521
08-29-2006, 08:16 PM
Wow...you're fast. Cool...I'll make my changes after the munchkins aren't tugging at me.
Thanks!
Lauren

VSDan
08-29-2006, 08:19 PM
Content visible to registered users only.

Thanks, and you're welcome =)

shortd81
09-13-2006, 11:36 PM
Is this site /detail/link-462.html using this mod? If not which mod is that?

lauren4521
09-14-2006, 01:21 AM
No...I'm pretty sure that's the orig detail page that comes with the script. The details mod has links to alot of the other mods available; refer, rate, review, etc.

I have it in use here;
/details.php?id=50

Lauren

mgrohan
09-15-2006, 03:56 AM
Hi, I bought this mod in order to try to get categories to be displayed on the details page.

I am using my own details page based on a early release. But am trying to get categories to be displayed as per your mod.

I am however getting the error:
Warning: Smarty error: unable to read resource: "details.tpl" in /home/xxxx/public_html/dir/libs/smarty/Smarty.class.php on line 1088

What files can i add to my existing details.php details.tpl in order to show the listing category on the details page. any help appreciated :)

anon
09-15-2006, 04:12 AM
are you certain that your details.tpl exists in your templates folder?

KoverPL
11-11-2006, 05:12 PM
how to download it ? What login/pass do I need to use ? thx.

proprod
11-11-2006, 06:24 PM
Content visible to registered users only.
http://www.monster-submit.com/fmain.shtml?http://www.monster-submit.com/phpld/

Click the purchase now button as you need to make a donation to access the mods. Well worth it, though.

TimAllard
12-15-2006, 07:14 AM
v2.1

I just purchased the mod and im having a little bit of trouble. the url doesnt direct to the correct area.


look for: "View Details About This Listing"

this is my link.tpl:
<a href="{$smarty.const.DOC_ROOT}/details/{$link.ID}.html">View Details About This Listing</a>

this is my .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^details/(.*).html* /details.php?id=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]

Thanks,
-Tim

VSDan
12-15-2006, 07:25 AM
Hi Tim:

What happens if you remove this line:

Content visible to registered users only.

TimAllard
12-15-2006, 07:29 AM
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.




I do have a forward on my url though..

mydentify.com/directory is the root...does that matter?

VSDan
12-15-2006, 07:31 AM
Hi:

Can you post your details.tpl file.

Content visible to registered users only.

VSDan
12-15-2006, 07:33 AM
Hi Tim:

Restore, and change:

Content visible to registered users only.

Content visible to registered users only.

Content visible to registered users only.

TimAllard
12-15-2006, 07:35 AM
404 not found now :/

i am noticing in the url bar its showing... http://www.mydentify.com/details/173.html and not http://www.mydentify.com/directory/details/173.html

but when i add directory manually i get forwarded to the index. hmm

VSDan
12-15-2006, 07:49 AM
Hi Tim:

Try this:

Content visible to registered users only.

TimAllard
12-15-2006, 07:53 AM
weeeeeeeere getting there lol

Error : Invalid ID passed - must be numerical

VSDan
12-15-2006, 08:00 AM
Hi Tim:

Oops, my bad: Should be (because introduced another regex pattern):

Content visible to registered users only.

TimAllard
12-15-2006, 08:03 AM
whats your donation location? its works now thanks!!!

its not much,..but ill get you more when i can :)

thanks again!!
-Tim

VSDan
12-15-2006, 08:06 AM
Hi Tim:

Excellent! Thanks, but no charge. It's all part of the superb support I offer =)

TimAllard
12-15-2006, 08:08 AM
Content visible to registered users only.


Thanks, Your darn right its superb! Happy Holidays.

VSDan
12-15-2006, 08:14 AM
Hi Tim:

You're welcome, and thanks! Happy and safe holidays to you and yours =)

IGonza
01-08-2007, 01:43 PM
Hi,

I use old version of this mod. Just fixed small bug. If you have this row :
Content visible to registered users only.
replace it with:
Content visible to registered users only.

Thanks,
Igor.

David
01-09-2007, 01:29 AM
Hey, thanks for sharing this Igonza and good to see your around. :)

IGonza
01-09-2007, 10:18 AM
Hi David.

Your directory is like my hobby :).

alastor27
01-10-2007, 03:04 AM
Hi Dan,
I am new here.

I bought your script 1 hour ago and i can't get it work with rewritten links.

It worked with links like php?=23 but i want pages like details/link-23.html

I tried the things you explained to Tim but it's not working.

You can see it here:

My htaccess is:

Content visible to registered users only.


my link.tpl

Content visible to registered users only.

Everytime i click on "Read more" it brings me back to the main directory.

Thanks for help


P.S I am really a NOOB

VSDan
01-10-2007, 04:04 AM
Try changing:

Content visible to registered users only.

to:

Content visible to registered users only.

IGonza
01-10-2007, 07:47 AM
I would delete first
Content visible to registered users only.

alastor27
01-10-2007, 03:50 PM
Igonza I removed it but nothing changed....

I posted another message yesterday but it said that it needed to be approved by a moderator and it was not posted....i can't understand why.


Now when i click on "Read more", the URL is right, but it is showing the mainpage of the directory and not the details page...

IGonza
01-10-2007, 04:13 PM
Show your url and htaccess again

alastor27
01-10-2007, 04:15 PM
my url is: wwwdotlinkraindotcom

The link you can test on is in /real estate/real estate listings.


My htaccess is:

Content visible to registered users only.

The point is that IT IS REWRITING urls, but it is not showing the details page.

IGonza
01-10-2007, 04:37 PM
Try this :
Content visible to registered users only.

Btw: what veriosn of phpld do you use?

IGonza
01-10-2007, 04:38 PM
And check what file you have in the root - detail.php or details.php ?

alastor27
01-10-2007, 04:44 PM
Error 404 file not found

I'm using version 3.1


I have both files...detail.php AND details.php

VSDan
01-10-2007, 06:56 PM
Try changing:

Content visible to registered users only.

to:

Content visible to registered users only.

alastor27
01-10-2007, 09:42 PM
The link rewriting works but the rewritten link has the same layout as the main directory and the same content but the right URL.

As i already sad,i don't think it has something to do with the htaccess file...maybe it's something with the link.tpl

That's my htaccess now...

Content visible to registered users only.

VSDan
01-10-2007, 09:56 PM
I thought you made change put forth by other guy (and I missed). Plus, error in my last post. Use:

Content visible to registered users only.

alastor27
01-10-2007, 10:04 PM
I tried it yesterday and i retried it now.It is rewriting the URL correctly, but the show page is not the right one,exactly like:

Content visible to registered users only.

VSDan
01-10-2007, 10:21 PM
What do you mean by 'show page'? Do you mean the detail page. I believe you have two. You can change detail.php (phpLD version) to details.php (my mod) to show the other.

alastor27
01-10-2007, 10:31 PM
Hello,
i had 2 files in my root directory:

detail.php and
details.php

I tried keeping only details.php and it's not working
I tried keeping only detail.php and it's not working.
I removed details.php and renamed the detail.php in details.php but it's not working.

To see what happens just visit: /Real_Estate/Real_Estate_Listings/

and click on "Read more"

VSDan
01-10-2007, 11:03 PM
Hi:

The problem is with your .htaccess file. The quickest way to fix this is for me to FTP to your server. Can you send me your FTP info to dan at monster-submit dot com

alastor27
01-10-2007, 11:06 PM
Don't know exactly what you mean.

Do you need the ftp adress,username and password?

VSDan
01-10-2007, 11:10 PM
Correct =) But by email - do not PM it, as not secure that way.

alastor27
01-10-2007, 11:13 PM
I sent you everything you need to access ftp ;-)

VSDan
01-10-2007, 11:45 PM
Got it, thanks! Done. Seems okay now =) I just had to tweak one of the Rewrites in your .htaccess file.

alastor27
01-10-2007, 11:52 PM
Thanks a lot!!!!

I don't know how you did it but thanks!

I knew that buying a membership on your site was the right thing to do!!!

VSDan
01-10-2007, 11:57 PM
You're most welcome =)

IGonza
01-12-2007, 10:17 AM
Sorry, was offline this time.
VSDan, what was there? Wrong htaccess?

bunny
01-22-2007, 07:45 AM
Is it just me or u require to pay for this mod? and whats with the iframes?

VSDan
01-22-2007, 08:13 AM
Content visible to registered users only.

Cannot recall what I did, but minor fiddling with one of the Rewrites.

VSDan
01-22-2007, 08:16 AM
Content visible to registered users only.

Yes, this mod and other mods in the phpLD_Vault.

What iframes?

IGonza
01-22-2007, 08:58 AM
Content visible to registered users only.

Nice. I will never report the bugs in your mods and help your customers then.

VSDan
01-22-2007, 09:49 AM
In all honesty, it was a minor change - made quite some time ago. And, I handle many dozens of support requests daily - from mod users and my other clients - which all total in the 1000s. I cannot recall exactly, but I believe I had to point RewriteCond to right PHP file, and prefix PHP file in redirect with forward slash (i.e., detail.php => /detail.php). And whether you shy away from helping those users that use my mods, I (and they) still appreciate the great help you have provided to them. In any event, I hope you still hang around, and lend a hand to others =)

excell
02-04-2007, 03:38 PM
VSDan, can you make a similar mod based on meta keywords, instead of the authors?

shadav
03-14-2007, 05:51 AM
great mod :) donno why I waited so long to install it lol

but a suggestion/request?!?
instead of the link displaying the id number...anyway to make it display the url

so instead of it being
/details.php?id=66
have it be
/details.php?p=http://www.foamyfanatics.net/

I mean i guess it really doesn't matter, but was just an idea....

Blastom
03-23-2007, 01:23 AM
hey Dan, i was wondering if you could make the categories to be links to the categories from my directory.

VSDan
03-23-2007, 05:16 AM
Done =) I've updated the mod (details.php and details.php).

Blastom
03-23-2007, 02:00 PM
Wow, such a prompt response. Thank you Dan, being a member to monster has been one of the best deals I have ever made.

Blastom
03-23-2007, 02:21 PM
Still, there is an idea that i have in mind: Let suppose there is a listing in internet-> web directories-> free ones
Could you make it like:
Internet ~ Web Directories ~ Free ones
So 3 links to every category, so that links will pass pr to all the categories and their parents.

VSDan
03-23-2007, 10:10 PM
Content visible to registered users only.

Done =) details.php and details.tpl changed.

Blastom
03-24-2007, 12:13 AM
Hmm, it's not really working. The links are to the main page. :)

VSDan
03-24-2007, 03:21 AM
Strange, works on our site:

http://www.monster-submit.com/directory/details.php?id=11497

What version of phpLD, and can you post URL of detail page where I can this issue.

Blastom
03-24-2007, 10:28 AM
here it is: /linkdetail-12756.html
phpld 2.0
Thanks.

VSDan
03-24-2007, 10:41 AM
I see problem now. v2.0 does not use CACHE_URL. This breaks this. I will amend the mod to create it. I'll get back when done.

Blastom
03-24-2007, 10:53 AM
Ok, thanks Dan

VSDan
03-24-2007, 11:24 AM
Okay, I've updated details.php to properly build the URLs for all versions. Works on my site (running 3.10), but should work on 2.xx and all versions of 3.xx.

Blastom
03-24-2007, 01:16 PM
That is awesome. More power to my directory. Thanks Dan.