121
McDonald
Re: Youtube HotLink Gallery
  • 2008/3/23 0:49

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


All coding is done in include/video.php.
Look for the function xtube_showvideo. In this function the following is for YouTube:
//Show if source is YouTube
    
if ($source == 0)
    {
       
$showvideo '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' $vidid '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' $vidid '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
    }


This is the code that finally embeds the YouTube video.

You might try it by replacing the lines above with these:
//Show if source is YouTube
    
if ($source == 0)
    {
       
$showvideo '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' $vidid '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' $vidid '&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
    }



122
McDonald
Re: A calendar module that works?
  • 2008/3/22 23:01

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


eXtCal 2.1.x contains multiple vulnerabilities and should not be used.

Zoullou has fixed these vulnerabilities and will soon release eXtCal 2.1.7, see here.



123
McDonald
Re: Revolution of Xoops Banners System
  • 2008/3/22 12:32

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Thanks for the quick response.

You're hack works well. In WF-Links I've made the option for categories that a client (id) can be choosen or a banner-id.
Further I've created a block to display the statistics of banners used in WF-Links which shows the impressions and clicks like in control panel.
Might take a while for the next WF-Links release 'cause there's still a lot to do.



124
McDonald
Re: Revolution of Xoops Banners System
  • 2008/3/22 10:52

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


When adding a banner there are 2 ways to do so:
1. Enter url to the banner image + url to link to
2. Select 'Use HTML' and enter HTML code in the box (ie. code of Link-to-us).

In both cases the banner appears, but clicks are not counted when using the (2) HTML option. Only when using the 1st method clicks are counted.

Impressions seem to work in both cases.


Is this a bug in the banner hack or a more general XOOPS bug?



125
McDonald
Re: Youtube HotLink Gallery
  • 2008/3/21 15:37

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Quote:
Hope you can add it in some (any ) future release. Until then I suppose it can be found on McDonalds Store.


Yep, see announcement here.



126
McDonald
Re: Youtube HotLink Gallery
  • 2008/3/21 14:28

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Done!



127
McDonald
Re: Revolution of Xoops Banners System
  • 2008/3/21 11:22

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I just added the functions to /include/functions.php and added the following to /admin/category.php:

$client_select = new XoopsFormSelect_AM_WFL_CATSPONSOR'client_id'$client_idfalse);
    
$sql5 "SELECT cid, name FROM " $xoopsDB->prefix('bannerclient') . " ORDER BY name ASC";
    
$result5 $xoopsDB -> query($sql5);
    
$client_array = array();
    
$client_array[0] = '&nbsp;';
    while (
$myrow $xoopsDB -> fetchArray($result5)) {
        
$client_array[$myrow['cid']] = $myrow['name'];
    }
    
$client_select -> addOptionArray($client_array);
    
$sform -> addElement$client_select );


In viewcat.php I have

if ($head_arr['client_id'] > 0){
  
$catarray['imageheader'] = wfl_getbanner_from_id_client$head_arr['client_id'] );
} else {
  
$catarray['imageheader'] = wfl_imageheader();
}


to display the banner or the index page logo if no banner is selected.
Probably have to do some more fine tuning.

Now I need a block to show the clients the stats....



128
McDonald
Re: Revolution of Xoops Banners System
  • 2008/3/21 1:14

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


@ slyss,

A great and useful banner hack!

Resized Image

Will use it in WF-Links 1.05 for category sponsoring.



129
McDonald
Re: Anyone using Protector 3.16beta with xoops 2.0.18.1?
  • 2008/3/19 22:01

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


The only filters I use are:

- postcommon_post_deny_by_rbl.php: An anti-SPAM plugin.
All of Post from IP registered in RBL will be rejected.

- postcommon_post_deny_by_httpbl: (see Project HoneyPot, you need to register for using this filter)



130
McDonald
Re: Anyone using Protector 3.16beta with xoops 2.0.18.1?
  • 2008/3/19 20:26

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I use it with 2.2.6, no problems except that users get an error ('security token') when they want to register or sent me a mail using the contact form, but I don't think this is related to Protector 3.16.




TopTop
« 1 ... 10 11 12 (13) 14 15 16 ... 87 »



Login

Who's Online

222 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits