Делаем самонаполняемый киносайт , подобие HDrezka!

Добро времени суток , хотел бы поделиться знаниями о том , как сделать свой самонаполняемый киносайт без каких-либо знаний языков программирования!   

Вы скажите, таких сайтов тысячи и каждый обладает неплохой базой фильмов, так зачем делать очередной никому не нужный киносайт, да еще и автонаполняемый? 

Знаете , я и сам не знаю ответа на этот вопрос , к тому же подобные сайты вне закона авторского права и постоянно блокируются Роскомнадзором!
Ладно давайте не будем задаваться данным вопросом , а лучше распишу и покажу вам как осуществить запуск данного сервиса и основы его работы .

Знакомство с движком, принцип работы

Велосипед конечно же никто нынче не изобретает , поэтому берём за основу весьма популярный  новостной движок под названием DLE, из описания на официальном сайте :

DataLife Engine (DLE) — это многофункциональная система управления сайтом. Благодаря очень мощной системе управления новостями, публикациями, статьями, пользователями, DataLife Engine предназначен в первую очередь для организации собственных средств массовой информации и блогов в сети интернет.

Что ж , это действительно многофункциональный CMSка , в тоже время не такая уж и сложная . 

Поэтому описывать все что и за чем , не имеет смысла, подобных тем уже имеется достаточно в сети, давайте лучше опишу какие модули задействованы

Как я уже упоминал , что киносайт автонаполняемый .
Да это так, информация раз в пол часа парсится RSS из базы данных некого сервиса фильмов и поступает на сайт уже в готовом виде с заполненными полями аналогично популярного сайта «Кинопоиск».

Менеджер задач Cron настроен на выполнение парсера раз в пол часа, если мы примерно понимает что такое менеджер Cron , то что такое парсер не совсем многим думаю понятно, поэтому поясню.

 Парсер — это синтаксический анализатор , проще говоря это инструмент (программный скрипт) для вытягивания нужных нам текстов любого вида по заданному нами шаблону.
Заданием шаблона занимается в нашем слушая встроенные в интерпретатор php функции регулярных выражений , сие чудо появилось еще в далеком прошлом из UNIX систем .

Если взять из википедии , то 


Регуля́рные выраже́ния (англ.regular expressions) — формальный язык поиска и осуществления манипуляций с подстроками в тексте, основанный на использовании метасимволов (символов-джокеров, англ.wildcard characters). Для поиска используется строка-образец (англ.pattern, по-русски её часто называют «шаблоном», «маской»), состоящая из символов и метасимволов и задающая правило поиска. Для манипуляций с текстом дополнительно задаётся строка замены, которая также может содержать в себе специальные символы.

Думаю не слишком заумно пишут и пушу , но просто знайте, что возможности регулярных выражений с работой и обработкой текстовой информации — безграничны , в этом я убедился еще восемь лет назад , когда познакомился с возможностями сего инструмента. 

Пример использования регулярного выражения.
Допустим нам нужно получить из кучи мусора  текстовой информации только адреса электронной почты, шаблон (pattern) для этого  будет следующим:

/((([0-9A-Za-z]{1}[-0-9A-z\.]{1,}[0-9A-Za-z]{1})|([0-9А-Яа-я]{1}[-0-9А-я\.]{1,}[0-9А-Яа-я]{1}))@([-A-Za-z]{1,}\.){1,2}[-A-Za-z]{2,6})$/um



не пугайтесь, все довольно просто и  расшифровывается так:

/(
    (
        (  - этот блок отвечает за логин латиницей
            [0-9A-Za-z]{1} - 1й символ только цифра или буква
            [-0-9A-z\.]{1,} - в середине минимум один символ (буква, цифра, _, -, .) (не менее 1 символа)
            [0-9A-Za-z]{1} - последний символ только цифра или буква
        )
        | - логический параметр выбирает блок 'латиница' или 'кирилица'
        (  - этот блок отвечает за логин кирилицей
            [0-9А-Яа-я]{1} - 1й символ только цифра или буква
            [-0-9А-я\.]{1,} - в середине минимум один символ (буква, цифра, _, -, .) (не менее 1 символа)
            [0-9А-Яа-я]{1} - последний символ только цифра или буква
        )
    )
    @ - обязательный знак разделяющий логин от домена
    (
        [-0-9A-Za-z]{1,} - блок может состоять из '-', цифр и букв (не менее 1 символа)
        \. - наличие точки в конце блока
    ){1,2} - допускается от 1 до 2 блоков по вышеукащанной маске (mail. , ru.mail.)
    [-A-Za-z]{2,6} - блок описывайющий домен вехнего уровня (ru, com, net, aero etc) (от 2х до 6ти символов)
)
/um - 'u' параметр позволяющий работать с кирилицей  и 'm' - читать многострочный текст

