搜了下发现论坛里一篇关于 OxWall 的帖子都没有,不知可有对这个熟悉的朋友,或者对 php 和 smarty 熟悉的,请教个问题。我想把 Oxwall 里面“视频添加”这部分改成上传视频,因为贴嵌入码不是每个人都会的,嵌入码没弄对视频就链接不过来,改成本地上传操作起来会方便点。但是摆弄了几天都没弄好,不知道怎么改,我半路出家学的 php,对 smarty 也了解不多。我的想法是,把“添加视频”页面的“嵌入代码”这一栏改成选择视频文件的编辑框加按钮,然后在点击下方“添加”按钮的时候把文件上传到服务器,原来的页面如图1,我想做成图2的样子,界面是做成这样了,不知道在哪儿改按钮的响应事件。我试过另添加一个按钮来做上传工作,但奇怪的是竟然两个按钮都响应“添加”事件。
图1 - 原界面
图2 - 新界面
回复讨论(解决方案)
没有人改过这个吗?在 Oxwall 官方论坛上没有看到人讨论这个问题,上传文件的问题也没人回,
按钮的响应事件应该在前台的js中控制
按钮的响应事件应该在前台的js中控制
谢谢哈,能不能具体说下是哪个 js 文件啊,我看了几个改了都没起作用,就是把 ow_smarty 目录下的临时文件删除了也没起作用
不得解啊
这就表示你的这个系统并没有提供视频上传功能
要加上去就不是一点点功夫了。
至少涉及2个程序文件,大文件上传本身也是个问题
这就表示你的这个系统并没有提供视频上传功能
要加上去就不是一点点功夫了。
至少涉及2个程序文件,大文件上传本身也是个问题
程序原先的设计是这样的,但是我想把它改来支持视频上传,故有此一帖。我又是从 C 转到 php 的,才做几个月,php 还不熟,而且还有一堆的 js 和 html
正因为如此,才有我那一说。
你得先学会如何书写文件上传的程序,然后读懂人家的程序。再考虑如何把你的程序融入进去
正因为如此,才有我那一说。
你得先学会如何书写文件上传的程序,然后读懂人家的程序。再考虑如何把你的程序融入进去
劳驾了!花了好长时间没读懂别人的程序,在官方网站上看到别人问的这个问题已经一年了没人回答,就想到 csdn 上试试,看看国内有没有同行处理过这个问题。哎,还是填代码去啦~~

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software