module SITES

Hi all, module sites has a problem and i would really appreciate it if someone took it seriously for once

read here for details http://www.shrinktheweb.com/content/dolphin-70x-integration-help.html#comment-1162

problem

1) Module doesnt fetch thumbnails at all anylonger at my website

2) If thumbnail is not ready at shrink the web, no picture is downloaded. Previously we had a workaround by refreshing the screen several times and waited untill Shrink The Web fetched the thumbnail.

W//

Quote · 5 Apr 2011

Did you update your version with latest 7.0.6?

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 5 Apr 2011

yes i did. fully up to date

Quote · 5 Apr 2011

so ... will this be resolved at all? or can we wait until ... ?

Does it have the developers attention?

Can we receive an indication on the time-frame for resolution?

Quote · 6 Apr 2011

Fix it ... please ... give some feedback ... please ... it is taking too long, for weeks now i have been trying to get attention for this problem

ONLY ONE RESPONSE .. from SashaE ...

I even posted JOB OFFERS, offering a few bucks to have developers fix the problem ...

When will this problem be fixed? Feedback ... communication with your customers, its essential ya know ...

 

Quote · 6 Apr 2011
Pick a number and get in line. I've been waiting two years for some things to be fixed
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 6 Apr 2011

What are you trying to tell me ?

Quote · 6 Apr 2011

 

What are you trying to tell me ?

That you need to get a lot better at waiting.  Just think how you'll feel about this problem a year from now.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 6 Apr 2011

There is a number we can pick?  Why didn't anyone tell me that!

Quote · 7 Apr 2011

i would be satisfied if this problem will be put in the ticketing system.

meanwhile i will try to figure it out myself (although i dont have the luxery of time to figure this thing out), or if one of the programmers inhere can be as kind to have a look ...

Quote · 7 Apr 2011

As I understand it, shrinktoweb made some changes to their registration system and the code in Dolphin doesn't work.   They said Boonex finally got ahold of them and they would try to fix it when they got the chance.  That could be forever if we have to wait till 7.1.   I hope a patch or something can be released.   I just found an need for this module and would like to get it to work.

Quote · 11 Apr 2011

Looking for a solution too... Not sure of that the problem is Dolphin side.

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 11 Apr 2011

Since no acknowledgement of script changes has been made, much less actually implemented......

 

 

How can we deactivate the shrinktheweb integration so that it doesn't look broken to our site users??

Quote · 12 Apr 2011

I got this message from one of the founders of ShrinktheWeb when I was trying to figure out if it was a problem with a firewall on my host.  He said it took them weeks to even get Boonex to acknowledge them but he has since talked to them.    This is why I wish Dolphin was really open source - we really need this fixed.   I wish they would release a patch on this, because if we have to wait till 7.1 it will be a lifetime.  Maybe someone could do a mod that fixes this - or do one with another thumbnail service like http://www.thumbshots. org.

--------------

 

Hey Rob,

There is no other IP address for our service.  The problem resides with the Site module in boonex.  We have changed our request method and until they update the code in that module there is nothing more that we can do.  I've spoke with their developers and as soon as they resolve their DDOS attack problem we'll start working with them to correct the issue.
Best Regards,

Frank Grogan
Co-Founder
Quote · 12 Apr 2011

Just to clarify this for myself, does this work for anybody anymore?  A business possibility has come up where this module would be very useful.   Does anyone out there have any influence with Boonex where we could persuade them to fix this?  Short of that, maybe one of the mod developers could fix it?   The API for shrinktoweb can't be that complicated.

Quote · 13 Apr 2011

Installed the module to start using it myself, now after 3 hours googling and reading on their forum it will be a lot of new changes.


http://www.shrinktheweb.com/content/major-overhaul-project-security-notice.html
http://www.shrinktheweb.com/content/how-do-i-install-or-integrate-stw-preview-verification-code.html

A quick solution would be to open such service and simple offer the same as they did with same parameters and such to easy the move to a new service.

Problem is to find a solution where you can run it on a linux server and run some kind of browser of the framebuffer... I'll see how far my weekend goes ;p

Quote · 13 Apr 2011

Well, i took some time to dig into this and found out that I could do screen shots from my linux server, now i just need to wrap this to a final solution.

The pictures as result is here as example of output, they need to be cropped/resized ofcus:

http://orkan.net/dolphin/boonex.com.png
http://orkan.net/dolphin/boonexforum.png
http://orkan.net/dolphin/cnn.png
http://orkan.net/dolphin/aftonbladet.png (10MB, 1258 x 14685(!)