Довольно строгий образец , но зато выполняющий свои функции результативно. 

Ладно, мы тут не паттерны изучаем , а говорим о нашем киносайте…
Остановились мы на том , что мы парсим контент с некой базы данных фильмов  и постим посты автоматом запуская php скрипт по расписанию Cron-ом. 

Создаём шаблон

С этим определились , дальше дело персонализации и подборки шаблона для нашего киносайта,  что бы он был уникальным и отличающимся от других подобных.  На это потрачено немало мною времени , и результат меня удовлетворили , темные лаконичные тона которые вполне подходят для подобных сайтов , ведь каждый любит сесть вечерком за чашечкой кофе, когда солнце уже давно за горизонтом и посмотреть свой любимый сериальчик или очередной фильмец , вот тут как раз и темные тона очень хорошо подходят, от них меньше устают глаза и вам лишний раз ненужно прищуриваться , ПРОФИТ!

За основу взят адаптивный DLE шаблон «Kinopchel» 

И переделан в это

Переделывание заключалось в стандартной правке CSS кода как шаблона так и CSS встроенных в движок модулей, делается это довольно просто:

1.Заходим на сайт через браузер с поддержкой консоли разработчика, например гугл-хром, далее кликаем правой клавишей мыши по нужному участку сайта который хотим изменить и жмем на «просмотреть код»

Находим нужный блок и меняем его как нужно вам , при этом следим за изменениями  в реальном времени , после того как найдены оптимальные параметры для себя , их необходимо  сохранить на сервере , для этого

2. Смотрим расположение класса , параметра или id редактируемого блока всё в той же консоли разработчика 

3. Подключаемся к сайту по ftp , я использую для этого FileZilla и переходим по пути расположение CSS файла, открываем его для редактирования нормальным редактором, например Notepad++ выполняем поиск части кода через CTL+F по имени нужного нам элемента(div блока) и меняем его параметры на ранее нами выбранные , сохраняем изменения загружая их на сервер , обновляем страницу сайта и радуемся жизни! 

находим файл стиля формата CSS, открываем его для правки
ищем через CTL+F нужный нам элемент, изменяем его параметры
сохраняем файл и подтверждаем его загрузку (перезапись) обратно на сервер

Наш киносайт готов !
Материал предоставлен в ознакомительных целях, не пытайтесь повторить это всё на практике т.к. смысла нету.
Всем пока , храните себя и своих близких!

Рейтинг
( Пока оценок нет )
Понравилась статья? Поделиться с друзьями:
Комментариев: 71
  1. social signal count

    xocrghfqo yyibg wiywbjo bhkf dcgiepyswdqykhj

  2. social signal count

    xocrghfqo yyibg wiywbjo bhkf dcgiepyswdqykhj

  3. how to get help in windows 10

    Thank you for some other informative web site. The place else may just I get that type of info written in such an ideal method?

    I’ve a challenge that I’m simply now working on, and I’ve
    been on the glance out for such info.

  4. gamefly free trial

    bookmarked!!, I really like your web site!

  5. gamefly free trial

    You really make it seem so easy with your presentation but I find this matter to be really something that
    I think I would never understand. It seems too complicated and
    extremely broad for me. I am looking forward for your next post, I’ll try to get the hang of it!

  6. gamefly free trial

    Asking questions are truly nice thing if you are not understanding something
    entirely, but this post presents nice understanding yet.

  7. how to get help in windows 10

    Incredible! This blog looks exactly like my old one!
    It’s on a totally different subject but it has pretty much the same page layout and design. Great choice of colors!

  8. gamefly free trial

    Hi there! Do you know if they make any plugins to protect against
    hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

  9. gamefly free trial

    First of all I would like to say wonderful blog!
    I had a quick question that I’d like to ask if you do not mind.
    I was interested to know how you center yourself and clear
    your mind before writing. I’ve had a difficult time clearing my thoughts in getting my ideas out there.

    I do take pleasure in writing but it just seems like the first
    10 to 15 minutes tend to be wasted just trying to figure out how to begin. Any ideas or hints?
    Thanks!

  10. gamefly free trial

    Heya i am for the first time here. I came across this board
    and I find It truly useful & it helped me out a lot. I hope
    to give something back and help others like you aided me.

  11. gamefly free trial

    I am sure this post has touched all the internet visitors, its really really
    nice piece of writing on building up new weblog.

  12. gamefly free trial

    Hi, I wish for to subscribe for this webpage to take newest updates, so where can i do it please help out.

  13. gamefly free trial

    Simply wish to say your article is as amazing. The clearness in your
    post is simply great and i could assume you are an expert on this subject.

    Well with your permission allow me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please carry on the gratifying work.

  14. gamefly free trial

    Spot on with this write-up, I actually believe this site needs much
    more attention. I’ll probably be back again to see more,
    thanks for the info!

  15. gamefly free trial

    I constantly spent my half an hour to read
    this web site’s posts all the time along with a mug of coffee.

  16. gamefly free trial

    Wow, this piece of writing is fastidious, my sister is analyzing these kinds
    of things, thus I am going to inform her.

  17. Elldieste

    Kaufen Viagra 50 Venta De Viagra En Espana [url=http://cialisong.com]tadalafil cialis from india[/url] Viagra Cialis Efectos Prix De Vente Du Xenical Generic Levitra In The Usa

  18. gamefly free trial

    It’s perfect time to make a few plans for the future and it’s time to
    be happy. I’ve read this post and if I may just I want to suggest you few attention-grabbing issues or suggestions.

    Maybe you can write next articles regarding this article.
    I want to learn more issues approximately it!

  19. gamefly free trial

    hi!,I like your writing so so much! share we keep in touch more approximately your article
    on AOL? I need an expert on this area to resolve my problem.
    May be that is you! Having a look forward to see you.

  20. gamefly free trial

    My brother suggested I might like this web site.
    He was entirely right. This post actually made my day. You cann’t imagine simply how much time I had spent for this info!

    Thanks!

  21. http://canadianorderpharmacy.com/

    These are in fact fantastic ideas in regarding blogging. You have touched some nice things here. Any way keep up wrinting.

  22. gamefly free trial

    I relish, result in I discovered exactly what I used to be taking a look for.
    You’ve ended my 4 day long hunt! God Bless you man. Have a nice day.

    Bye

  23. gamefly free trial

    Hey very nice blog!

  24. gamefly free trial

    You have made some good points there. I checked on the net for additional information about the issue and found
    most people will go along with your views on this site.

  25. ps plus free games

    Hi to all, how is all, I think every one is getting more from this web page, and your views are fastidious for new users.

  26. gamefly free trial

    Hey there! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest
    writing a blog article or vice-versa? My website covers a lot of the same subjects as yours and I think we could
    greatly benefit from each other. If you’re interested feel free to send me an email.
    I look forward to hearing from you! Superb blog by the way!

  27. http://tinyurl.com/yygayk3m

    Thank you a bunch for sharing this with all
    of us you actually realize what you’re speaking about!

    Bookmarked. Please additionally discuss with my website =).
    We may have a hyperlink change arrangement between us

  28. gamefly free trial 2019 coupon

    I am extremely inspired together with your
    writing talents as neatly as with the layout on your blog.
    Is that this a paid subject matter or did you
    modify it yourself? Either way keep up the nice quality writing, it is rare to look
    a nice weblog like this one today..

  29. Elldieste

    Cialis Se Vende Sin Receta Medica [url=http://ciali5mg.com]cialis overnight shipping from usa[/url] Order Periactin Buy Propecia Online Uk

  30. quest bars cheap

    Hello it’s me, I am also visiting this site on a regular basis,
    this web site is in fact fastidious and the visitors are
    genuinely sharing nice thoughts.

  31. quest bars cheap

    I have read several excellent stuff here. Certainly
    worth bookmarking for revisiting. I wonder how much effort you put to create this sort of magnificent informative
    site.

  32. quest bars

    Wonderful website. A lot of useful info here. I’m sending
    it to some buddies ans additionally sharing in delicious.
    And certainly, thanks for your effort!

  33. tinyurl.com

    Amazing! This blog looks exactly like my old one!
    It’s on a totally different subject but it has pretty much the same page
    layout and design. Outstanding choice of colors!

  34. Elldieste

    Propecia En Falta [url=http://drugs20.com]viagra vs cialis[/url] Propecia Buy Online Reviews

  35. plenty of fish dating site

    I really love your blog.. Great colors & theme. Did you develop this site yourself?
    Please reply back as I’m attempting to create my own personal website and would
    love to know where you got this from or exactly what the theme
    is called. Cheers!

  36. quest bars cheap

    Hi there, this weekend is pleasant in support of me, for the reason that this time i am reading
    this enormous informative post here at my residence.

  37. oprolevorter

    Utterly written content material, Really enjoyed examining.

  38. how to get help in windows 10

    Hi I am so excited I found your website, I really found you by error, while I
    was researching on Aol for something else, Nonetheless I am here
    now and would just like to say cheers for a incredible post and a all round enjoyable blog (I also love the theme/design), I don’t have time to read it all at the moment but I have
    book-marked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the excellent jo.

  39. Elldieste

    Osu Cialis Generico Italia Probiotic And Cephalexin [url=http://bpdrug.com]priligy argentina venta[/url] Cialis Pas Cher Paypal

  40. tinyurl.com

    I do not know whether it’s just me or if perhaps everyone
    else encountering issues with your website. It appears like
    some of the text within your posts are running off
    the screen. Can somebody else please provide feedback and let me
    know if this is happening to them as well? This
    might be a issue with my web browser because I’ve had this happen previously.
    Thank you

  41. how to get help in windows 10

    Please let me know if you’re looking for a article
    author for your weblog. You have some really good posts and
    I feel I would be a good asset. If you ever want to take some of the load off, I’d really
    like to write some articles for your blog in exchange for a link
    back to mine. Please send me an e-mail if interested. Thank you!

  42. plenty of fish dating site

    I have been exploring for a little bit for any
    high quality articles or weblog posts in this sort of space .
    Exploring in Yahoo I eventually stumbled upon this website.
    Studying this info So i’m happy to convey that I have a very excellent uncanny feeling
    I found out just what I needed. I so much unquestionably will make sure to don?t omit
    this website and give it a glance on a constant basis.

  43. plenty of fish dating site

    It is the best time to make some plans for the future and it’s
    time to be happy. I’ve read this post and if I could I desire
    to suggest you few interesting things or tips. Perhaps
    you could write next articles referring to this article.
    I desire to read more things about it!

  44. plenty of fish dating site

    Aw, this was a really nice post. Taking a few minutes and
    actual effort to create a good article… but what can I say…
    I put things off a whole lot and never manage to get anything done.

  45. plenty of fish dating site

    It is truly a nice and helpful piece of information. I’m happy that you simply shared
    this helpful information with us. Please keep us
    informed like this. Thank you for sharing.

  46. how to get help in windows 10

    Hi there just wanted to give you a brief heads up and let you know a few of the images aren’t loading properly.

    I’m not sure why but I think its a linking issue.
    I’ve tried it in two different web browsers and both show the same results.

  47. Elldieste

    Kamagra Deutschland Per Nachnahme Per Il Viagra Serve La Ricetta Levothyroxine 75 Mcg Online Order [url=http://kamagorder.com][/url] Viagra Cheapest Price Real isotretinoin skin health overseas shop Cialis Deutschland Apotheke

  48. how to get help in windows 10

    Great info. Lucky me I ran across your website by
    accident (stumbleupon). I’ve book-marked it
    for later!

  49. natalielise

    This article gives clear idea designed for the new viewers of blogging, that genuinely how to do blogging and site-building.
    plenty of fish natalielise

  50. plenty of fish dating site

    Hmm it seems like your website ate my first comment (it was
    extremely long) so I guess I’ll just sum it up what I submitted and say,
    I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but
    I’m still new to everything. Do you have any tips
    for newbie blog writers? I’d really appreciate it.

  51. plenty of fish dating site

    We absolutely love your blog and find almost all of your post’s
    to be precisely what I’m looking for. can you offer guest writers to write
    content to suit your needs? I wouldn’t mind publishing a post or elaborating
    on a number of the subjects you write concerning here. Again,
    awesome web site!

  52. natalielise

    Hey there this is kind of of off topic but
    I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I
    wanted to get guidance from someone with experience.
    Any help would be greatly appreciated! pof natalielise

  53. plenty of fish dating site

    A motivating discussion is worth comment.
    I do think that you should write more about this topic, it may not be
    a taboo matter but generally folks don’t talk
    about such subjects. To the next! Cheers!!

  54. plenty of fish dating site

    I’m extremely impressed with your writing talents as smartly
    as with the layout in your blog. Is that this
    a paid theme or did you customize it your self?
    Either way keep up the nice quality writing, it’s rare to
    peer a great blog like this one these days..

  55. plenty of fish

    Good day! I could have sworn I’ve been to this web
    site before but after looking at some of the posts I realized it’s new to me.
    Anyhow, I’m definitely delighted I stumbled upon it and I’ll be book-marking it and checking back often!

  56. dating site

    Hello there! This post could not be written any better!
    Reading through this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward
    this page to him. Fairly certain he will have a good
    read. Thanks for sharing!

  57. plenty of fish https://natalielise.tumblr.com

    Great website you have here but I was wondering if you knew of
    any user discussion forums that cover the same topics discussed in this
    article? I’d really like to be a part of online community
    where I can get responses from other knowledgeable individuals that
    share the same interest. If you have any suggestions,
    please let me know. Many thanks! natalielise pof

  58. plenty of fish

    Everyone loves it when people get together and share views.
    Great website, keep it up!

  59. plenty of fish

    If you desire to obtain a good deal from this article then you
    have to apply such strategies to your won weblog.

  60. plenty of fish

    Piece of writing writing is also a excitement, if you be
    familiar with then you can write if not it is difficult to write.

  61. plenty of fish https://natalielise.tumblr.com

    Wow, awesome blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your website is fantastic, let alone the content!
    natalielise plenty of fish

  62. plenty of fish dating site

    This paragraph offers clear idea for the new people of blogging, that truly how to do blogging
    and site-building.

  63. plenty of fish dating site

    Appreciating the time and effort you put into your site and detailed information you
    provide. It’s great to come across a blog every once in a while that isn’t
    the same old rehashed information. Wonderful read! I’ve bookmarked your site and
    I’m including your RSS feeds to my Google account.

  64. plenty of fish dating site

    I have read so many articles about the blogger lovers however this paragraph is genuinely a good post, keep it up.

  65. plenty of fish dating site

    You are so interesting! I do not suppose I have read a single thing like that before.

    So wonderful to find another person with some unique thoughts on this subject matter.
    Seriously.. thank you for starting this up. This site is
    one thing that is required on the internet, someone with a bit of originality!

  66. descargar facebook

    When someone writes an paragraph he/she retains the idea of a user in his/her mind
    that how a user can know it. Therefore that’s
    why this post is great. Thanks!

  67. minecraft games

    I am really loving the theme/design of your weblog. Do you ever run into any web browser compatibility problems?
    A number of my blog visitors have complained about my site
    not working correctly in Explorer but looks great in Safari.
    Do you have any tips to help fix this issue?

  68. descargar facebook

    For most recent information you have to pay a visit web and on the web I found this site as
    a most excellent web site for hottest updates.

  69. descargar facebook

    Hey there, I think your blog might be having browser compatibility issues.
    When I look at your blog in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that, awesome blog!

  70. quest bars cheap

    It’s a pity you don’t have a donate button! I’d definitely donate to this fantastic blog!
    I suppose for now i’ll settle for bookmarking and adding your RSS feed to my Google account.
    I look forward to fresh updates and will talk about
    this website with my Facebook group. Chat soon!

  71. quest bars cheap

    Thanks for finally talking about >Делаем самонаполняемый киносайт ,
    подобие HDrezka! | SLOTO.pro <Liked it!

Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: