News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

URL Popup

Started by jerm, September 03, 2006, 06:31:41 PM

Previous topic - Next topic

Matthew Schenker

Quote from: IchBin™ on April 10, 2008, 07:26:28 PM
In SMF2 you have to enable the wysiwig editor in your profile under look and layout.

Not really...
It has a popup for the URL address, but it is missing the next one that lets you display the link text.
Are they going to fix this for the real release?
Matthew

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Matthew Schenker

Quote from: edi67 on May 08, 2008, 06:55:33 AM
goosd

I'm not sure I understand this.
Does anyone know if the URL popup will be fixed by the RC release of 2.0?
Matt

IchBin™

In SMF 2.0 all you have to do is highlight your text, click the URL pop-up and create the link. I don't quite get what you think needs to be fixed.
IchBin™        TinyPortal

kai920

Quote from: kaajee on June 12, 2007, 09:56:38 AM
Agree, shouldn't/couldn't it be an option to have it both?
So when selecting a piece of text, the URL name is allready filled in, or the dialox box for the URL name does not appear at all.....and when no text is selected one has to enter/type/paste the URL name..........

Is there a new mod that has this function?

a) if text is already selected, then just ask for the URL...
b) if the URL bbcode box is clicked with no text selected, then ask for both URL and display text...

Is this what SMF2 has?

IchBin™

In SMF2 if the text is highlighted, it will ask you for the URL. It will then create the text with the URL. If no text is highlighted, it will ask you for the URL and then insert the URL with the URL as the text. So its not exactly what you're looking for.
IchBin™        TinyPortal

gemigene

Hi IchBin

Fantastic Mod, love it.

Is there any way I can modify some of the code to make this bilingual by having the text in both Modifications_english and french? I assume that the 3 following lines would need to be changed:

var urlLINK = prompt("Please enter URL address:","http://");
alert("Sorry no text entered!");
var urlNAME = prompt("Please enter URL name:","");


I've also noticed that some of my users copy and paste links and end-up with a double instance of http:// so would removing ,"http://" from the var urlLINK line take care of that?

Thanks,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

Basie

Quote from: IchBin™ on May 31, 2008, 04:48:21 PM
In SMF 2.0 all you have to do is highlight your text, click the URL pop-up and create the link. I don't quite get what you think needs to be fixed.

This is for WYSIWYG right? What about forums that disable WYSIWYG? This mod would still be useful for them.

IchBin™

Been so long since I looked at this mod, that made me realize it needs to be updated to use the text strings as you are asking. :) Yes, you can simply add some txt variables there to get you what you'd like to the modifications.english.php file. For example you can translate these lines to your other language.

$txt['url_popup'] = 'Please enter URL address:';
$txt['url_popup_alert'] = 'Sorry no text entered!';
$txt['url_popup_name'] = 'Please enter URL name:';


Replace those lines of code with what is needed.
var urlLINK = prompt("', $txt['url_popup'],'","http://");
alert("',$txt['url_popup_alert'],'");
var urlNAME = prompt("',$txt['url_popup_name'],'","");
IchBin™        TinyPortal

gemigene

Thanks IchBin, that was quick.

Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

gemigene

#50
Fantastic, works great. One thing though, I've noticed that once the link and name have been inputted and shown in the post, the cursor is between the link name and [/URL], for users that aren't too savvy, they'd keep on typing inside the description. Isn't there a way to make the cursor go at the end of the line?

For example: [url=http://www.somesite.com]Whatever name or title(cursor is here)[/url](instead of here).

Thanks,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

IchBin™

I'm not sure how to move the cursor. I'll see if I can't find some info on it.
IchBin™        TinyPortal

gemigene

Thanks ichBin, it sure would be an improvement. I have another English-only forum (with your Mod) which has been live since January and some members have a tendency to do exactly what I mentioned in the above post and end-up with a long post which is all part of the URL. LOL!

Cheers,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

quatermass

#53
I can't get this ext. it to work in 1.1.6

Ah... the manual install instructions seem to be missing whole chunks!

It doesn't display the "Add Before" section!

Can this be fixed?

Has anyone got it working in 1.1.6?

.HuNTeR.

does anybody know how to get it to work with enhanced quick reply ?

TurtleKicker

So is there still no way to make this work in 1.1.7 with "select text first" then a single Javascript box asking for the URL?

IchBin™

You figure out the javascript and let me know. I'll add it in the package. :)
IchBin™        TinyPortal

TurtleKicker

Quote from: IchBin™ on January 29, 2009, 12:35:13 AM
You figure out the javascript and let me know. I'll add it in the package. :)
Can't you look at the source of any vBulletin post/reply page? That's how vBulletin functions so the "secret" should be visible in there somewhere.

seficar

#58
does this work on 1.1.10?

is there a way to put this in Enhanced Quick Reply 2.0?

Chamaeleon

#59
modified for SMF 2.0 RC1.2  ;)

added english and german language

Advertisement: