MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
     Site demo
Moderators: mem paulo89 adminik
RSSReply
about error in guestbook for 3.85
AuthorText
rogerbr9999
Just arrived
Avatar

Posts: 9
Contributes: 7

Gender: _NEUTRAL_
Online: No
Date: 17/07/2008 15:45
about error in guestbook for 3.85
#post10154
Hi friend,

I will try to put your mods/blocks all together :


upload - not installed yet
chat - not installed yet
youtube 1.1 - ok I think
calendar event - not installed yet
guestbook - not appear the youtube
do you can help or not work in memht 3.8.5 ?

see in :
http://www.brasil.falaai.info

see only blank space

Thanks
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3778
Contributes: 1050

Gender: _MALE_
Online: No

Languages: English, Italiano, Makedonski, Srpski, Un poco de Español
Date: 17/07/2008 15:49
Re: about error in guestbook for 3.85
#post10156
I see this:

http://www.youtube.com/watch?v=Px9jcA4decA
WRONG

Is this the EMBED url? No, it's the BROWSER url

This is the EMBED url:
http://www.youtube.com/v/Px9jcA4decA&hl
CORRECT

Edited: 17/07/2008 15:50
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
rogerbr9999
Just arrived
Avatar

Posts: 9
Contributes: 7

Gender: _NEUTRAL_
Online: No
Date: 17/07/2008 16:34
Re: about error in guestbook for 3.85
#post10161
Thanks friend, works fine !

Can I put this value default ?

400 x 325
so user not need to write ...


I will put this instruction in guestbook.php
(not browser - embed)
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3778
Contributes: 1050

Gender: _MALE_
Online: No

Languages: English, Italiano, Makedonski, Srpski, Un poco de Español
Date: 17/07/2008 16:41
Re: about error in guestbook for 3.85
#post10162
Open inc/javascript/javascript.js

Find
code
function addBBCodeYouTube(val,frm,elm) {
        url = prompt("Insert YouTube embed animation url", 'http://');
        w = prompt("Insert animation width", '');
        h = prompt("Insert animation height", '');
        if (url != null) {
                if (w != null) {
                        if (h != null) {
                                document.forms[frm].elements[elm].value+="["+val+"="+w+","+h+"]"+url+"[/"+val+"]";
                        }
                }
        }
        document.forms[frm].elements[elm].focus();
}

replace with

code
function addBBCodeYouTube(val,frm,elm) {
        url = prompt("Insert YouTube embed animation url", 'http://');
        w = prompt("Insert animation width", '');
        h = prompt("Insert animation height", '');
        if (url != null) {
                if (w == null) { w = 400; }
                if (h == null) { h = 325; }
                               
                document.forms[frm].elements[elm].value+="["+val+"="+w+","+h+"]"+url+"[/"+val+"]";
        }
        document.forms[frm].elements[elm].focus();
}
Edited: 17/07/2008 16:43
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
rogerbr9999
Just arrived
Avatar

Posts: 9
Contributes: 7

Gender: _NEUTRAL_
Online: No
Date: 17/07/2008 17:34
Re: about error in guestbook for 3.85
#post10164
I try your code but not work for me so I do this :

code


function addBBCodeYouTube(val,frm,elm) {
        url = prompt("Insert YouTube EMBED animation url (not Browser URL !!!) ", 'http://');
        w = prompt("Click OK - animation width", '400');
        h = prompt("Click OK - animation height", '325');
        if (url != null) {
                if (w == null) { w = 400; }
                if (h == null) { h = 325; }

                document.forms[frm].elements[elm].value+="["+val+"="+400+","+325+"]"+url+"[/"+val+"]";
        }
        document.forms[frm].elements[elm].focus();
}
 


and INCREDIBLE work !
(I not undestand noting about programming ...)
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Help MemHT Portal
Navigator
Search
Users Block
Hi Guest
IP: 38.103.63.60

Username
Password
New files
Friends
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo