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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
