Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vPreview Details »»
vPreview
Version: 1.00, by tomp tomp is offline
Developer Last Online: Apr 2006 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-05-2004 Last Update: Never Installs: 3
 
No support by the author.

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 , if ive missed anything then let me know!, i prolli have coz its like 2am

If you like it then please click install!

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

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-08-2004, 02:32 PM
tomp tomp is offline
 
Join Date: Jan 2004
Location: England
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ordovicium
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
Reply With Quote
  #13  
Old 04-08-2004, 05:38 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

demo site is not loading for me...
Reply With Quote
  #14  
Old 04-08-2004, 10:14 PM
tomp tomp is offline
 
Join Date: Jan 2004
Location: England
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry our host kinda sucks atm ...should be ok now though
Reply With Quote
  #15  
Old 04-11-2004, 02:56 PM
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #16  
Old 04-11-2004, 03:36 PM
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by teksigns
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 .

ok i have this working by changing the code in :

functions_newpost.php


PHP Code:
// ###################### Start parseurl #######################
function convert_url_to_bbcode($messagetext)
// the auto parser - adds [url] 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[/url]"
        
);
        }else{
        
$urlReplaceArray = array(
            
"[preview]\\2\\4[/preview]"
        
);
        }

        
$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[email]\\2[/email]",
            
"[email]\\0[/email]"
        
);
    }

    
$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 ?
Reply With Quote
  #17  
Old 04-25-2004, 06:37 AM
Eternal2u Eternal2u is offline
 
Join Date: Feb 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the preview links are ++++ed just so you know..
Reply With Quote
  #18  
Old 06-30-2004, 10:55 PM
Lurk Lurk is offline
 
Join Date: Feb 2004
Location: Garden Grove, CA
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a nice hack
if you want a screenshot, just ask and i'll post one unless someone else can
Reply With Quote
  #19  
Old 12-24-2004, 02:41 AM
red_baron2000's Avatar
red_baron2000 red_baron2000 is offline
 
Join Date: Jul 2002
Location: EU
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lurk
this is a nice hack
if you want a screenshot, just ask and i'll post one unless someone else can
yes please
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06043 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete