Skip to content
FREE & OPEN SOURCE Million Dollar Script is a free WordPress plugin for sponsor walls, campaign grids, fundraiser boards, and premium add-on workflows.

Modifications

Fonts and layout

Started March 4, 2019 by Atreiu

Hi,

Can you suggest me how to insert the fonts? I tried to edit main.css but the website does not recognize the new fonts, despite being part of the official Google collections.


And then you know show me a good program for Linux or OSX (but I have a very old system in OSX, 10.6 in fact I tried KompoZer and Dreamweaver, but Dreamweaver I find it too dispersive). With KompoZer I found problems in the publication instead, otherwise it was almost perfect. It does not save the edited pages correctly and prompted me to edit the main manually based on the codes I produced with the CSS. I'm not ignorant in CSS, but I'm not even an expert. I also tried Bluegriffon and Pinegrow, but I would like something more easy, despite being rich in functionality (but I do not need ahha)

Modifying the main.css I realized that I can edit the entire homepage, but unfortunately when the audience there are parts that are not recognized by the system and then publishes the changes in half.

....Or if you can just show me a map of the pages and files of the site, but I think this is a secret, right? XD

Thank you!!

147 replies

Hi there,

If you're adding Google fonts you also have to add the line to the /html/header.php and /users/header.php to load their javascript which you can get from the Google fonts site when selecting fonts.

There is also /users/style.css which has some styles for the /users pages.

I use all of the JetBrains IDE's for development. For this software I use PhpStorm.

I'm not sure what you mean about a map of the pages and files of the site. You can browse the files to see all of them. Is there something specific you're looking for?

Hi,

In which file should I add the string?

I would like to understand how the script file shortcuts are set. For example: If I imposed colors for the areas of main. CSS and after publishing part of these areas I do not see them, I suppose there are sections set in other files. I talk about the homepage, then clearly I would like to change also the layout and colors of the registration, authentication and payment pages. At least I would understand the names of the files where I can make changes, then I arrange myself. I do not care a translation, I saw another topic for this question, but now I'm not interested. Thanks for the quick response and for the support!

If you're referring to the Google fonts line you can add that above the tags in the /html/header.php and /users/header.php.

If you want to edit the styles you can edit them in /main.css and users/style.css.

Actually you may have to also make sure to add the Google fonts line above the line where it imports the main.css and style.css to be able to use them in those files.

Ok thank you! I try and let you know!

Instead of the programs do not know a good one, excluding those that I have listed, with WYSIWYG system?

Have you tried https://atom.io/

Hi,

Not really what I was looking for, I tried it a bit, but anyway thanks :)

Hi,

I have a problem with status_outer, in the sense that is not charging more, I must have made some mess when I changed the code. Could you write me here the correct string of the iframe, please?

Thank you

Are you referring to this: https://gitlab.com/MillionDollarScript/MillionDollarScript/blob/dev/html/header.php

I did it, it was not about the code. Can you tell me how I can change the font of the same iframe? I'm trying this way and I put the font string in the outer head too, but it does not recognize it.

Thank you

Try adding the font line to .status_body instead because it can't go through the iframe like that.

Ok, perfect, thanks!

Hi,

I have trouble changing the background of the body in some pages of the user. Is it possible to check another CSS file in addition to menu and style?

Thank you

There is a /users/style.css which might affect some things but I believe the main.css also loads on that page.

Which page are you trying to change? You don't have to necessarily paste a link if you don't want to but if I knew what page I could test and see.

Hmm that might be tables in those areas. It's possible the tables have a background color set directly on them somewhere. Wouldn't be surprised. You could try setting some CSS like table,tr,td {background:transparent !important;} Although that might affect the headings, not sure if they are tables or use thead or what.

I deleted your post because it had a bunch of html in it that was messing up the page.

Sorry I was wrong to put the (code) in the post, in fact I was editing it. You did well. Yes, I think they are tables, I noticed, but the background lower is what I can not edit. Ok, I'm trying in the morning, here are the 12am, thanks a lot!

Hi,

Unfortunately nothing, I tried in different ways. It's like it resets automatically.

I tried to put "#000 !important;" or "#000;" in all.

I noticed that even the edge resets, but always and only the body.

On style editor

Excuse the ignorance, but the HTML of the page in which file is saved?

Because what I have in  "Inspector " is not saved everything in style.css, if I open the files of the site *.php do not have HTML lines, clearly.

I read the guides and because the page is not "physically" a page. html, there should be no problem if I do an index. HTML for the home and an index. HTML for users, right? So I solve the problem without messing with PHP https://milliondollarscript.com/page/4/

Hmm, I'm not completely sure what most of what you're saying is. However if you're trying to change the background color of something you only should have to edit the main.css file.

If you can show me a screenshot or a link of what exactly you're trying to change I can give you some CSS to change it.

I would like white in black color

Quote from Ryan on March 9, 2019, 10:18 am

Hmm, I'm not completely sure what most of what you're saying is. However if you're trying to change the background color of something you only should have to edit the main.css file.

If you can show me a screenshot or a link of what exactly you're trying to change I can give you some CSS to change it.

The solution would enter the , but I did a test inside the file signup.php and I did not succeed, maybe I was wrong the location of inside the php code, but I did several tests and I got three errors: A) Nothing, it was not loaded b) is loaded, but immediately below appears the same page as I now appears, with white spaces c) does not load the page

OK it sounds like maybe there are some inline styles embedded in a file somewhere that might be affecting it. I'll see what I can discover.

Ok, thank you.

The boxes for registration go well white

The style affecting that area seems to be the inline style on the div in the /users/header.php file which explains why changing styles for table elements has no affect.

The best solution would likely be to move those styles on that div into the main.css and give that div element a class name instead of using inline styles there. I'm not too sure why it's using inline styles but probably was a quick fix for something somewhere along the line.

So ideally in the /users/header.php file you would change:

background-color: #000;

border-color:#C0C0C0;

border-style:solid;

padding:10px;

} Or whatever you want it to be. Then you can edit that style in the main.css instead of having to edit the header.php file.

It worked! Perfect, thank you very much!!

Hi, excuse me again... The same problem appears in the "Manage my pixels " footer, between the footer and the grid remains a white stripe. The code refers to the same code as the first problem.

I tried to change it or to color it with another colour, but it doesn't save it and resets it. On the footer page there is nothing about this.

Likely there is a similar line in another file somewhere. A quick search finds it here:

/users/order_pixels.php line 934

/users/publish.php line 621

/users/select.php line 930

I wouldn't be surprised if similar lines were in other places. It seems possible that it could be due to converting tables to divs in a number of places and inline styles were used as a quick fix.

I solved it, in publish. But if I wanted to change this string in the Login page, where I enter user and password?

In style.css you fail, in login.php and login_functions.php there is not even in the two pages of the language.

One last thing, however, if I wanted to add a banner in the future to that strip that I just modified, I would risk ruining the pixels by modifying publish.php?

Thanx a lot!

I looked at the guides of the site, I did not put background image, but I wanted the blocks of another color.

In the Manage Grid I have selected the new blocks and I have also uploaded with FileZilla for security that goes well.

On the homepage is all OK, I see a white background and when I load the page I see the background of the color I selected below, so I think is normal.

On the user's Manage Pixels page, when I enter with my user, it does not load the grid.

Do you have error reporting enabled in the Main Config? Do you see any errors in your web server error logs?

In Main Config no, also because there is little to review, you run it the first time and maybe another to refresh. In Manage Grid sometimes I have problems loading blocks, but it solves everything by clicking on the image with the right button and selecting the option to reload the image. The same blocks I uploaded them to the Users folder on the server via FTP.

In Pixel Inventory > Backgrounds

If I click on Disable it remains the symbol of the image that does not load. This is because I had tried to upload an image, then I gave up for other reasons, but I thought it still had not loaded.

Is there a pixel limit that I can make available on the page?

Please enable error reporting in Main Config. Set the Error Reporting option to 24567 and try to reproduce your issues and check your web server error log for errors.

Also try to raise the Memory Limit in the Main Config if you haven't already.

I am addicted to hosting with non-personal server, I do not think I can see the errors. I can write to the assistance and wait for an answer for tomorrow, but I doubt that I will have a server error report.

I put the error in the box as you told me and I increased the memory.

The grid in the Manage Pixels is still an "image not loaded".

You can check in the folders for error_log files. Many hosts have it setup like that, especially if they have cPanel. For example /users/error_log or /error_log or /admin/error_log may all exist and store errors. Or you might be able to find it in your hosting control panel if those files don't exist otherwise it could be located elsewhere and you might have to contact your host about it.

Hi,

Unfortunately they do not want to give me access to this information, there is no other way?

I've never heard of a host that doesn't let you access your error logs. You may want to find a better host.

If that's the case then I doubt they would let you use ini_set too to change where the logs are stored but you could try entering this in the config.php below the error_reporting line. Be aware it will be overwritten if you save your Main Config. ini_set('ignore_repeated_errors', true); ini_set('display_errors', false); ini_set('log_errors', true); ini_set('error_log', DIR . '/error_log'); ini_set('log_errors_max_len', 1024); Then try to reproduce errors and see if you can see an error_log file in the same folder as the config.php. If not you can try to change display_errors to true and try to reproduce them again and see if you can see them on the screen but that might mess a lot of things up.

In fact I have already programmed the transfer to another provider, but I would like to terminate the configuration, as far as possible. Okay, check it out.

Hi,

Waiting for the transfer I did as you told me and the log is this http://oneclickpaste.com/1863/

Password: 9WZdO

However the image is part of the file show_map.php, taking the address with the right mouse button you have that name at the end.

My security software won't let me visit that link due to threat of data loss.

However I can see what you posted originally in the email I got from the forums.

It looks like it's running out of memory. All you can do is try to raise the memory limit option in the Main Config. However not all hosts allow you to change it and if that doesn't work then you would have to contact your host to see if there is another way to raise your PHP memory limit.

I think for this problem I'll wait for the transfer that I will do in a short time because in the FAQ I found that I can create a file to increase the memory, but up to 128, while in the script I had turned up to 256

Yep depending on your host you can try different methods of changing php.ini options.

The next provider should be better, I've already tried it for another project. I'il Check. But then the file show_map.php has nothing to do?

That file tries to display the grid but if your grid isn't processing properly then it won't be able to show it.

Hi,

I have everything on a new provider, already I had decided to change it, and the problem of the preview grid in the user pixel manager is still there. Maybe I have to rework the script? But before that I have another little problem. On the homepage I see this error:

The file: /web/htdocs/www.mywebsite.com//pixels/main1.gif doesn't exist. Please process your pixels from the Admin section (Look under 'Pixel Admin')

I believe that the error depends on the site, but I would understand where to change this pointing string to the site; What I mean is that if you notice, it reports two // slash instead of one. In The main config is all regular, in the Config. php that I had to edit is all smooth in the #define, the rest I have not looked, but I have not seen the Internet address further down.

It's possible there is an extra slash at the end of the BASE_PATH variable or at the start of the BANNER_DIR variable but it may also just be the output of the error.

Does it work to run the process pixels task in the admin to create a new grid?

Actually I grid below I see it, but above I see this error string. If I go into the Manage Grid I don't see the second part of the options, ie I see this

Oh, nothing, I solved. If I want to make a new grid you see everything, sorry to disturb you. If I wanted to change the old to saw as in the picture. Then I'll tell you if the problem in the Manage pixel of user still occurs.

But the first, the one with the problem on the options, I can not delete it because by default.

Hmm, all I can think is maybe it can't access the file for some reason but I thought it stored those in the database. You can check your error log for errors.

I will be gone for a few days but I can still try to check on the forums if I get a chance but I might not be able to.

Okay, that's not a problem. Can you just tell me if for the default grid I can make some changes in the database (if you know how to indicate where) or is it better that I snare the script?

They are in the banner table but the images in there are base64 encoded PNG files.

I Don't understand what images you're referring to. The default grid I managed to eliminate it in a moment.

Thanks a lot!

In the image you sent it stopped displaying at the grid block image on the right. Those images are stored in the banners table as PNG files encoded in base64. So maybe they aren't being retrieved properly or processed properly or maybe there's a bug or who knows.

Likely there is an error in your error log saying why, providing you've enabled error reporting by changing it to 24567 in the config as I've previously suggested.

Without knowing what the error is there's not much else I can do. It could be any number of issues.

I reset the script and I redid it all over again, posting the changes already made previously. Meanwhile, by chance you know tell me where I can edit this text (I would add details)?

  • Upload a GIF, JPEG or PNG graphics file
  • Click 'Browse' to find your file on your computer, then click 'Upload'.
  • Once uploaded, you will be able to position your file over the grid. I tried with style.css and I can not load the edit. I tried to look inside the corresponding page which is order_pixels.php and I find nothing. How can I do it?

I checked the "grid problem" by inserting a standard background image.

I have problems with the grid all the time, I did a lot of testing today. Now I have created a grid 1000x2000 in the admin panel. I created three images main1.gif-jpg-png and inserted them in the pixels folder. What happen?

  1. On the homepage I have a 1000x2000 grid and it's correct, the image is not the background, but it's standard, but it's not a big problem. 2a.In the user's page where it handles the pixels to be sorted I have a double-large grid, with the same image as the 3 main1 created. 2b.The problem is that the image fits in the center of the screen as if my screen had a wider resolution (I tried with two screens and the result is the same).

Has it ever happened to you?

Thank you

This is an example of how I see the grid in the admin panel, but also in the user panel (I did zoom out to make the idea, you only see one part of the grid, the rest is underneath), the fact is it would be very uncomfortable for the user (not all are so practical about Computer to understand that the grid can be further down), inconvenient for me to create areas "Low cost", but then because these two grids have a size of 2000x4000 and that of the home page is rightfully 1000x2000? Is it a voluntary enlargement of the script?

And In addition, in the user panel, the areas outside the grid can also be purchased. This can be resolved by inserting a note into the purchase page, is it true, but is it normal or is it part of my mistakes?

Hello,

I just got back home late last night.

You can change the language in the /lang/english.php file.

You shouldn't have to manually create the grid images and add them to the pixels folder. You can just go to Process Pixels in the admin and it should automatically generate them. I'm not sure if that's why your price zone screen and user screen is off or not but I guess that's possible.

If you want a different image in the background you can either edit the grid blocks and whatnot under Manage Grids or add a new background under Background which is it's own menu item on the side bar.

What are the exact steps I can take to reproduce your issue?

Adjust size of grid to 1000 x 2000?

...?

Okay, no problem, don't worry. I don't need the site to be visible in other languages, I leave it in English so they understand all the users who visit the page. For the grid I discovered another anomaly because the file "Display_map.php?BID=1" Present virtually under the home site, but "physically" you do not see, it is as if it is hidden has parameters for the main table equivalent to 10000x20000, although then it displays (fortunately) many less, but this crashes me the stats in top right where it sees about 8m px.

I would simply like to see the 1000x2000 grid in all three pages, in the same way: Homepage: Grid at the center 1000x2000 (okay also 1001, since it is the standard width of the frame) Admin panel: Grid at side or center User panel: Grid at side or in center

If the custom background is a problem I can also give up, the important thing that the grid does not have more problems.

thank you!

You can edit the language that you wanted to change in the english.php file. That's where you edit it. It's in there somewhere and that file is a mixture of PHP and HTML.

I'm not completely sure what you're trying to say in the rest of your post but I'll try to help anyway.

If you want multiple grids you can create new grids in the MDS admin under Manage Grids. Each grid will have a new BID #. These BID numbers correspond to the Grid ID column under Manage Grids.

You should also be able to copy the iframe HTML from the Get HTML Code and paste that code into your index.php file or wherever you want it to appear. You may have to also adjust your CSS to match.

Each grid has separate stats frames as well which you can put into your html/header.php file or wherever you wish to display them at.

It's possible you have an option enabled in the Main Config called: Display a grid in the background?

That will display a grid behind your grid on the front-end and it's enabled by default. It just causes it to display a grid instantly when the page loads and then your real grid is loaded over top of it.

If you're just saying you want the grid to be the same in the admin and on the users page as it is on the main page then this isn't how it works. These are all separate grids for separate things and display with different options enabled depending on the page you're using. For example the Prize Zones page displays the selected grid with it's associated price zones. The Not for Sale page displays it with it's associated not for sale data. The users page displays it with the normal grid but also sometimes with other things like areas that are reserved, etc. so that users don't pick those areas for their pixels to be.

It's quite possible there is a bug somewhere that you're experiencing but I'm not sure how to reproduce it without any steps to do so and I can't tell what it might be without any error logs to see.

Hi,

I tried to look at the sections you pointed out to me: The section of the HTML code that you have indicated I have never considered, but the code is the same as the homepage. Maybe with the problems of the homepage I came to the head, even if the moment I save the image, to see the size, I find that it is 1000x3000 but to look at it looks like 1000x2000. I No longer see the images in the administrative panel and in the user section, I see an empty image. I can't manually edit those images, or via FTP?

I'm using Brave, before I used Firefox and Firefox developers, sometimes I do tests on Chromium.

The grid images are generated automatically when you run the Process Pixels task in the admin and that process is also run automatically at times such as when users make purchases or orders expire or are deleted etc. If it doesn't update the grid automatically you can run Process Pixels and generate them.

I'm trying again Tomorrow. I Just do not want to regenerate the script again :/ You can not tell me from which file generated the image show_map.php?BID=****numbers ?

Thank You so much for your patience anyway!

Hmm, I'm not really sure what you're asking.

That /users/show_map.php is a PHP file and it generates an image dynamically based on the various options that you've set for your grid. So when you visit it the image is generated on the fly. This is because it will normally generate different images for different users depending on what state the grid is in. It uses a 3rd party library called Imagine to generate images on the server.

Hi,

After I clicked on Process Pixel, waiting for the loading of the page that sends the data to the srv, I have no output message. Is that correct? I have a blank page.

You should check your error logs for errors then if the page is blank.

This is the log today, as I have been engaged in other. Of operations I did only that of the process grid, then I made a backup and I think I will reload the script if there is no other solution. Sat, 23 Mar 2019 14:25:36 GMT [error]  - www.WEBSITE.com - AH01215: PHP Warning: Use of undefined constant ADMIN - assumed 'ADMIN' (this will throw an Error in a future version of PHP) in /web/htdocs/www.WEBSITE.com/home/admin/orders.php on line 46: /web/htdocs/www.WEBSITE.com/home/admin/orders.php, referer http://www.website.com/admin/menu.php Sat, 23 Mar 2019 14:25:36 GMT [error] - www.WEBSITE.com - AH01215: PHP Warning: Use of undefined constant show - assumed 'show' (this will throw an Error in a future version of PHP) in /web/htdocs/www.WEBSITE.com/home/admin/orders.php on line 263: /web/htdocs/www.WEBSITE.com/home/admin/orders.php, referer http://www.website.com/admin/menu.php Sat, 23 Mar 2019 14:25:36 GMT [error]- www.WEBSITE.com - AH01215: PHP Warning: Use of undefined constant show - assumed 'show' (this will throw an Error in a future version of PHP) in /web/htdocs/www.WEBSITE.com/home/admin/orders.php on line 285: /web/htdocs/www.WEBSITE.com/home/admin/orders.php, referer http://www.website.com/admin/menu.php Sat, 23 Mar 2019 14:00:26 GMT [error]  - www.WEBSITE.com - AH01215: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 40960 bytes) in /web/htdocs/www.WEBSITE.com/home/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php on line 51: /web/htdocs/www.WEBSITE.com/home/admin/process.php, referer http://www.website.com/admin/process.php Sat, 23 Mar 2019 14:00:25 GMT [error] - www.WEBSITE.com - AH01215: libpng warning: Interlace handling should be turned on when using png_read_image: /web/htdocs/www.WEBSITE.com/home/admin/process.php, referer http://www.website.com/admin/process.php Sat, 23 Mar 2019 07:42:00 GMT [notice] - www.WEBSITE.com - AH00163: Apache/2.4.38 (Unix) configured -- resuming normal operations Sat, 23 Mar 2019 07:42:00 GMT [notice] - www.WEBSITE.com - AH00094: Command line: '/apache/bin/httpd -D FOREGROUND' Sat, 23 Mar 2019 07:21:00 GMT [notice] - www.WEBSITE.com - AH00163: Apache/2.4.38 (Unix) configured -- resuming normal operations Sat, 23 Mar 2019 07:21:00 GMT [notice] - www.WEBSITE.com - AH00094: Command line: '/apache/bin/httpd -D FOREGROUND' Sat, 23 Mar 2019 06:14:00 GMT [notice] - www.WEBSITE.com - AH00163: Apache/2.4.38 (Unix) configured -- resuming normal operations Sat, 23 Mar 2019 06:14:00 GMT [notice] - www.WEBSITE.com - AH00094: Command line: '/apache/bin/httpd -D FOREGROUND'

It looks like it ran out of memory. You can try increasing the Memory Limit option in the Main Config or by other methods if that doesn't work.

Also, there is an error about libpng: libpng warning: Interlace handling should be turned on when using png_read_image

This might indicate an outdated version of PHP or libpng because I've never gotten that error when testing before. Are you able to send me an image that causes that error so I can try to reproduce that?

Quote from Ryan on March 23, 2019, 11:08 am

It looks like it ran out of memory. You can try increasing the Memory Limit option in the Main Config or by other methods if that doesn't work.

I changed providers and now I'm using a good provider that does not allow me huge possibilities, but 512Mb for a site that from a size of almost 25Mb, and is in Linux, I would say that are more than enough, no? In Addition the script allows to run at a maximum of 256Mb. What Other solution can I choose?

 

Quote from Ryan on March 23, 2019, 11:13 am

Also, there is an error about libpng: libpng warning: Interlace handling should be turned on when using png_read_image

This might indicate an outdated version of PHP or libpng because I've never gotten that error when testing before. Are you able to send me an image that causes that error so I can try to reproduce that?

I'm using the version 7.2 of PHP.

I don't understand what image I have to send, let me understand. Do you want me to send you a picture of page imagine.php and page process.php?

 

However, about the images, in the settings of the main config I put the options in this way, are correct?

I can change the PHP version with an older one if needed.

I meant the image that it was trying to process at the time you got that error. I'm not sure if it's one you've uploaded or maybe just the grid. But that's ok. It's probably just an outdated version of libpng if I had to guess. Do you know what OS the server is running? It should say in the Server Info section as part of the PHP info output.

PHP 7.2 should be good enough.

I usually set it to PNG output for the grid image because it tends to look a little nicer to me most of the time.

Unfortunately I found that I have some problems with the provider because in the information I see a PHP version that is the 5.4, but in cpanel I can view the 7.2. The anomaly is due to the fact that if I change with the 7.2 or the 7.1 the changes don't go to fruition, now I have to wait for support to give me an answer. I still wanted to try to recreate everything with the first configuration, now maybe wait an hour or two to see if I have an answer and let you know. The operating system is Linux, the GD libraries is all enabled. In the cpanel, PHP info I see the 7.2, but system, in the domain information, inside my general panel I see 5.4.16. I await what they say. Ok, I'll set up PNG then.

OK I guess it doesn't tell you the full distribution.

Yep, it should be possible to switch PHP versions in your cPanel. If you're doing that and it's not working then the host may not have things setup properly.

You would definitely save yourself a lot of time and headaches by using the recommended host.

But I don't think it depends on the host, it's probably an internal bug they have. Now I await their confirmation, hoping that it arrives by tomorrow.

Hi, Yesterday I was wrong, the anomaly consisted of a visualization that from the provider to its users showing the basic PHP version in the general cpanel, but in the cpanel of the settings you actually see that I have the version 7.2.15.

I redid it all over again, very calmly, being waiting for everything to be correctly. I created the 1000x3000 grid (I finally decided to put back 3000) and it was all OK. I Load the background and I no longer see the grid, I see the symbol of the image empty, as in the figure.

Then I stopped, I looked at the error log and found this below, then I wrote this post.

Sun, 24 Mar 2019 16:29:18 GMT [error] - www.--.com - AH02811: script not found or unable to stat: /web/htdocs/www.--.com/home/cgi-bin Sun, 24 Mar 2019 16:29:13 GMT [error] - www.--.com - AH02811: script not found or unable to stat: /web/htdocs/www.--.com/home/cgi-bin I, as in the previous provider, I don't have the folder cgi-bin, I have to create it?

I await you.

I think those errors might be unrelated since MDS doesn't use the cgi-bin folder for anything. If you've restarted from scratch again make sure you've changed the error reporting to 24567 again and raised your memory limit.

Also make sure your files and folders have the correct permissions and the necessary folders are writable by the web server user. Those would be /pixels, /admin/temp and config.php and maybe some others which I'm forgetting.

Hi,

I haven't forgotten anything believe me. I reinserted the error, I did upload the image again and the image is empty. The memory is at most from the beginning. The permits are corrected from the beginning.

Something is wrong because after I entered that error 24567, which I had not entered in the config because I thought it was not useful (now I have a log of errors that I check, not as the old provider), the problems are back to those two days ago or the Grid sees me 30mln of pixels instead of 3mln, the image I load for the background in the admin panel does not vary and I have these errors:

Warning: Use of undefined constant BID - assumed 'BID' (this will throw an Error in a future version of PHP) in /web/htdocs/www.---.com/home/admin/blending.php on line 40

Warning: Use of undefined constant action - assumed 'action' (this will throw an Error in a future version of PHP) in /web/htdocs/www.---.com/home/admin/blending.phpon line 98 Image Blending - Allows you to specify an image to blend in with your grid in the background.  (This functionality requires GD 2.0.1 or later)

You could not tell me if I have to make changes to PHP. ini? Currently it is so

Thanx

It looks like you're still running out of memory. Are you able to send a screenshot of your grid settings?

If you are changing the blocks in the left column to 1000x3000 those are each a size you set on the right which are 10x10 by default. So you would then likely want to change the blocks to 100x300 instead in order to get a grid of 1000x3000.

Hi,

I though I would like a grid from 100x3000, or at least 100x2000. Yes, I left 10x10 each block because otherwise you do not see anything

Thank you

I was wrong to write, I meant a grid of 100x3000

The grid width and height is measured in blocks rather than pixels. If each block is 10 x 10 then if you want a grid that's 3000 pixels high you have to set your grid height to 300 instead of 3000. Setting it to 3000 will give you a grid that's 30000 pixels high which is likely why it's running out of memory.

In truth the pixels are 300.000, but I have read on the FAQ that a grid can hold even over the 2 million of pixels. Why isn't it okay now?

The php.ini files that I have posted before is correct, I don't have to change some settings?

If you set your grid width to 100 and grid height to 300 and your blocks are 10 x 10 then you will have 3 million pixels.

Your php settings should be fine.

I'm doing checks because the grid up to 100x2850 is visible, but I do not charge the background modified for 100x2850...

...

Yes maybe I did some miscalculation.

I solved almost everything thanks!! There is an error that I do not understand why I set a grid of 100x150 blocks, I loaded the background and in the administrative panel I see it correctly without white spaces, in the homepage I see 50 rows of free blocks in addition, white, under the background I have set.

The picture is 1000x1500 px

Maybe if the iframe height isn't adjusted to match in the index.php or in the main.css it could do that.

Or if you're using a background image on the grid maybe it isn't the same dimensions as the grid. It centers the image you upload as a background image though so it doesn't sound like that if it's leaving space below it.

Quote from Atreiu on March 21, 2019, 10:19 am

Meanwhile, by chance you know tell me where I can edit this text (I would add details)?

  • Upload a GIF, JPEG or PNG graphics file
  • Click 'Browse' to find your file on your computer, then click 'Upload'.
  • Once uploaded, you will be able to position your file over the grid. I tried with style.css and I can not load the edit. I tried to look inside the corresponding page which is order_pixels.php and I find nothing. How can I do it?

You're right, they were settings in the index. But instead of these settings, can you tell me which page I could find them, please?

You can edit that in either the /lang/english.php file or in the translation tool.

