View Full Version : vPreview
note: ive posted this here, can someone remove the post i made in the vb2 section, thanks.
This is my first hack so go easy on me :D, if ive missed anything then let me know!, i prolli have coz its like 2am
If you like it then please click install! :D
Release Date: 6th April 2004
Creator: Tomp, Zekie - Imaedia Ltd.
Support Provided : http://www.imaedia.com/forum/showthread.php?t=43
What it does
This hack enables a new bb code, [ preview ] this code followed by a url will display "preview here" on your post, when clicked this will take the user to a page with a header bar, with your forums logo on etc, and the url in the bottom frame
This could be usefull for:
Previewing Hacks
Previewing Templates
Prevewing websites in progress
Still to do
Need to sort out the back to forum link so it goes back to the post the user came from, working on this atm
7th April 2004 - Full list of vPreview 1.1 features can be found Here (http://www.imaedia.com/forum/showthread.php?p=138#post138)
if you want to see it working check out this thread : http://www.imaedia.com/forum/showthread.php?t=43
hope its some use lol
AN-net
04-06-2004, 06:15 PM
great work!!!
would u happen to know how i could make this work with [url] also?
ill look into it for the next version :)
Correct me if i'm wrong. This is like that stupid thing from MSN, if you open a link from them, they have that thing that tell's you that this link has been open from MSN ?
AN-net
04-06-2004, 06:33 PM
i have figured it out:)
Yes its like the external link thing on hotmail, but the differance is this is for previewing hacks/templates/tutorials etc, in later versions there will be download features etc within the header, check the link in the first post to chek what features are planned
Ordovicium
04-07-2004, 10:33 PM
Yeah, that's what I am looking for, but I will wait for the next version with the enhance go back button.
there alot more than just advanced back button in the next version :) check the features list link i posted on the first post
Ordovicium
04-08-2004, 10:49 AM
there alot more than just advanced back button in the next version :) check the features list link i posted on the first post
I have 2 suggestions:
It would be also cool, when you can insert an optional text. Maybe in the center.
Like: This is a redirect site and not part of the community
And the other one.
A link to remove the banner.
GamerJunk.net
04-08-2004, 12:23 PM
Yeah, that's what I am looking for, but I will wait for the next version with the enhance go back button.
How lazy are people to not just hit back on their browser?
I have 2 suggestions:
It would be also cool, when you can insert an optional text. Maybe in the center.
Like: This is a redirect site and not part of the community
And the other one.
A link to remove the banner.
good ideas, id appriciate it if you could post them over on my forum, its just easyer to keep track of all the suggestions if there in one place
gmarik
04-08-2004, 05:38 PM
demo site is not loading for me...
sorry our host kinda sucks atm :)...should be ok now though
teksigns
04-11-2004, 02:56 PM
anyone have any idea how to make
mt site always use the preview code
when someone enters a link .......
that way i dont need to have them use the [preview]
stuff.
i want it to always embed that auto unless its a system
administrator . then i want it to work like normal .
teksigns
04-11-2004, 03:36 PM
anyone have any idea how to make
mt site always use the preview code
when someone enters a link .......
that way i dont need to have them use the
stuff.
i want it to always embed that auto unless its a system
administrator . then i want it to work like normal .
ok i have this working by changing the code in :
functions_newpost.php
// ###################### Start parseurl #######################
function convert_url_to_bbcode($messagetext)
{ // the auto parser - adds tags around neccessary things
global $urlSearchArray, $urlReplaceArray, $emailSearchArray, $emailReplaceArray;
if (!isset($urlSearchArray))
{
$urlSearchArray = array(
"#(^|(?<=[^_a-z0-9-=\]\"'/]))((https?|ftp|gopher|news|telnet)://|www\.)((\[(?!/)|[^\s[()^$!`\"'|{}<>])+)(?!\[/url|\[/img)(?=[,.]*([\s)[]|$))#siU"
);
if($permissions['adminpermissions']){
$urlReplaceArray = array(
"[url]\\2\\4"
);
}else{
$urlReplaceArray = array(
"[preview]\\2\\4"
);
}
$emailSearchArray = array(
"/([ \n\r\t])([_a-z0-9-]+(\.[_a-z0-9-]+)*@[^\s]+(\.[a-z0-9-]+)*(\.[a-z]{2,4}))/si",
"/^([_a-z0-9-]+(\.[_a-z0-9-]+)*@[^\s]+(\.[a-z0-9-]+)*(\.[a-z]{2,4}))/si"
);
$emailReplaceArray = array(
"\\1\\2",
"\\0"
);
}
$text = preg_replace($urlSearchArray, $urlReplaceArray, $messagetext);
if (strpos($text, "@"))
{
$text = preg_replace($emailSearchArray, $emailReplaceArray, $text);
}
return $text;
}
i have one problem though ......
if a use post a link to something on my site i dont want it to use the preview code .
are there a way to change the if statement above to exclude urls that conatin my site string ?
Eternal2u
04-25-2004, 06:37 AM
the preview links are ++++ed just so you know..
this is a nice hack
if you want a screenshot, just ask and i'll post one :) unless someone else can
red_baron2000
12-24-2004, 02:41 AM
this is a nice hack
if you want a screenshot, just ask and i'll post one :) unless someone else can
yes please :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.