11
wizanda
Re: Plan on how to merge 2.2 and 2.0
  • 2008/7/27 13:46

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


It needed the userinfo.php language files added to the user.php in languages.
//%%%%%%File Name userinfo.php%%%%%
define('_US_NICKNAME','Username');
define('_US_REALNAME','Real Name');
define('_US_EMAIL','Email');
define('_US_PM','PM');
define('_US_ICQ','ICQ');
define('_US_AIM','AIM');
define('_US_YIM','YIM');
define('_US_MSNM','MSNM');
define('_US_WEBSITE','Website');
define('_US_LOCATION','Location');
define('_US_OCCUPATION','Occupation');
define('_US_INTEREST','Interest');
define('_US_SIGNATURE','Signature');
define('_US_EXTRAINFO','Extra Info');
define('_US_EDITPROFILE','Edit Profile');
define('_US_MEMBERSINCE','Member Since');
define('_US_RANK','Rank');
define('_US_POSTS','Comments/Posts');
define('_US_LASTLOGIN','Last Login');
define('_US_ALLABOUT','All about %s');
define('_US_STATISTICS','Statistics');
define('_US_MYINFO','My Info');
define('_US_BASICINFO','Basic information');
define('_US_MOREABOUT','More About Me');
define('_US_SHOWALL','Show All');

Then to fix the header we can either use:
$xoopsOption['xoops_module_header'] = '<link rel="stylesheet" type="text/css" href="'.XOOPS_URL.'/modules/yogurt/templates/style.css" />';
$xoopsOption['xoops_module_header'] .= ‘all items needed’;

The other is:
$xTheme->addCSS(
$xTheme->addJS(

Just replace the $xoTheme, for $xTheme and use these methods to include it exactly the same.



12
wizanda
Re: Article Rendering Html code in PHP5
  • 2008/7/23 10:53

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Found the problem using var_dump() to check where the text_body exists......in php5 its being overwritten by the keyword handler in article.view.php....
Switching it off is my first solution, next is to find the code fix....



13
wizanda
Re: Would like to recommend Servage again
  • 2008/6/26 9:17

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Resized Image



Would like to thank everyone who signed up, its grown as a service quite considerably since last posting....So here is the new offer and a repeat of our coupon code, in the hopes you will all use it, so we can continue for free.....
We both get extra free from it....

Added Bonus is i receive your user name and so if you do sign up through our coupon code and need help feel free to ask on IM, etc....



14
wizanda
Re: User Authentication is screwed up, duplicate loginnames, new users cannot register.
  • 2008/6/25 15:06

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Sorry for not noticing before, you, like my self had to learn PHP, just to fix a few things

There is a module to help, which works with the 2.1 copies of XOOPS....


xoops Table Logical Check



15
wizanda
Re: Why is the 'session.use_trans_sid' directive dangerous?
  • 2008/6/24 8:54

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Quote:
Most people tend to forget that the PHPSESSID are dangerous to use straight
in the queries, because it comes from a cookie (or URL), and thus from the
client, and thus can not be trusted (SQL-injection).

It also looks awful, having every link with their session posted into the url...
.htaccess
php_flag session.use_trans_sid off



16
wizanda
Re: Flash MP3 Player for XOOPS Extended Editor
  • 2008/6/23 13:01

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


One Funky

[fmp3=FFFEE1,B12025,One Funky]http://homepage.ntlworld.com/oneness/Music/onefunky.mp3[/fmp3]


There are popup options for the colours and title...
As you see from the url of the MP3; it means people can add their own songs now from external sources, where they don't need a specific OS player

Here is an image for the class/xoopseditor/dhtmlext/images/mp3.gif
Resized Image<--By me
or
Resized Image <--Donated by Sato-San



17
wizanda
Article Rendering Html code in PHP5
  • 2008/6/21 18:45

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


There is a problem with Article and it’s rendering of html when running PHP5….It shows no errors, just misses the body section of the article, this also applies to the extended text sanitizer plug-ins, which it also gets confused with as html?
So where or what could cause this and where else is worth testing?



18
wizanda
Flash MP3 Player for XOOPS Extended Editor
  • 2008/6/21 17:31

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Save me sending files that might get changed later, here is all the code to add a built-in Flash MP3 player:
Frameworks/textsanitizer/config.php
define('EXTCODE_ENABLE_FMP3'1); // FMP3

Frameworks/textsanitizer/module.textsanifizer.php
if (EXTCODE_ENABLE_FMP3 == 1){$this->loadExtension("fmp3");}

Frameworks/textsanitizer/plugins/fmp3.php
function textsanitizer_fmp3(&$ts)
{
$ts->patterns[] =  "/[fmp3=(['"]?)([^"']*),([^"']*),([^"']*)\1]([^"]*)[/fmp3]/sU";
$rp  "<object id='fmp3' width='260' height='60' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'>";
$rp .= "<param name='movie' value='".XOOPS_URL."/Frameworks/textsanitizer/plugins/FMP3/FMP3.swf?mp3=\5&action=stop&title=\4&color=\2&loop=no&lma=no&textcolor=\3'>";
$rp .= "<param name='quality' value='high'>";
$rp .= "<param name='bgcolor' value='#FFFFFF'>";
$rp .= "<param name='wmode' value='transparent'>";
$rp .= "<embed src='".XOOPS_URL."/Frameworks/textsanitizer/plugins/FMP3/FMP3.swf?mp3=\5&action=stop&title=\4&color=\2&loop=no&lma=no&textcolor=\3' width='260' height='60' quality='high' bgcolor='#FFFFFF' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='fmp3' allowScriptAccess='sameDomain'></embed>";
$rp .= "</object>";
$ts->replacements[] = $rp;}

Frameworks/textsanitizer/plugins/fmp3/
Place these files into its own folder.
class/xoopseditor/dhtmlext/xoops.js
function xoopsCodeFMP3(identerFMP3PhraseenterFMP3ColorBgPhraseenterFMP3ColorPhraseenterFMP3TitlePhrase){var selection getSelect(id);
if (
selection.length 0){var text selection;}
else{var 
text prompt(enterFMP3Phrase"");}
var 
domobj xoopsGetElementById(id);
if (
text.length>0){var text2 prompt(enterFMP3ColorBgPhrase"ffffff");
var 
text3 prompt(enterFMP3ColorPhrase"000000");
var 
text4 prompt(enterFMP3TitlePhrase"");
var 
result "[fmp3="+text2+","+text3+","+text4+"]" text "[/fmp3]";
xoopsInsertText(domobjresult);}
domobj.focus();}

class/xoopseditor/dhtmlext/dhtmlext.php
if(defined("EXTCODE_ENABLE_FMP3") && EXTCODE_ENABLE_FMP3 == 1){$code .= "<img src='".$image_path."/mp3.gif' alt='"._ALTFMP3."'  onclick='xoopsCodeFMP3("$textarea_id","".htmlspecialchars(_ENTERFMP3URL, ENT_QUOTES)."","".htmlspecialchars(_ENTERCOLORBG, ENT_QUOTES)."","".htmlspecialchars(_ENTERCOLOR, ENT_QUOTES)."","".htmlspecialchars(_ENTERTITLE, ENT_QUOTES)."");'  onmouseover='style.cursor="hand"'/>&nbsp;";}

class/xoopseditor/dhtmlext/languages.php
define("_ENTERCOLORBG""background color:");
define("_ENTERCOLOR""color:");
define("_ENTERFMP3URL""MP3 URL:");
define("_ENTERTITLE""title:");

There is an option for looping the music, yet since this is only practical on a musicians site; to begin haven’t made this as an option, as it begins to get confusing when you have too many options for BBcode, which is suppose to be simple….



19
wizanda
Re: Simple Machine Forum - Xoops Bridge
  • 2008/6/15 9:32

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Without installing it all my self, yet looking at what the files contained, you install the XOOPS module SMF Bridge....
In there it will have an admin option for pointing too the path of another directory for the SMF forum /index.php.....It appears from your errors that isn't set? So it's pointing at the modules /index.php?



20
wizanda
How to use $GLOBALS["addons_skip_module"]
  • 2008/6/14 22:11

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


Today noticed that xmline has a REALLY faulty transfer, that makes an extra blank forum for the items transferred, so fixed xmline to use the main framework transfer (with the help of the amazing BanditX )…..

Yet certain points like print, pdf, pm and other add-on’s need cancelling, which I did think would be the easy part, seeing there was a variable ready to cancel them out……

Yet no matter what I’ve tried it hasn’t worked to cancel them?
So is it I’m missing something or is there the correct code to remove the items from the list, I can see somewhere that removes the modules in use which works, yet no where that voids the items in the $skip array; which has been merged with $GLOBALS["addons_skip_module"] array….

?




TopTop
« 1 (2) 3 4 5 ... 131 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

54 user(s) are online (34 user(s) are browsing Support Forums)


Members: 0


Guests: 54


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