don't understand ...
without the video bbcode, it works
with it, it crashes
I don't understand your sentence.
You are not logged in. Please login or register.
PunBB Forums → Posts by Rod
don't understand ...
without the video bbcode, it works
with it, it crashes
I don't understand your sentence.
CONNORHDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
Ok ... another problem ....
my actual bbcode is
$pattern = array('#\[b\](.*?)\[/b\]#s',
'#\[i\](.*?)\[/i\]#s',
'#\[u\](.*?)\[/u\]#s',
'#\[url\](.*?)\[/url\]#e',
'#\[url=(.*?)\](.*?)\[/url\]#e',
'#\[email\](.*?)\[/email\]#',
'#\[email=(.*?)\](.*?)\[/email\]#',
'#[qt=(.*?)](.*?)[/qt]#',
'#[real=(.*?)](.*?)[/real]#',
'#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');$replace = array('<strong>$1</strong>',
'<em>$1</em>',
'<span class="bbu">$1</span>',
'handle_url_tag(\'$1\')',
'handle_url_tag(\'$1\', \'$2\')',
'<a href="mailto:$1">$1</a>',
'<a href="mailto:$1">$2</a>',
'<a href="$1" onclick="return enlarge(\'$1\', event, \'quicktime\', \'center\', \'320\', \'188\')">$2</a>',
'<a href="$1" onclick="return enlarge(\'$1\', event, \'realvideo\', \'center\', \'320\', \'240\')">$2</a>',
'<span style="color: $1">$2</span>');
But when I read the forum, ALL MY QUOTES become ...
[<ickn gv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"><u con k ickn gu con k v', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"> hfs c nous km kiickn gs c nous km kiv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')">i c so hf" oncn g', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> on y vn m hfickn gv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"><ickn gv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"> hfs cooickn gs coov', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"> hfickn gv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')">]
T's un pà d di ça !
J hfn é y'" oncn gn é y'', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> hf jis di" oncn g jis di', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> hf ci" oncn g ci', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')">ob !D hfickn gv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"> f s hfouv v fi is d'hui " oncn gouv v fi is d'hui ', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> n<éi" oncn géi', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> mais vu !)
Donc jos comm m hf m'in" oncn g m'in', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> pnd mcs jus<u 20 ickn gu 20 v', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')">a>...
En <ickn gv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')">s si c confi, is< " oncn g ', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')"> j'ns cul.
Jin<nickn gnv', 'c<" onclick="return enlarge('', '320', '188')"><', event, 'realvideo', 'center', '320', '240')"> < jns d'is j sbson" oncn g jns d'is j sbson', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')">s <nd jis confi" oncn gnd jis confi', nt, 'quicktimnt', '320', '188'<" onclick="return enlarge('"><', event, 'realvideo', 'center', '320', '240')">a>ion.
rod, i am your god http://punres.org/doku.php?id=tutorials … deo_bbcode
No
When I put your code inside parser.php, the viewtopic.php is BROKEN (no more header, no more style ...)
Waouhhhhhhhhhhhhhhhhhhh
Damn
Sorry but in my version of Punbb (1.2) I have "this" as code :
<tr>
<td class="tcl">
<div class="intd">
<div class="iclosed"><div class="nosize">Ce sujet est fermé</div></div>
<div class="tclcon">
Annoté: <strong>·</strong> <a class="showclosed" href="viewtopic.php?id=3733">[---- A LIRE --- ] Règles Forum Actus</a> <span class="byuser">par Rod</span>
</div>
</div>
</td>
<td class="tc2">0</td>
<td class="tc3">71</td>
<td class="tcr"><a href="viewtopic.php?pid=80674#p80674">08-05-2005 13:30:15</a> par Rod</td>
</tr>
I see any tr.isticky ...
Links or Pics are better than words ... so go to
http://www.allocine.fr/communaute/forum … erie=.html
Is it possible to have this ? When we stick a post, the whole line is in another color ? More readable for "dumb" users (and they are more and more ...)
Connorhd, afraid ?
What a pity to have not the possibility to create xxxxxx categories ...
Categorie One : example ... "FAIRY" ... and all users (or GROUPS ?) post for fairy Cat
Another Cat ... "Dragons" ... and all users (groups ?) post for dragons Cat ...
But the used way sounds good.
OK ....
look at this ...
/***********************************************
* Image Thumbnail viewer- © Dynamic Drive (www.dynamicdrive.com)
* Last updated Sept 26th, 03'. This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
* 04.08.04 - Modifications apportées par Rod - Sortons.Net
* possibilité de choisir son média (image, texte, iframe, realvideo, Quicktime)
* ne fonctionne qu'avec IE & Mozilla !
* Revision 18.08.04 Ajout Possibilité Quicktime
***********************************************/
tabS=new Array(); // Permet d'avoir des JS à l'interieur des popmedias
var ie=document.all
var ns6=document.getElementById&&!document.all
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}
function enlarge (which, e, nat, position, imgwidth, imgheight) {
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showdiv") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else {
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"
// Modifs par Rod 04.08.04 : en tapant simplement le type de media que l'on souhaite dans l'url, le script prend en charge le innerHTML correspondant
// On peut donc creer tout son systeme multimedia sur ce SIMPLE js ... la fete pour la mise a jour (il suffit de tout changer ICI)
if (nat=="img") {
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Fermer cette fenêtre</span> </div><img src="'+which+'">'
crossobj.style.display="block"
}
if (nat=="text") {
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Fermer cette fenêtre</span> </div><div style="width: 320px; height: 210px; padding: 10px; margin: 10px; overflow: auto; text-align:left">'+which+'</div>'
crossobj.style.display="block"
}
if (nat=="iframe") {
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">fermer cette fenêtre</span> </div><iframe src="'+which+'" width="600" height="400" frameborder="0" allowTransparency="true" scroll="auto" ></iframe>'
crossobj.style.display="block"
}
if (nat=="realvideo") {
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Fermer cette fenêtre</span> </div><embed src='+which+' width=320 height=240 type=audio/x-pn-realaudio-plugin console=Clip1 autostart=true controls=ImageWindow><br><embed src='+which+' width=320 height=20 type=audio/x-pn-realaudio-plugin console=Clip1 autostart=true controls=ControlPanel></embed>'
crossobj.style.display="block"
}
if (nat=="quicktime") {
crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">Fermer cette fenêtre</span> </div><OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="188" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"><PARAM NAME="controller" VALUE="false"><PARAM NAME="type" VALUE="video/quicktime"><PARAM NAME="autoplay" VALUE="false"><PARAM NAME="target" VALUE="myself"><PARAM NAME="src" VALUE="http://www.themoviebox.net/trailers/CLICK-IMAGE.gif"><PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html"><EMBED WIDTH="320" HEIGHT="188" CONTROLLER="false" TARGET="myself" SRC="http://www.themoviebox.net/trailers/CLICK-IMAGE.gif" href="'+which+'" type="video/quicktime" BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html" autoplay="false"></EMBED></OBJECT>'
crossobj.style.display="block"
}
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}
function closepreview() {
crossobj.style.display="none"
}
function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}
function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
I have modified this Dynamicdrive Code to implement all possible medias, with the size or height I want : perfect only JS to modify ... (for width and height, 'cause appareance = CSS)
#showdiv {
position : absolute;
display : none;
z-index : 3000;
color : #b4c4d8;
font-size : 11px;
}
#dragbar {
padding : 1px;
min-width : 100px;
cursor : pointer;
color : #fff;
}
#dragbar a {
background : #000;
}
#dragbar #closetext {
margin-right : 2px;
font-weight : bold;
font-size : 16px;
}
Ok ... after place where you want in your code (on the bottom page for example)
<div id="showdiv"></div>
Now if I want to show an url with a QUICKTIME MOVIE, I would like to have
[qt=urlofmyvideo.mov]Name of my Video[/qt]
[real=urlofmyRV.rm]Name of my Real[/real]
The final code in source would be ...
For QT :
<a href="urlofmyvideo.mov" onclick="return enlarge('urlofmyvideo.mov', event, 'quicktime', 'center', '320', '188')">name of my video</a>
For Real :
<a href="urlofmyvideo.rm" onclick="return enlarge('urlofmyvideo.rm', event, 'realvideo', 'center', '320', '240')">name of my video</a>
What happens if a browser isn't able to read this dhtml ?
Browsers which can read simple JS will open in NORMAL popup window the url
for very old browsers, it links directly to the media ...
Connorhd, if you do this, you are my God
Sorry Connorhd
Cool HCGTV !!! but it's not possible to dev directly since punBB ? An idea like the PunNews ??? Create a static content with classes (classes of the site are different of the classes of the forum ...) ... it would be nice to "see" this, because it prevents from doing separating user comments in 2 softs (waouh Rod, your english is great !!! pffffff ...)
I have an idea about Videos ... but usign DHTML ... (but great effect)
if someone is able to see with me how to "transform" it in BBcode ...
http://www.horreur.net/critiques/critique-476.html
As you can see, it's not a forum post, but visibly, the members can post after le critic ... it would be great how to do this with PunBB (for me in this case )
Could it be possible, in a far far future ... to have a calendar with simplicity of your system, but the powerful of phpmyagenda ? (ability to add events, but places, styles of events ...)
I explain ...
My site is about bars, pubs, concerts ... and instead of copy/paste the list from my db, I would like to use directly php and mysql request inside my post : directly updated, and ability to comment ...
but if I want to show some php code ... it's possible too ...
so could it be possible to have a bbcode like ?
[php]
Executed Code here
[/php] ?
Thanx.
I organize contests on my site ... and I ask user to put them their NAME / FIRSTNAME ... but the only way is
1. to add in viewtopic under IP (when admin) add the field NAME : I see directly if the user has put his name to participate
2. to erase the line in profile.php when a member sees a profil (to prevent from seeing name field)
That's why it would be great to have an option to "choose" what appears or not in profile.php and viewtopic.php
All configurable : if a punbb user wants on its forum only the AVATAR + PSEUDO, it disables in admin the other options ...
Interest ? Prevent from editing the core code when a lot of updates of PUNBB come ... and do them again
Thanx !
Lot of ideas ... one day maybe in xmlhttprequest : edit on the fly ...
but it's very cool !!! Now ... how to use this app' ?
Stlll blank.
OK it doesn't work for me ... easy to install. But nothing happens for me.
No luck.
A big big request ...
how to implement a poll on a website ???
It would be great a poll can be choose in admin panel, generates a code to copy/paste on the main page for example ...
Euh .. http://www.Sortons.net/forum/chatbox.php
all blank.
As I said before ... S7u.co.uk is the best experimentator of CSS ...
This is perfect : works on IE, Gecko and you can customize on ID ... or CLASSES.
Impressive and light.
Better, in fact ...
http://pro.html.it/esempio/nifty/nifty8js.html (only choose what it rounded in javascript : great)
As I said before ... S7u.co.uk is the best experimentator of CSS ...
http://www.stunicholls.myby.co.uk/boxes/snazzy.html
Perfect, with 0 pics ... incredible man.
PunBB Forums → Posts by Rod
Powered by PunBB, supported by Informer Technologies, Inc.