Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12404
Latest: azaratir
New This Month: 10
New This Week: 0
New Today: 0
Stats
Total Posts: 39929
Total Topics: 7029
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 3
Guests: 74
Total: 77

Recent Posts

Pages: [1] 2 3 ... 10
1
Bugs / Re: German Translation missing in SMF 2.1R1
« Last post by SMFHacks on Today at 02:38:42 pm »
Nice, looking forward to it!
2
Bugs / Re: German Translation missing in SMF 2.1R1
« Last post by Matthias on Today at 02:16:56 pm »
I'm currently busy translating everything into German. Depending on how my time allows.
I'll get in touch with smfhacks when its done. That is a lot of work.
3
Support / Re: Unread items issue
« Last post by SMFHacks on Today at 10:07:32 am »
Change made for next update.
4
Support / Unread items issue
« Last post by Matthias on Today at 07:00:25 am »
Version:
SMF 2.0.15
Gallery 8.0.6

If guests access the gallery (if guest access is allowed), the unread button will be displayed at every item.
After viewing the item, the unread button remains anyway, because the user is not logged in.

Open Sources/Subs-Gallery2.php
Search for:
Code: [Select]
            // Unread
 
            if (isset($setupRow['showunreadicon']))

Replace:
Code: [Select]
            // Unread
 
            if (($context['user']['is_logged']) && (isset($setupRow['showunreadicon'])))
5
General SMF Forum / Re: Update detect mobile mode PHP5 to PHP7
« Last post by Rock Lee on November 16, 2019, 07:18:13 pm »
Perfect and now I understand what is failing, thank you very much for the help! :)


Regards!
6
General SMF Forum / Re: Update detect mobile mode PHP5 to PHP7
« Last post by SMFHacks on November 16, 2019, 07:04:39 pm »
Try this file.
7
General SMF Forum / Re: Update detect mobile mode PHP5 to PHP7
« Last post by Rock Lee on November 16, 2019, 06:57:21 pm »
Of course I attach it now
8
General SMF Forum / Re: Update detect mobile mode PHP5 to PHP7
« Last post by SMFHacks on November 16, 2019, 06:44:33 pm »
It needs a proper constructor.
Do you have the whole file to share
9
General SMF Forum / Update detect mobile mode PHP5 to PHP7
« Last post by Rock Lee on November 16, 2019, 12:45:45 pm »
I am trying to move my site to PHP7.1 which did not give me major problems with the modifications that I use (I thought it would give more problems) I have only had problems with some that have to change the syntax but I am stuck with the following:

Code: [Select]
class uagent_info <== This is line 247
{
 var $useragent = "";
 var $httpaccept = "";

 //Let's store values for quickly accessing the same info multiple times.
 var $isIphone = 0; //Stores whether the device is an iPhone or iPod Touch.
 var $isAndroidPhone = 0; //Stores whether the device is a (small-ish) Android phone or media player.
 var $isTierTablet = 0; //Stores whether is the Tablet (HTML5-capable, larger screen) tier of devices.
 var $isTierIphone = 0; //Stores whether is the iPhone tier of devices.
 var $isTierRichCss = 0; //Stores whether the device can probably support Rich CSS, but JavaScript support is not assumed. (e.g., newer BlackBerry, Windows Mobile)
 var $isTierGenericMobile = 0; //Stores whether it is another mobile device, which cannot be assumed to support CSS or JS (eg, older BlackBerry, RAZR)

 // These strings cannot be used in isMobile because are way too generic
 var $genericStrings = array(
 'engineWebKit' => 'webkit',
 'deviceMacPpc' => 'macintosh', //Used for disambiguation
 'deviceWindows' => 'windows',
 'devicePpc' => 'ppc', //Stands for PocketPC
 'linux' => 'linux',
 'engineOpera' => 'opera', //Popular browser
 'deviceTablet' => 'tablet', //Generic term for slate and tablet devices
 );

 //Initialize some initial smartphone string variables.
 var $mobileStrings = array(
 'engineWebKit' => 'webkit',
 'deviceIphone' => 'iphone',
 'deviceIpod' => 'ipod',
 'deviceIpad' => 'ipad',
 'deviceMacPpc' => 'macintosh', //Used for disambiguation

 'deviceAndroid' => 'android',
 'deviceGoogleTV' => 'googletv',
 'deviceXoom' => 'xoom', //Motorola Xoom
 'deviceHtcFlyer' => 'htc_flyer', //HTC Flyer
 
 'deviceNuvifone' => 'nuvifone', //Garmin Nuvifone

 'deviceSymbian' => 'symbian',
 'deviceS60' => 'series60',
 'deviceS70' => 'series70',
 'deviceS80' => 'series80',
 'deviceS90' => 'series90',
 
 'deviceWinPhone7' => 'windows phone os 7',
 'deviceWinMob' => 'windows ce',
 'deviceWindows' => 'windows',
 'deviceIeMob' => 'iemobile',
 'devicePpc' => 'ppc', //Stands for PocketPC
 'enginePie' => 'wm5 pie', //An old Windows Mobile
 
 'deviceBB' => 'blackberry', 
 'vndRIM' => 'vnd.rim', //Detectable when BB devices emulate IE or Firefox
 'deviceBBStorm' => 'blackberry95',  //Storm 1 and 2
 'deviceBBBold' => 'blackberry97', //Bold 97x0 (non-touch)
 'deviceBBBoldTouch' => 'blackberry 99', //Bold 99x0 (touchscreen)
 'deviceBBTour' => 'blackberry96', //Tour
 'deviceBBCurve' => 'blackberry89', //Curve2
 'deviceBBTorch' => 'blackberry 98', //Torch
 'deviceBBPlaybook' => 'playbook', //PlayBook tablet
 
 'devicePalm' => 'palm',
 'deviceWebOS' => 'webos', //For Palm's line of WebOS devices
 'deviceWebOShp' => 'hpwos', //For HP's line of WebOS devices
 
 'engineBlazer' => 'blazer', //Old Palm browser
 'engineXiino' => 'xiino', //Another old Palm
 
 'deviceKindle' => 'kindle', //Amazon Kindle, eInk one.
 
 //Initialize variables for mobile-specific content.
 'vndwap' => 'vnd.wap',
 'wml' => 'wml', 
 
 //Initialize variables for other random devices and mobile browsers.
 'deviceTablet' => 'tablet', //Generic term for slate and tablet devices
 'deviceBrew' => 'brew',
 'deviceDanger' => 'danger',
 'deviceHiptop' => 'hiptop',
 'devicePlaystation' => 'playstation',
 'deviceNintendoDs' => 'nitro',
 'deviceNintendo' => 'nintendo',
 'deviceWii' => 'wii',
 'deviceXbox' => 'xbox',
 'deviceArchos' => 'archos',
 
 'engineOpera' => 'opera', //Popular browser
 'engineNetfront' => 'netfront', //Common embedded OS browser
 'engineUpBrowser' => 'up.browser', //common on some phones
 'engineOpenWeb' => 'openweb', //Transcoding by OpenWave server
 'deviceMidp' => 'midp', //a mobile Java technology
 'uplink' => 'up.link',
 'engineTelecaQ' => 'teleca q', //a modern feature phone browser
 
 'devicePda' => 'pda', //some devices report themselves as PDAs
 'mini' => 'mini',  //Some mobile browsers put 'mini' in their names.
 'mobile' => 'mobile', //Some mobile browsers put 'mobile' in their user agent strings.
 'mobi' => 'mobi', //Some mobile browsers put 'mobi' in their user agent strings.
 
 //Use Maemo, Tablet, and Linux to test for Nokia's Internet Tablets.
 'maemo' => 'maemo',
 'linux' => 'linux',
 'qtembedded' => 'qt embedded', //for Sony Mylo and others
 'mylocom2' => 'com2', //for Sony Mylo also
 
 //In some UserAgents, the only clue is the manufacturer.
 'manuSonyEricsson' => 'sonyericsson',
 'manuericsson' => 'ericsson',
 'manuSamsung1' => 'sec-sgh',
 'manuSony' => 'sony',
 'manuHtc' => 'htc', //Popular Android and WinMo manufacturer

 //In some UserAgents, the only clue is the operator.
 'svcDocomo' => 'docomo',
 'svcKddi' => 'kddi',
 'svcVodafone' => 'vodafone',
 );

I mark this: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; uagent_info has a deprecated constructor in /home/public_html/foro/Sources/Subs-mobile.php on line 247

I understand this in the form of declaring the variable will not have more compatibility with the new branch but I tried to implement it without success, I was giving code error when trying how it is in the php documentation or it does not detect the cellular part. Any ideas where I can look or can you help me with this? Thank you for reading.


Regards!
10
Support / Re: PHP error
« Last post by davejo on November 12, 2019, 12:09:47 pm »
Thank you very much, that seems to have solved that.
Pages: [1] 2 3 ... 10

+- Recent Topics

German Translation missing in SMF 2.1R1 by SMFHacks
Today at 02:38:42 pm

Unread items issue by SMFHacks
Today at 10:07:32 am

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

Powered by EzPortal