201
geekwright
Re: MySQLi Connectors Thread

Rod, great work! We need to move XOOPS into this decade, and this is one of the stumbling blocks.

I do wonder about the use of $GLOBALS. I looked up the tool from Oracle, and I see why it was added, but we already are tracking our connection in the class already, so it seems redundant and unnecessary.

I get the idea that this tool was aimed at the less structured environments where the connection wasn't necessarily available everywhere it might be needed. Since everything should go through this class, it seems like $this->conn should be sufficient.

You've spent much more time looking at this than I have. Is there some reason I'm missing?



202
geekwright
Re: QR Code Generator

Glad you found it, never mind this post

---
This has to be the source of what I am seeing:

<{includeq file="$theme_name/xoscripts.html"}>


I suspect the xoscripts.html file looks something like this (or includes something that looks like this):
<HTML
<
HEAD
<
TITLE>Frank's Recipes!</TITLE> 
<META NAME="GENERATOR" CONTENT="MAX'
s HTML Beauty++ 2004"> 
</HEAD>  
<BODY>    </BODY> 
</HTML>


Either edit that file in your theme folder and delete everything shown above,

or just remove the includeq line from the theme.hmtl since there is no sign of anything else coming from that include in any of the the output I've looked at.

Also, there is a comment like this in the title section:
<!-- irmtfan for backward compatibility -->


Delete that, or it will show up in the title is some situations.

Those two changes should get you a proper title.



203
geekwright
Re: QR Code Generator

Quote:

chefry wrote:
...but it's only picking up the name of the site and not the page name

I need it just for publisher and publisher clones


That is odd. Publisher usually sets the page title with the article title and category. The qr bookmark block grabs that directly from the title element on the page. It is looking at the same html output you would see if you did a view source on the page and look for
<title>
in the page.

I was just poking around and took a look at franksrecipes.net - it has a whole little html document inside the head element, and the page does have two titles. The first one is just a site title, the second one has all the things publisher and XOOPS would put there. Not sure why, but something must be wrong in that theme. For those pages, Chrome and Firefox both use the first title, so that is the one that the qr bookmark block gets. Fix the two title tag issue, and the block should work fine.

By the way, cool site. I'll be visiting again, I'm sure.



204
geekwright
Re: QR Code Generator

Quote:

chefry wrote:
there should be a way to realign the image in the qr block, but if there is, i can't find it. the only dimensions i can find relate to the popup, not the block


You are right, there should be, but there isn't

Until now, that is. There is a new version of the geekwright qr module here.

Each block template now surrounds the qr image with a div, with a class "qrimage". With this change, you can add to your css something link this:
.qrimage img positionrelativeleft: -6px; }


That will move the image left. You could also use width and height in the css to reduce the size if needed. That will work to a point. (You might want to increase the error correction in preferences if reducing it to less than 75% or so.)

This doesn't include Peekay's publisher mod, but the Bookmark block accomplishes the same thing for any page, not just publisher.



205
geekwright
Re: XOOPS 2.5.6 RC 1 Released for Testing on PHP 5.4

Repeated tests starting with the right archive and everything looks great here; no issues.

Thanks for the great job!



206
geekwright
Re: XOOPS 2.5.6 RC 1 Released for Testing on PHP 5.4

Quote:

Mamba wrote:

I am confused


No, I am the one confused. I managed to pick up RC0 off of comment on another topic yesterday by mistake. Once that mistake was made, it propagated through multiple installs and updates.

Never mind.

I'll see if I can repeat the tests. Sorry for the confusion.



207
geekwright
Re: XOOPS 2.5.6 RC 1 Released for Testing on PHP 5.4

Actually, there were several. The first was one currently in development, but there were versions of extcal and publisher that had issues, too. These two were probably not current, but recent.

Is there a reason that grouppermform.php doesn't have this in the initialization with all the xoops_load calls for other form components?

xoops_load('XoopsFormElement'); 
xoops_load('XoopsFormHidden'); 
xoops_load('XoopsFormHiddenToken');  // something  like this?
xoops_load('XoopsForm');
xoops_load('XoopsFormElementTray');
xoops_load('XoopsFormButton');


I tried adding this, and it seems to work. I suspect this will bite lots of modules, as the loading of the group permission form has always been self-sufficient before.



208
geekwright
Re: XOOPS 2.5.6 RC 1 Released for Testing on PHP 5.4

I ran 2.5.6 RC1 through various scenarios under both PHP 5.3.10 and 5.4.6. Overall, looks great!

The only error I encountered was this from a module added during testing:

PHP Fatal error: Class 'XoopsFormHiddenToken' not found in .../class/xoopsform/grouppermform.php ...

Same code works fine in 2.5.5 and the previous 2.5.6 alpha. Adding an include of /class/xoopsformloader.php ahead of the include of /class/xoopsform/grouppermform.php worked around the issue, and then everything seemed to function correctly. This issue was independent of PHP version.

Otherwise, 2.5.6 RC1 cleanly passed every test.



209
geekwright
Re: QR Code Generator

Quote:

Cesag wrote:
hisher -> higher


Thanks! (I'll blame the office cat; not only does he stomp on the keys, his proofreading isn't worth anything.)



210
geekwright
Re: QR Code Generator

Well, I played with a vCard block. You can find the results on GitHub on the 'vcard' branch. You can grab it as a zip here.

This experiment reminded me of one of those facts of XOOPS that I have to relearn periodically, and that is that the options of a block are limited to fitting into a MySQL varchar(255) column. This means that if the data gets too large, the block starts failing.

Aside from that, the results of testing by scanning across devices also provided disappointing results (this was expected.) As an example, defining multiple phone numbers resulted in a list of phone numbers with randomized types no matter what was specified in the vCard data. It doesn't help much to specify a fax number if ends up as a home number in the contact information.

To properly implement this on the XOOPS side would require a database component to store and edit vCards. That sounds like it would be a better fit for a Profile like module, rather than forced into QR. Even then, the results might be more of a source of trouble than convenience until there is a substantial change in the mobile space.

You are free to try it out; It could work fine in some controlled circumstances.

I'm sorry I can't bring better news.




TopTop
« 1 ... 18 19 20 (21) 22 »



Login

Who's Online

149 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

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

Latest GitHub Commits