Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 223
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 224
Total: 224

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rock Lee

Pages: 1 2 [3] 4
31
General SMF Forum / Re: Update detect mobile mode PHP5 to PHP7
« on: November 16, 2019, 06:57:21 pm »
Of course I attach it now

32
General SMF Forum / Update detect mobile mode PHP5 to PHP7
« 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!

33
Pretty Urls / Re: prettyurls - TroubleShooting.wiki
« on: October 10, 2019, 11:37:09 am »
Could be empty if you running a cmd via cron job or manually php via cli

https://stackoverflow.com/questions/48579283/when-request-uri-can-be-empty

I will look at it thank you very much! ;D


Regards!

34
Pretty Urls / Re: prettyurls - TroubleShooting.wiki
« on: October 09, 2019, 05:49:30 pm »
I do not know if it is the site but I have a query since when reading and applying what it says above the problem was solved however sometimes it marks me:

Code: [Select]
https://www.bombercode.net/foro/index.php?action=prettyurls;sa=error;page=404
8: Undefined index: REQUEST_URI
Archivo: /public_html/foro/Sources/PrettyUrls.php
Línea: 727

The line that marks me is $row['body'] = str_replace("%filename",$_REQUEST['REQUEST_URI'],$row['body']); but if you access this url, it visualizes it as it should be ... Can it be due to the configuration used in my accommodation?


Regards!

35
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 06:09:16 pm »
I will turn to them thank you very much he will be able to advance a lot!


Regards!

UPDATE: I could solve it, I should simply generate this sql query also in the table "smf_board_permissions" :)

36
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 05:45:37 pm »
Tells me that
Code: [Select]
#1060 - Duplicate Column Name 'addDeny'

Regards!

37
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 04:40:01 pm »
If it worked now but stopped on process 13 and tells me:
Code: [Select]
Removing all guest deny permissions...done
!!
Error!
Unknown column 'addDeny' in 'where clause'

And it doesn't let me continue...


Regards!

38
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 04:14:32 pm »
Download the latest version of the page of simplemachines 2.0.15


Regards!

39
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 04:02:19 pm »
Now it is displayed correctly but the following error still appears:

Code: [Select]
The upgrader found some old or outdated files.

Please make certain you uploaded the new versions of all the files included in the package.

Click here to try again.

I reloaded all the files in case there was one missing but it remains the same.


Regards!

40
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 03:22:31 pm »
Only the update to branch 1.1.21 is executed but it does not allow me to update to 2.0 all these errors appear to me although all the files are present.


Regards!

41
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 03:02:53 pm »
I would try to upgrade PHP to version 7.1 if you can.
Or install the mysqli instruction.


Something strange happens when wanting to enter the update.php file does not open it is as if it did not exist: / I will also try the PHP now I tell you it comes out.


Regards!

Update: PHP 7.0 and 7.1
Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /home/public_html/foro/upgrade.php:112 Stack trace: #0 /home/public_html/foro/upgrade.php(45): initialize_inputs() #1 {main} thrown in /home/public_html/foro/upgrade.php on line 112

42
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 02:37:40 pm »
Moving some codes I managed to start update 2.0 although I throw the following error:

Code: [Select]
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/s0568048/public_html/forooo/upgrade.php on line 47
As soon as he tried to use the file you left me it gives me many errors but basically it sums up "Notice: Undefined index: upgrade_step in"


Regards!

43
General SMF Forum / Re: Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 01:29:38 pm »
Several errors such as the calendar date, null values, which I solved until I got caught in this error. I tried several solutions appeared in SMF but I can not view the topics although the user section appears correctly. Apparently the processes could not be completed correctly, so I was trying to repair the errors that appeared, but as for the issues, I cannot solve it (I think it is the only thing I need to run 2.0 successfully).


Regards!

Update: the affected line itself is:
Code: [Select]
WHERE $user_info[query_see_board]" . (empty($modSettings['countChildPosts']) ? "
AND b.childLevel <= 1" : ''), __FILE__, __LINE__);

From what I see the database has 34 tables so it did not start (rather it does not let me start the update to 2.0) although I did run the update to 1.1.21 because I was 1.1.18 ... I want to run 1.1.21 (install a clean one and it works as it should in my hosting) and when importing the database and fixing the errors it marked me it was solved but the latter did not manage to find the problem in particular to start the update necessary to the new branch.

44
General SMF Forum / Problem update 1.1.21 to 2.0.15
« on: October 06, 2019, 12:45:14 pm »
They tried to update this forum without success and do not have a backup copy, I was trying to get to the underlying problem that apparently could not convert the database correctly. Try to repair the errors that were appearing but I reached a point I can not move forward and I do not quite understand how I should proceed. If I run the forum in 1.1.21 the error that marks me is:

Code: [Select]
Unknown column 'b.numPosts' in 'field list'
File: /home/public_html/Sources/BoardIndex.php
Line: 84

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.21, while your database is at version 2.0 a. The above error might possibly go away if you execute the latest version of upgrade.php.

when I run in version 2.0 it appears to me:

Code: [Select]
Unknown column 'add_deny' in 'field list'
This is why I am doubting because he apparently made a half conversion... If someone can help me, I will appreciate it very much.


Regards!

45
Presales for Products / Re: PrettyUrls SEO Pro
« on: October 01, 2019, 09:09:38 am »
Perfect, in a few hours then I buy the modification. Thank you for clarifying my doubts!


Regards!

Pages: 1 2 [3] 4

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal