vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   PNG Rounded Quotes (PRQ) (https://vborg.vbsupport.ru/showthread.php?t=90195)

cclaerhout 12-16-2004 10:00 PM

PNG Rounded Quotes (PRQ)
 
Png Rounded Quotes (PRQ)
Author: C?dric Claerhout
Thanks to : Dexter, Natch and d00d
Hack description: This hack, based on Dexter?one, turns the traditional quotes into round quotes with PNG images as border. You can use it with light and dark backgrounds without any graphical problems.
Zip description : Code, PSD, Pictures ready to use, and useful information.
Time to install: 10 min
Test forum : Here



Instructions


First of all, you HAVE to install that hack.
Link : https://vborg.vbsupport.ru/showthread.php?t=77465

It will allow png picture transparency work with Internet Explorer.
This great hack is really easy to install.

Another similar hack exists. Go at the bottom of this message if you don't like the above one.



Then download the zip file and follow the instructions (it?s a copy of Dexter?ones :D ; i?m french and my english is no more good):
1. Login to your Admin Control Panel
2. In the Styles & Templates category, click on Style Manager and expand the group of templates in your prefered style, by clicking on the [<<>>] button.
3. Select the group of templates BB Code Layout. Click the 'Expand/Collapse' button, or double-click the group name to expand or collapse the BB Code Layout ? group of templates.
3. Now select the template bbcode_quote. Double-click the template name or click the 'Customize' button to edit this template.
4. Replace all the content in the template field withd the code provided in the txt file in the zip below.
5. Upload the folder "quotes" containing all the images to your images directory at your forums




Notes

>You have to increase the amount of images to use in a post through your admin cp, because this mod use images and it counts as post images.
>If new png quotes pictures don?t appear immediately in your old messages, don?t panic and just wait ; your forum ?cache? (don?t know if it?s the correct word ? ?memory? would be may be better) must be adapted. Any way it will works with new messages.
>I give you the PDF file so that you can modify if you want the quotes. Now it?s easy to do. I give you also a picture that helps you to localise where each segment of the PSD goes.
>Of course i?ve tested this hack, both in IE and Mozilla, and it works great (I?ve change the original code to make it work).





If you didn't like the above hack making png files transparent with IE, here is another one created by Natch.
Link : https://vborg.vbsupport.ru/showthread.php?t=67413

Update : Natch has update his hack, but the new code of january 2005 doesn't work for me. It's goal was to avoid to specify the width and the height of each png pictures. To install Natch's old hack (the one that is working) GO THERE

cclaerhout 12-17-2004 12:16 PM

Well, i didn't what to do this afternoon so i've made a new hack allowing transparency (70%) background in quotes. Enjoy :-)

cclaerhout 01-08-2005 10:29 AM

Little update.

imported_Boh 01-13-2005 10:28 AM

I would install this but I'm not smart enough to lol... I tried, but it dealt with images so I was like no thank you

But from the looks of it this is a pretty sweet mod

cclaerhout 01-20-2005 09:24 AM

Did you install Natch’s hack before ?
Give me more details if you want me to help you :-)

VMV 01-20-2005 06:39 PM

Natch's hack hasn't worked for me. It adds two quotes to the end of URL. Fixing this shows no result too- spacer.png is displayed alone with no png images over it. I wonder if anybody has the same problems...

cclaerhout 01-21-2005 04:19 PM

I've got no problem with Natch's hack providing i don't use the update of the 07-01-2005.

In his message, don't take care and don't do the modification called "EDIT: 07-01-2005". It should work.

To test if png quotes are working, open a new thread or edit a message with quotes (do nothing and just save). See the notes above.

PixelFx 01-21-2005 09:51 PM

Quote:

Originally Posted by cclaerhout
I've got no problem with Natch's hack providing i don't use the update of the 07-01-2005.

In his message, don't take care and don't do the modification called "EDIT: 07-01-2005". It should work.

To test if png quotes are working, open a new thread or edit a message with quotes (do nothing and just save). See the notes above.

testing quote

Dean N Steve 01-24-2005 11:44 AM

Thankyou for sharing your work :)

cclaerhout 02-08-2005 02:42 PM

If you want this hack working go there


BIG UPDATE
I understand why some of you you have some difficulties with this modification.
Like i've already said, Natch has update his hack, but the new code of january 2005 doesn't work for me. I thought he didn't touch his old code. I was wrong. So i'm going to put here Natch's old hack.


In includes/functions.php:

Find
PHP Code:

// parse PHP include ##################
    
if (!is_demo_mode())
    {
        eval(
fetch_template('phpinclude_end', -10));
    } 

Add After:
PHP Code:

 $output replacePngTags($output); 


Find
PHP Code:

// ###################### Start build datastore #######################
function build_datastore($title ''$data '')
{
    global 
$DB_site;

    if (
$title != '')
    {
        
$DB_site->query("
            REPLACE INTO " 
TABLE_PREFIX "datastore
                (title, data)
            VALUES
                ('" 
addslashes(trim($title)) . "', '" addslashes(trim($data)) . "')
        "
);
    }


Add After:

the code written in alphacode.txt


"In this last bit of code, please edit the line"
PHP Code:

function replacePngTags($x,$img_path='/forum/images/'

"so that the $img_path variable points to your forumroot directory from your ['DOCUMENT_ROOT']. This is relying on your having uploaded the attached spacer.png to your forumroot/images/ folder."


All times are GMT. The time now is 01:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete