View Full Version : Site Preview Mod
jharri26
09-08-2006, 03:04 PM
Does anyone have a mod that will allow a user to click on a link and a window will open with a site preview. Kind of like on ask.com Thanks
Hello,
I have this mod for phpLD :)
http://www.frozenminds.com/phpld-link-preview.html
Boby
Steven Myers
09-08-2006, 07:47 PM
I found this on another directory, though not sure if it was 3.06 and it looked beautiful :D
Is this compatible with 3.06 Boby?
Content visible to registered users only. Nice to hear you like it :D
Yep, is working 100% on phpLD 3.06 ;)
Later Edit: If you are correctly using the phpLD 3.06 templates, you probably need to add following code to index.php to enable loading of Javascript files:
Content visible to registered users only.
Steven Myers
09-08-2006, 09:54 PM
Thanks Boby, :)
However, where should I place the code at in the index.php? if I place it above the //Make output it gives me a T_VARIABLE error
Add it before:
Content visible to registered users only.
Steven Myers
09-08-2006, 10:00 PM
Thanks for the quick reply :)
Got this error when adding to that location field: Parse error: syntax error, unexpected T_IF in /home/optik/public_html/index.php on line 425
Can you please post what's around line 425 including 3-4 lines above and after it?
Look, this is how I've done it:
Content visible to registered users only.
Steven Myers
09-08-2006, 10:09 PM
No problem.
Starting at 415-437
Content visible to registered users only.
Are you sure it's nothing in the template files? I tried your code and it's working good...strange :)
Ok, just remove the IF clause that loads the Js files in header.tpl and you should be ok:
{if $load_Javascript} and it's closing {/if}
Jama62
09-10-2006, 06:56 AM
Content visible to registered users only.
I have this mod in the details page under "preview". I am using 3.05. works best on FF.
Nice to see the mod again in action :D
Jethro
09-10-2006, 09:52 PM
Content visible to registered users only.
That's pretty cool. Submitted a link (movie sub cat), put in a reciprocal, but the software balked at the reciprocal linked page (php url address l think). Interestingly the actual site url went fine at your place, but not at another site l submitted to :confused:
When we get our grubby mitts on version 3 must see if there's a setting in the admin section covering this. Yes, your site just sold us on version 3 :) That's exactly what we want happening.
I keep getting this error:
Fatal error: Smarty error: [in link.tpl line 8]: syntax error: unrecognized tag: $link.URL|escape| trim (Smarty_Compiler.class.php, line 436) in /www2/apache/www/subblogs/public_html/libs/smarty/Smarty.class.php on line 1088
when i try to add this code:
Content visible to registered users only.
to the link.tpl and im assuming its because i dont know where to place it. This is my link.tpl code:
Content visible to registered users only.
Works for me:
Content visible to registered users only.
Content visible to registered users only.
Thank You... issue fixed, i just didn't know where to add the code.
Question, is their a way to open the preview in a new window so that it doesnt close out my directory?
It doesnt actually close out the directory. it just places an overlaying .png over the viewable window.
A preview in a new window wouldn't make much sense ... it would be like opening the complete link in a new window and that isn't a preview anymore :p
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.