Marook-Online
* 06.Feb.2012, 16:20 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
03-Mar-2008 04:38
gietl
One-Time Poster
*
Offline Offline

Joined: 03-Mar-2008
Coding in: PHP
Posts: 1


First off, thanks for the great mod.

I installed it on my custom theme, then the hair pulling began. I noticed that the js vars were updating properly, but the bubble would not. My issue, the theme I am using already had a bg.png file, so I altered the array and made bg.png bg1.png and re-uploaded the file with the new name.

Still, I would see the incorrect image and on top of that it was not switching the service.

So one thing at a time, I took a look in the sitepreview.js and the first line is:

Code:
var bubbleImagePath = smf_images_url + '/bg.png';

Well there is the image problem, we are setting a var in index.template that isn't even being used, I updated that to be:

Code:
var bubbleImagePath = smf_sitepreview_bubble;

Not it uses the correct image. Next issue, not changing the source of the preview. Around line 128 of the sitepreview.js:

Code:
img.setAttribute("src","http://images.websnapr.com/?size=S&url="+_d);

so I updated that line to:

Code:
img.setAttribute("src",smf_sitepreview_serviceurl+_d);

Everything works great now. Maybe this is already resolved? I got the package from thw SMF site, version 131.

Thanks again and I hope this helps anyone else seeing the same issues.
Logged
 

Read
03-Mar-2008 07:42
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


Thats weird... beause thats the reason why i released v1.31. This code you posted could never work, its recommended to use js vars declared in the template to display different bubbles and offering different thumbnail providers. I will download the latest version and take a look above the code. Thx for reporting !
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!