Log in

View Full Version : PNG Rounded Quotes (PRQ)


cclaerhout
12-16-2004, 10:00 PM
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 (http://www.lesaceristes.com/forum/showpost.php?p=98&postcount=3)



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 (http://www.vbulletintemplates.com/mods/showpost.php?p=57784&postcount=10)

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
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 (http://www.lesaceristes.com/forum/showpost.php?p=98&postcount=3)


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
// parse PHP include ##################
if (!is_demo_mode())
{
eval(fetch_template('phpinclude_end', -1, 0));
}


Add After:
$output = replacePngTags($output);


Find

// ###################### 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"
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."

imported_yoyoyoyo
02-09-2005, 12:15 PM
thanks for sharing. So Natch's old code will work with 3.0.6? I just tried installing it and got an unexpected T error

edit: I think this is the culprit:

$new_tag=str_replace($image.$quote,$replace_src_wi th,

I assume that should be: $new_tag=str_replace($image.$quote,$replace_src_wi th

that is strange: in my c&p it is adding a space! :(

people should also know that the "quotes" images folder needs to be renamed with a small Q instead of a large one, and it goes inside the images/misc folder

cclaerhout
02-09-2005, 02:31 PM
First : Thanks to warn me about the "Q". That's corrected.

Second : you've right again, there was a problem with that strange space... And may be somewhere else. I don't know how it has happened. The problem comes each time i paste the code... Strange. To avoid that, i've pasted the code in a txt file. Hope it will work this time.

Please tell me that it works this time ;-)
I've tested on two forums and it goes well.


PRQ works with Vbulletin 3.06
Look at the test forum.

Scootmans
02-10-2005, 08:31 AM
How do i do to remove the grey frame around the qoute note?

Look at the attached file

cclaerhout
02-10-2005, 11:49 AM
I guess you're using Internet Explorer. Png transparency doesn't work with this browser. But there is a solution like it's already written on the top. You HAVE to install Natch?s hack. See post n?10.

Scootmans
02-10-2005, 12:46 PM
Ok whare can i find the, "In includes/functions.php:" ? i am newbie on this :)

cclaerhout
02-10-2005, 01:27 PM
Well well well... Let's start by the beginning.

A "Hack" is a modification of your php files. This files are those you put to your server. Remember : you download vbulletin in a zip file then you expand it and many files have appeared.

So to find "includes/functions.php" you must connect to your server ; go to the root of your forum folder, then you'll see "includes" directory. Click on it. You will find then "functions.php". Transfer it to your desk. Make a copy. Open it with your notepad or better with EditPad (look in google). Then follow the manual ;-)

Search and find - put above (before) / below (after) - (or) replace - save - replace the file on your server and test it.

For more help go to vbulletin.org

Scootmans
02-10-2005, 01:34 PM
Ok thanks for all help..

imported_yoyoyoyo
02-11-2005, 02:56 AM
this hack slowed my forum down for some members, especially those on AOL, so I had to remove it, and now it is running at the normal speed for everyone. Personally I didn't see any difference in speed, but a few others did. Once it was gone all was well with them. They said it caused a "lag"

cclaerhout
02-11-2005, 06:41 AM
this hack slowed my forum down for some members, especially those on AOL, so I had to remove it, and now it is running at the normal speed for everyone. Personally I didn't see any difference in speed, but a few others did. Once it was gone all was well with them. They said it caused a "lag"

... Strange. I didn't see any lag exept when i were using the new version of Natch?s hack (that didn't work anyway). Positive point : you're the first one to tell me that the Postbit Modifications is working lol

If other people find the hack cause a "lag", please tell it.

AV2
02-20-2005, 04:48 AM
On firefox my code works excellently on IE it gives me errors for some of the PNG's but not all... any ideas?

cclaerhout
02-24-2005, 09:45 AM
Check if you installed the old Natch's hack version.

cclaerhout
03-04-2005, 02:00 PM
04 march 2005 : another hack allows to make png file transparent with IE. It's easier to install. You can find it here : https://vborg.vbsupport.ru/showthread.php?t=77465

Tell me what you think about it.

Lexina
03-21-2005, 10:49 PM
Hmm, I don't know if this is meant to be doing this, but some of the images are transparent, others aren't, check this out: http://www.thefad.net/forum/showthread.php?p=3227#post3227