Excuse me, the translation tool would be the file lang.php? What exactly is it For? I load it in the administrative panel under language and then?

You can edit that text in the /lang/english.php file.

Or if you would prefer you can use the built-in translation tool which you can find in the MDS admin under Languages where you can click Translation / Editing Tool.

The language key you want to edit is probably upload_pix_description

Okay, one last thing I'm sorry about. Do you know in which pages the width and length of the homepage "div.container" is managed, in addition to header.php, index.php and main.css?

There shouldn't be anywhere else. The browser will adjust them automatically though in some cases. What are you trying to do?

If I in index.php i enlarge 200px (do not block) the image, then from 1000 I extend it to 1200 and then do the same thing in the main.css, in the files the settings are saved but not recognized by the site.

In header.php the code ends like this

I solved it. I had changed the number of blocks in width, but I saw that the grid system itself by clicking on process pixels. Thanks for everything!

Hi,

You Know I just can't change the font color in the main header status_body? Where it says Sold Available. The problem is that I have black background and the font remains black. The CSS does not store it yet it is implemented there. The frame is implemented in header or index and also inserting the color does not record it.

Then one last thing, but if necessary I check the guides, the "Not for Sale" zone I can use them for blocks of my pictures? Is There a guide on how to do it?

Thank you!!

It should work to just set the color there. Like: color: #fff; It seems to work ok for me. Maybe you have it being overridden somewhere else somehow though. You can try using !important after it like: color: #fff !important; If you want upload a background image with your images on it then you can mark areas not for sale. You can also drag and select multiple blocks at a time in the not for sale screen.

Or if you wanted you could order your own ads with a user you create and just set it as privileged in the MDS admin by editing the user and that way it won't have to pay for orders.

I finally managed! I was wrong the area in which to compile the CSS. As for the nfs zone I discovered the trick, thank you!

In truth, I tried the privileges now and I comes out the price of pixels, then for scruple I clicked on next and I get this message out: Table ' users ' was not locked with LOCK TABLESSELECT * from users where ID = ' 0 '

No, sorry, I solved. The price Appears, but then it does not charge me. I've approved the pixels, but I don't see the pixels on the homepage. I already deleted the cache.

If pixels don't appear on the grid for some reason or another you can try to run the Process Pixels task.

I have verified that when registering to the site there is no box to consent to registration to personal data, which should be obligatory (at least in Europe it is). Do Not know a script that I can insert without that I go in the website bug?

 

I don't need the page with the policy (I take care of it), I need the square where to enable the check mandatory

I don't live in Europe, I live in Canada, so I don't really know their laws. I do hear lots of stuff about them making up stupid rules that affect everyone else in the world but I imagine they are just a bunch of old people sitting around pretending to care for other reasons than to protect your privacy but not really knowing what they're talking about and surely they've never done any web development or taken care of servers. I don't specifically cater to Europeans but if they want to take the risk and use this software that's their own prerogative. I make no guarantees that it will cover their butts especially in regards to laws. However, MDS 3.0 will use WordPress so it should be easier to make it accommodate those types of things.

So if you want to modify the signup form then feel free. You will have to modify the /users/login_functions.php file and the functions display_signup_form and process_signup_form and possibly the /users/signup.php but I can't say what you would have to do since I have no idea.

I agree with you, but I live there and therefore I am obliged to report it. I just need an acceptance script, then I'll deal with the terms and conditions to be included in the text.

I just want to know how to insert it WITHOUT me going into the website bug. That Is, after the registration data I should put a box vuolta that, if not ticed, by an error in output.

Can you suggest me a search term to be entered on Google, to look for a code to make this script?

If I can only enter a message saying "By creating an account via any of the options below, you agree to our Terms of Service. " is better, but now I'm informing and I'm afraid that I will be forced to put the option with the square.

Hi,

Don't worry about the above post, I just needed a script for a normal form, nothing specific, In which if the box is not selected, the user cannot register.

If I delete a user, I also delete the pixels he bought? Also, is an automatic refund of money spent?

Thank you

Yep you just have to add a checkbox to that form and then add a check to make sure it was check when it was submitted.

I believe the orders are and pixels are deleted as well as the user but the money would have to be refunded manually if you delete them.

Quote from Ryan on March 30, 2019, 2:31 am

Yep you just have to add a checkbox to that form and then add a check to make sure it was check when it was submitted.

I believe the orders are and pixels are deleted as well as the user but the money would have to be refunded manually if you delete them.

Ok perfect!

Thank you!

Hi,

Is there a way to make the Administration pages unreachable from other IPS, the ones I use in the/admin/section? What number XXX of permission should I indicate?

You could protect them with a http auth box. Search your cpanel for directory privacy.

I'm not sure I understand why I don't find this option in my cpanel. Maybe there is an external method to create one, now I check online. The permissions of admin.php are fine at 700?

File permissions don't normally stop people from accessing them from the internet. You probably should have your PHP files at 644 and folders at 755. If you change them then your web server might not be able to run them properly. Depending on how your server is setup you might have to change your permissions but most servers are setup in a way that you don't have to worry too much if you just upload your files they usually set them automatically as 644 and folders as 755. If not then you might not have a very good host or the server or app you're uploading with could be configured wrong.

You would probably have to use HTTP Authentication. You can make a .htaccess and htusers files and whatnot but you should be able to protect a directory. If you can't then you probably don't have a very good host or the server could be configured wrong.

Providing your host is running Apache and depending on what version you can find the docs for authentication here: https://httpd.apache.org/docs/2.4/howto/auth.html

I found a htaccess and htpasswd file generator. But from what I understand I have to insert the name of folder in the htaccess file, so I should block access to the Admin folder. Could This create problems at the site?

I don't understand though because I can not log in, it is as if it does not recognize nickname and password. What is the .htuser file, I can't find anything about it?

The password file can be any name and is referenced by the AuthUserFile directive. I think cPanel makes it named passwd by default and some control panels make it named htusers by default. It would ideally be placed outside your public_html folder. You put the proper directives into a .htaccess file in the admin folder which is what you want to protect. If you read that link I sent you should be able to figure it out.

If you have cPanel then it has an option to create protected directories and you don't have to do it manually.

Maybe the function is there and I don't see it. I don't know. I looked at my file manager of the cpanel, but I seem to be able to do the same things as FileZilla. htaccess and htpasswd files I put them inside the admin folder, it is not a problem to have done a manual thing, I read the links but then I found the generators by chance. I hope that protecting the entire folder admin does not create problems at work. If I could have chosen to protect only the page admin.php I would have done, but apparently it is not possible.

Unfortunately There is this error that I don't understand what is due: When I enter mywebsite.com/admin or mywebsite.com/admin/admin.php the credentials request box appears, I enter the credentials and the box reappears because they are not recognized. There's probably something missing, but what?

File permissions are at 755.

It isn't in your file manager, it's in cPanel called Directory Privacy. Search for that in your cPanel by typing it in the top search bar when you first login.

https://documentation.cpanel.net/display/78Docs/Directory+Privacy

Or go to https://documentation.cpanel.net/ and find your cPanel version and search for it there.

I found the function you were telling me, in file manager, this creates a .htpasswd file and therefore also recognized the errors. With the password that I entered I could never log in because it does not recognize some special characters, but others do.

So the problem is solved.

Thanks anyway for the documentation.

Hi,

Since I have problems with the restricted area because in the Admin folder there are also other files and since I can not block all IP except mine because I have no fixed IP (and I don't mean to have it), waiting I try to get to an alternative solution with the provider support , you could not answer me this question, please? ==> there could be problems if I move the page admin.php in a folder "xyz", for example, in the home site (then changes the directory)? I saw that is mentioned in these files, but there is the path (the one in line 66 I do not think interests)

Yes moving the admin.php file is bound to cause issues. I've never tried it though so I can't tell you what but I doubt your admin area will work correctly if you do.

admin.php isn't the only special file you would have to block access to. If you really want to limit access to the admin area you would have to protect the entire admin folder which is easy to do with the Directory Privacy feature of cPanel. You don't have to protect the admin.php file by IP address. You can protect the entire admin folder with a username and login using the Directory Privacy feature in cPanel. You don't have to move the admin folder in that case because people should not be able to get through that login box. Often those boxes are protected by a type of firewall on the server too depending on how your host is setup, although I wouldn't be surprised if this host wasn't setup properly and didn't have all the necessary security features in place.

You could also look into using ModSecurity but that's opening a whole other can of worms.

Hi,

Then there are two cases: I have yet to change providers but I have to be sure it is a question of provider, or I have to work better. I say this because I did as you say, I protected the entire admin folder with the security system that automatically generates .htaccess  and .htpasswd files and creates bugs, that is when I go into Buy pixels or other section of the login and sometimes even in homepage, the password request window appears. If u click OK u can surf quietly, but a basic user takes panic.

No, I don't want to use the IP option, in fact.

Thank you

I have to only protect admin folder, right? Because subfolders If I am not mistaken are used by the site

I understand what you mean now. Sorry, I didn't understand exactly what you meant before, probably because I was too tired.

I'm not sure why it would be trying to access the admin folder from the frontend but I'll test and see what's up.

In the event that some subfolder is accessed you can actually allow access to it with another .htaccess file inside it. However it shouldn't be doing that so I'll fix it if necessary.

I don't seem to be able to reproduce that issue.

Do you have any files linked from your admin folder, such as your logo or something?

Please try to check your browser's developer tools/inspector and go to the Network tab and then try browsing your site to see which URLs are causing the login box to appear.

No, the logo is in the root. Under the folder admin/temp there is the background that is processed after you have clicked on Process Pixel, in fact since I'm trying to protect it I have to reset the process to bring up the pixels bought with the right images.

Probably there is a flaw regarding the jquery because the popup warning that the site uses cookies requires a jquery library, but perhaps that can be solved with another system, I have to verify.

Well I'm fine that this provider I found it on offer and I paid it to 1/3 of what I will pay now Fastcomet, it is true that it was on offer, but I realized that the assistance is able to help me only with WordPress, in fact with a site that I have in WordPress at the beginning were so available....

I also change because I'm afraid that if something really serious happens and they can't help me because of incompetence / unavailability, how can I? I hope by tomorrow morning to complete all the processes, since anyway the domain remains with these imbeci**s still x 2-3 months waiting for it to have the possibility to transfer it and now I just have to transfer the hosting to fastcomet.

It doesn't access the image directly. It's loaded through a PHP script on the frontend so that wouldn't be the issue.

The images they upload as part of the ad aren't stored by default in the admin folder either. I believe they are stored in the pixels folder.

jQuery isn't used on the frontend. It's only used on the Not for sale screen in the admin.

The popups that you get when you hover over ordered blocks don't load images from the admin folder, they load them from the pixels folder by default. You can change that path in the config so maybe you've changed it to the admin folder or something.

Maybe you are loading jQuery from the admin if you added a popup for it. Load jQuery from somewhere else outside the admin folder. Copy the files or download new ones for your use.

BTW, Fastcomet will transfer 1 site for you free of charge. Their support is phenomenal.

Quote from Ryan on April 4, 2019, 3:24 pm

It doesn't access the image directly. It's loaded through a PHP script on the frontend so that wouldn't be the issue.

The images they upload as part of the ad aren't stored by default in the admin folder either. I believe they are stored in the pixels folder.

jQuery isn't used on the frontend. It's only used on the Not for sale screen in the admin.

The popups that you get when you hover over ordered blocks don't load images from the admin folder, they load them from the pixels folder by default. You can change that path in the config so maybe you've changed it to the admin folder or something.

Maybe you are loading jQuery from the admin if you added a popup for it. Load jQuery from somewhere else outside the admin folder. Copy the files or download new ones for your use.

OK, after the transfer, I'm checking again.

Thank you for everything

Hi,

I'm taking a while, soon we will resent. Unfortunately in the confirmation email, which I have sent when registering, there aren't website paths, so I do not know how to fix the config file, is not that you could help me?

define('BASE_HTTP_PATH', 'https://www.mywebsite.com/' define('BASE_PATH', '/web/htdocs/www.mywebsite.com/home'); define('SERVER_PATH_TO_ADMIN', '/web/htdocs/www.mywebsite.com/home/admin/'); define('UPLOAD_PATH', '/web/htdocs/www.mywebsite.com/home/upload_files/'); define('UPLOAD_HTTP_PATH', 'https://www.mywebsite.com/upload_files/'

I'm not quite sure what you're asking.

The paths definitely have to be set correctly or things won't work properly. I'm not sure what they should be. It would depend where you've installed the script on your server.

If you're saying you want to change the language in the confirmation email you can do that in your language file or the translation editor.

I solved, sorry

Quote from Ryan on April 4, 2019, 3:24 pm

It doesn't access the image directly. It's loaded through a PHP script on the frontend so that wouldn't be the issue.

The images they upload as part of the ad aren't stored by default in the admin folder either. I believe they are stored in the pixels folder.

jQuery isn't used on the frontend. It's only used on the Not for sale screen in the admin.

The popups that you get when you hover over ordered blocks don't load images from the admin folder, they load them from the pixels folder by default. You can change that path in the config so maybe you've changed it to the admin folder or something.

Maybe you are loading jQuery from the admin if you added a popup for it. Load jQuery from somewhere else outside the admin folder. Copy the files or download new ones for your use.

It's not giving me trouble, maybe it was really due to the fact the unstable provider.

You could not tell me what field should I add to the page login_functions.php? I don't need to collect any data apparently, I'm looking for guides, but I do not want to change the code too much, I just want to add a box that if clicked is confirmed recording. If It is not too much trouble, otherwise I will try again. Thank you, good evening!

You have to edit the signup form and add a checkbox to it and then check if that was checked when the form is submitted.

The signup form is displayed in the display_signup_form function.

It is validated in the function above that called validate_signup_form.

So in the display_signup_form function you can add a checkbox above the submit button like: <input type="checkbox" name="agree" value="agree"> Then you can add a check in the validate_signup_form function before the return statement at the end like: if(!isset($_REQUEST['agree']) || $_REQUEST['agree'] != "agree") { $error .= "You have to agree"; }

return $error;

I didn't test it but something like that should work.

Hi,

Thank you for the answer.

I have done some tests but risk of not being able to be accessible to the form, where would you put those parameters, please? We are sure that I do not have to change even the page login_function?

There is something wrong with when the HTML part is inserted into login_function and it shows. The PHP Part If I put it in signup hides the form, I probably put it in the wrong place, but what is the right point?

login_functions.php line 316 insert: <input type="checkbox" name="agree" value="agree"> login_functions.php line 264 insert: if(!isset($_REQUEST['agree']) || $_REQUEST['agree'] != "agree") { $error .= "You have to agree"; }

Thank you very much! And sorry to bother you again. (Careful that you have reversed the lines)

Have a good evening!

Those line numbers are only really right if you haven't already modified the file. That's what they are in a freshly downloaded copy of MDS.

I reversed the lines because if you change the one above first then the line numbers for the one below won't match. So both are the line numbers before the file is modified.

If I look from the newly opened code from the zip file, at line 316 I have the HTML part with

...but I opened it with Notepad, but also with Atom. I am still at version 2, I do not know was published another version in the meantime.

Ohhh my bad, I did have the code in the wrong order for some reason. That's odd. The line numbers themselves are still in the right spots but the code was switched around for some reason. I could have sworn they were in the right order when I posted it. Maybe there's a bug in the code editor somehow. Oh well. I switched them around now.

Hi,

No problem.

I had a cache problem that I then solved, but this does not have to do with the cache: Every time an order is made I have to select "Order Expired ", complete them all again, even those already completed 10 days ago (for example) and re-process the grid. Can this bug be solved or is it normal?

I find nothing in the documentation on that.

When you edit your grid under Manage Grids do you have your Days to Expire set to 0 so they don't expire?

Here's the reason, sorry. It was at 1, I corrected.

Thank you

Hello!

Can I bother you to ask you if you can help me fix the width of the homepage? Apparently it is not automatic and the function specified in the header (html directory) is the only one in which the page width is defined, but it actually defines the width of the grid.

I managed to change the margin to the left with 10px, but if I don't arrange the right margin (currently it will be around 50px) and if it doesn't go automatically the page doesn't stay centralized. I don't know if I explain myself, anyway the margin-right or padding-right commands don't respond to decrease the space.

And then I wanted to ask you something else: there are 2 headers, one is in the root and the other I mainly work on is in the html directory. Is it correct that there are 2 headers? (I'm excluding the third header in the users folder) I ask because maybe I made a mistake and the header in the root is only a "surplus" of an old change XD.

Thanks a lot!

Hi there,

Sorry, I'm in the process of moving to a new place but should be able to read closer in a few days and try to help. If I don't feel free to post again and remind me.

Ok, alright, thanks

If you set the margin left and right to auto it might center the element.

I don't believe there is a header file in the root. Only in the html and users folder.