Anyone who can send me some specs on how the format of the thumbs should be and x/y size ? :)

Quote · 13 Apr 2011

Linux and snapshots.

 

can i do the same on CentOS on my VPS ?

Quote · 13 Apr 2011

I think www.thumbshots.org is a nice service also, but this is not really the fault of shrinktoweb either.   Boonex has to do something - does anyone know the developer responsible for this?   Alternatively are there any code wizards out there who could take a shot are release a new module?    I hate it that every time I get excited about some Dolphin module I find it doesn't really work.

Quote · 14 Apr 2011

UPDATE:  I just looked in Trac and they seem to have declared this "fixed":

http://www.boonex.com/trac/dolphin/ticket/2464

There seem to be a few changes in Trac - I noticed some SQL changes - has anyone tried it yet?

Quote · 14 Apr 2011

I hope you did read the forums on shrinktheweb well. The new way the users have to click 3 times before they reach the destination.

A smarter way would be to use to use a local cached version that have a ttl of say 3-7 days and when you request a new updated version if there is any.

That way you are less dependet on external services for your site to run proper, just do a google search on websites that is fully dependent on this service and how they look now.

Yes, you can run my 'solution' to take screenshot on a VPS or dedicated server. It is using xvfb with a screen capture program, but you have to resize them and crop the images to be 200x150.

I have made a replacement script that works like shrinktheweb and only thing you have to do is to change the URL in your settings, i hope i'll finalize my script later this day to temporary fix the problem until Dolphin 7.1/7.0.7(?)

Again, my way would been to add a field to the database of a ttl when the image should be requested again, then fetch the image, store it local, set the ttl of the users choise, have a cron script that is running */5 to check if any pics should be downloaded/updated from users ttl.

Quote · 14 Apr 2011

After reading Sky's forum post and found the IPs they was talking about i finaly got it to work.

The problem i was into was the talk they said on their own forum that some parameters was gone, and they was going to remove the xino.php and replace it with javascript instead and therefor belived what they was saying there. Instead it seems all that are bs to be honest, it works perfectly!

My main problem was that I already added some sites and belived it was going to fetch the thumbs when the service was up/working again but it don't.

I had to re-add my sites and dolphin _does_ cache the files localy, even if i could not see where the heck they do it...

So bottom line, add your IPs, else tick the Logging box and add some sites and go back to their site to see from what IP your requests are comming from and add that to the list. Remove Logging and you have to re-add the sites for the thumbs to be fetched.

So my concern is still that if a person adds a site, and stw don't have it, you have to remove that site and re-add it to fetch the thumb ?

Anyway, I did learn how to do screenshots from a linux console too.. )

Quote · 14 Apr 2011

So bottom line, add your IPs ??

are you saying that you got Module Sites to work, but it will not fetch a thumbnail if STW does not have it ?

How about your linux solution? Can we implement it on our own VPS? will it work? and if so, are you willing to share the code? :-)

Quote · 14 Apr 2011

 

UPDATE:  I just looked in Trac and they seem to have declared this "fixed":

http://www.boonex.com/trac/dolphin/ticket/2464

There seem to be a few changes in Trac - I noticed some SQL changes - has anyone tried it yet?

At first I was ready to pull my hair out that the issue had a fix that no one was telling us about despite the number of posts crying out for help. Then I realized after trying to implement the 'fix' that this is just another case of an issue being declared "fixed" and yet still being broken:

 

I couldn't see any changes at all in the changeset  15055 - the file is unchanged, so I'm not sure what that's all about.


I did see changes in 15051, but when I made the changes in the changeset 15051, the sites module stops working altogether, throwing this error:



Parse error: syntax error, unexpected T_ELSE in ****/public_html/modules/boonex/sites/classes/BxSitesModule.php on line 892



So I removed that change from trunk/modules/boonex/sites/classes/BxSitesModule.php entirely, leaving the other 2 intact. Then my site module is actually working and for the first time in a while, the thumbnail box appears when adding a new site. However, the thumbnail box is grayed out, no matter how many times I reload the page. It's trying to work, but still not working.

 

(Just f.y.i., in case anyone is actually following up on this: I implemented all of the changes for shrinktheweb when the upgrade was released. I registered my own account there, listed my ip, entered my own access and secret keys. So none of that is the issue.)

 

Again - anyone know how to disable the shrinktheweb features from the Sites module entirely so that it doesn't appear broken to my users? Anyone?

Quote · 15 Apr 2011

i just dont inform my visitors that they can do this.

 

they add their site .. and  upload a picture ..

Quote · 15 Apr 2011

 

i just dont inform my visitors that they can do this.

 

they add their site .. and  upload a picture ..

When they start the add a site process, there's a message that pops up that says "if your thumbnail doesn't appear, refresh the page." And since no thumbnail appears, they just keep refreshing and refreshing. To them it is just confusing and makes it look like it's broken (which it is), and I don't want my site to appear confusing and/or broken to my users. (a concept that seems foreign to dolphin)

 

I suppose I could just undo the so-called fixes that make a blank thumbnail box appears and change the language key to "Upload a pic for your site" - but I'm so sick of sloppy fixes like this that aren't really fixes at all. Surely there's a way to just turn off the shrinktheweb feature entirely!

Quote · 16 Apr 2011

i have never seen this popup on my site ...

Quote · 16 Apr 2011

 

So bottom line, add your IPs ??

are you saying that you got Module Sites to work, but it will not fetch a thumbnail if STW does not have it ?

How about your linux solution? Can we implement it on our own VPS? will it work? and if so, are you willing to share the code? :-)

I noticed that when you add a site, it does request a thumb from swf, if they dont have it, you simple can't get one, and dolphin never saves it. Re-adding a site after say a couple of hours and the image are ready on stw. Therefor a cronjob should be running to check all stites that have been added without thumb and try download them and save them localy as dolphin does in the first step.

Absolutly, i mind sharing my 'code' / 'solution', I never got to implant it, but i got php scripts that returned same parameters as stw did, but problem remains that dolphin still only fetches the image once when the site are added, and dont re-try to fetch the image at a later stage.

Here you can see what i used for tools to capture the images, http://cutycapt.sourceforge.net/ i used it together with xvfb. You need to write php script that simple adds the url to a db, have a cronscript to generate the images, and the xino.php should return a valid xml document with parameters if the image are ready or not and give out thumb url. I got halfway with this before i noticed to add my ips of my servers and abandonded the idea, but i might use it later as a backup solution.

Again, check the code of dolphin, it only doing the fetch once and it's when they add the site so a fix would be to write a custom cron script to run and fetch missing thumbs instead.

Quote · 16 Apr 2011

how about instead of having a cron job checking for new thumbnails.

Having a check each for a new thumbnail time someone views the sites?

Quote · 16 Apr 2011

 

how about instead of having a cron job checking for new thumbnails.

Having a check each for a new thumbnail time someone views the sites?

That means we need to modify the code itself within dolphin, and it will be removed when next update comes, having an external 'fix' dont break dolphin, imho.

Quote · 16 Apr 2011

 

how about instead of having a cron job checking for new thumbnails.

Having a check each for a new thumbnail time someone views the sites?

Something tells me the script updating thumbnails every time someone views a site entry would cause unnecessary load on the server.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 16 Apr 2011

 

 

how about instead of having a cron job checking for new thumbnails.

Having a check each for a new thumbnail time someone views the sites?

Something tells me the script updating thumbnails every time someone views a site entry would cause unnecessary load on the server.

Well, it would work, but it should only check if there is a image ready to be fetched and then save it localy as it does when you add a site, and use the stored local copy. That way it would work if you make a clean up or have a cron script to remove thumbs that is older than a month so you always have a 'fresh' picture of the site.. many options how to do it, but as it is now, an external script could do it since i don't want to poke around to much within dolphin until i have learnt more from and how the site really works.

Quote · 16 Apr 2011

I checked cutycapt, and it is really promising. i rather have this service at my own vps then using STW... simply bcs i dont want to be dependant.

But i am having my VPS on CENTOS .. and there is no installation guide to be found. On top of this, i am a real novice with linux/vps/centos etc etc. if you can help me a bit, or know a guide that can help me a bit, that would be great :-)

 

regarding re-programming the sitemod ..

I think we could call the function that is 'normally' called on creation of thumbnail. Parse the URL and it will quickly check if a thumbnail is available, if not a NULL will be placed in the database. you could program an extra line in the views function, just check if database table contains a NULL .. if so, go check if a thumbnail is available. ofcourse this is theoretically . i dont have the time to shift through the code, no matter i how much i would like it to work.

bx_sites_main->photo will be 0 if no thumbnail is fetched. but will be anything else but 0 if thumbnail is fetched, or user uploaded a picture

anyway, cutycapt will resolve my problem .. correct? :-)

Quote · 16 Apr 2011

I am amazed at how little anyone searches a problem here before they start bitching...

http://www.boonex.com/unity/forums/#topic/Site-mod-tip-.htm

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 16 Apr 2011

 

I am amazed at how little anyone searches a problem here before they start bitching...

http://www.boonex.com/unity/forums/#topic/Site-mod-tip-.htm

Speaking for myself, I've researched it for hours, implemented every fix (including your supposed sure fire fix of adding IP (did that weeks ago when it was first listed as a fix) and checking the log box). It would be terribly fabulous if it worked, but despite having researched it, despite having implemented every *fix*, despite refreshing 10 times (which wouldn't really be a *fix* anyway for my end users on my site, of course), and despite your attitude:

 

It still doesn't work!

 

And considering I'm apparently not the only one who is still experiencing problems, I think it's safe to assume that there is, indeed, still an unresolved issue here. I'm glad it is working for you, but that doesn't mean that it's working for everyone!

Quote · 19 Apr 2011

I second that ...

it does not work... well..

Quote · 19 Apr 2011

Yeah, I third that notion - I think I have researched this issue quite a bit - including talking to the co-founder of shrinktheweb,  before this "solution" was posted - I'm sorry people consider working to resolve technical issues here to be "bitching".

Technically, I am still unclear on one thing - are the shrink the web images stored locally - outside of the cache?  Maybe a quick fix - for my situation anyway, would be to disable shrinktheweb entirely - at least for now.  I noticed that after you get the second screen (which I usually don't get because of my hosts firewall) that give you the option to upload a thumbnail from your hard drive.  Maybe this could be temporary fix for some smaller directories - just make the thumbnails manually, and then upload it.   Could someone tell me the code location to comment out - I would like to experiment with this.

Rob

Quote · 20 Apr 2011

bump - sorry - but does anyone know where the code for calling shrinktheweb is?  I would like to try to comment it out as an experiment.  I'm thrashing around in FTP now, but I really don't know PHP well enough - is it in one of the classes files?

Quote · 20 Apr 2011

Oh comeon, someone must know where the shrinktheweb calls are in this code.  Does Boonex ever help anyone on this forum anymore?  Argonx - if you wrote me I didn't get the message - I got a bunch of email alerts but no messages, which happens here on my account.   Could someone at least tell me what file?

Quote · 21 Apr 2011

BxSitesModule.php

found in modules/sites/classes/

abt line 1015

 

function _queryRemoteThumbnail($url, $args = null) {
$args = is_array($args) ? $args : array();

$defaults["Service"] = getParam('bx_sites_thumb_service');
$defaults["Action"] = getParam('bx_sites_thumb_action');
$defaults["STWAccessKeyId"] = getParam('bx_sites_thumb_access_key');
$defaults["stwu"] = getParam('bx_sites_thumb_pswd');

foreach ($defaults as $k=>$v)
if (!isset($args[$k]))
$args[$k] = $v;

$args["stwUrl"] = $url;
$request_url = urldecode(getParam('bx_sites_thumb_url') . '?' . $this->_httpParseQuery($args)); <-- Right here the URL is retrieved from database!
$line = $this->_make_http_request($request_url);
$regex = '/<[^:]*:Thumbnail\\s*(?:Exists=\"((?:true)|(?:false))\")?[^>]*>([^<]*)<\//';

if (preg_match($regex, $line, $matches) == 1 && $matches[1] == "true")
return $matches[2];

return null;
}

 

 

Quote · 24 Apr 2011

Good one Wannabe - Thank you.   I will experiment with commenting that out and will let you know.  I appreciate your help!

Rob

Quote · 24 Apr 2011

Damn - I have commented out that entire function and I still can't get through my host's firewall - it is still hanging for me.

@Boonex - it would be really nice if one of you guys would respond here on occasion.    Could you advise - are there any other external calls in that program?  I would like to disable shrinktheweb entirely right now, and just generate the thumbnail manually.   Could you tell me how to do this?

Quote · 24 Apr 2011

I got this email from shrinktheweb, dated 4/22, so it doesn't look like they're done changing things.


This notice is just a proactive alert that we are going to be making some MAJOR changes to the system. Our timeline for some major initiatives has been sped up drastically over the past couple of months and we will be rolling out several major overhauls simultaneously. Read more about that here: http://www.shrinktheweb.com/blogs/all-ahead-ludicrous-speed.html


Read more http://www.shrinktheweb.com/content/updates-04222011.html

 

Translation: MAJOR problems with this working right with Dolphin unless Boonex keeps up with all the changes.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 24 Apr 2011

hey nice ass    you are correct sir...  i also read that there should be no affect with using there old api  but that is for sure not the case....   it will pull the website info into the dolphin mod (7.0.6)  but will not pull in the snapshot....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 24 Apr 2011

I still wouldn't mind one that bypassed shrinktheweb entirely, and let us manually generate the thumbs.  It wouldn't be nearly as good, but it would be something.   I don't know why commenting out that entire function didn't work.  I'm going to try to get my host to look at it.

Quote · 25 Apr 2011

well like i said it pulls the website text part in but you still need to add your own photo....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 25 Apr 2011

 

I still wouldn't mind one that bypassed shrinktheweb entirely, and let us manually generate the thumbs.  It wouldn't be nearly as good, but it would be something.   I don't know why commenting out that entire function didn't work.  I'm going to try to get my host to look at it.

Did you try commenting it out like this:  ? (Everything but the return null; line)

 

function _queryRemoteThumbnail($url, $args = null) {
/*        $args = is_array($args) ? $args : array();

$defaults["Service"] = getParam('bx_sites_thumb_service');
$defaults["Action"] = getParam('bx_sites_thumb_action');
$defaults["STWAccessKeyId"] = getParam('bx_sites_thumb_access_key');
$defaults["stwu"] = getParam('bx_sites_thumb_pswd');

foreach ($defaults as $k=>$v)
if (!isset($args[$k]))
$args[$k] = $v;

$args["stwUrl"] = $url;
$request_url = urldecode(getParam('bx_sites_thumb_url') . '?' . $this->_httpParseQuery($args));
$line = $this->_make_http_request($request_url);
$regex = '/<[^:]*:Thumbnail\\s*(?:Exists=\"((?:true)|(?:false))\")?[^>]*>([^<]*)<\//';

if (preg_match($regex, $line, $matches) == 1 && $matches[1] == "true")
return $matches[2];
*/
return null;
}

 

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 25 Apr 2011

Yes, I commented out that entire function - but also the null part - I'll try it with the null still in there.  Thanks.

Quote · 25 Apr 2011

 

Yes, I commented out that entire function - but also the null part - I'll try it with the null still in there.  Thanks.

Try it exactly as above.  Returning 'nothing' is not the same as a function that does nothing.  This appeared to behave like you wanted it to when I tested it, but it may of course, behave differently in your server environment.

Make sure you clear all the cache directories after this change is saved.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 25 Apr 2011

did it work out?

Quote · 26 Apr 2011

Workaround for Boonex Dolphin 7.0.x

The following is from Shrink The Web:

First is to install the following line of code into the header* of your page(s):
<script type="text/javascript" src="http://www.shrinktheweb.com/scripts/pagepix.js"></script>
Then in the body of the page (wherever you want to show a screenshot), you just put:
<script type="text/javascript">stw_pagepix('domain.tld', 'stwaccesskey', 'stwsize', 'language', 'stwargs');</script>
*The header of your page is between the <head> and </head> tags

Legend:

    * domain.tld = the domain you want to show
    * stwaccesskey = your STW Access Key (found in the HOME/LOBBY area)
    * stwsize = the output size you want to show (tny, mcr, xsm, sm, lg, xlg)
    * [OPTIONAL] language = English (EN) is the only language currently supported
    * [OPTIONAL] stwargs = the pro features in a single string (i.e. &stwfull=1&stwxmax=400)
          o If &stwxmax is specified, it will override the stwsize value

End of Shrink The Web

Start Sites Mod Workaround for Dolphin 7.0.x.

Change Dolphin Default Files.

First Open File:

Dolphin_Root/templates/base/_header.html

Add <script type="text/javascript" src="http://www.shrinktheweb.com/scripts/pagepix.js"></script> right before the </head> tag.

So it looks like this:

<script type="text/javascript" src="http://www.shrinktheweb.com/scripts/pagepix.js"></script>    

</head>

Second Change These Files:

1) Dolphin_Root/modules/boonex/sites/templates/base/unit.html

New unit.html:

<div class="bx_sites_unit">
    <div class="bx_sites_unit_thumb110" style="background-image: url(__image__);">
<!-- Start Cut
        <a href="__site_url__"><img src="__spacer__"/></a>
End Cut -->
<!-- Start New STW Code -->
        <script type="text/javascript">stw_pagepix('__url_title__', 'your_stwaccesskey', 'sm');</script><img src="__spacer__"/>
<!-- End New STW Code -->
    </div>
    <div class="bx_sites_unit_content">
        <div class="bx_sites_unit_row">
            <div class="bx_sites_unit_title">
                <a class="bx_sites_unit_title_link" href="__site_url__">__title__</a>
            </div>
            __rate__
        </div>
        <div class="bx_sites_unit_row bx_sites_unit_info">
            <span>__date__</span>
            <span>__comments__</span>
            <span>__owner_str__<a href="__owner_url__">__owner__</a></span>
            <span>__cats_str__&nbsp;__cats__</span>
            <span>__tags_str__&nbsp;__tags__</span>
        </div>
        <div class="bx_sites_unit_row bx_sites_unit_description">
            <a href="__url__" class="link_site" target="_blank">__url_title__</a>&nbsp;&mdash;&nbsp;__description__
        </div>
    </div>
</div>



2) Dolphin_Root/modules/boonex/sites/templates/base/unit_admin.html

New unit_admin.html:

<div class="bx_sites_unit">
    <div class="bx_sites_unit_checkbox">
        <input type="checkbox" name="entry[]" value="__id__" />
    </div>
    <div class="bx_sites_unit_thumb110" style="background-image: url(__image__);">
<!-- Start Default Cut
        <a href="__site_url__"><img src="__spacer__"/></a>
End Default Cut -->
<!-- Start New STW Code -->
<script type="text/javascript">stw_pagepix('__url_title__', 'your_stwaccesskey', 'sm');</script>
<!-- End New STW Code -->
    </div>
    <div class="bx_sites_unit_content">
        <div class="bx_sites_unit_row">
            <div class="bx_sites_unit_title">
                <a class="bx_sites_unit_title_link" href="__site_url__">__title__</a>
            </div>
        </div>
        <div class="bx_sites_unit_row bx_sites_unit_info">
            <span>__date__</span>
            <span>__comments__</span>
            <span>__owner_str__<a href="__owner_url__">__owner__</a></span>
            <span>__cats_str__&nbsp;__cats__</span>
            <span>__tags_str__&nbsp;__tags__</span>
        </div>
        <div class="bx_sites_unit_row bx_sites_unit_description">
            <a href="__url__" class="link_site" target="_blank">__url_title__</a>&nbsp;&mdash;&nbsp;__description__
        </div>
    </div>
</div>



3) Dolphin_Root/modules/boonex/sites/templates/base/view_image.html

New view_image.html:

<div class="bx_sites_block_view" style="margin: 10px; overflow: hidden;">
    <a href="__site_url__" class="title" target="_blank">__site_url_view__</a>
    <div class="show_image">
<!-- Start Default Cut
        <img src="__image__" />
End Default Cut -->
<!-- Start New STW Code -->
<script type="text/javascript">stw_pagepix('__site_url__', 'your_stwaccesskey', 'xlg');</script><img src="__spacer__"/>
<!-- End New STW Code -->
    </div>
    <div class="bx_sites_block_rate">
        <div class="bx_sites_vote">__vote__</div>
        <div class="bx_sites_count">
            <div class="bx_sites_val" style="background: url('__image_view__') 8px center no-repeat;">
                <span>__view_count__</span>
            </div>
        </div>
    </div>
</div>



4) Dolphin_Root/modules/boonex/sites/templates/base/block_percent.html

New block_percent.html:

<div class="bx_sites_block_percent" style="margin: 10px; overflow: hidden;">
    <div class="image">
<!-- Start Default Cut
        <a href="__site_url__"><img src="__image__" /></a>
End Default Cut -->
<!-- Start New STW Code -->
<script type="text/javascript">stw_pagepix('__url_title__', 'your_stwaccesskey', 'sm');</script>
<!-- Start New STW Code -->
    </div>
    <div class="bx_sites_unit_content bx_sites_content">
        <div class="bx_sites_unit_row">
            <div class="bx_sites_unit_title">
                <a class="bx_sites_unit_title_link" href="__site_url__">__title__</a>
            </div>
            <div class="votes_small">__rate__</div>
        </div>
        <div class="bx_sites_unit_row bx_sites_unit_info">
            <span>__date__</span>
            <span>__comments__</span>
            <span>__owner_str__<a href="__owner_url__">__owner__</a></span>
            <span>__cats_str__&nbsp;__cats__</span>
            <span>__tags_str__&nbsp;__tags__</span>
        </div>
        <div class="bx_sites_unit_row">
            <a href="__url__" class="link_site" target="_blank">__url_title__</a>&nbsp;&mdash;&nbsp;__description__
        </div>
    </div>
</div>



5) Dolphin_Root/modules/boonex/sites/templates/base/css/main.css

New main.css:

.bx_sites_default_padding {
    margin: 10px;
}

.bx_sites_unit {
    padding: 0px;
    margin: 10px;
    overflow: hidden;
    position: relative;
}

.bx_sites_unit_thumb110, .bx_sites_unit_thumb200 {
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #CCCCCC;
    background-color:#EDEDED;
    float: left;
    margin-right: 10px;
}

.bx_sites_unit_thumb110 {
    width: 120px;
    height: 90px;
}

.bx_sites_unit_thumb200 {
    width: 208px;
    height: 208px;
}
    
.bx_sites_unit_thumb110 img {
    width: 120px;
    height: 90px;
/*    border: 4px solid white; */
}

.bx_sites_unit_thumb200 img {
    width: 200px;
    height: 200px;
    border: 4px solid white;
}

.bx_sites_content
{
    margin-top: 10px;
}

.bx_sites_unit_content {
    overflow: hidden;
    /*padding-left: 10px;*/
}

.bx_sites_unit_row {
    overflow: hidden;
    padding: 1px;
}

.bx_sites_unit_description {
    overflow: hidden;
    height: 64px;
}

.bx_sites_unit_row .link_site {
    color: green;
}

.bx_sites_unit_info {
    color: gray;
}

.bx_sites_unit_info span {
    margin-right: 10px;
    font-size: 9px;
    float: left;
}

.bx_sites_unit_title {
    float: left;
    width: 85%;
}

.bx_sites_unit_title_link {
    font-size: 12px;
    font-weight: bold;
    color: #3333cc;
}

.boxContent .bx_sites_unit_row .votes_small {
    float: right;
    width: auto;
}

.bx_sites_unit_checkbox {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 20px;
    height: 20px;    
    background-color: #ffcccc;
}

.dbContent {
    margin: 0px;
}

.bx_sites_block_view {
    margin: 10px;
    overflow: hidden;
}

.bx_sites_block_view .image {
    text-align: center;
}

.image img {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #CCC;
    padding: 2px;
}

.bx_sites_block_view .title {
    margin: 10px 0 5px 0;
}

#bx_sites_share_popup {
    position: absolute;
    background-image: url(../images/op40.png);
    z-index: 999;
}
/*
.bx_sites_share_popup {
    width: 300px;
}
*/

End of Dolphin Change Default Files.



Go to STW and Lock to Account your IP address and your web URL into the Allowed Referrers Field.

Example:

xxx.xxx.xxx.xxx
yoursite.com

End of Lock to Account



In the DolphIn Admin Back End go to Modules Sites And Make sure it looks like the following:

Url: http://images.shrinktheweb.com/xino.php    
Name of service: Leave Blank    
Name of action: Leave Blank    
Access Key: Your STW Access Key    
Secret Key: Your STW Secret Key

End of Mod Setup


Clear All Cache's


NOTE THIS IS JUST A START THE ADMIN BACK END HAS NOT BEEN DONE YET AND I MAY HAVE MISSED A FEW VIEWS IF ANY THING COMES UP I WILL ADD IT AT A LATER DATE.

Quote · 6 Jul 2011

OK after setting up for 7.0.7, just make sure you remove the Name Of Service and Name of Action values in the Settings on the Admin page. This immediately creates a greyed thumbnail for the site grab, and upon completion of the submission form, the thumbnail is instantaneous.  If you leave those values in, the script does not generate thumbs.

Even Monkeys and Retards get it right with repitition! - Author Unknown
Quote · 20 Aug 2011

Thanks rdonovan for all you've done for us!

It is greatly appreciated.

Have the boonex folks acknowledged your effort?

There is one view you missed and that is the "Rater" view, but following along in the same vein as the adjustments to the other files you've shown us one can easliy fix the issue in the file...

Dolphin_Root/modules/boonex/sites/templates/base/block_pre_hon.html

Quote · 22 Sep 2011

And also in the file...

 

Dolphin_Root/modules/boonex/sites/templates/base/block_hon.html

Quote · 22 Sep 2011

Hello!

We have heard from several users who would like to see a better integration with our service and we would like that also! Therefore, we have launched a contest for Dolphin developer's to get that accomplished, drum up some friendly competition, and reward the lucky winners. If you know any "Dolphin" developer gurus, be sure to point them to the announcement "Note":

http://www.boonex.com/n/attention-dolphin-developers-shrinktheweb-integra-2011-11-09

Thanks!

Brandon

ShrinkTheWeb - https://shrinktheweb.com
Quote · 9 Nov 2011

How To get Sites to work with Thumbshots thumbnails.

Look for my earlier post for the directory and files to change.

In all of the template files look for the following line:

<a href="__site_url__"><img src="__spacer__"/></a>

Replace the above line with:

<a href="__site_url__"><img src="http://open.thumbshots.org/image.pxf?url=__url__/"></a>

Except for the view_image.html file look for the following line:

<div class="show_image">

Replace the above line with:

<a href="__site_url__"><img src="http://open.thumbshots.org/image.pxf?url=__site_url__/"></a>

Last thing that you need to do is to make sure that you have a link back to Thumbshots thumbnails

<a href="http://www.thumbshots.com/" target="_blank">Thumbshots thumbnails</a>

That is it everything should work as it does here:

http://eventsonlongisland.com

Quote · 24 Jun 2012

Switch to the UNI template. I had only made the changes to the base template set.

Sorry, I made the above post  before changing all of the templates.

Quote · 24 Jun 2012

 Thanks!!

How To get Sites to work with Thumbshots thumbnails.

Look for my earlier post for the directory and files to change.

In all of the template files look for the following line:

<a href="__site_url__"><img src="__spacer__"/></a>

Replace the above line with:

<a href="__site_url__"><img src="http://open.thumbshots.org/image.pxf?url=__url__/"></a>

Except for the view_image.html file look for the following line:

<div class="show_image">

Replace the above line with:

<a href="__site_url__"><img src="http://open.thumbshots.org/image.pxf?url=__site_url__/"></a>

Last thing that you need to do is to make sure that you have a link back to Thumbshots thumbnails

<a href="http://www.thumbshots.com/" target="_blank">Thumbshots thumbnails</a>

That is it everything should work as it does here:

http://eventsonlongisland.com

 This works PERFECT!! After all this time fighting thumbshots!!

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 24 Jun 2012

CORRECTION:

*** Except for the view_image.html file look for the following line: ***

<div class="show_image">

Replace the above line with:

<a href="__site_url__"><img src="http://open.thumbshots.org/image.pxf?url=__site_url__/"></a>

 

Should be:

Except for the view_image.html file look for the following line:

<img src="__image__" />

Replace the above line with:
<a href="__site_url__"><img src="http://open.thumbshots.org/image.pxf?url=__site_url__/"></a>

Quote · 24 Jun 2012

I have looked at all the code by Rdonovan, and stil do not know where to put the following:

"Then in the body of the page (wherever you want to show a screenshot), you just put:
<script type="text/javascript">stw_pagepix('domain.tld', 'stwaccesskey', 'stwsize', 'language', 'stwargs');</script>"

 

Which files does this affect?

Even Monkeys and Retards get it right with repitition! - Author Unknown
Quote · 15 Aug 2012

@richmanfl

The code snippet you mention is for ShrinkTheWeb's "Preview Verification Page" (PVP), which we have not yet had time to mention but the PVP is no longer going to be necessary or supported. We have gone back to the simple method, which only requires the direct, single line of code as can be copy/pasted from the lobby once logged in.

For more info on why we decided not to enforce PVP, read this announcement.

ShrinkTheWeb - https://shrinktheweb.com
Quote · 15 Aug 2012

@purevida - Thanks for the info

I made all the changes, and it immediately picks up the thumbnail, but does not have a large photo when you to to the Site detail page. Any suggestions?

Even Monkeys and Retards get it right with repitition! - Author Unknown
Quote · 16 Aug 2012

 

@purevida - Thanks for the info

I made all the changes, and it immediately picks up the thumbnail, but does not have a large photo when you to to the Site detail page. Any suggestions?

 No problem but I must apologize that I cannot be of much assistance with customizing your integration.

The upcoming SITES module will automatically handle all of this for you, without all the headache of customizing in the code. However, I did not write the integration for Dolphin; only tested it. So I cannot speak as to where certain code should go in order to display the way you want it. Really, I would strongly recommend waiting for the next release of SITES module, if you are able to wait.

ShrinkTheWeb - https://shrinktheweb.com
Quote · 16 Aug 2012

Someone should build this mod to use thumbshots. I checked out their site. Looks to be a very strong product.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 16 Aug 2012

 

Someone should build this mod to use thumbshots. I checked out their site. Looks to be a very strong product.

 http://www.boonex.com/forums/topic/Site-Thumbnails-made-EASY-.htm

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 Aug 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.