Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
GeekyGuy
Client



Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Sat Aug 21, 2004 4:40 am Reply with quote

By golly, it took a while, but I finally figured it out.

In quick_reply.tpl
Delete these lines
Code:
<p align="center"><b><font color="red" size="2" face="Tahoma" style="cursor:hand" OnClick="expandit(this)">«««« {L_QUICK_REPLY} »»»»</b></p></font> 

<span style="display:none" style=&{head};>
and
Code:
<input type="hidden" name="sid" value="{quick_reply.SID}">


And the box is already open, and it works fine in Firefox

Groovy Wave Groovy

_________________
"The Daytona 500 is ours! We won it, we won it, we won it!", Dale Earnhardt, February 15th, 1998, Daytona 500 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
dobbelina
Hangin' Around



Joined: Jul 21, 2004
Posts: 47

PostPosted: Sat Aug 21, 2004 5:05 am Reply with quote

If you want the quickreply box to show up without clicking(like on this site),
Then follow the instructions from GeekyGuy above.
This is also good to do,cause that clickable quickreply doesn't work in the opera browser.
Dobbelina Very Happy


Last edited by dobbelina on Sat Aug 21, 2004 5:28 am; edited 1 time in total 
View user's profile Send private message
dobbelina







PostPosted: Sat Aug 21, 2004 5:15 am Reply with quote

oops,sorry,i recant this post
 
Muffin
Client



Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Sat Aug 21, 2004 6:03 am Reply with quote

lol

thanks all for your time and hard work.

by the time I get to install this it'll be a breeze.

_________________
Classic Mini rules the bends & bends the rules!
[img] 
View user's profile Send private message
GeekyGuy







PostPosted: Sat Aug 21, 2004 6:15 am Reply with quote

Muffin, and anyone else interested,

I think GIT-R-DONE and I have this all worked out for ya. Just follow these instructions. And remember to change the scr+pt back to the corrected spelling (3 places)

Quote:
Files To Edit: 5
/modules/Forums/viewtopic.php,
/modules/Forums/language/lang_english/lang_main.php
/themes/Your_Theme/forums/viewtopic_body.tpl
/themes/Your_Theme/forums/overall_header.tpl
quick_reply.tpl

Included Files: quick_reply.php, quick_reply.tpl


-----[ OPEN ]------------------------------------------
modules/Forums/viewtopic.php

-----[ FIND ]------------------------------------------
$template->pparse('body');

include("includes/page_tail.php");


-----[ BEFORE, ADD ]------------------------------------
include($phpbb_root_path . 'quick_reply.'.$phpEx);


-----[ OPEN ]------------------------------------------
modules/Forums/lang/lang_english/lang_main.php


-----[ FIND ]------------------------------------------
//
// That's all Folks!


-----[ BEFORE, ADD ]------------------------------------
// Advanced Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';
$lang['QuoteSelelected'] = 'Quote selected';
$lang['QuoteSelelectedEmpty'] = 'Select a text anywhere on a page and try again';
$lang['Quick_Reply_smilies'] = 'all';


-----[ OPEN ]------------------------------------------
themes/Your_Theme/forums/viewtopic_body.tpl


-----[ FIND ]------------------------------------------
<!-- END postrow -->

-----[ AFTER, ADD ]------------------------------------
<tr align="center">
<td class="row1" colspan="2" >
{QUICKREPLY_OUTPUT}
</td>
</tr>


-----[ OPEN ]------------------------------------------
themes/Your_Theme/forums/overall_header.tpl

-----[ FIND ]------------------------------------------
</head>

-----[ BEFORE, ADD ]------------------------------------
<scr+pt language="Javascr+pt1.2">
<!--
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
//-->
</scr+pt>


-----[ OPEN ]------------------------------------------
quick_reply.tpl

-----[ FIND ]------------------------------------------
<p align="center"><b><font color="red" size="2" face="Tahoma" style="cursor:hand" OnClick="expandit(this)">«««« {L_QUICK_REPLY} »»»»</b></p></font>
<span style="display:none" style=&{head};>

-----[ REPLACE WITH ]------------------------------------------
<!--<p align="center"><b><font color="red" size="2" face="Tahoma" style="cursor:hand" OnClick="expandit(this);">«««« {L_QUICK_REPLY} »»»»</b></p></font>
<span style="display:none" style=&{head};>-->

-----[ SAVE/CLOSE ALL FILES ]--------------------------


Last edited by GeekyGuy on Sat Aug 21, 2004 11:12 am; edited 1 time in total 
Muffin







PostPosted: Sat Aug 21, 2004 10:44 am Reply with quote

thats great GG thanks so much

ermm... one last question

in the example below, where it says

OPEN themes/subSilver/forums/overall_header.tpl

I read that as (themes/Your_Theme/forums/overall_header.tpl) do I? And if you run about 15 different themes on your site you have to do all this to each theme?



[quote]-----[ OPEN ]------------------------------------------
themes/subSilver/forums/overall_header.tpl

-----[ FIND ]------------------------------------------
</head>

-----[ BEFORE, ADD ]------------------------------------
<scr+pt language="Javascr+pt1.2">
<!--
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
//-->
</scr+pt>
[quote]


ok that was 2 questions lol

Sorry if I've given you a headache on this one rofl Rolling Eyes Embarassed
 
GeekyGuy







PostPosted: Sat Aug 21, 2004 11:10 am Reply with quote

Muffin,
Yes, sorry, I forgot to make that change (I'll go back and edit that post). You are correct on both counts. If you have 15 themes, you need to do the edits to each theme.
 
SmackDaddy
Involved
Involved



Joined: Jun 02, 2004
Posts: 268
Location: Englewood, OH

PostPosted: Sat Aug 21, 2004 1:45 pm Reply with quote

Great work all....can't wait to implement this!!!!! Wink

_________________
Smack out...

http://www.pctoolbin.com

Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Sat Aug 21, 2004 1:56 pm Reply with quote

You guys are all using really involved quick reply hacks.

I don't have any smilies available on my quick reply forms. I figure if you want to do a bunch of smilies just use regular reply or memorize the code.

I use quick reply with quote for forums and private messages and both of them were very easy to install. Only took minutes. If anyone wants the installs for them let me know.

I got one from phpbbhacks.com and the other from portedmods.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
GeekyGuy







PostPosted: Sat Aug 21, 2004 2:12 pm Reply with quote

Well as much time as I've put in on this mod, I'm not gonna make any more changes on my site at least until... oh, maybe tonight Smile

But I am a lot more impressed with this quick reply mod than any of the others I've used or tried to use

I hope this works as well for everyone else as it does on my site.
 
SmackDaddy







PostPosted: Sat Aug 21, 2004 2:15 pm Reply with quote

If I do use it, I won't be using too many themes....I have a hard enough time keeping up with all the changes of files as it is when I have to do site upgrades.....I don't need much more added to it....almost every time I upgrade, I screw SOMETHING up because I forget a file.....or miss something.....the time before last I overwrote my meta.php but thankfully a site admin had a recent backup (as it was a newly changed file), and this last time, my config.php file had a couple spaces added to the end of it (how, I do not know because I didn't put them there)....but any more modifications and I'd be like ---> Bang Head
 
Muffin







PostPosted: Sat Aug 21, 2004 2:31 pm Reply with quote

Hey Smackdaddy you're an expert at this and you mess up too? Shocked You dont know how much better that makes me feel as a newbie lol no offence meant.

Thanks Geekyguy and everyone else for all your help, seeing as I was the one stirred this one up eeep!

I'm gonna install this tonight now when everyone's in bed so I can take my time and not mess things up, as I counted my themes onsite this afternoon and I have 15, all of which are used by the members! Confused

Geez which I'd stuck with just one them now rofl
 
SmackDaddy







PostPosted: Sat Aug 21, 2004 3:12 pm Reply with quote

Muffin wrote:
Hey Smackdaddy you're an expert at this and you mess up too? Shocked You dont know how much better that makes me feel as a newbie lol no offence meant.


No offense taken at all.....I got a good chuckle out of your use of the word "expert" and my name in the same sentence! LOL Wink

Hope all goes well for you tonight! And remember, you are 5 hours ahead of some of us....I am sure people will be around in case something goes awry! Wink
 
Muffin







PostPosted: Sat Aug 21, 2004 3:41 pm Reply with quote

ooooooooooh now why doesnt that fill me with confidence rofl

Thanks I'll be back here before you can say Smackdaddy is an expert lol
 
dobbelina







PostPosted: Sat Aug 21, 2004 11:13 pm Reply with quote

Ps. in quick_reply.php on line 111 you can change how many smilies you want
the quickreply box to show.
It's here:
Code:
 $max_smilies = 24;  

Just a tip from Dobbelina Very Happy
 
GeekyGuy







PostPosted: Sun Aug 22, 2004 12:09 am Reply with quote

Muffin, SmackDaddy,

How did the installation go?
 
Muffin







PostPosted: Sun Aug 22, 2004 5:26 am Reply with quote

Miserably.......................sob

After doing all the biz and double checking everything I got this error:

Quote:
Template->make_filename(): Error - file themes/Eos/forums/quick_reply.tpl does not exist


So goodness knows what I did wrong or if it's just it doesnt like my default theme. I'm using Eos, same as Chat's site.

I put the .tpl in the template folder, and the .php file in modules/forums/

The template folder being modules/Forums/templates/subSilver/

(I put those 2 files in those folders cos that's where Ganga told me where to put them earlier in this thread)

So I've put all the original unedited files back, taken out the .pl and .php file and it's back to normal with no quick reply rofl

Nuke hates me!

ermm thinking about it, shouldn't I have put quick_reply.tpl in themes/Eos/forums/

and not in modules/Forums/templates/subSilver?
 
GeekyGuy







PostPosted: Sun Aug 22, 2004 11:29 am Reply with quote

Muffin,
Yes, quick_reply.tpl should go in themes/Eos/forums. That would be the same for all your themes.
 
Muffin







PostPosted: Sun Aug 22, 2004 3:08 pm Reply with quote

doh! I should have just whipped it out of subsilver and bunged it in there then rofl

Never mind I'll have anuvver go tomorrow when the boards quiet.

Thanks GG

Is yours working ok?
 
GeekyGuy







PostPosted: Sun Aug 22, 2004 3:13 pm Reply with quote

Appears to be working fine. I don't have a lot of activity on my boards yet. But I've posted a few test replies and it performed flawlessly.
 
GeekyGuy







PostPosted: Sun Aug 22, 2004 3:15 pm Reply with quote

Muffin,

Have you seen this Only registered users can see links on this board! Get registered or login! ??
 
Muffin







PostPosted: Sun Aug 22, 2004 5:09 pm Reply with quote

Yes saw that GG, I posted a photo and an article about it on my site before the Olympic Games started.

Amazing isnt it.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©