Jump to content

tivadarsubotica

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About tivadarsubotica

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I have in column "keywords" comma separated keywords in one row/news. Example in ID "1" in column "keywords" have: "Šport, Fudbal, Četvrta Liga". I want to make a tag-s from those words to be like: http://site.com/tag/sport, http://site.com/tag/fudbal, http://site.com/tag/cetvrta-liga. At first I separate those words by: $input = $vest_keywords; $removed_spaces = preg_replace('/\s*,\s*/', ',', $input); $output = explode(',', $removed_spaces); foreach($output as $tags) { echo $tags; } This give me: Šport | Fudbal | Četvrta liga But I have a "slug-maker", and
  2. Thank You, its working. I just worry about "admin login", because that have a "timer" for login, and if the cookie is expire in mean time (after submit), than the user must to log in again in Admin pane.
  3. Hi, I have an admin folder where I need to push the scrapping button to do query (scraping some pages). The file for scarping is in root. In the Admin pane have a listing of news and in navbar have a "Scraping button". <!-- bootstrap navbar part --> <li class="nav-item"> <a class="nav-link active border text-yellow-100p" aria-current="page" href="../scraping/index.php">LOAD NEWS</a> </li> So, I want to push the "LOAD NEWS" button and after the scraping query is finished to reload page with news list in same place in Admin. If possible I wa
  4. Hi, I want to get a latest video from Youtube Playlist. I look it on Google API, and the other solutions, but I think dont undestand quit good what I need to do. For example a have a playlist: https://www.youtube.com/playlist?list=PLW8l7rX2YaXkaSI8GGbmqPjOEmfzd2hz3 And I want to see always only a latest uploaded video, so I need a link (embed - watch, or "youtu.be/xy"): https://www.youtube.com/watch?v=LyzziLETNUw&list=PLW8l7rX2YaXkaSI8GGbmqPjOEmfzd2hz3 Thanks in advanced, T
  5. The explanation for adding the language is very good and it works, and thak You very much. However, I have trouble leaving .html. Here's how to I use it: index.php?c=vojvodjanski (not vojvodjanski.html) The complete usage is here: (index.php?c=vojvodjanski) RewriteRule ^([^/]*)\.html$ /index.php?c=$1 [L] (index.php?c=vojvodjanski&kategorija=drustvo) RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?c=$1&kategorija=$2 [L] (index.php?c=vojvodjanski&kategorija=drustvo&y=2021&m=03&d=01&vest=gradona-elnik-luka-sa-saradnicima-obi-ao-romska-
  6. And I have another "problem", I want to remove the .html at end of every rule... I remove the RewriteRule ^([^/]*)\.html$ /index.php?c=$1 [L] but dont work... and I want to remove from all Rules.
  7. /hu/vojvodjanski.html -> /index.php?lg=hu&c=vojvodjanski
  8. What do You mean index.php version? Here is the full htaccess rules: RewriteRule ^([^/]*)\.html$ /index.php?c=$1 [L] RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?c=$1&kategorija=$2 [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /index.php?c=$1&kategorija=$2&vest=$3 [L] RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)\.html$ /index.php?c=$1&kategorija=$2&y=$3&m=$4&d=$5&vest=$6 [L] The full (example) link is like: https://vojvodjanski.com/tvbecej/drustvo/2021/04/08/gradona-elnik-luka-sa-saradnicima-obi-ao-romska-naselja.htm
  9. Hello, I'm pretty weak in mod_rewrite (too), trying to create a bilingual page. The base link looks something like this: 1. http://site.com/vojvodjanski.html htaccess rule: RewriteRule ^([^/]*)\.html$ /index.php?c=$1 [L] 2. http://site.com/vojvodjanski/drustvo.html htaccess rule: RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?c=$1&kategorija=$2 [L] The problem is that I should add an "hu" to each e.g: http://site.com/hu/vojvodjanski.html http://site.com/hu/vojvodjanski/drustvo.html ... I haven't done this with mod rewrite yet, I need help with this, h h
  10. At the moment, for some reason, I can't download a single file with this script, but my problem is that I don't know how to solve it by downloading only one file for one file, zipping it for multiple files (with one submitt). I’m not very familiar with PHP programming language, and especially never downloading (plus zipped). I searched the internet for opportunities but couldn’t figure out how to solve it.
  11. Hi, I want to download more than one file at a time. But now I can't download any of them that way. I want to solve it the way it is in gmail, i.e. I download either 1 file separately or if there are two or more, it is zipped. Thanks in advanced, T <!-- images --> <section class="card shadow mb-3"> <form action="index.php?lg=<?php echo $lng; ?>&c=text" method="post" enctype="multipart/form-data"> <header class="card-header navbar-custom"><h3 class="text-center"><?php echo $new_document_h3_images; ?></h3>
  12. Greeting, I tried to simplify the script as much as possible to make it understandable and here is my question. <?php // DELETE FILES $submit_file = $_POST['submit_file']; echo $filename = $_POST['filename']; if ($submit_file == '1') { unlink($filename); } else { } if($reload == 2) { INSERT INTO.. } else if ($reload > 2) { UPDATE ... } else {} ?> // BEGIN OF THE FORM <form action="index.php?lg=<?php echo $lng; ?>&c=new_document" method="post" enctype="multipart/form-data"> // INPUT TEKST AND OTHERS <input type="text" class="form-control form-con
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.