xoops forums

Forum Index


Board index » All Posts (wizanda)




wizanda

Home away from home
Posted on: 2016/2/2 19:46
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#1

Idea for a Themes Module

Was just pondering changing the many CSS settings on the site, and thought how could add it into XOOPS core....To have CSS edit spaces for changing the theme, built into XOOPS.

Yet you could do the same in a module, create a users theme generator, having one default main layout theme with everything required, such as clear CSS titles, and places to adjust everything.

Then you could have it each user, could have their own CSS driven layout.

There would need to be a CSS cache folder; where each user has its own CSS, loaded into the default theme.

Anyways just an idea, and not really a request; just thought to share it.


wizanda

Home away from home
Posted on: 2009/7/25 21:44
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#2

Re: Xoops 2.3.3 and PHP 5.3

On line 94 remove the & from =& it wasn't needed.
$xoops = new xos_kernel_Xoops2();

Add @set_magic_quotes_runtime() will stop it showing.


wizanda

Home away from home
Posted on: 2009/4/21 12:19
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#3

Xoops Assigning a Variable by Reference

Just to let you all know, that if you assign a variable by reference; it’s as stated a variable and not a function or class….
The reason being is from research found; it’s a reference point by variable….
So for example:
$tpl =& $xoopsTpl;

Will make the data in $xoopsTpl, change when anything in $tpl is changed….
$tpl =& new Funky($monkey);

How can it be referenced, if there is no variable associated with the transaction?
$tpl =& $handler->Funky($monkey);

This implies to use the $handler as a reference point… If you change $tpl how would it be sent into a function to change a variable, same within classes…..


wizanda

Home away from home
Posted on: 2008/9/17 11:12
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#4

Newbb Sync by Case Admin Hack for Dev

Something I mentioned to some of you awhile ago, yet never got around to actually making was really very simple to accomplish….
...To be placed in the current Misc form...

$form .= '<select name="synCase">';
$form .= '<option value ="rate">rate</option>';
$form .= '<option value ="report">report</option>';
$form .= '<option value ="post">post</option>';
$form .= '<option value ="topic">topic</option>';
$form .= '<option value ="forum">forum</option>';
$form .= '<option value ="category">category</option>';
$form .= '<option value ="moderate">moderate</option>';
$form .= '<option value ="read">read</option>';
$form .= '</select>';

...
Changing the original to not be as default and only when per itemreducing server load...

if(
$case $_GET['synCase']){mod_loadFunctions("recon""newbb");
newbb_synchronization($case);}


This is from the Admin sync of Newbb 4 and partially 3, and is for the Dev to incorporate. These then make it perform one action per request on a large site, else it will fail otherwise.


wizanda

Home away from home
Posted on: 2008/7/27 15:19
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#5

Re: Plan on how to merge 2.2 and 2.0

Since on topic of merge sorry this wasn't earlier, yet had a think about it and here is a better way for future compatibility :
common.php
$xTheme = new XTheme($xoopsConfig['banners'] == 1in_array(3$xoopsConfig['debug_mode']));
<--------------------------
add below here
$xoTheme 
=& $xTheme;

That for our $xoTheme object....Next in class/theme.php somewhere within the class xTheme:
/* added for compatibility */
function addStylesheet($src ''$attributes = array(), $content ''){$XaddStyle $this->addCSS($src,$attributes,$content);
return 
$XaddStyle;}
function 
addScript($src ''$attributes = array(), $content ''){$XaddScript $this->addJS($src,$attributes,$content);
return 
$XaddScript;}

Then that's to redirect all references automatically to the other version doing the exact same thing


wizanda

Home away from home
Posted on: 2008/7/27 13:46
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#6

Re: Plan on how to merge 2.2 and 2.0

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.


wizanda

Home away from home
Posted on: 2008/7/23 10:53
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#7

Re: Article Rendering Html code in PHP5

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....


wizanda

Home away from home
Posted on: 2008/6/26 9:17
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#8

Re: Would like to recommend Servage again

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....


wizanda

Home away from home
Posted on: 2008/6/25 15:06
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#9

Re: User Authentication is screwed up, duplicate loginnames, new users cannot register.

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


wizanda

Home away from home
Posted on: 2008/6/24 8:54
wizanda
wizanda (Show more)
Home away from home
Posts: 1583
Since: 2004/3/21
#10

Re: Why is the 'session.use_trans_sid' directive dangerous?

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



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